{"type": "func", "start": 442372, "end": 442460, "name": "sub_6C004", "pseudocode": "// \n// sub_6C004 from 0x6c004 to 0x6c05c (88 bytes)\n// \n// 1 xrefs:\n// > FMOD::System::getNumNestedPlugins @ 0xdbd78\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// positive sp value has been detected, the output may be wrong!\n__int64 __fastcall sub_6C004(__int64 a1, unsigned int a2, int *a3)\n{\n  int *v3; // x0\n  int v4; // w8\n  __int64 result; // x0\n\n  if ( *(_BYTE *)(a1 + 9) || (result = sub_7037C(), !(_DWORD)result) )\n  {\n    if ( a3 )\n    {\n      v3 = (int *)sub_629A8(*(_QWORD *)(a1 + 69128), a2);\n      if ( v3 )\n        v4 = *v3;\n      else\n        v4 = 1;\n      *a3 = v4;\n      return 0;\n    }\n    else\n    {\n      return 31;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_6C004 from 0x6c004 to 0x6c05c (88 bytes)\n; \n; 1 xrefs:\n; > FMOD::System::getNumNestedPlugins @ 0xdbd78\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, 0x6c004\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x6c008\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x6c00c\nLDRB            W8, [X0,#9]                                            ; +0xc, 0x6c010\nMOV             X19, X2                                                ; +0x10, 0x6c014\nMOV             X21, X0                                                ; +0x14, 0x6c018\nMOV             W20, W1                                                ; +0x18, 0x6c01c\nADD             X29, SP, #0x20                                         ; +0x1c, 0x6c020\nCBZ             W8, loc_6C04C                                          ; +0x20, 0x6c024\nMOV             W8, #0x10E08                                           ; +0x24, 0x6c028\nLDR             X0, [X21,X8]                                           ; +0x2c, 0x6c030\nMOV             W1, W20                                                ; +0x30, 0x6c034\nMOV             X2, X19                                                ; +0x34, 0x6c038\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x38, 0x6c03c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x3c, 0x6c040\nLDR             X21, [SP+0x20+var_20],#0x30                            ; +0x40, 0x6c044\nB               loc_62DAC                                              ; +0x44, 0x6c048\nBL              sub_7037C                                              ; +0x48, 0x6c04c\nCBZ             W0, loc_6C028                                          ; +0x4c, 0x6c050\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x50, 0x6c054\nB               loc_70108                                              ; +0x54, 0x6c058", "xrefs": ["FMOD::System::getNumNestedPlugins @ 0xdbd78"], "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"}