; Listing generated by Microsoft (R) Optimizing Compiler Version 14.00.50727 TTL d:\MyProject\VS2005\Tcpmp\tcpmp\amr\amrnb.c CODE32 AREA |.drectve|, DRECTVE DCB "/nodefaultlib:libc.lib " DCB "/nodefaultlib:libcd.lib " DCB "/nodefaultlib:oldnames.lib " DCB "-defaultlib:LIBCMT " DCB "-defaultlib:OLDNAMES " AREA |.data|, DATA |$SG4307| DCB "#!AMR", 0xa, 0x0 AREA |.rdata|, DATA, READONLY |?PackedSize@?1??Process@@9@9| DCB 0xc ; `Process'::`2'::PackedSize DCB 0xd DCB 0xf DCB 0x11 DCB 0x13 DCB 0x14 DCB 0x1a DCB 0x1f DCB 0x5 DCB 0x0 DCB 0x0 DCB 0x0 DCB 0x0 DCB 0x0 DCB 0x0 DCB 0x0 |AMRNB| DCD 0x268 DCD 0x4e524d41 DCD 0x43444f43 DCD 0x3e8 DCD |Create| DCD 0x0 |AMRNBFile| DCD 0x0 DCD 0x4e464d41 DCD 0x41574152 DCD 0x3e3 % 8 AREA |.pdata|, PDATA |$T4367| DCD |$LN5@Create| DCD 0x40001804 ; Function compile flags: /Odsp AREA |.text|, CODE, ARM |Create| PROC ; File d:\myproject\vs2005\tcpmp\tcpmp\amr\amrnb.c ; Line 111 |$LN5@Create| mov r12, sp stmdb sp!, {r0} stmdb sp!, {r12, lr} sub sp, sp, #4 |$M4364| ; Line 112 ldr r3, [sp, #0xC] add r2, r3, #0x1C ldr r3, [pc, #0x3C] str r3, [r2] ; Line 113 ldr r3, [sp, #0xC] add r2, r3, #0x10 ldr r3, [pc, #0x28] str r3, [r2] ; Line 114 ldr r3, [sp, #0xC] add r2, r3, #0x18 ldr r3, [pc, #0x14] str r3, [r2] ; Line 115 mov r3, #0 str r3, [sp] ; Line 116 ldr r0, [sp] add sp, sp, #4 ldmia sp, {sp, pc} |$LN6@Create| DCD |Flush| DCD |UpdateInput| DCD |Process| |$M4365| ENDP ; |Create| IMPORT |__imp_PacketFormatPCM| IMPORT |Decoder_Interface_init| IMPORT |__imp_BufferClear| IMPORT |Decoder_Interface_exit| AREA |.pdata|, PDATA |$T4374| DCD |$LN8@UpdateInpu| DCD 0x40004204 ; Function compile flags: /Odsp AREA |.text|, CODE, ARM |UpdateInput| PROC ; Line 41 |$LN8@UpdateInpu| mov r12, sp stmdb sp!, {r0} stmdb sp!, {r12, lr} sub sp, sp, #8 |$M4371| ; Line 42 ldr r3, [sp, #0x10] add r3, r3, #0x49, 30 ldr r3, [r3] cmp r3, #0 beq |$LN3@UpdateInpu| ; Line 44 ldr r3, [sp, #0x10] add r3, r3, #0x49, 30 ldr r0, [r3] bl Decoder_Interface_exit ; Line 45 ldr r3, [sp, #0x10] add r2, r3, #0x49, 30 mov r3, #0 str r3, [r2] |$LN3@UpdateInpu| ; Line 47 ldr r3, [sp, #0x10] add r0, r3, #0x45, 30 ldr r3, [pc, #0xB0] ldr r3, [r3] mov lr, pc mov pc, r3 ; Line 49 ldr r3, [sp, #0x10] add r3, r3, #0x30 ldr r3, [r3] cmp r3, #2 bne |$LN2@UpdateInpu| ; Line 51 bl Decoder_Interface_init str r0, [sp, #4] ldr r3, [sp, #0x10] add r2, r3, #0x49, 30 ldr r3, [sp, #4] str r3, [r2] ; Line 52 ldr r3, [sp, #0x10] add r3, r3, #0x49, 30 ldr r3, [r3] cmp r3, #0 bne |$LN1@UpdateInpu| ; Line 53 mvn r3, #1 str r3, [sp] b |$LN4@UpdateInpu| |$LN1@UpdateInpu| ; Line 55 ldr r3, [sp, #0x10] add r2, r3, #0x50 mov r3, #0x7D, 26 str r3, [r2] ; Line 56 ldr r3, [sp, #0x10] add r2, r3, #0x4C mov r3, #1 str r3, [r2] ; Line 58 mov r2, #0x10 ldr r3, [sp, #0x10] add r1, r3, #0x30 ldr r3, [sp, #0x10] add r0, r3, #0x84 ldr r3, [pc, #0x1C] ldr r3, [r3] mov lr, pc mov pc, r3 |$LN2@UpdateInpu| ; Line 61 mov r3, #0 str r3, [sp] |$LN4@UpdateInpu| ; Line 62 ldr r0, [sp] add sp, sp, #8 ldmia sp, {sp, pc} |$LN9@UpdateInpu| DCD |__imp_PacketFormatPCM| DCD |__imp_BufferClear| |$M4372| ENDP ; |UpdateInput| IMPORT |Decoder_Interface_Decode| IMPORT |memcmp| IMPORT |__imp_BufferWrite| IMPORT |__imp_BufferPack| AREA |.pdata|, PDATA |$T4381| DCD |$LN11@Process| DCD 0x4000a204 ; Function compile flags: /Odsp AREA |.text|, CODE, ARM |Process| PROC ; Line 65 |$LN11@Process| mov r12, sp stmdb sp!, {r0 - r2} stmdb sp!, {r4, r12, lr} sub sp, sp, #0xC |$M4378| ; Line 69 ldr r3, [sp, #0x1C] cmp r3, #0 beq |$LN6@Process| ; Line 71 ldr r3, [sp, #0x1C] add r3, r3, #0x24 ldr r3, [r3] cmp r3, #0 blt |$LN5@Process| ; Line 72 ldr r3, [sp, #0x1C] add r1, r3, #0x24 ldr r3, [sp, #0x18] add r2, r3, #0xF0 ldr r3, [r1] str r3, [r2] |$LN5@Process| ; Line 75 mov r1, #0 ldr r3, [sp, #0x18] add r0, r3, #0x45, 30 ldr r3, [pc, #0x228] ldr r3, [r3] mov lr, pc mov pc, r3 ; Line 76 mov r3, #1, 24 ldr r2, [sp, #0x1C] add r2, r2, #0x20 ldr r2, [r2] ldr r1, [sp, #0x1C] ldr r1, [r1] ldr r0, [sp, #0x18] add r0, r0, #0x45, 30 ldr lr, [pc, #0x1F4] ldr r4, [lr] mov lr, pc mov pc, r4 ; Line 78 b |$LN4@Process| |$LN6@Process| ; Line 79 ldr r3, [sp, #0x18] add r2, r3, #0xF0 mvn r3, #0 str r3, [r2] |$LN4@Process| ; Line 81 ldr r3, [sp, #0x18] add r2, r3, #0x46, 30 ldr r3, [sp, #0x18] add r3, r3, #0x47, 30 ldr r2, [r2] ldr r3, [r3] sub r3, r2, r3 cmp r3, #1 bge |$LN3@Process| ; Line 82 mvn r3, #5 str r3, [sp, #4] b |$LN7@Process| |$LN3@Process| ; Line 86 ldr r3, [sp, #0x18] add r2, r3, #0x45, 30 ldr r3, [sp, #0x18] add r3, r3, #0x47, 30 ldr r2, [r2] ldr r3, [r3] add r3, r2, r3 ldrb r3, [r3] cmp r3, #0x23 bne |$LN2@Process| ldr r3, [sp, #0x18] add r2, r3, #0x46, 30 ldr r3, [sp, #0x18] add r3, r3, #0x47, 30 ldr r2, [r2] ldr r3, [r3] sub r3, r2, r3 cmp r3, #6 ble |$LN2@Process| mov r2, #6 ldr r1, [pc, #0x14C] ldr r3, [sp, #0x18] add r0, r3, #0x45, 30 ldr r3, [sp, #0x18] add r3, r3, #0x47, 30 ldr r0, [r0] ldr r3, [r3] add r0, r0, r3 bl memcmp str r0, [sp, #8] ldr r3, [sp, #8] cmp r3, #0 bne |$LN2@Process| ; Line 87 ldr r3, [sp, #0x18] add r3, r3, #0x47, 30 ldr r3, [r3] add r2, r3, #6 ldr r3, [sp, #0x18] add r3, r3, #0x47, 30 str r2, [r3] |$LN2@Process| ; Line 89 ldr r3, [sp, #0x18] add r2, r3, #0x45, 30 ldr r3, [sp, #0x18] add r3, r3, #0x47, 30 ldr r2, [r2] ldr r3, [r3] add r3, r2, r3 ldrb r3, [r3] mov r3, r3, asr #3 and r2, r3, #0xF ldr r3, [pc, #0xD0] add r3, r3, r2 ldrb r3, [r3] add r3, r3, #1 str r3, [sp] ; Line 91 ldr r3, [sp, #0x18] add r2, r3, #0x46, 30 ldr r3, [sp, #0x18] add r3, r3, #0x47, 30 ldr r2, [r2] ldr r3, [r3] sub r2, r2, r3 ldr r3, [sp] cmp r2, r3 bge |$LN1@Process| ; Line 92 mvn r3, #5 str r3, [sp, #4] b |$LN7@Process| |$LN1@Process| ; Line 94 mov r3, #0 ldr r2, [sp, #0x18] add r2, r2, #0x4A, 30 ldr r1, [sp, #0x18] add r0, r1, #0x45, 30 ldr r1, [sp, #0x18] add r1, r1, #0x47, 30 ldr r0, [r0] ldr r1, [r1] add r1, r0, r1 ldr r0, [sp, #0x18] add r0, r0, #0x49, 30 ldr r0, [r0] bl Decoder_Interface_Decode ; Line 95 ldr r3, [sp, #0x18] add r3, r3, #0x47, 30 ldr r2, [r3] ldr r3, [sp] add r2, r2, r3 ldr r3, [sp, #0x18] add r3, r3, #0x47, 30 str r2, [r3] ; Line 96 ldr r3, [sp, #0x18] add r2, r3, #0xEC mov r3, #5, 26 str r3, [r2] ; Line 97 ldr r3, [sp, #0x18] add r2, r3, #0x4A, 30 ldr r3, [sp, #0x18] add r3, r3, #0xCC str r2, [r3] ; Line 98 mov r3, #0 str r3, [sp, #4] |$LN7@Process| ; Line 99 ldr r0, [sp, #4] add sp, sp, #0xC ldmia sp, {r4, sp, pc} |$LN12@Process| DCD |?PackedSize@?1??Process@@9@9| DCD |$SG4307| DCD |__imp_BufferWrite| DCD |__imp_BufferPack| |$M4379| ENDP ; |Process| IMPORT |Decoder_Interface_reset| AREA |.pdata|, PDATA |$T4388| DCD |$LN6@Flush| DCD 0x40001204 ; Function compile flags: /Odsp AREA |.text|, CODE, ARM |Flush| PROC ; Line 104 |$LN6@Flush| mov r12, sp stmdb sp!, {r0} stmdb sp!, {r12, lr} sub sp, sp, #4 |$M4385| ; Line 105 ldr r3, [sp, #0xC] add r3, r3, #0x49, 30 ldr r3, [r3] cmp r3, #0 beq |$LN1@Flush| ; Line 106 ldr r3, [sp, #0xC] add r3, r3, #0x49, 30 ldr r0, [r3] bl Decoder_Interface_reset |$LN1@Flush| ; Line 107 mov r3, #0 str r3, [sp] ; Line 108 ldr r0, [sp] add sp, sp, #4 ldmia sp, {sp, pc} |$M4386| ENDP ; |Flush| EXPORT |AMRNB_Init| IMPORT |__imp_NodeRegisterClass| AREA |.pdata|, PDATA |$T4393| DCD |$LN5@AMRNB_Init| DCD 0x40000f01 ; Function compile flags: /Odsp AREA |.text|, CODE, ARM |AMRNB_Init| PROC ; Line 137 |$LN5@AMRNB_Init| str lr, [sp, #-4]! |$M4390| ; Line 138 ldr r0, [pc, #0x2C] ldr r3, [pc, #0x20] ldr r3, [r3] mov lr, pc mov pc, r3 ; Line 139 ldr r0, [pc, #0x14] ldr r3, [pc, #0xC] ldr r3, [r3] mov lr, pc mov pc, r3 ; Line 140 ldr pc, [sp], #4 |$LN6@AMRNB_Init| DCD |__imp_NodeRegisterClass| DCD |AMRNBFile| DCD |AMRNB| |$M4391| ENDP ; |AMRNB_Init| EXPORT |AMRNB_Done| IMPORT |__imp_NodeUnRegisterClass| AREA |.pdata|, PDATA |$T4399| DCD |$LN5@AMRNB_Done| DCD 0x40000f01 ; Function compile flags: /Odsp AREA |.text|, CODE, ARM |AMRNB_Done| PROC ; Line 143 |$LN5@AMRNB_Done| str lr, [sp, #-4]! |$M4396| ; Line 144 ldr r0, [pc, #0x2C] ldr r3, [pc, #0x20] ldr r3, [r3] mov lr, pc mov pc, r3 ; Line 145 ldr r0, [pc, #0x14] ldr r3, [pc, #0xC] ldr r3, [r3] mov lr, pc mov pc, r3 ; Line 146 ldr pc, [sp], #4 |$LN6@AMRNB_Done| DCD |__imp_NodeUnRegisterClass| DCD 0x4e464d41 DCD 0x4e524d41 |$M4397| ENDP ; |AMRNB_Done| END