{"type": "func", "start": 350736, "end": 350838, "name": "sub_55A10", "pseudocode": "// \n// sub_55A10 from 0x55a10 to 0x55a76 (102 bytes)\n// \n// 2 xrefs:\n// > sub_55578 @ 0x55622\n// > sub_566D6 @ 0x566d8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:40:45 +0000\n// \n\nint __fastcall sub_55A10(int a1, _DWORD *a2, int a3)\n{\n  if ( !a2 )\n    return 31;\n  if ( a2[5] != a1 )\n    return 34;\n  sub_4A346(a2);\n  if ( !a2[8] )\n    sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), a2, \"../../src/fmod_soundi.cpp\", 2362, 1);\n  --*(_DWORD *)(a1 + 164);\n  if ( !a3 )\n    sub_56690(a1);\n  return 0;\n}", "assembly": "; \n; sub_55A10 from 0x55a10 to 0x55a76 (102 bytes)\n; \n; 2 xrefs:\n; > sub_55578 @ 0x55622\n; > sub_566D6 @ 0x566d8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:40:45 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x55a10\nADD             R7, SP, #0xC                                           ; +0x2, 0x55a12\nPUSH.W          {R11}                                                  ; +0x4, 0x55a14\nSUB             SP, SP, #8                                             ; +0x8, 0x55a18\nCBZ             R1, loc_55A2A                                          ; +0xa, 0x55a1a\nMOV             R4, R0                                                 ; +0xc, 0x55a1c\nLDR             R0, [R1,#0x14]                                         ; +0xe, 0x55a1e\nMOV             R6, R1                                                 ; +0x10, 0x55a20\nCMP             R0, R4                                                 ; +0x12, 0x55a22\nBEQ             loc_55A2E                                              ; +0x14, 0x55a24\nMOVS            R0, #0x22 ; '\"'                                        ; +0x16, 0x55a26\nB               loc_55A6E                                              ; +0x18, 0x55a28\nMOVS            R0, #0x1F                                              ; +0x1a, 0x55a2a\nB               loc_55A6E                                              ; +0x1c, 0x55a2c\nMOV             R0, R6                                                 ; +0x1e, 0x55a2e\nMOV             R5, R2                                                 ; +0x20, 0x55a30\nBL              sub_4A346                                              ; +0x22, 0x55a32\nLDR             R0, [R6,#0x20]                                         ; +0x26, 0x55a36\nCBNZ            R0, loc_55A58                                          ; +0x28, 0x55a38\nLDR             R0, =(off_E6144 - 0x55A46)                             ; +0x2a, 0x55a3a\nMOVS            R1, #1                                                 ; +0x2c, 0x55a3c\nMOVW            R3, #0x93A                                             ; +0x2e, 0x55a3e\nADD             R0, PC; off_E6144                                      ; +0x32, 0x55a42\nLDR             R0, [R0]; off_E8000                                    ; +0x34, 0x55a44\nLDR             R0, [R0]; dword_F2488                                  ; +0x36, 0x55a46\nLDR.W           R0, [R0,#(dword_F25D4 - 0xF2488)]                      ; +0x38, 0x55a48\nSTR             R1, [SP,#8+var_8]                                      ; +0x3c, 0x55a4c\nMOV             R1, R6                                                 ; +0x3e, 0x55a4e\nLDR             R2, =(aSrcFmodSoundiC - 0x55A56); \"../../src/fmod_soundi.cpp\" ... ; +0x40, 0x55a50\nADD             R2, PC; \"../../src/fmod_soundi.cpp\"                    ; +0x42, 0x55a52\nBL              sub_BD7AC                                              ; +0x44, 0x55a54\nLDR.W           R0, [R4,#0xA4]                                         ; +0x48, 0x55a58\nSUB.W           R0, R0, #1                                             ; +0x4c, 0x55a5c\nSTR.W           R0, [R4,#0xA4]                                         ; +0x50, 0x55a60\nCBNZ            R5, loc_55A6C                                          ; +0x54, 0x55a64\nMOV             R0, R4                                                 ; +0x56, 0x55a66\nBL              sub_56690                                              ; +0x58, 0x55a68\nMOVS            R0, #0                                                 ; +0x5c, 0x55a6c\nADD             SP, SP, #8                                             ; +0x5e, 0x55a6e\nPOP.W           {R11}                                                  ; +0x60, 0x55a70\nPOP             {R4-R7,PC}                                             ; +0x64, 0x55a74", "xrefs": ["sub_55578 @ 0x55622", "sub_566D6 @ 0x566d8"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}