{"type": "func", "start": 880872, "end": 881072, "name": "sub_D70E8", "pseudocode": "// \n// sub_D70E8 from 0xd70e8 to 0xd71b0 (200 bytes)\n// \n// 2 xrefs:\n// > sub_6E864 @ 0x6e9a8\n// > sub_D769C @ 0xd7770\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_D70E8(__int64 a1, __int64 a2)\n{\n  __int64 result; // x0\n  __int64 (__fastcall *v5)(__int64, _QWORD); // x8\n  _QWORD *v6; // x0\n\n  result = sub_C7D1C(*(_QWORD *)(a2 + 16), 0);\n  if ( !(_DWORD)result )\n  {\n    v5 = *(__int64 (__fastcall **)(__int64, _QWORD))(a1 + 936);\n    if ( !v5 || (result = v5(a1 + 8, *(unsigned int *)(a2 + 52)), !(_DWORD)result) )\n    {\n      if ( *(_QWORD *)(a2 + 32) )\n      {\n        v6 = sub_D7A7C(off_114000, result);\n        sub_D7ACC(v6);\n        *(_QWORD *)(a2 + 32) = 0;\n        *(_QWORD *)(a2 + 72) = 0;\n        *(_DWORD *)(a2 + 68) = 0;\n        *(_WORD *)(a2 + 81) = 0;\n      }\n      result = *(_QWORD *)(a2 + 24);\n      if ( result )\n      {\n        result = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 16LL))(result);\n        if ( !(_DWORD)result )\n        {\n          sub_E2D74(\n            *(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),\n            *(_QWORD *)(a2 + 24),\n            \"../../src/fmod_output.cpp\",\n            1472,\n            1);\n          *(_QWORD *)(a2 + 24) = 0;\n          *(_BYTE *)(a2 + 80) = 0;\n          return 0;\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_D70E8 from 0xd70e8 to 0xd71b0 (200 bytes)\n; \n; 2 xrefs:\n; > sub_6E864 @ 0x6e9a8\n; > sub_D769C @ 0xd7770\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0xd70e8\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0xd70ec\nLDR             X8, [X1,#0x10]                                         ; +0x8, 0xd70f0\nMOV             X19, X1                                                ; +0xc, 0xd70f4\nMOV             X20, X0                                                ; +0x10, 0xd70f8\nMOV             W2, #1                                                 ; +0x14, 0xd70fc\nMOV             X0, X8                                                 ; +0x18, 0xd7100\nMOV             W1, WZR                                                ; +0x1c, 0xd7104\nADD             X29, SP, #0x10                                         ; +0x20, 0xd7108\nBL              sub_C7D1C                                              ; +0x24, 0xd710c\nCBZ             W0, loc_D7120                                          ; +0x28, 0xd7110\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x2c, 0xd7114\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x30, 0xd7118\nRET                                                                    ; +0x34, 0xd711c\nLDR             X8, [X20,#0x3A8]                                       ; +0x38, 0xd7120\nCBZ             X8, loc_D7138                                          ; +0x3c, 0xd7124\nLDR             W1, [X19,#0x34]                                        ; +0x40, 0xd7128\nADD             X0, X20, #8                                            ; +0x44, 0xd712c\nBLR             X8                                                     ; +0x48, 0xd7130\nCBNZ            W0, loc_D7114                                          ; +0x4c, 0xd7134\nADRP            X20, #off_10F7A0@PAGE                                  ; +0x50, 0xd7138\nLDR             X1, [X19,#0x20]                                        ; +0x54, 0xd713c\nLDR             X20, [X20,#off_10F7A0@PAGEOFF]; off_114000             ; +0x58, 0xd7140\nCBZ             X1, loc_D7168                                          ; +0x5c, 0xd7144\nLDR             X8, [X20]; qword_11F800                                ; +0x60, 0xd7148\nBL              sub_D7A7C                                              ; +0x64, 0xd714c\nMOV             W3, #0x5B2                                             ; +0x68, 0xd7150\nBL              sub_D7ACC                                              ; +0x6c, 0xd7154\nSTR             XZR, [X19,#0x20]                                       ; +0x70, 0xd7158\nSTR             XZR, [X19,#0x48]                                       ; +0x74, 0xd715c\nSTR             WZR, [X19,#0x44]                                       ; +0x78, 0xd7160\nSTURH           WZR, [X19,#0x51]                                       ; +0x7c, 0xd7164\nLDR             X0, [X19,#0x18]                                        ; +0x80, 0xd7168\nCBZ             X0, loc_D7114                                          ; +0x84, 0xd716c\nLDR             X8, [X0]                                               ; +0x88, 0xd7170\nLDR             X8, [X8,#0x10]                                         ; +0x8c, 0xd7174\nBLR             X8                                                     ; +0x90, 0xd7178\nCBNZ            W0, loc_D7114                                          ; +0x94, 0xd717c\nLDR             X8, [X20]; qword_11F800                                ; +0x98, 0xd7180\nLDR             X1, [X19,#0x18]                                        ; +0x9c, 0xd7184\nADRL            X2, aSrcFmodOutputC; \"../../src/fmod_output.cpp\"       ; +0xa0, 0xd7188\nLDR             X0, [X8,#(qword_11F9B0 - 0x11F800)]                    ; +0xa8, 0xd7190\nMOV             W3, #0x5C0                                             ; +0xac, 0xd7194\nMOV             W4, #1                                                 ; +0xb0, 0xd7198\nBL              sub_E2D74                                              ; +0xb4, 0xd719c\nMOV             W0, WZR                                                ; +0xb8, 0xd71a0\nSTR             XZR, [X19,#0x18]                                       ; +0xbc, 0xd71a4\nSTRB            WZR, [X19,#0x50]                                       ; +0xc0, 0xd71a8\nB               loc_D7114                                              ; +0xc4, 0xd71ac", "xrefs": ["sub_6E864 @ 0x6e9a8", "sub_D769C @ 0xd7770"], "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"}