{"type": "func", "start": 594300, "end": 594596, "name": "sub_9117C", "pseudocode": "// \n// sub_9117C from 0x9117c to 0x912a4 (296 bytes)\n// \n// 1 xrefs:\n// > sub_8C1CC @ 0x8c1cc\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\n__int64 __fastcall sub_9117C(__int64 a1)\n{\n  __int64 result; // x0\n  __int64 i; // x21\n  __int64 v4; // x0\n  __int64 v5; // x1\n  __int64 v6; // x22\n  __int64 j; // x21\n\n  result = sub_601E4(a1);\n  if ( !(_DWORD)result )\n  {\n    if ( *(_QWORD *)(a1 + 18128) )\n    {\n      ((void (*)(void))sub_91894)();\n      *(_QWORD *)(a1 + 18128) = 0;\n    }\n    if ( *(_QWORD *)(a1 + 1520) )\n    {\n      for ( i = 0; i < *(int *)(a1 + 972); ++i )\n      {\n        v4 = *(_QWORD *)(*(_QWORD *)(a1 + 1520) + 8 * i);\n        if ( v4 )\n          sub_91894(v4);\n      }\n      sub_E2D74(\n        *(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),\n        *(_QWORD *)(a1 + 1520),\n        \"../../src/fmod_codec_it.cpp\",\n        5814,\n        1);\n      *(_QWORD *)(a1 + 1520) = 0;\n    }\n    v5 = *(_QWORD *)(a1 + 2304);\n    if ( v5 )\n    {\n      sub_E2D74(*(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000), v5, \"../../src/fmod_codec_it.cpp\", 5820, 1);\n      *(_QWORD *)(a1 + 2304) = 0;\n    }\n    v6 = a1 + 17472;\n    for ( j = 0; j != 400; j += 8 )\n    {\n      if ( *(_QWORD *)(v6 + j) )\n      {\n        result = sub_91A84();\n        if ( (_DWORD)result )\n          return result;\n        result = ((__int64 (__fastcall *)())sub_91894)();\n        if ( (_DWORD)result )\n          return result;\n        sub_E2D74(\n          *(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),\n          *(_QWORD *)(v6 + j),\n          \"../../src/fmod_codec_it.cpp\",\n          5837,\n          1);\n      }\n    }\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_9117C from 0x9117c to 0x912a4 (296 bytes)\n; \n; 1 xrefs:\n; > sub_8C1CC @ 0x8c1cc\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x9117c\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x91180\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x91184\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x91188\nADD             X29, SP, #0x30                                         ; +0x10, 0x9118c\nMOV             X19, X0                                                ; +0x14, 0x91190\nBL              sub_601E4                                              ; +0x18, 0x91194\nCBNZ            W0, loc_91290                                          ; +0x1c, 0x91198\nLDR             X0, [X19,#0x46D0]                                      ; +0x20, 0x9119c\nCBZ             X0, loc_911AC                                          ; +0x24, 0x911a0\nBL              sub_91894                                              ; +0x28, 0x911a4\nSTR             XZR, [X19,#0x46D0]                                     ; +0x2c, 0x911a8\nADRP            X20, #off_10F7A0@PAGE                                  ; +0x30, 0x911ac\nLDR             X8, [X19,#0x5F0]                                       ; +0x34, 0x911b0\nLDR             X20, [X20,#off_10F7A0@PAGEOFF]; off_114000             ; +0x38, 0x911b4\nCBZ             X8, loc_91208                                          ; +0x3c, 0x911b8\nMOV             X21, XZR                                               ; +0x40, 0x911bc\nLDRSW           X8, [X19,#0x3CC]                                       ; +0x44, 0x911c0\nCMP             X21, X8                                                ; +0x48, 0x911c4\nB.GE            loc_911E4                                              ; +0x4c, 0x911c8\nLDR             X8, [X19,#0x5F0]                                       ; +0x50, 0x911cc\nLDR             X0, [X8,X21,LSL#3]                                     ; +0x54, 0x911d0\nCBZ             X0, loc_911DC                                          ; +0x58, 0x911d4\nBL              sub_91894                                              ; +0x5c, 0x911d8\nADD             X21, X21, #1                                           ; +0x60, 0x911dc\nB               loc_911C0                                              ; +0x64, 0x911e0\nLDR             X8, [X20]; qword_11F800                                ; +0x68, 0x911e4\nLDR             X1, [X19,#0x5F0]                                       ; +0x6c, 0x911e8\nADRL            X2, aSrcFmodCodecIt; \"../../src/fmod_codec_it.cpp\"     ; +0x70, 0x911ec\nLDR             X0, [X8,#(qword_11F9B0 - 0x11F800)]                    ; +0x78, 0x911f4\nMOV             W3, #0x16B6                                            ; +0x7c, 0x911f8\nMOV             W4, #1                                                 ; +0x80, 0x911fc\nBL              sub_E2D74                                              ; +0x84, 0x91200\nSTR             XZR, [X19,#0x5F0]                                      ; +0x88, 0x91204\nLDR             X1, [X19,#0x900]                                       ; +0x8c, 0x91208\nCBZ             X1, loc_91230                                          ; +0x90, 0x9120c\nLDR             X8, [X20]; qword_11F800                                ; +0x94, 0x91210\nADRL            X2, aSrcFmodCodecIt; \"../../src/fmod_codec_it.cpp\"     ; +0x98, 0x91214\nMOV             W3, #0x16BC                                            ; +0xa0, 0x9121c\nLDR             X0, [X8,#(qword_11F9B0 - 0x11F800)]                    ; +0xa4, 0x91220\nMOV             W4, #1                                                 ; +0xa8, 0x91224\nBL              sub_E2D74                                              ; +0xac, 0x91228\nSTR             XZR, [X19,#0x900]                                      ; +0xb0, 0x9122c\nMOV             W8, #0x4440                                            ; +0xb4, 0x91230\nADD             X22, X19, X8                                           ; +0xb8, 0x91234\nADRP            X19, #aSrcFmodCodecIt@PAGE; \"../../src/fmod_codec_it.cpp\" ; +0xbc, 0x91238\nMOV             X21, XZR                                               ; +0xc0, 0x9123c\nADD             X19, X19, #aSrcFmodCodecIt@PAGEOFF; \"../../src/fmod_codec_it.cpp\" ; +0xc4, 0x91240\nCMP             X21, #0x190                                            ; +0xc8, 0x91244\nB.EQ            loc_9128C                                              ; +0xcc, 0x91248\nLDR             X0, [X22,X21]                                          ; +0xd0, 0x9124c\nCBZ             X0, loc_91284                                          ; +0xd4, 0x91250\nBL              sub_91A84                                              ; +0xd8, 0x91254\nCBNZ            W0, loc_91290                                          ; +0xdc, 0x91258\nLDR             X0, [SP,#0x30+var_28]                                  ; +0xe0, 0x9125c\nBL              sub_91894                                              ; +0xe4, 0x91260\nCBNZ            W0, loc_91290                                          ; +0xe8, 0x91264\nLDR             X8, [X20]; qword_11F800                                ; +0xec, 0x91268\nLDR             X1, [X22,X21]                                          ; +0xf0, 0x9126c\nMOV             W3, #0x16CD                                            ; +0xf4, 0x91270\nMOV             W4, #1                                                 ; +0xf8, 0x91274\nLDR             X0, [X8,#(qword_11F9B0 - 0x11F800)]                    ; +0xfc, 0x91278\nMOV             X2, X19                                                ; +0x100, 0x9127c\nBL              sub_E2D74                                              ; +0x104, 0x91280\nADD             X21, X21, #8                                           ; +0x108, 0x91284\nB               loc_91244                                              ; +0x10c, 0x91288\nMOV             W0, WZR                                                ; +0x110, 0x9128c\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x114, 0x91290\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x118, 0x91294\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x11c, 0x91298\nADD             SP, SP, #0x40 ; '@'                                    ; +0x120, 0x9129c\nRET                                                                    ; +0x124, 0x912a0", "xrefs": ["sub_8C1CC @ 0x8c1cc"], "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"}