{"type": "func", "start": 442732, "end": 442816, "name": "sub_6C16C", "pseudocode": "// \n// sub_6C16C from 0x6c16c to 0x6c1c0 (84 bytes)\n// \n// 1 xrefs:\n// > sub_6BFE0 @ 0x6c088\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_6C16C(_DWORD *a1, _DWORD *a2, int a3)\n{\n  int result; // r0\n  int v7; // r0\n  int v8; // [sp+0h] [bp-18h] BYREF\n  int v9; // [sp+4h] [bp-14h] BYREF\n\n  result = sub_6C9F0();\n  if ( !result )\n  {\n    v7 = a1[1];\n    if ( v7\n      && (v9 = *a1 + 4 * ((v7 - 1) & *a2),\n          v8 = 0,\n          ((int (__fastcall *)(_DWORD *, int *, _DWORD *, int *))sub_6CA18)(a1, &v9, a2, &v8) == 74) )\n    {\n      return sub_6CA50(a1, a2, a3, v9);\n    }\n    else\n    {\n      return 28;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_6C16C from 0x6c16c to 0x6c1c0 (84 bytes)\n; \n; 1 xrefs:\n; > sub_6BFE0 @ 0x6c088\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-R7,LR}                                             ; +0x0, 0x6c16c\nADD             R7, SP, #0xC                                           ; +0x2, 0x6c16e\nPUSH.W          {R11}                                                  ; +0x4, 0x6c170\nSUB             SP, SP, #8                                             ; +0x8, 0x6c174\nMOV             R4, R2                                                 ; +0xa, 0x6c176\nMOV             R5, R1                                                 ; +0xc, 0x6c178\nMOV             R6, R0                                                 ; +0xe, 0x6c17a\nBL              sub_6C9F0                                              ; +0x10, 0x6c17c\nCBNZ            R0, loc_6C1B8                                          ; +0x14, 0x6c180\nLDR             R0, [R6,#4]                                            ; +0x16, 0x6c182\nCBZ             R0, loc_6C1B6                                          ; +0x18, 0x6c184\nLDR             R1, [R5]                                               ; +0x1a, 0x6c186\nSUBS            R0, #1                                                 ; +0x1c, 0x6c188\nMOV             R3, SP                                                 ; +0x1e, 0x6c18a\nMOV             R2, R5                                                 ; +0x20, 0x6c18c\nANDS            R0, R1                                                 ; +0x22, 0x6c18e\nLDR             R1, [R6]                                               ; +0x24, 0x6c190\nADD.W           R0, R1, R0,LSL#2                                       ; +0x26, 0x6c192\nSTR             R0, [SP,#8+var_4]                                      ; +0x2a, 0x6c196\nMOVS            R0, #0                                                 ; +0x2c, 0x6c198\nADD             R1, SP, #8+var_4                                       ; +0x2e, 0x6c19a\nSTR             R0, [SP,#8+var_8]                                      ; +0x30, 0x6c19c\nMOV             R0, R6                                                 ; +0x32, 0x6c19e\nBL              sub_6CA18                                              ; +0x34, 0x6c1a0\nCMP             R0, #0x4A ; 'J'                                        ; +0x38, 0x6c1a4\nBNE             loc_6C1B6                                              ; +0x3a, 0x6c1a6\nLDR             R3, [SP,#8+var_4]                                      ; +0x3c, 0x6c1a8\nMOV             R0, R6                                                 ; +0x3e, 0x6c1aa\nMOV             R1, R5                                                 ; +0x40, 0x6c1ac\nMOV             R2, R4                                                 ; +0x42, 0x6c1ae\nBL              sub_6CA50                                              ; +0x44, 0x6c1b0\nB               loc_6C1B8                                              ; +0x48, 0x6c1b4\nMOVS            R0, #0x1C                                              ; +0x4a, 0x6c1b6\nADD             SP, SP, #8                                             ; +0x4c, 0x6c1b8\nPOP.W           {R11}                                                  ; +0x4e, 0x6c1ba\nPOP             {R4-R7,PC}                                             ; +0x52, 0x6c1be", "xrefs": ["sub_6BFE0 @ 0x6c088"], "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"}