{"type": "func", "start": 409760, "end": 409844, "name": "sub_640A0", "pseudocode": "// \n// sub_640A0 from 0x640a0 to 0x640f4 (84 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10c900\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:13:54 +0000\n// \n\n// positive sp value has been detected, the output may be wrong!\n__int64 __fastcall sub_640A0(__int64 a1, __int64 a2, __int64 a3, __int64 a4)\n{\n  unsigned __int8 v4; // w20\n  _QWORD *v5; // x23\n  _QWORD *v6; // x24\n  __int64 v7; // x30\n  __int64 result; // x0\n  __int64 v9; // x0\n  __int64 v10; // x8\n\n  result = ((__int64 (__fastcall *)(__int64, __int64, __int64, __int64, __int64))sub_642F4)(a1, a2, a3, a4, v7);\n  while ( 1 )\n  {\n    v6 = (_QWORD *)*v6;\n    if ( v6 == v5 )\n      break;\n    result = ((__int64 (__fastcall *)(__int64))sub_64228)(result);\n    if ( (unsigned __int8)result == v4 )\n    {\n      v9 = sub_642C4();\n      result = (*(__int64 (__fastcall **)(__int64))(v10 + 88))(v9);\n      if ( (_DWORD)result )\n        return result;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_640A0 from 0x640a0 to 0x640f4 (84 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10c900\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:13:54 +0000\n; \nMOV             X4, X30                                                ; +0x0, 0x640a0\nBL              sub_642F4                                              ; +0x4, 0x640a4\nMOV             X30, X4                                                ; +0x8, 0x640a8\nSTP             X29, X30, [SP,#arg_30]                                 ; +0xc, 0x640ac\nADD             X29, SP, #arg_30                                       ; +0x10, 0x640b0\nLDR             X24, [X24]                                             ; +0x14, 0x640b4\nCMP             X24, X23                                               ; +0x18, 0x640b8\nB.EQ            loc_640E8                                              ; +0x1c, 0x640bc\nBL              sub_64228                                              ; +0x20, 0x640c0\nAND             W8, W0, #0xFF                                          ; +0x24, 0x640c4\nCMP             W8, W20,UXTB                                           ; +0x28, 0x640c8\nB.NE            loc_640B4                                              ; +0x2c, 0x640cc\nBL              sub_642C4                                              ; +0x30, 0x640d0\nLDR             X8, [X8,#0x58]                                         ; +0x34, 0x640d4\nMOV             W3, W19                                                ; +0x38, 0x640d8\nBLR             X8                                                     ; +0x3c, 0x640dc\nCBZ             W0, loc_640B4                                          ; +0x40, 0x640e0\nB               loc_640EC                                              ; +0x44, 0x640e4\nMOV             W0, WZR                                                ; +0x48, 0x640e8\nLDP             X29, X30, [SP,#arg_30]                                 ; +0x4c, 0x640ec\nB               loc_64260                                              ; +0x50, 0x640f0", "xrefs": ["<???> @ 0x10c900"], "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"}