{"type": "func", "start": 410432, "end": 410604, "name": "sub_64340", "pseudocode": "// \n// sub_64340 from 0x64340 to 0x643ec (172 bytes)\n// \n// 1 xrefs:\n// > sub_6C64C @ 0x6ce94\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_64340(__int64 a1, __int64 a2, __int64 **a3)\n{\n  __int64 v6; // x0\n  __int64 *v7; // x21\n  __int64 v8; // x8\n  __int64 result; // x0\n\n  *a3 = nullptr;\n  v6 = sub_E2908(\n         *(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),\n         152,\n         \"../../src/fmod_profile_dsp.cpp\",\n         17,\n         0,\n         0,\n         1);\n  if ( !v6 )\n    return 38;\n  v7 = (__int64 *)v6;\n  sub_643EC();\n  v8 = *v7;\n  v7[4] = a1;\n  v7[5] = a2;\n  result = (*(__int64 (__fastcall **)(__int64 *))(v8 + 112))(v7);\n  if ( !(_DWORD)result )\n  {\n    result = (*(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)a1 + 8LL))(a1, v7);\n    if ( !(_DWORD)result )\n      *a3 = v7;\n  }\n  return result;\n}", "assembly": "; \n; sub_64340 from 0x64340 to 0x643ec (172 bytes)\n; \n; 1 xrefs:\n; > sub_6C64C @ 0x6ce94\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x64340\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x64344\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x64348\nSTR             XZR, [X2]                                              ; +0xc, 0x6434c\nADRP            X8, #off_10F7A0@PAGE                                   ; +0x10, 0x64350\nLDR             X8, [X8,#off_10F7A0@PAGEOFF]; off_114000               ; +0x14, 0x64354\nMOV             X19, X2                                                ; +0x18, 0x64358\nADRP            X2, #aSrcFmodProfile_1@PAGE; \"../../src/fmod_profile_dsp.cpp\" ; +0x1c, 0x6435c\nMOV             X22, X1                                                ; +0x20, 0x64360\nLDR             X8, [X8]; qword_11F800                                 ; +0x24, 0x64364\nMOV             X20, X0                                                ; +0x28, 0x64368\nADD             X2, X2, #aSrcFmodProfile_1@PAGEOFF; \"../../src/fmod_profile_dsp.cpp\" ; +0x2c, 0x6436c\nMOV             W1, #0x98                                              ; +0x30, 0x64370\nLDR             X8, [X8,#(qword_11F9B0 - 0x11F800)]                    ; +0x34, 0x64374\nMOV             W3, #0x11                                              ; +0x38, 0x64378\nMOV             W6, #1                                                 ; +0x3c, 0x6437c\nMOV             W4, WZR                                                ; +0x40, 0x64380\nMOV             X0, X8                                                 ; +0x44, 0x64384\nMOV             W5, WZR                                                ; +0x48, 0x64388\nADD             X29, SP, #0x20                                         ; +0x4c, 0x6438c\nBL              sub_E2908                                              ; +0x50, 0x64390\nCBZ             X0, loc_643D8                                          ; +0x54, 0x64394\nMOV             X21, X0                                                ; +0x58, 0x64398\nBL              sub_643EC                                              ; +0x5c, 0x6439c\nLDR             X8, [X21]                                              ; +0x60, 0x643a0\nSTP             X20, X22, [X21,#0x20]                                  ; +0x64, 0x643a4\nMOV             X0, X21                                                ; +0x68, 0x643a8\nLDR             X8, [X8,#0x70]                                         ; +0x6c, 0x643ac\nBLR             X8                                                     ; +0x70, 0x643b0\nCBNZ            W0, loc_643DC                                          ; +0x74, 0x643b4\nLDR             X8, [X20]                                              ; +0x78, 0x643b8\nMOV             X0, X20                                                ; +0x7c, 0x643bc\nMOV             X1, X21                                                ; +0x80, 0x643c0\nLDR             X8, [X8,#8]                                            ; +0x84, 0x643c4\nBLR             X8                                                     ; +0x88, 0x643c8\nCBNZ            W0, loc_643DC                                          ; +0x8c, 0x643cc\nSTR             X21, [X19]                                             ; +0x90, 0x643d0\nB               loc_643DC                                              ; +0x94, 0x643d4\nMOV             W0, #0x26 ; '&'                                        ; +0x98, 0x643d8\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x9c, 0x643dc\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xa0, 0x643e0\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xa4, 0x643e4\nRET                                                                    ; +0xa8, 0x643e8", "xrefs": ["sub_6C64C @ 0x6ce94"], "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"}