{"type": "func", "start": 377184, "end": 377268, "name": "sub_5C160", "pseudocode": "// \n// sub_5C160 from 0x5c160 to 0x5c1b4 (84 bytes)\n// \n// 1 xrefs:\n// > sub_5C3C4 @ 0x5c3ca\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_5C160(int a1)\n{\n  int v1; // r5\n  int v3; // r0\n  _DWORD *v4; // r0\n\n  v1 = 0;\n  *(_DWORD *)(a1 + 408) = 0;\n  while ( 1 )\n  {\n    v3 = *(_DWORD *)(a1 + 164);\n    if ( v1 >= *(_DWORD *)(v3 + 72) )\n      break;\n    v4 = *(_DWORD **)(*(_DWORD *)(v3 + 76) + 4 * v1);\n    if ( *v4 == 2 )\n    {\n      sub_AB2D2(a1, v1, v4[10] != 0);\n    }\n    else if ( !*v4 )\n    {\n      sub_AB218(a1, v1, v4[12]);\n    }\n    ++v1;\n  }\n  *(_BYTE *)(a1 + 396) = 1;\n  *(_DWORD *)(a1 + 392) = 0;\n  return 0;\n}", "assembly": "; \n; sub_5C160 from 0x5c160 to 0x5c1b4 (84 bytes)\n; \n; 1 xrefs:\n; > sub_5C3C4 @ 0x5c3ca\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, 0x5c160\nADD             R7, SP, #8                                             ; +0x2, 0x5c162\nMOVS            R5, #0                                                 ; +0x4, 0x5c164\nMOV             R4, R0                                                 ; +0x6, 0x5c166\nSTR.W           R5, [R0,#0x198]                                        ; +0x8, 0x5c168\nLDR.W           R0, [R4,#0xA4]                                         ; +0xc, 0x5c16c\nLDR             R1, [R0,#0x48]                                         ; +0x10, 0x5c170\nCMP             R5, R1                                                 ; +0x12, 0x5c172\nBGE             loc_5C1A4                                              ; +0x14, 0x5c174\nLDR             R0, [R0,#0x4C]                                         ; +0x16, 0x5c176\nLDR.W           R0, [R0,R5,LSL#2]                                      ; +0x18, 0x5c178\nLDR             R1, [R0]                                               ; +0x1c, 0x5c17c\nCMP             R1, #2                                                 ; +0x1e, 0x5c17e\nBEQ             loc_5C190                                              ; +0x20, 0x5c180\nCBNZ            R1, loc_5C1A0                                          ; +0x22, 0x5c182\nLDR             R2, [R0,#0x30]                                         ; +0x24, 0x5c184\nMOV             R0, R4                                                 ; +0x26, 0x5c186\nMOV             R1, R5                                                 ; +0x28, 0x5c188\nBL              sub_AB218                                              ; +0x2a, 0x5c18a\nB               loc_5C1A0                                              ; +0x2e, 0x5c18e\nLDR             R2, [R0,#0x28]                                         ; +0x30, 0x5c190\nMOV             R0, R4                                                 ; +0x32, 0x5c192\nMOV             R1, R5                                                 ; +0x34, 0x5c194\nCMP             R2, #0                                                 ; +0x36, 0x5c196\nIT NE                                                                  ; +0x38, 0x5c198\nMOVNE           R2, #1                                                 ; +0x3a, 0x5c19a\nBL              sub_AB2D2                                              ; +0x3c, 0x5c19c\nADDS            R5, #1                                                 ; +0x40, 0x5c1a0\nB               loc_5C16C                                              ; +0x42, 0x5c1a2\nMOVS            R0, #1                                                 ; +0x44, 0x5c1a4\nSTRB.W          R0, [R4,#0x18C]                                        ; +0x46, 0x5c1a6\nMOVS            R0, #0                                                 ; +0x4a, 0x5c1aa\nSTR.W           R0, [R4,#0x188]                                        ; +0x4c, 0x5c1ac\nMOVS            R0, #0                                                 ; +0x50, 0x5c1b0\nPOP             {R4,R5,R7,PC}                                          ; +0x52, 0x5c1b2", "xrefs": ["sub_5C3C4 @ 0x5c3ca"], "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"}