{"type": "func", "start": 494040, "end": 494088, "name": "sub_789D8", "pseudocode": "// \n// sub_789D8 from 0x789d8 to 0x78a08 (48 bytes)\n// \n// 2 xrefs:\n// > FMOD::SystemI::createDiskFile @ 0x7879c\n// > sub_78B30 @ 0x78d4c\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_789D8(__int64 a1, __int64 a2)\n{\n  unsigned int v2; // w8\n\n  if ( !a2 )\n    return *(unsigned int *)(a1 + 69980);\n  v2 = *(_DWORD *)(a2 + 176);\n  if ( v2 == -1 )\n    return 0;\n  if ( !v2 )\n    return *(unsigned int *)(a1 + 69980);\n  return v2;\n}", "assembly": "; \n; sub_789D8 from 0x789d8 to 0x78a08 (48 bytes)\n; \n; 2 xrefs:\n; > FMOD::SystemI::createDiskFile @ 0x7879c\n; > sub_78B30 @ 0x78d4c\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\nCBZ             X1, loc_789EC                                          ; +0x0, 0x789d8\nLDR             W8, [X1,#0xB0]                                         ; +0x4, 0x789dc\nCMN             W8, #1                                                 ; +0x8, 0x789e0\nB.EQ            loc_789FC                                              ; +0xc, 0x789e4\nCBNZ            W8, loc_78A00                                          ; +0x10, 0x789e8\nMOV             W8, #0x1115C                                           ; +0x14, 0x789ec\nLDR             W8, [X0,X8]                                            ; +0x1c, 0x789f4\nB               loc_78A00                                              ; +0x20, 0x789f8\nMOV             W8, WZR                                                ; +0x24, 0x789fc\nMOV             W0, W8                                                 ; +0x28, 0x78a00\nRET                                                                    ; +0x2c, 0x78a04", "xrefs": ["FMOD::SystemI::createDiskFile @ 0x7879c", "sub_78B30 @ 0x78d4c"], "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"}