{"type": "func", "start": 769194, "end": 769234, "name": "sub_BBCAA", "pseudocode": "// \n// sub_BBCAA from 0xbbcaa to 0xbbcd2 (40 bytes)\n// \n// 1 xrefs:\n// > sub_8496C @ 0x849ca\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_BBCAA(_DWORD *a1, int a2)\n{\n  int v2; // r2\n  int v3; // r3\n\n  v2 = a1[4];\n  v3 = a1[86];\n  a1[86] = a2;\n  if ( v2 == -1 )\n    return 0;\n  a1[4] = v3 - a2 + v2;\n  if ( (unsigned int)(v2 + v3) <= a1[5] )\n    return 0;\n  else\n    return 28;\n}", "assembly": "; \n; sub_BBCAA from 0xbbcaa to 0xbbcd2 (40 bytes)\n; \n; 1 xrefs:\n; > sub_8496C @ 0x849ca\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,R6,R7,LR}                                          ; +0x0, 0xbbcaa\nADD             R7, SP, #8                                             ; +0x2, 0xbbcac\nLDR             R2, [R0,#0x10]                                         ; +0x4, 0xbbcae\nLDR.W           R3, [R0,#0x158]                                        ; +0x6, 0xbbcb0\nADDS            R4, R2, #1                                             ; +0xa, 0xbbcb4\nSTR.W           R1, [R0,#0x158]                                        ; +0xc, 0xbbcb6\nBEQ             loc_BBCCE                                              ; +0x10, 0xbbcba\nSUBS            R1, R3, R1                                             ; +0x12, 0xbbcbc\nADD             R1, R2                                                 ; +0x14, 0xbbcbe\nSTR             R1, [R0,#0x10]                                         ; +0x16, 0xbbcc0\nLDR             R0, [R0,#0x14]                                         ; +0x18, 0xbbcc2\nADDS            R1, R2, R3                                             ; +0x1a, 0xbbcc4\nCMP             R1, R0                                                 ; +0x1c, 0xbbcc6\nBLS             loc_BBCCE                                              ; +0x1e, 0xbbcc8\nMOVS            R0, #0x1C                                              ; +0x20, 0xbbcca\nPOP             {R4,R6,R7,PC}                                          ; +0x22, 0xbbccc\nMOVS            R0, #0                                                 ; +0x24, 0xbbcce\nPOP             {R4,R6,R7,PC}                                          ; +0x26, 0xbbcd0", "xrefs": ["sub_8496C @ 0x849ca"], "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"}