{"type": "func", "start": 338028, "end": 338132, "name": "sub_5286C", "pseudocode": "// \n// sub_5286C from 0x5286c to 0x528d4 (104 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x5286a\n// > sub_58CA8 @ 0x594ae\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\nint __fastcall sub_5286C(int a1, int a2, int *a3)\n{\n  int v6; // r0\n  int v7; // r1\n  int v8; // r2\n  int v9; // r6\n  _DWORD *v10; // r0\n  int result; // r0\n\n  *a3 = 0;\n  v6 = sub_BD410(*(int *)((char *)&dword_14C + (_DWORD)off_E8000), 96, \"../../src/fmod_profile_dsp.cpp\", 17);\n  if ( !v6 )\n    return 38;\n  v9 = v6;\n  v10 = (_DWORD *)sub_528DC(v6, v7, v8);\n  v10[4] = a1;\n  v10[5] = a2;\n  result = (*(int (__fastcall **)(int))(*v10 + 56))(v9);\n  if ( !result )\n  {\n    result = (*(int (__fastcall **)(int, int))(*(_DWORD *)a1 + 4))(a1, v9);\n    if ( !result )\n    {\n      *a3 = v9;\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_5286C from 0x5286c to 0x528d4 (104 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x5286a\n; > sub_58CA8 @ 0x594ae\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\nPUSH            {R4-R7,LR}                                             ; +0x0, 0x5286c\nADD             R7, SP, #0xC                                           ; +0x2, 0x5286e\nPUSH.W          {R8}                                                   ; +0x4, 0x52870\nSUB             SP, SP, #0x10                                          ; +0x8, 0x52874\nMOV             R4, R1                                                 ; +0xa, 0x52876\nMOVS            R1, #0                                                 ; +0xc, 0x52878\nSTR             R1, [R2]                                               ; +0xe, 0x5287a\nMOV             R5, R0                                                 ; +0x10, 0x5287c\nLDR             R0, =(off_E6144 - 0x5288A)                             ; +0x12, 0x5287e\nMOV             R8, R2                                                 ; +0x14, 0x52880\nMOVS            R2, #1                                                 ; +0x16, 0x52882\nMOVS            R3, #0x11                                              ; +0x18, 0x52884\nADD             R0, PC; off_E6144                                      ; +0x1a, 0x52886\nLDR             R0, [R0]; off_E8000                                    ; +0x1c, 0x52888\nLDR             R0, [R0]; dword_F2488                                  ; +0x1e, 0x5288a\nLDR.W           R0, [R0,#(dword_F25D4 - 0xF2488)]                      ; +0x20, 0x5288c\nSTRD.W          R1, R1, [SP,#0x10+var_10]                              ; +0x24, 0x52890\nMOVS            R1, #0x60 ; '`'                                        ; +0x28, 0x52894\nSTR             R2, [SP,#0x10+var_8]                                   ; +0x2a, 0x52896\nLDR             R2, =(aSrcFmodProfile_0 - 0x5289E); \"../../src/fmod_profile_dsp.cpp\" ... ; +0x2c, 0x52898\nADD             R2, PC; \"../../src/fmod_profile_dsp.cpp\"               ; +0x2e, 0x5289a\nBL              sub_BD410                                              ; +0x30, 0x5289c\nCBZ             R0, loc_528CA                                          ; +0x34, 0x528a0\nMOV             R6, R0                                                 ; +0x36, 0x528a2\nBL              sub_528DC                                              ; +0x38, 0x528a4\nSTRD.W          R5, R4, [R0,#0x10]                                     ; +0x3c, 0x528a8\nLDR             R0, [R0]                                               ; +0x40, 0x528ac\nLDR             R1, [R0,#0x38]                                         ; +0x42, 0x528ae\nMOV             R0, R6                                                 ; +0x44, 0x528b0\nBLX             R1                                                     ; +0x46, 0x528b2\nCBNZ            R0, loc_528CC                                          ; +0x48, 0x528b4\nLDR             R0, [R5]                                               ; +0x4a, 0x528b6\nMOV             R1, R6                                                 ; +0x4c, 0x528b8\nLDR             R2, [R0,#4]                                            ; +0x4e, 0x528ba\nMOV             R0, R5                                                 ; +0x50, 0x528bc\nBLX             R2                                                     ; +0x52, 0x528be\nCBNZ            R0, loc_528CC                                          ; +0x54, 0x528c0\nMOVS            R0, #0                                                 ; +0x56, 0x528c2\nSTR.W           R6, [R8]                                               ; +0x58, 0x528c4\nB               loc_528CC                                              ; +0x5c, 0x528c8\nMOVS            R0, #0x26 ; '&'                                        ; +0x5e, 0x528ca\nADD             SP, SP, #0x10                                          ; +0x60, 0x528cc\nPOP.W           {R8}                                                   ; +0x62, 0x528ce\nPOP             {R4-R7,PC}                                             ; +0x66, 0x528d2", "xrefs": ["<???> @ 0x5286a", "sub_58CA8 @ 0x594ae"], "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"}