{"type": "func", "start": 444230, "end": 444296, "name": "sub_6C746", "pseudocode": "// \n// sub_6C746 from 0x6c746 to 0x6c788 (66 bytes)\n// \n// 1 xrefs:\n// > sub_6C72C @ 0x6c734\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_6C746(_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_6C7A6(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_6C746 from 0x6c746 to 0x6c788 (66 bytes)\n; \n; 1 xrefs:\n; > sub_6C72C @ 0x6c734\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,R5,R7,LR}                                          ; +0x0, 0x6c746\nADD             R7, SP, #8                                             ; +0x2, 0x6c748\nMOV             R5, R0                                                 ; +0x4, 0x6c74a\nLDR             R0, [R0,#8]                                            ; +0x6, 0x6c74c\nMOV             R4, R1                                                 ; +0x8, 0x6c74e\nCMP             R0, #0                                                 ; +0xa, 0x6c750\nBPL             loc_6C756                                              ; +0xc, 0x6c752\nNEGS            R0, R0                                                 ; +0xe, 0x6c754\nCMP             R0, R4                                                 ; +0x10, 0x6c756\nBGE             loc_6C766                                              ; +0x12, 0x6c758\nMOV             R0, R5                                                 ; +0x14, 0x6c75a\nMOV             R1, R4                                                 ; +0x16, 0x6c75c\nBL              sub_6C7A6                                              ; +0x18, 0x6c75e\nCBZ             R0, loc_6C766                                          ; +0x1c, 0x6c762\nPOP             {R4,R5,R7,PC}                                          ; +0x1e, 0x6c764\nLDR             R1, [R5,#4]                                            ; +0x20, 0x6c766\nCMP             R1, R4                                                 ; +0x22, 0x6c768\nBGE             loc_6C782                                              ; +0x24, 0x6c76a\nADD.W           R0, R1, R1,LSL#1                                       ; +0x26, 0x6c76c\nSUBS            R1, R4, R1                                             ; +0x2a, 0x6c770\nLDR             R2, [R5]                                               ; +0x2c, 0x6c772\nADD.W           R1, R1, R1,LSL#1                                       ; +0x2e, 0x6c774\nADD.W           R0, R2, R0,LSL#2                                       ; +0x32, 0x6c778\nLSLS            R1, R1, #2                                             ; +0x36, 0x6c77c\nBLX             __aeabi_memclr4                                        ; +0x38, 0x6c77e\nMOVS            R0, #0                                                 ; +0x3c, 0x6c782\nSTR             R4, [R5,#4]                                            ; +0x3e, 0x6c784\nPOP             {R4,R5,R7,PC}                                          ; +0x40, 0x6c786", "xrefs": ["sub_6C72C @ 0x6c734"], "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"}