{"type": "func", "start": 443654, "end": 443720, "name": "sub_6C506", "pseudocode": "// \n// sub_6C506 from 0x6c506 to 0x6c548 (66 bytes)\n// \n// 1 xrefs:\n// > sub_6BF70 @ 0x6bfbc\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_6C506(_DWORD *a1, _DWORD *a2, int a3, int a4)\n{\n  int v5; // r0\n  int result; // r0\n  int v7; // [sp+0h] [bp-10h] BYREF\n  int v8; // [sp+4h] [bp-Ch] BYREF\n\n  v7 = a3;\n  v8 = a4;\n  if ( !a1[7] )\n    return 0;\n  v5 = a1[1];\n  if ( !v5 )\n    return 28;\n  v8 = *a1 + 4 * ((v5 - 1) & *a2);\n  v7 = 0;\n  if ( ((int (__fastcall *)(_DWORD *, int *, _DWORD *, int *))sub_6CC26)(a1, &v8, a2, &v7) )\n    return 0;\n  result = sub_6CE34(a1, v8);\n  if ( !result )\n    return 0;\n  return result;\n}", "assembly": "; \n; sub_6C506 from 0x6c506 to 0x6c548 (66 bytes)\n; \n; 1 xrefs:\n; > sub_6BF70 @ 0x6bfbc\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            {R2-R4,R6,R7,LR}                                       ; +0x0, 0x6c506\nADD             R7, SP, #0x10                                          ; +0x2, 0x6c508\nMOV             R4, R0                                                 ; +0x4, 0x6c50a\nLDR             R0, [R0,#0x1C]                                         ; +0x6, 0x6c50c\nCBZ             R0, loc_6C53E                                          ; +0x8, 0x6c50e\nLDR             R0, [R4,#4]                                            ; +0xa, 0x6c510\nCBZ             R0, loc_6C542                                          ; +0xc, 0x6c512\nMOV             R2, R1                                                 ; +0xe, 0x6c514\nLDR             R1, [R1]                                               ; +0x10, 0x6c516\nSUBS            R0, #1                                                 ; +0x12, 0x6c518\nMOV             R3, SP                                                 ; +0x14, 0x6c51a\nANDS            R0, R1                                                 ; +0x16, 0x6c51c\nLDR             R1, [R4]                                               ; +0x18, 0x6c51e\nADD.W           R0, R1, R0,LSL#2                                       ; +0x1a, 0x6c520\nSTR             R0, [SP,#8+var_4]                                      ; +0x1e, 0x6c524\nMOVS            R0, #0                                                 ; +0x20, 0x6c526\nADD             R1, SP, #8+var_4                                       ; +0x22, 0x6c528\nSTR             R0, [SP,#8+var_8]                                      ; +0x24, 0x6c52a\nMOV             R0, R4                                                 ; +0x26, 0x6c52c\nBL              sub_6CC26                                              ; +0x28, 0x6c52e\nCBNZ            R0, loc_6C53E                                          ; +0x2c, 0x6c532\nLDR             R1, [SP,#8+var_4]                                      ; +0x2e, 0x6c534\nMOV             R0, R4                                                 ; +0x30, 0x6c536\nBL              sub_6CE34                                              ; +0x32, 0x6c538\nCBNZ            R0, loc_6C544                                          ; +0x36, 0x6c53c\nMOVS            R0, #0                                                 ; +0x38, 0x6c53e\nB               loc_6C544                                              ; +0x3a, 0x6c540\nMOVS            R0, #0x1C                                              ; +0x3c, 0x6c542\nADD             SP, SP, #8                                             ; +0x3e, 0x6c544\nPOP             {R4,R6,R7,PC}                                          ; +0x40, 0x6c546", "xrefs": ["sub_6BF70 @ 0x6bfbc"], "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"}