{"type": "func", "start": 443452, "end": 443508, "name": "sub_6C43C", "pseudocode": "// \n// sub_6C43C from 0x6c43c to 0x6c474 (56 bytes)\n// \n// 2 xrefs:\n// > sub_6BE4E @ 0x6beb4\n// > sub_6BF70 @ 0x6bf98\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_6C43C(_DWORD *a1, _DWORD *a2, int a3, int a4)\n{\n  int v5; // r1\n  int v6; // r4\n  int v7; // r1\n  int v9; // [sp+0h] [bp-10h] BYREF\n  int v10; // [sp+4h] [bp-Ch] BYREF\n\n  v9 = a3;\n  v10 = a4;\n  if ( !a1[7] )\n    return 0;\n  v5 = a1[1];\n  v6 = 0;\n  if ( v5 )\n  {\n    v7 = *a1 + 4 * ((v5 - 1) & *a2);\n    v9 = 0;\n    v10 = v7;\n    if ( !((int (__fastcall *)(_DWORD *, int *, _DWORD *, int *))sub_6CC26)(a1, &v10, a2, &v9) )\n      return *(_DWORD *)(v9 + 8);\n  }\n  return v6;\n}", "assembly": "; \n; sub_6C43C from 0x6c43c to 0x6c474 (56 bytes)\n; \n; 2 xrefs:\n; > sub_6BE4E @ 0x6beb4\n; > sub_6BF70 @ 0x6bf98\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            {R2-R4,R6,R7,LR}                                       ; +0x0, 0x6c43c\nADD             R7, SP, #0x10                                          ; +0x2, 0x6c43e\nMOV             R2, R1                                                 ; +0x4, 0x6c440\nLDR             R1, [R0,#0x1C]                                         ; +0x6, 0x6c442\nCBZ             R1, loc_6C46C                                          ; +0x8, 0x6c444\nLDR             R1, [R0,#4]                                            ; +0xa, 0x6c446\nMOVS            R4, #0                                                 ; +0xc, 0x6c448\nCBZ             R1, loc_6C46E                                          ; +0xe, 0x6c44a\nLDR             R3, [R2]                                               ; +0x10, 0x6c44c\nSUBS            R1, #1                                                 ; +0x12, 0x6c44e\nANDS            R1, R3                                                 ; +0x14, 0x6c450\nLDR             R3, [R0]                                               ; +0x16, 0x6c452\nADD.W           R1, R3, R1,LSL#2                                       ; +0x18, 0x6c454\nMOV             R3, SP                                                 ; +0x1c, 0x6c458\nSTRD.W          R4, R1, [SP,#8+var_8]                                  ; +0x1e, 0x6c45a\nADD             R1, SP, #8+var_4                                       ; +0x22, 0x6c45e\nBL              sub_6CC26                                              ; +0x24, 0x6c460\nCBNZ            R0, loc_6C46E                                          ; +0x28, 0x6c464\nLDR             R0, [SP,#8+var_8]                                      ; +0x2a, 0x6c466\nLDR             R4, [R0,#8]                                            ; +0x2c, 0x6c468\nB               loc_6C46E                                              ; +0x2e, 0x6c46a\nMOVS            R4, #0                                                 ; +0x30, 0x6c46c\nMOV             R0, R4                                                 ; +0x32, 0x6c46e\nADD             SP, SP, #8                                             ; +0x34, 0x6c470\nPOP             {R4,R6,R7,PC}                                          ; +0x36, 0x6c472", "xrefs": ["sub_6BE4E @ 0x6beb4", "sub_6BF70 @ 0x6bf98"], "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"}