{"type": "func", "start": 534708, "end": 534876, "name": "sub_828B4", "pseudocode": "// \n// sub_828B4 from 0x828b4 to 0x8295c (168 bytes)\n// \n// 2 xrefs:\n// > sub_642B8 @ 0x82f3c\n// > sub_642B8 @ 0x82f50\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_828B4(__int64 a1, __int64 a2, int a3)\n{\n  int v5; // w21\n  __int64 v6; // x0\n  __int64 result; // x0\n\n  v5 = a2;\n  v6 = sub_E2908(\n         *(__int64 *)((char *)&qword_1B0 + (_QWORD)off_114000),\n         a2,\n         \"../../src/fmod_profile_client.cpp\",\n         82,\n         0,\n         0,\n         1);\n  *(_QWORD *)a1 = v6;\n  if ( !v6 )\n    return 38;\n  *(_DWORD *)(a1 + 8) = v5;\n  *(_QWORD *)(a1 + 12) = 0;\n  *(_QWORD *)(a1 + 17) = 0;\n  *(_DWORD *)(a1 + 64) = a3;\n  result = FMOD_OS_CriticalSection_Create(a1 + 32, 0);\n  if ( !(_DWORD)result )\n  {\n    result = sub_E70FC(a1 + 40);\n    if ( !(_DWORD)result )\n    {\n      result = sub_E70FC(a1 + 48);\n      if ( !(_DWORD)result )\n        *(_QWORD *)(a1 + 56) = 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_828B4 from 0x828b4 to 0x8295c (168 bytes)\n; \n; 2 xrefs:\n; > sub_642B8 @ 0x82f3c\n; > sub_642B8 @ 0x82f50\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\nSTR             X21, [SP,#-0x10+var_20]!                               ; +0x0, 0x828b4\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x828b8\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x828bc\nADRP            X8, #off_10F7A0@PAGE                                   ; +0xc, 0x828c0\nLDR             X8, [X8,#off_10F7A0@PAGEOFF]; off_114000               ; +0x10, 0x828c4\nMOV             W20, W2                                                ; +0x14, 0x828c8\nADRP            X2, #aSrcFmodProfile_0@PAGE; \"../../src/fmod_profile_client.cpp\" ; +0x18, 0x828cc\nMOV             X19, X0                                                ; +0x1c, 0x828d0\nLDR             X8, [X8]; qword_11F800                                 ; +0x20, 0x828d4\nADD             X2, X2, #aSrcFmodProfile_0@PAGEOFF; \"../../src/fmod_profile_client.cpp\" ; +0x24, 0x828d8\nMOV             W3, #0x52 ; 'R'                                        ; +0x28, 0x828dc\nMOV             W6, #1                                                 ; +0x2c, 0x828e0\nLDR             X8, [X8,#(qword_11F9B0 - 0x11F800)]                    ; +0x30, 0x828e4\nMOV             W4, WZR                                                ; +0x34, 0x828e8\nMOV             W5, WZR                                                ; +0x38, 0x828ec\nADD             X29, SP, #0x20                                         ; +0x3c, 0x828f0\nMOV             X0, X8                                                 ; +0x40, 0x828f4\nMOV             W21, W1                                                ; +0x44, 0x828f8\nBL              sub_E2908                                              ; +0x48, 0x828fc\nSTR             X0, [X19]                                              ; +0x4c, 0x82900\nCBZ             X0, loc_82948                                          ; +0x50, 0x82904\nADD             X0, X19, #0x20 ; ' '                                   ; +0x54, 0x82908\nMOV             W1, WZR                                                ; +0x58, 0x8290c\nSTR             W21, [X19,#8]                                          ; +0x5c, 0x82910\nSTUR            XZR, [X19,#0xC]                                        ; +0x60, 0x82914\nSTUR            XZR, [X19,#0x11]                                       ; +0x64, 0x82918\nSTR             W20, [X19,#0x40]                                       ; +0x68, 0x8291c\nBL              .FMOD_OS_CriticalSection_Create                        ; +0x6c, 0x82920\nCBNZ            W0, loc_8294C                                          ; +0x70, 0x82924\nADD             X0, X19, #0x28 ; '('                                   ; +0x74, 0x82928\nBL              sub_E70FC                                              ; +0x78, 0x8292c\nCBNZ            W0, loc_8294C                                          ; +0x7c, 0x82930\nADD             X0, X19, #0x30 ; '0'                                   ; +0x80, 0x82934\nBL              sub_E70FC                                              ; +0x84, 0x82938\nCBNZ            W0, loc_8294C                                          ; +0x88, 0x8293c\nSTR             XZR, [X19,#0x38]                                       ; +0x8c, 0x82940\nB               loc_8294C                                              ; +0x90, 0x82944\nMOV             W0, #0x26 ; '&'                                        ; +0x94, 0x82948\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x98, 0x8294c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x9c, 0x82950\nLDR             X21, [SP+0x20+var_20],#0x30                            ; +0xa0, 0x82954\nRET                                                                    ; +0xa4, 0x82958", "xrefs": ["sub_642B8 @ 0x82f3c", "sub_642B8 @ 0x82f50"], "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"}