{"type": "func", "start": 794200, "end": 794326, "name": "sub_C1E58", "pseudocode": "// \n// sub_C1E58 from 0xc1e58 to 0xc1ed6 (126 bytes)\n// \n// 1 xrefs:\n// > sub_C1BBC @ 0xc1bc2\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nint __fastcall sub_C1E58(_DWORD *a1, int a2, int a3, int a4)\n{\n  _DWORD *v4; // r1\n  int v6; // r5\n  int v7; // r1\n  int v9; // [sp+4h] [bp-Ch] BYREF\n\n  v9 = a4;\n  v4 = (_DWORD *)a1[210];\n  if ( v4 )\n  {\n    sub_BD7AC(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), v4);\n    a1[210] = 0;\n  }\n  v9 = 0;\n  v6 = sub_BFE7C((int)&v9);\n  if ( !v6 )\n  {\n    if ( a1[205] )\n    {\n      (*(void (__fastcall **)(int))(*(_DWORD *)v9 + 88))(v9);\n      a1[205] = 0;\n    }\n    v7 = a1[204];\n    if ( v7 )\n    {\n      if ( a1[208] )\n      {\n        sub_C1EE0(v9);\n        a1[208] = 0;\n        v7 = a1[204];\n      }\n      (*(void (__fastcall **)(int, int))(*(_DWORD *)v9 + 88))(v9, v7);\n      a1[204] = 0;\n    }\n  }\n  return v6;\n}", "assembly": "; \n; sub_C1E58 from 0xc1e58 to 0xc1ed6 (126 bytes)\n; \n; 1 xrefs:\n; > sub_C1BBC @ 0xc1bc2\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nPUSH            {R2-R5,R7,LR}                                          ; +0x0, 0xc1e58\nADD             R7, SP, #0x10                                          ; +0x2, 0xc1e5a\nLDR.W           R1, [R0,#0x348]                                        ; +0x4, 0xc1e5c\nMOV             R4, R0                                                 ; +0x8, 0xc1e60\nCBZ             R1, loc_C1E84                                          ; +0xa, 0xc1e62\nLDR             R0, =(off_E6144 - 0xC1E6E)                             ; +0xc, 0xc1e64\nMOVS            R2, #1                                                 ; +0xe, 0xc1e66\nMOVS            R3, #0xE8                                              ; +0x10, 0xc1e68\nADD             R0, PC; off_E6144                                      ; +0x12, 0xc1e6a\nLDR             R0, [R0]; off_E8000                                    ; +0x14, 0xc1e6c\nLDR             R0, [R0]; dword_F2488                                  ; +0x16, 0xc1e6e\nLDR.W           R0, [R0,#(dword_F25D4 - 0xF2488)]                      ; +0x18, 0xc1e70\nSTR             R2, [SP,#8+var_8]                                      ; +0x1c, 0xc1e74\nLDR             R2, =(aAndroidSrcFmod_1 - 0xC1E7C); \"../android/src/fmod_output_audiotrack.c\"... ... ; +0x1e, 0xc1e76\nADD             R2, PC; \"../android/src/fmod_output_audiotrack.c\"...   ; +0x20, 0xc1e78\nBL              sub_BD7AC                                              ; +0x22, 0xc1e7a\nMOVS            R0, #0                                                 ; +0x26, 0xc1e7e\nSTR.W           R0, [R4,#0x348]                                        ; +0x28, 0xc1e80\nMOVS            R0, #0                                                 ; +0x2c, 0xc1e84\nSTR             R0, [SP,#8+var_4]                                      ; +0x2e, 0xc1e86\nADD             R0, SP, #8+var_4                                       ; +0x30, 0xc1e88\nBL              sub_BFE7C                                              ; +0x32, 0xc1e8a\nMOV             R5, R0                                                 ; +0x36, 0xc1e8e\nCBNZ            R0, loc_C1ED0                                          ; +0x38, 0xc1e90\nLDR.W           R1, [R4,#0x334]                                        ; +0x3a, 0xc1e92\nCBZ             R1, loc_C1EA6                                          ; +0x3e, 0xc1e96\nLDR             R0, [SP,#8+var_4]                                      ; +0x40, 0xc1e98\nLDR             R2, [R0]                                               ; +0x42, 0xc1e9a\nLDR             R2, [R2,#0x58]                                         ; +0x44, 0xc1e9c\nBLX             R2                                                     ; +0x46, 0xc1e9e\nMOVS            R0, #0                                                 ; +0x48, 0xc1ea0\nSTR.W           R0, [R4,#0x334]                                        ; +0x4a, 0xc1ea2\nLDR.W           R1, [R4,#0x330]                                        ; +0x4e, 0xc1ea6\nCBZ             R1, loc_C1ED0                                          ; +0x52, 0xc1eaa\nLDR.W           R2, [R4,#0x340]                                        ; +0x54, 0xc1eac\nCBZ             R2, loc_C1EC2                                          ; +0x58, 0xc1eb0\nLDR             R0, [SP,#8+var_4]                                      ; +0x5a, 0xc1eb2\nBL              sub_C1EE0                                              ; +0x5c, 0xc1eb4\nMOVS            R0, #0                                                 ; +0x60, 0xc1eb8\nSTR.W           R0, [R4,#0x340]                                        ; +0x62, 0xc1eba\nLDR.W           R1, [R4,#0x330]                                        ; +0x66, 0xc1ebe\nLDR             R0, [SP,#8+var_4]                                      ; +0x6a, 0xc1ec2\nLDR             R2, [R0]                                               ; +0x6c, 0xc1ec4\nLDR             R2, [R2,#0x58]                                         ; +0x6e, 0xc1ec6\nBLX             R2                                                     ; +0x70, 0xc1ec8\nMOVS            R0, #0                                                 ; +0x72, 0xc1eca\nSTR.W           R0, [R4,#0x330]                                        ; +0x74, 0xc1ecc\nMOV             R0, R5                                                 ; +0x78, 0xc1ed0\nADD             SP, SP, #8                                             ; +0x7a, 0xc1ed2\nPOP             {R4,R5,R7,PC}                                          ; +0x7c, 0xc1ed4", "xrefs": ["sub_C1BBC @ 0xc1bc2"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}