{"type": "func", "start": 355940, "end": 356040, "name": "sub_56E64", "pseudocode": "// \n// sub_56E64 from 0x56e64 to 0x56ec8 (100 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x10c530\n// > <???> @ 0x10c758\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\n__int64 __fastcall sub_56E64(__int64 a1, __int64 a2, _DWORD *a3)\n{\n  __int64 v3; // x8\n  __int64 i; // x9\n\n  if ( !a2 )\n    JUMPOUT(0x578E4);\n  if ( a3 )\n    *a3 = 0;\n  v3 = *(_QWORD *)(a1 + 16);\n  if ( !v3 )\n  {\n    if ( *(_QWORD *)(a1 + 96) != a2 )\n      return 9;\nLABEL_16:\n    JUMPOUT(0x57800);\n  }\n  for ( i = 0; ; ++i )\n  {\n    if ( i >= *(int *)(a1 + 24) )\n      return 9;\n    if ( *(_QWORD *)(v3 + 8 * i) == a2 )\n      break;\n  }\n  if ( !a3 )\n    goto LABEL_16;\n  *a3 = i;\n  return 0;\n}", "assembly": "; \n; sub_56E64 from 0x56e64 to 0x56ec8 (100 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x10c530\n; > <???> @ 0x10c758\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\nCBZ             X1, loc_56E9C                                          ; +0x0, 0x56e64\nCBZ             X2, loc_56E70                                          ; +0x4, 0x56e68\nSTR             WZR, [X2]                                              ; +0x8, 0x56e6c\nLDR             X8, [X0,#0x10]                                         ; +0xc, 0x56e70\nCBZ             X8, loc_56EA0                                          ; +0x10, 0x56e74\nLDRSW           X10, [X0,#0x18]                                        ; +0x14, 0x56e78\nMOV             X9, XZR                                                ; +0x18, 0x56e7c\nCMP             X9, X10                                                ; +0x1c, 0x56e80\nB.GE            loc_56EAC                                              ; +0x20, 0x56e84\nLDR             X11, [X8,X9,LSL#3]                                     ; +0x24, 0x56e88\nCMP             X11, X1                                                ; +0x28, 0x56e8c\nB.EQ            loc_56EB4                                              ; +0x2c, 0x56e90\nADD             X9, X9, #1                                             ; +0x30, 0x56e94\nB               loc_56E80                                              ; +0x34, 0x56e98\nB               loc_578E4                                              ; +0x38, 0x56e9c\nLDR             X8, [X0,#0x60]                                         ; +0x3c, 0x56ea0\nCMP             X8, X1                                                 ; +0x40, 0x56ea4\nB.EQ            loc_56EC4                                              ; +0x44, 0x56ea8\nMOV             W0, #9                                                 ; +0x48, 0x56eac\nRET                                                                    ; +0x4c, 0x56eb0\nCBZ             X2, loc_56EC4                                          ; +0x50, 0x56eb4\nMOV             W0, WZR                                                ; +0x54, 0x56eb8\nSTR             W9, [X2]                                               ; +0x58, 0x56ebc\nRET                                                                    ; +0x5c, 0x56ec0\nB               loc_57800                                              ; +0x60, 0x56ec4", "xrefs": ["<???> @ 0x10c530", "<???> @ 0x10c758"], "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"}