{"type": "func", "start": 372832, "end": 372918, "name": "sub_5B060", "pseudocode": "// \n// sub_5B060 from 0x5b060 to 0x5b0b6 (86 bytes)\n// \n// 1 xrefs:\n// > sub_B3A3C @ 0xb3b1c\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_5B060(_DWORD *a1)\n{\n  int v2; // r6\n  int i; // r4\n  int v4; // r0\n  int v5; // r5\n  _DWORD v7[2]; // [sp+4h] [bp-1Ch] BYREF\n  char v8; // [sp+Ch] [bp-14h]\n\n  v7[0] = a1;\n  v7[1] = 17;\n  v2 = 0;\n  v8 = 0;\n  sub_44998((int)v7);\n  for ( i = 40; ; i += 44 )\n  {\n    if ( v2 >= a1[286] )\n    {\n      v5 = 0;\n      goto LABEL_8;\n    }\n    if ( *(_DWORD *)(a1[289] + i) )\n    {\n      v4 = sub_B2D88(a1[278]);\n      if ( v4 )\n        break;\n    }\n    ++v2;\n  }\n  v5 = v4;\nLABEL_8:\n  sub_448CC((int)v7);\n  return v5;\n}", "assembly": "; \n; sub_5B060 from 0x5b060 to 0x5b0b6 (86 bytes)\n; \n; 1 xrefs:\n; > sub_B3A3C @ 0xb3b1c\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, 0x5b060\nADD             R7, SP, #0xC                                           ; +0x2, 0x5b062\nPUSH.W          {R8}                                                   ; +0x4, 0x5b064\nSUB             SP, SP, #0x10                                          ; +0x8, 0x5b068\nMOV             R8, R0                                                 ; +0xa, 0x5b06a\nMOVS            R0, #0x11                                              ; +0xc, 0x5b06c\nSTRD.W          R8, R0, [SP,#0x10+var_C]                               ; +0xe, 0x5b06e\nADD             R0, SP, #0x10+var_C                                    ; +0x12, 0x5b072\nMOVS            R6, #0                                                 ; +0x14, 0x5b074\nSTRB.W          R6, [SP,#0x10+var_4]                                   ; +0x16, 0x5b076\nBL              sub_44998                                              ; +0x1a, 0x5b07a\nMOVS            R4, #0x28 ; '('                                        ; +0x1e, 0x5b07e\nLDR.W           R0, [R8,#0x478]                                        ; +0x20, 0x5b080\nCMP             R6, R0                                                 ; +0x24, 0x5b084\nBGE             loc_5B0A0                                              ; +0x26, 0x5b086\nLDR.W           R0, [R8,#0x484]                                        ; +0x28, 0x5b088\nLDR             R1, [R0,R4]                                            ; +0x2c, 0x5b08c\nCBZ             R1, loc_5B09A                                          ; +0x2e, 0x5b08e\nLDR.W           R0, [R8,#0x458]                                        ; +0x30, 0x5b090\nBL              sub_B2D88                                              ; +0x34, 0x5b094\nCBNZ            R0, loc_5B0A4                                          ; +0x38, 0x5b098\nADDS            R4, #0x2C ; ','                                        ; +0x3a, 0x5b09a\nADDS            R6, #1                                                 ; +0x3c, 0x5b09c\nB               loc_5B080                                              ; +0x3e, 0x5b09e\nMOVS            R5, #0                                                 ; +0x40, 0x5b0a0\nB               loc_5B0A6                                              ; +0x42, 0x5b0a2\nMOV             R5, R0                                                 ; +0x44, 0x5b0a4\nADD             R0, SP, #0x10+var_C                                    ; +0x46, 0x5b0a6\nBL              sub_448CC                                              ; +0x48, 0x5b0a8\nMOV             R0, R5                                                 ; +0x4c, 0x5b0ac\nADD             SP, SP, #0x10                                          ; +0x4e, 0x5b0ae\nPOP.W           {R8}                                                   ; +0x50, 0x5b0b0\nPOP             {R4-R7,PC}                                             ; +0x54, 0x5b0b4", "xrefs": ["sub_B3A3C @ 0xb3b1c"], "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"}