{"type": "func", "start": 751800, "end": 751930, "name": "FMOD::System::attachFileSystem", "pseudocode": "// \n// FMOD::System::attachFileSystem from 0xb78b8 to 0xb793a (130 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::attachFileSystem @ 0xdffa8\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:41:44 +0000\n// \n\nint __fastcall FMOD::System::attachFileSystem(int a1, int a2, unsigned int a3, unsigned int a4, int a5)\n{\n  int v9; // r5\n  _BYTE v11[256]; // [sp+8h] [bp-120h] BYREF\n  int v12; // [sp+108h] [bp-20h] BYREF\n  int v13; // [sp+10Ch] [bp-1Ch] BYREF\n\n  v12 = 0;\n  v9 = FMOD::SystemI::validate(a1, &v13, &v12);\n  if ( v9 || (v9 = sub_585CC(v13, a2, __SPAIR64__(a4, a3), a5)) != 0 )\n  {\n    if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )\n    {\n      sub_B7944(v11, 256, a2, a3, a4, a5);\n      sub_BAB40(v9, 1, a1, \"System::attachFileSystem\", v11);\n    }\n  }\n  else\n  {\n    v9 = 0;\n  }\n  sub_444C0(&v12);\n  return v9;\n}", "assembly": "; \n; FMOD::System::attachFileSystem from 0xb78b8 to 0xb793a (130 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::attachFileSystem @ 0xdffa8\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:41:44 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0xb78b8\nADD             R7, SP, #0xC                                           ; +0x2, 0xb78ba\nPUSH.W          {R8-R10}                                               ; +0x4, 0xb78bc\nSUB             SP, SP, #0x110                                         ; +0x8, 0xb78c0\nMOV             R8, R2                                                 ; +0xa, 0xb78c2\nMOV             R9, R1                                                 ; +0xc, 0xb78c4\nMOV             R4, R0                                                 ; +0xe, 0xb78c6\nMOVS            R0, #0                                                 ; +0x10, 0xb78c8\nADD             R1, SP, #0x110+var_4                                   ; +0x12, 0xb78ca\nADD             R2, SP, #0x110+var_8                                   ; +0x14, 0xb78cc\nSTR             R0, [SP,#0x110+var_8]                                  ; +0x16, 0xb78ce\nMOV             R0, R4                                                 ; +0x18, 0xb78d0\nMOV             R6, R3                                                 ; +0x1a, 0xb78d2\nBLX             j__ZN4FMOD7SystemI8validateEPNS_6SystemEPPS0_PNS_15SystemLockScopeE; FMOD::SystemI::validate(FMOD::System *,FMOD::SystemI**,FMOD::SystemLockScope *) ; +0x1c, 0xb78d4\nLDR.W           R10, [R7,#-0x18+arg_0]                                 ; +0x20, 0xb78d8\nMOV             R5, R0                                                 ; +0x24, 0xb78dc\nCBNZ            R0, loc_B78F4                                          ; +0x26, 0xb78de\nLDR             R0, [SP,#0x110+var_4]                                  ; +0x28, 0xb78e0\nMOV             R1, R9                                                 ; +0x2a, 0xb78e2\nMOV             R2, R8                                                 ; +0x2c, 0xb78e4\nMOV             R3, R6                                                 ; +0x2e, 0xb78e6\nSTR.W           R10, [SP,#0x110+var_110]                               ; +0x30, 0xb78e8\nBL              sub_585CC                                              ; +0x34, 0xb78ec\nMOV             R5, R0                                                 ; +0x38, 0xb78f0\nCBZ             R0, loc_B7928                                          ; +0x3a, 0xb78f2\nLDR             R0, =(off_E6144 - 0xB78FA)                             ; +0x3c, 0xb78f4\nADD             R0, PC; off_E6144                                      ; +0x3e, 0xb78f6\nLDR             R0, [R0]; off_E8000                                    ; +0x40, 0xb78f8\nLDR             R0, [R0]; dword_F2488                                  ; +0x42, 0xb78fa\nLDRB            R0, [R0,#(dword_F249C - 0xF2488)]                      ; +0x44, 0xb78fc\nLSLS            R0, R0, #0x18                                          ; +0x46, 0xb78fe\nBPL             loc_B792A                                              ; +0x48, 0xb7900\nSTRD.W          R6, R10, [SP,#0x110+var_110]                           ; +0x4a, 0xb7902\nADD             R6, SP, #0x110+var_108                                 ; +0x4e, 0xb7906\nMOV.W           R1, #0x100                                             ; +0x50, 0xb7908\nMOV             R2, R9                                                 ; +0x54, 0xb790c\nMOV             R0, R6                                                 ; +0x56, 0xb790e\nMOV             R3, R8                                                 ; +0x58, 0xb7910\nBL              sub_B7944                                              ; +0x5a, 0xb7912\nSTR             R6, [SP,#0x110+var_110]                                ; +0x5e, 0xb7916\nMOV             R0, R5                                                 ; +0x60, 0xb7918\nLDR             R3, =(aSystemAttachfi - 0xB7924); \"System::attachFileSystem\" ... ; +0x62, 0xb791a\nMOVS            R1, #1                                                 ; +0x64, 0xb791c\nMOV             R2, R4                                                 ; +0x66, 0xb791e\nADD             R3, PC; \"System::attachFileSystem\"                     ; +0x68, 0xb7920\nBL              sub_BAB40                                              ; +0x6a, 0xb7922\nB               loc_B792A                                              ; +0x6e, 0xb7926\nMOVS            R5, #0                                                 ; +0x70, 0xb7928\nADD             R0, SP, #0x110+var_8                                   ; +0x72, 0xb792a\nBL              sub_444C0                                              ; +0x74, 0xb792c\nMOV             R0, R5                                                 ; +0x78, 0xb7930\nADD             SP, SP, #0x110                                         ; +0x7a, 0xb7932\nPOP.W           {R8-R10}                                               ; +0x7c, 0xb7934\nPOP             {R4-R7,PC}                                             ; +0x80, 0xb7938", "xrefs": ["FMOD::System::attachFileSystem @ 0xdffa8"], "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"}