{"type": "func", "start": 367844, "end": 368014, "name": "sub_59CE4", "pseudocode": "// \n// sub_59CE4 from 0x59ce4 to 0x59d8e (170 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::mixerSuspend @ 0xb8fa0\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:48 +0000\n// \n\nint __fastcall sub_59CE4(int a1)\n{\n  int result; // r0\n  int v3; // r0\n  int v4; // r6\n  int v5; // r5\n  int v6; // r0\n  int (__fastcall *v7)(int); // r3\n  int (__fastcall *v8)(int, int); // r2\n\n  if ( !*(_BYTE *)(a1 + 4) || *(_BYTE *)(a1 + 68936) )\n    return 0;\n  v3 = *(_DWORD *)(a1 + 1112);\n  if ( *(_DWORD *)(v3 + 812) )\n  {\n    v4 = 0;\n    v5 = 40;\n    while ( v4 < *(_DWORD *)(a1 + 1144) )\n    {\n      if ( *(_DWORD *)(*(_DWORD *)(a1 + 1156) + v5) )\n      {\n        v6 = *(_DWORD *)(a1 + 1112);\n        v7 = *(int (__fastcall **)(int))(v6 + 812);\n        if ( v6 )\n          v6 += 4;\n        result = v7(v6);\n        if ( result )\n          return result;\n      }\n      v5 += 44;\n      ++v4;\n    }\n    v3 = *(_DWORD *)(a1 + 1112);\n  }\n  v8 = *(int (__fastcall **)(int, int))(v3 + 780);\n  if ( v8 )\n  {\n    if ( v3 )\n      v3 += 4;\n    result = v8(v3, 1);\n    if ( result )\n      return result;\n    v3 = *(_DWORD *)(a1 + 1112);\n  }\n  if ( !*(_BYTE *)(v3 + 776) || (result = sub_612DC(a1)) == 0 )\n  {\n    result = sub_64EC0(a1, 12);\n    if ( !result )\n    {\n      result = sub_4ED5E((int *)off_E8000);\n      if ( !result )\n      {\n        *(_BYTE *)(a1 + 68936) = 1;\n        return 0;\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_59CE4 from 0x59ce4 to 0x59d8e (170 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::mixerSuspend @ 0xb8fa0\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:48 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x59ce4\nADD             R7, SP, #0xC                                           ; +0x2, 0x59ce6\nPUSH.W          {R8}                                                   ; +0x4, 0x59ce8\nMOV             R4, R0                                                 ; +0x8, 0x59cec\nLDRB            R0, [R0,#4]                                            ; +0xa, 0x59cee\nCBZ             R0, loc_59CF8                                          ; +0xc, 0x59cf0\nLDR             R5, =0x10D48                                           ; +0xe, 0x59cf2\nLDRB            R0, [R4,R5]                                            ; +0x10, 0x59cf4\nCBZ             R0, loc_59D00                                          ; +0x12, 0x59cf6\nMOVS            R0, #0                                                 ; +0x14, 0x59cf8\nPOP.W           {R8}                                                   ; +0x16, 0x59cfa\nPOP             {R4-R7,PC}                                             ; +0x1a, 0x59cfe\nLDR.W           R0, [R4,#0x458]                                        ; +0x1c, 0x59d00\nLDR.W           R1, [R0,#0x32C]                                        ; +0x20, 0x59d04\nCBZ             R1, loc_59D42                                          ; +0x24, 0x59d08\nMOV             R8, R5                                                 ; +0x26, 0x59d0a\nMOVS            R6, #0                                                 ; +0x28, 0x59d0c\nMOVS            R5, #0x28 ; '('                                        ; +0x2a, 0x59d0e\nLDR.W           R0, [R4,#0x478]                                        ; +0x2c, 0x59d10\nCMP             R6, R0                                                 ; +0x30, 0x59d14\nBGE             loc_59D3C                                              ; +0x32, 0x59d16\nLDR.W           R0, [R4,#0x484]                                        ; +0x34, 0x59d18\nLDR             R1, [R0,R5]                                            ; +0x38, 0x59d1c\nCBZ             R1, loc_59D36                                          ; +0x3a, 0x59d1e\nLDR.W           R0, [R4,#0x458]                                        ; +0x3c, 0x59d20\nMOVS            R2, #1                                                 ; +0x40, 0x59d24\nCMP             R0, #0                                                 ; +0x42, 0x59d26\nLDR.W           R3, [R0,#0x32C]                                        ; +0x44, 0x59d28\nIT NE                                                                  ; +0x48, 0x59d2c\nADDNE           R0, #4                                                 ; +0x4a, 0x59d2e\nBLX             R3                                                     ; +0x4c, 0x59d30\nCMP             R0, #0                                                 ; +0x4e, 0x59d32\nBNE             loc_59CFA                                              ; +0x50, 0x59d34\nADDS            R5, #0x2C ; ','                                        ; +0x52, 0x59d36\nADDS            R6, #1                                                 ; +0x54, 0x59d38\nB               loc_59D10                                              ; +0x56, 0x59d3a\nLDR.W           R0, [R4,#0x458]                                        ; +0x58, 0x59d3c\nMOV             R5, R8                                                 ; +0x5c, 0x59d40\nLDR.W           R2, [R0,#0x30C]                                        ; +0x5e, 0x59d42\nCBZ             R2, loc_59D5A                                          ; +0x62, 0x59d46\nMOVS            R1, #1                                                 ; +0x64, 0x59d48\nCMP             R0, #0                                                 ; +0x66, 0x59d4a\nIT NE                                                                  ; +0x68, 0x59d4c\nADDNE           R0, #4                                                 ; +0x6a, 0x59d4e\nBLX             R2                                                     ; +0x6c, 0x59d50\nCMP             R0, #0                                                 ; +0x6e, 0x59d52\nBNE             loc_59CFA                                              ; +0x70, 0x59d54\nLDR.W           R0, [R4,#0x458]                                        ; +0x72, 0x59d56\nLDRB.W          R0, [R0,#0x308]                                        ; +0x76, 0x59d5a\nCBZ             R0, loc_59D6A                                          ; +0x7a, 0x59d5e\nMOV             R0, R4                                                 ; +0x7c, 0x59d60\nBL              sub_612DC                                              ; +0x7e, 0x59d62\nCMP             R0, #0                                                 ; +0x82, 0x59d66\nBNE             loc_59CFA                                              ; +0x84, 0x59d68\nMOV             R0, R4                                                 ; +0x86, 0x59d6a\nMOVS            R1, #0xC                                               ; +0x88, 0x59d6c\nBL              sub_64EC0                                              ; +0x8a, 0x59d6e\nCMP             R0, #0                                                 ; +0x8e, 0x59d72\nBNE             loc_59CFA                                              ; +0x90, 0x59d74\nLDR             R0, =(off_E6144 - 0x59D7C)                             ; +0x92, 0x59d76\nADD             R0, PC; off_E6144                                      ; +0x94, 0x59d78\nLDR             R0, [R0]; off_E8000                                    ; +0x96, 0x59d7a\nLDR             R0, [R0]; dword_F2488                                  ; +0x98, 0x59d7c\nBL              sub_4ED5E                                              ; +0x9a, 0x59d7e\nCMP             R0, #0                                                 ; +0x9e, 0x59d82\nBNE             loc_59CFA                                              ; +0xa0, 0x59d84\nADDS            R0, R4, R5                                             ; +0xa2, 0x59d86\nMOVS            R1, #1                                                 ; +0xa4, 0x59d88\nSTRB            R1, [R0]                                               ; +0xa6, 0x59d8a\nB               loc_59CF8                                              ; +0xa8, 0x59d8c", "xrefs": ["FMOD::System::mixerSuspend @ 0xb8fa0"], "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"}