{"type": "func", "start": 547148, "end": 547224, "name": "sub_8594C", "pseudocode": "// \n// sub_8594C from 0x8594c to 0x85998 (76 bytes)\n// \n// 1 xrefs:\n// > sub_83E04 @ 0x849c8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:14:09 +0000\n// \n\n__int64 __fastcall sub_8594C(__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_85A40();\n  if ( !(_DWORD)result )\n    return 0;\n  return result;\n}", "assembly": "; \n; sub_8594C from 0x8594c to 0x85998 (76 bytes)\n; \n; 1 xrefs:\n; > sub_83E04 @ 0x849c8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:14:09 +0000\n; \nSTP             X29, X30, [SP,#-0x10+var_s0]!                          ; +0x0, 0x8594c\nLDR             W8, [X0,#0x24]                                         ; +0x4, 0x85950\nMOV             X29, SP                                                ; +0x8, 0x85954\nCMN             W8, #1                                                 ; +0xc, 0x85958\nB.EQ            loc_8598C                                              ; +0x10, 0x8595c\nLDR             W9, [X0,#8]                                            ; +0x14, 0x85960\nCMP             W8, W9                                                 ; +0x18, 0x85964\nB.NE            loc_85984                                              ; +0x1c, 0x85968\nLSL             W9, W8, #1                                             ; +0x20, 0x8596c\nCMP             W8, #2                                                 ; +0x24, 0x85970\nMOV             W8, #4                                                 ; +0x28, 0x85974\nCSEL            W1, W8, W9, LT                                         ; +0x2c, 0x85978\nBL              sub_85A40                                              ; +0x30, 0x8597c\nCBNZ            W0, loc_85990                                          ; +0x34, 0x85980\nMOV             W0, WZR                                                ; +0x38, 0x85984\nB               loc_85990                                              ; +0x3c, 0x85988\nMOV             W0, #0x1C                                              ; +0x40, 0x8598c\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x44, 0x85990\nRET                                                                    ; +0x48, 0x85994", "xrefs": ["sub_83E04 @ 0x849c8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}