{"type": "func", "start": 444514, "end": 444580, "name": "sub_6C862", "pseudocode": "// \n// sub_6C862 from 0x6c862 to 0x6c8a4 (66 bytes)\n// \n// 1 xrefs:\n// > sub_6C848 @ 0x6c850\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:40:58 +0000\n// \n\nint __fastcall sub_6C862(_DWORD *a1, int a2)\n{\n  int v3; // r0\n  int result; // r0\n  int v6; // r1\n\n  v3 = a1[2];\n  if ( v3 < 0 )\n    v3 = -v3;\n  if ( v3 >= a2 || (result = sub_6C8C2(a1, a2)) == 0 )\n  {\n    v6 = a1[1];\n    if ( v6 < a2 )\n      memset((void *)(*a1 + 12 * v6), 0, 12 * (a2 - v6));\n    a1[1] = a2;\n    return 0;\n  }\n  return result;\n}", "assembly": "; \n; sub_6C862 from 0x6c862 to 0x6c8a4 (66 bytes)\n; \n; 1 xrefs:\n; > sub_6C848 @ 0x6c850\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:40:58 +0000\n; \nPUSH            {R4,R5,R7,LR}                                          ; +0x0, 0x6c862\nADD             R7, SP, #8                                             ; +0x2, 0x6c864\nMOV             R5, R0                                                 ; +0x4, 0x6c866\nLDR             R0, [R0,#8]                                            ; +0x6, 0x6c868\nMOV             R4, R1                                                 ; +0x8, 0x6c86a\nCMP             R0, #0                                                 ; +0xa, 0x6c86c\nBPL             loc_6C872                                              ; +0xc, 0x6c86e\nNEGS            R0, R0                                                 ; +0xe, 0x6c870\nCMP             R0, R4                                                 ; +0x10, 0x6c872\nBGE             loc_6C882                                              ; +0x12, 0x6c874\nMOV             R0, R5                                                 ; +0x14, 0x6c876\nMOV             R1, R4                                                 ; +0x16, 0x6c878\nBL              sub_6C8C2                                              ; +0x18, 0x6c87a\nCBZ             R0, loc_6C882                                          ; +0x1c, 0x6c87e\nPOP             {R4,R5,R7,PC}                                          ; +0x1e, 0x6c880\nLDR             R1, [R5,#4]                                            ; +0x20, 0x6c882\nCMP             R1, R4                                                 ; +0x22, 0x6c884\nBGE             loc_6C89E                                              ; +0x24, 0x6c886\nADD.W           R0, R1, R1,LSL#1                                       ; +0x26, 0x6c888\nSUBS            R1, R4, R1                                             ; +0x2a, 0x6c88c\nLDR             R2, [R5]                                               ; +0x2c, 0x6c88e\nADD.W           R1, R1, R1,LSL#1                                       ; +0x2e, 0x6c890\nADD.W           R0, R2, R0,LSL#2                                       ; +0x32, 0x6c894\nLSLS            R1, R1, #2                                             ; +0x36, 0x6c898\nBLX             __aeabi_memclr4                                        ; +0x38, 0x6c89a\nMOVS            R0, #0                                                 ; +0x3c, 0x6c89e\nSTR             R4, [R5,#4]                                            ; +0x3e, 0x6c8a0\nPOP             {R4,R5,R7,PC}                                          ; +0x40, 0x6c8a2", "xrefs": ["sub_6C848 @ 0x6c850"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}