{"type": "func", "start": 539820, "end": 540100, "name": "sub_83CAC", "pseudocode": "// \n// sub_83CAC from 0x83cac to 0x83dc4 (280 bytes)\n// \n// 2 xrefs:\n// > FMOD::SystemI::createClientProfile @ 0x69f94\n// > sub_6C64C @ 0x6ce74\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:08 +0000\n// \n\n__int64 __fastcall sub_83CAC(__int64 a1)\n{\n  __int64 v2; // x0\n  __int64 v3; // x20\n  __int64 v4; // x0\n  unsigned int v5; // w21\n  __int64 v7; // [xsp+8h] [xbp-28h] BYREF\n  __int64 v8; // [xsp+18h] [xbp-18h] BYREF\n\n  v2 = sub_E2908(\n         *(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),\n         176,\n         \"../../src/fmod_profile_remotefile.cpp\",\n         123,\n         0,\n         0,\n         1);\n  if ( v2 )\n  {\n    v3 = v2;\n    sub_83DC4();\n    v8 = v3;\n    v4 = sub_E2908(\n           *(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),\n           65568,\n           \"../../src/fmod_profile_remotefile.cpp\",\n           131,\n           0,\n           0,\n           1);\n    *(_QWORD *)(v3 + 40) = v4;\n    if ( v4 )\n    {\n      v7 = v4;\n      *(_QWORD *)(v3 + 48) = 0;\n      *(_QWORD *)(v3 + 32) = a1;\n      *(_QWORD *)(v3 + 64) = 0;\n      *(_DWORD *)(v3 + 72) = 1;\n      *(_QWORD *)(v3 + 160) = 0;\n      *(_QWORD *)(v3 + 168) = 0;\n      v5 = FMOD_OS_CriticalSection_Create(v3 + 56, 0);\n      if ( !v5 )\n      {\n        v5 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 8LL))(a1, v3);\n        if ( !v5 )\n        {\n          v7 = 0;\n          v8 = 0;\n        }\n      }\n      sub_78B20(&v7);\n    }\n    else\n    {\n      v5 = 38;\n    }\n    sub_83E04(&v8);\n  }\n  else\n  {\n    return 38;\n  }\n  return v5;\n}", "assembly": "; \n; sub_83CAC from 0x83cac to 0x83dc4 (280 bytes)\n; \n; 2 xrefs:\n; > FMOD::SystemI::createClientProfile @ 0x69f94\n; > sub_6C64C @ 0x6ce74\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:08 +0000\n; \nSUB             SP, SP, #0x40                                          ; +0x0, 0x83cac\nSTR             X21, [SP,#0x30+var_20]                                 ; +0x4, 0x83cb0\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x83cb4\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x83cb8\nADRP            X21, #off_10F7A0@PAGE                                  ; +0x10, 0x83cbc\nLDR             X21, [X21,#off_10F7A0@PAGEOFF]; off_114000             ; +0x14, 0x83cc0\nADRP            X2, #aSrcFmodProfile_3@PAGE; \"../../src/fmod_profile_remotefile.cpp\" ; +0x18, 0x83cc4\nMOV             X19, X0                                                ; +0x1c, 0x83cc8\nADD             X2, X2, #aSrcFmodProfile_3@PAGEOFF; \"../../src/fmod_profile_remotefile.cpp\" ; +0x20, 0x83ccc\nLDR             X8, [X21]; qword_11F800                                ; +0x24, 0x83cd0\nMOV             W1, #0xB0                                              ; +0x28, 0x83cd4\nMOV             W3, #0x7B ; '{'                                        ; +0x2c, 0x83cd8\nMOV             W6, #1                                                 ; +0x30, 0x83cdc\nLDR             X8, [X8,#(qword_11F9B0 - 0x11F800)]                    ; +0x34, 0x83ce0\nMOV             W4, WZR                                                ; +0x38, 0x83ce4\nMOV             W5, WZR                                                ; +0x3c, 0x83ce8\nADD             X29, SP, #0x30                                         ; +0x40, 0x83cec\nMOV             X0, X8                                                 ; +0x44, 0x83cf0\nBL              sub_E2908                                              ; +0x48, 0x83cf4\nCBZ             X0, loc_83D9C                                          ; +0x4c, 0x83cf8\nMOV             X20, X0                                                ; +0x50, 0x83cfc\nBL              sub_83DC4                                              ; +0x54, 0x83d00\nLDR             X8, [X21]; qword_11F800                                ; +0x58, 0x83d04\nSTR             X20, [SP,#0x30+var_18]                                 ; +0x5c, 0x83d08\nADRP            X2, #aSrcFmodProfile_3@PAGE; \"../../src/fmod_profile_remotefile.cpp\" ; +0x60, 0x83d0c\nMOV             W1, #0x20 ; ' '                                        ; +0x64, 0x83d10\nLDR             X0, [X8,#(qword_11F9B0 - 0x11F800)]                    ; +0x68, 0x83d14\nADD             X2, X2, #aSrcFmodProfile_3@PAGEOFF; \"../../src/fmod_profile_remotefile.cpp\" ; +0x6c, 0x83d18\nMOVK            W1, #1,LSL#16                                          ; +0x70, 0x83d1c\nMOV             W3, #0x83                                              ; +0x74, 0x83d20\nMOV             W6, #1                                                 ; +0x78, 0x83d24\nMOV             W4, WZR                                                ; +0x7c, 0x83d28\nMOV             W5, WZR                                                ; +0x80, 0x83d2c\nMOV             W21, #1                                                ; +0x84, 0x83d30\nBL              sub_E2908                                              ; +0x88, 0x83d34\nSTR             X0, [X20,#0x28]                                        ; +0x8c, 0x83d38\nCBZ             X0, loc_83DA4                                          ; +0x90, 0x83d3c\nSTR             X0, [SP,#0x30+var_28]                                  ; +0x94, 0x83d40\nADD             X0, X20, #0x38 ; '8'                                   ; +0x98, 0x83d44\nMOV             W1, WZR                                                ; +0x9c, 0x83d48\nSTR             XZR, [X20,#0x30]                                       ; +0xa0, 0x83d4c\nSTR             X19, [X20,#0x20]                                       ; +0xa4, 0x83d50\nSTR             XZR, [X20,#0x40]                                       ; +0xa8, 0x83d54\nSTR             W21, [X20,#0x48]                                       ; +0xac, 0x83d58\nSTP             XZR, XZR, [X20,#0xA0]                                  ; +0xb0, 0x83d5c\nBL              .FMOD_OS_CriticalSection_Create                        ; +0xb4, 0x83d60\nMOV             W21, W0                                                ; +0xb8, 0x83d64\nCBNZ            W0, loc_83D90                                          ; +0xbc, 0x83d68\nLDR             X8, [X19]                                              ; +0xc0, 0x83d6c\nMOV             X0, X19                                                ; +0xc4, 0x83d70\nMOV             X1, X20                                                ; +0xc8, 0x83d74\nLDR             X8, [X8,#8]                                            ; +0xcc, 0x83d78\nBLR             X8                                                     ; +0xd0, 0x83d7c\nMOV             W21, W0                                                ; +0xd4, 0x83d80\nCBNZ            W0, loc_83D90                                          ; +0xd8, 0x83d84\nSTR             XZR, [SP,#0x30+var_28]                                 ; +0xdc, 0x83d88\nSTR             XZR, [SP,#0x30+var_18]                                 ; +0xe0, 0x83d8c\nADD             X0, SP, #0x30+var_28                                   ; +0xe4, 0x83d90\nBL              sub_78B20                                              ; +0xe8, 0x83d94\nB               loc_83DA8                                              ; +0xec, 0x83d98\nMOV             W21, #0x26 ; '&'                                       ; +0xf0, 0x83d9c\nB               loc_83DB0                                              ; +0xf4, 0x83da0\nMOV             W21, #0x26 ; '&'                                       ; +0xf8, 0x83da4\nADD             X0, SP, #0x30+var_18                                   ; +0xfc, 0x83da8\nBL              sub_83E04                                              ; +0x100, 0x83dac\nMOV             W0, W21                                                ; +0x104, 0x83db0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x108, 0x83db4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x10c, 0x83db8\nLDR             X21, [SP,#0x30+var_20]                                 ; +0x110, 0x83dbc\nB               loc_85C80                                              ; +0x114, 0x83dc0", "xrefs": ["FMOD::SystemI::createClientProfile @ 0x69f94", "sub_6C64C @ 0x6ce74"], "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"}