{"type": "func", "start": 748044, "end": 748096, "name": "sub_B6A0C", "pseudocode": "// \n// sub_B6A0C from 0xb6a0c to 0xb6a40 (52 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x119808\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_B6A0C(__int64 *a1, int a2, unsigned int a3)\n{\n  __int64 v3; // x8\n  unsigned int v4; // w9\n  bool v5; // cf\n  int v6; // w9\n\n  v3 = *a1;\n  if ( !a2 )\n  {\n    v6 = 4;\nLABEL_7:\n    *(_DWORD *)(v3 + 1160) = v6;\n    return 0;\n  }\n  v4 = *(_DWORD *)(v3 + 1160);\n  if ( v4 )\n  {\n    v5 = v4 >= a3;\n    v6 = v4 - a3;\n    if ( !v5 )\n      v6 = 0;\n    goto LABEL_7;\n  }\n  return 11;\n}", "assembly": "; \n; sub_B6A0C from 0xb6a0c to 0xb6a40 (52 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x119808\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\nLDR             X8, [X0]                                               ; +0x0, 0xb6a0c\nCBZ             W1, loc_B6A28                                          ; +0x4, 0xb6a10\nLDR             W9, [X8,#0x488]                                        ; +0x8, 0xb6a14\nCBZ             W9, loc_B6A38                                          ; +0xc, 0xb6a18\nSUBS            W9, W9, W2                                             ; +0x10, 0xb6a1c\nCSEL            W9, WZR, W9, CC                                        ; +0x14, 0xb6a20\nB               loc_B6A2C                                              ; +0x18, 0xb6a24\nMOV             W9, #4                                                 ; +0x1c, 0xb6a28\nMOV             W0, WZR                                                ; +0x20, 0xb6a2c\nSTR             W9, [X8,#0x488]                                        ; +0x24, 0xb6a30\nRET                                                                    ; +0x28, 0xb6a34\nMOV             W0, #0xB                                               ; +0x2c, 0xb6a38\nRET                                                                    ; +0x30, 0xb6a3c", "xrefs": ["<???> @ 0x119808"], "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"}