{"type": "func", "start": 415108, "end": 415184, "name": "sub_65584", "pseudocode": "// \n// sub_65584 from 0x65584 to 0x655d0 (76 bytes)\n// \n// 1 xrefs:\n// > sub_64C98 @ 0x64cc4\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_65584(__int64 a1)\n{\n  int v1; // w8\n  __int64 result; // x0\n\n  v1 = *(_DWORD *)(a1 + 36);\n  if ( v1 == -1 )\n    return 28;\n  if ( v1 != *(_DWORD *)(a1 + 8) )\n    return 0;\n  result = sub_656C4();\n  if ( !(_DWORD)result )\n    return 0;\n  return result;\n}", "assembly": "; \n; sub_65584 from 0x65584 to 0x655d0 (76 bytes)\n; \n; 1 xrefs:\n; > sub_64C98 @ 0x64cc4\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\nSTP             X29, X30, [SP,#-0x10+var_s0]!                          ; +0x0, 0x65584\nLDR             W8, [X0,#0x24]                                         ; +0x4, 0x65588\nMOV             X29, SP                                                ; +0x8, 0x6558c\nCMN             W8, #1                                                 ; +0xc, 0x65590\nB.EQ            loc_655C4                                              ; +0x10, 0x65594\nLDR             W9, [X0,#8]                                            ; +0x14, 0x65598\nCMP             W8, W9                                                 ; +0x18, 0x6559c\nB.NE            loc_655BC                                              ; +0x1c, 0x655a0\nLSL             W9, W8, #1                                             ; +0x20, 0x655a4\nCMP             W8, #2                                                 ; +0x24, 0x655a8\nMOV             W8, #4                                                 ; +0x28, 0x655ac\nCSEL            W1, W8, W9, LT                                         ; +0x2c, 0x655b0\nBL              sub_656C4                                              ; +0x30, 0x655b4\nCBNZ            W0, loc_655C8                                          ; +0x34, 0x655b8\nMOV             W0, WZR                                                ; +0x38, 0x655bc\nB               loc_655C8                                              ; +0x3c, 0x655c0\nMOV             W0, #0x1C                                              ; +0x40, 0x655c4\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x44, 0x655c8\nRET                                                                    ; +0x48, 0x655cc", "xrefs": ["sub_64C98 @ 0x64cc4"], "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"}