{"type": "func", "start": 353214, "end": 353310, "name": "sub_563BE", "pseudocode": "// \n// sub_563BE from 0x563be to 0x5641e (96 bytes)\n// \n// 0 xrefs:\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_563BE(int a1, int a2, _DWORD *a3)\n{\n  int result; // r0\n  __int64 v7; // r0\n  int v8; // r2\n  int v9; // [sp+4h] [bp-14h] BYREF\n\n  result = (*(int (__fastcall **)(int, int *))(*(_DWORD *)a1 + 116))(a1, &v9);\n  if ( !result )\n  {\n    result = 31;\n    if ( a2 >= 0 && a3 && v9 > a2 )\n    {\n      v7 = *(_QWORD *)(a1 + 172);\n      v8 = 0;\n      while ( 1 )\n      {\n        LODWORD(v7) = *(_DWORD *)v7;\n        if ( (_DWORD)v7 == HIDWORD(v7) )\n          break;\n        if ( !*(_DWORD *)(a1 + 124) || *(_DWORD *)(a1 + 140) == *(unsigned __int16 *)(v7 + 28) )\n        {\n          if ( v8 >= a2 )\n          {\n            *a3 = v7;\n            return 0;\n          }\n          ++v8;\n        }\n      }\n      return 0;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_563BE from 0x563be to 0x5641e (96 bytes)\n; \n; 0 xrefs:\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, 0x563be\nADD             R7, SP, #0xC                                           ; +0x2, 0x563c0\nPUSH.W          {R8}                                                   ; +0x4, 0x563c2\nSUB             SP, SP, #8                                             ; +0x8, 0x563c6\nMOV             R6, R0                                                 ; +0xa, 0x563c8\nLDR             R0, [R0]                                               ; +0xc, 0x563ca\nMOV             R8, R2                                                 ; +0xe, 0x563cc\nMOV             R5, R1                                                 ; +0x10, 0x563ce\nADD             R1, SP, #8+var_4                                       ; +0x12, 0x563d0\nLDR             R2, [R0,#0x74]                                         ; +0x14, 0x563d2\nMOV             R0, R6                                                 ; +0x16, 0x563d4\nBLX             R2                                                     ; +0x18, 0x563d6\nCBZ             R0, loc_563E2                                          ; +0x1a, 0x563d8\nADD             SP, SP, #8                                             ; +0x1c, 0x563da\nPOP.W           {R8}                                                   ; +0x1e, 0x563dc\nPOP             {R4-R7,PC}                                             ; +0x22, 0x563e0\nMOVS            R0, #0x1F                                              ; +0x24, 0x563e2\nCMP             R5, #0                                                 ; +0x26, 0x563e4\nBMI             loc_563DA                                              ; +0x28, 0x563e6\nCMP.W           R8, #0                                                 ; +0x2a, 0x563e8\nBEQ             loc_563DA                                              ; +0x2e, 0x563ec\nLDR             R1, [SP,#8+var_4]                                      ; +0x30, 0x563ee\nCMP             R1, R5                                                 ; +0x32, 0x563f0\nBLE             loc_563DA                                              ; +0x34, 0x563f2\nLDRD.W          R0, R1, [R6,#0xAC]                                     ; +0x36, 0x563f4\nMOVS            R2, #0                                                 ; +0x3a, 0x563f8\nLDR             R0, [R0]                                               ; +0x3c, 0x563fa\nCMP             R0, R1                                                 ; +0x3e, 0x563fc\nBEQ             loc_5641A                                              ; +0x40, 0x563fe\nLDR             R3, [R6,#0x7C]                                         ; +0x42, 0x56400\nCBZ             R3, loc_5640E                                          ; +0x44, 0x56402\nLDRH            R3, [R0,#0x1C]                                         ; +0x46, 0x56404\nLDR.W           R4, [R6,#0x8C]                                         ; +0x48, 0x56406\nCMP             R4, R3                                                 ; +0x4c, 0x5640a\nBNE             loc_563FA                                              ; +0x4e, 0x5640c\nCMP             R2, R5                                                 ; +0x50, 0x5640e\nBGE             loc_56416                                              ; +0x52, 0x56410\nADDS            R2, #1                                                 ; +0x54, 0x56412\nB               loc_563FA                                              ; +0x56, 0x56414\nSTR.W           R0, [R8]                                               ; +0x58, 0x56416\nMOVS            R0, #0                                                 ; +0x5c, 0x5641a\nB               loc_563DA                                              ; +0x5e, 0x5641c", "xrefs": [], "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"}