{"type": "func", "start": 493196, "end": 493340, "name": "FMOD::SystemI::createMemoryFile", "pseudocode": "// \n// FMOD::SystemI::createMemoryFile from 0x7868c to 0x7871c (144 bytes)\n// \n// 4 xrefs:\n// > FMOD::SystemI::createMemoryFile @ 0x10999c\n// > <???> @ 0x2bc0\n// > FMOD::SystemI::createMemoryFile @ 0x109994\n// > <???> @ 0x111590\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:14:03 +0000\n// \n\n__int64 __fastcall FMOD::SystemI::createMemoryFile(__int64 a1, __int64 *a2)\n{\n  __int64 v4; // x0\n  __int64 v5; // x21\n\n  v4 = sub_E2908(\n         *(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),\n         512,\n         \"../../src/fmod_systemi_sound.cpp\",\n         482,\n         0,\n         0,\n         1);\n  if ( !v4 )\n    return 38;\n  v5 = v4;\n  sub_7871C();\n  sub_E0DE4(v5, a1, 0, 0, 0);\n  *a2 = v5;\n  return 0;\n}", "assembly": "; \n; FMOD::SystemI::createMemoryFile from 0x7868c to 0x7871c (144 bytes)\n; \n; 4 xrefs:\n; > FMOD::SystemI::createMemoryFile @ 0x10999c\n; > <???> @ 0x2bc0\n; > FMOD::SystemI::createMemoryFile @ 0x109994\n; > <???> @ 0x111590\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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 12:14:03 +0000\n; \nSTR             X21, [SP,#-0x10+var_20]!                               ; +0x0, 0x7868c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x78690\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x78694\nADRP            X8, #off_10F7A0@PAGE                                   ; +0xc, 0x78698\nLDR             X8, [X8,#off_10F7A0@PAGEOFF]; off_114000               ; +0x10, 0x7869c\nADRP            X2, #aSrcFmodSystemi@PAGE; \"../../src/fmod_systemi_sound.cpp\" ; +0x14, 0x786a0\nMOV             X19, X1                                                ; +0x18, 0x786a4\nMOV             X20, X0                                                ; +0x1c, 0x786a8\nLDR             X8, [X8]; qword_11F800                                 ; +0x20, 0x786ac\nADD             X2, X2, #aSrcFmodSystemi@PAGEOFF; \"../../src/fmod_systemi_sound.cpp\" ; +0x24, 0x786b0\nMOV             W1, #0x200                                             ; +0x28, 0x786b4\nMOV             W3, #0x1E2                                             ; +0x2c, 0x786b8\nLDR             X8, [X8,#(qword_11F9B0 - 0x11F800)]                    ; +0x30, 0x786bc\nMOV             W6, #1                                                 ; +0x34, 0x786c0\nMOV             W4, WZR                                                ; +0x38, 0x786c4\nMOV             W5, WZR                                                ; +0x3c, 0x786c8\nMOV             X0, X8                                                 ; +0x40, 0x786cc\nADD             X29, SP, #0x20                                         ; +0x44, 0x786d0\nBL              sub_E2908                                              ; +0x48, 0x786d4\nCBZ             X0, loc_78708                                          ; +0x4c, 0x786d8\nMOV             X21, X0                                                ; +0x50, 0x786dc\nBL              sub_7871C                                              ; +0x54, 0x786e0\nMOV             X0, X21                                                ; +0x58, 0x786e4\nMOV             X1, X20                                                ; +0x5c, 0x786e8\nMOV             W2, WZR                                                ; +0x60, 0x786ec\nMOV             W3, WZR                                                ; +0x64, 0x786f0\nMOV             X4, XZR                                                ; +0x68, 0x786f4\nBL              sub_E0DE4                                              ; +0x6c, 0x786f8\nMOV             W0, WZR                                                ; +0x70, 0x786fc\nSTR             X21, [X19]                                             ; +0x74, 0x78700\nB               loc_7870C                                              ; +0x78, 0x78704\nMOV             W0, #0x26 ; '&'                                        ; +0x7c, 0x78708\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x80, 0x7870c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x84, 0x78710\nLDR             X21, [SP+0x20+var_20],#0x30                            ; +0x88, 0x78714\nRET                                                                    ; +0x8c, 0x78718", "xrefs": ["FMOD::SystemI::createMemoryFile @ 0x10999c", "<???> @ 0x2bc0", "FMOD::SystemI::createMemoryFile @ 0x109994", "<???> @ 0x111590"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}