{"type": "func", "start": 409676, "end": 409760, "name": "sub_6404C", "pseudocode": "// \n// sub_6404C from 0x6404c to 0x640a0 (84 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10c8f8\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// positive sp value has been detected, the output may be wrong!\n__int64 __fastcall sub_6404C(__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 + 80))(v9);\n      if ( (_DWORD)result )\n        return result;\n    }\n  }\n  return 0;\n}", "assembly": "; \n; sub_6404C from 0x6404c to 0x640a0 (84 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10c8f8\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\nMOV             X4, X30                                                ; +0x0, 0x6404c\nBL              sub_642F4                                              ; +0x4, 0x64050\nMOV             X30, X4                                                ; +0x8, 0x64054\nSTP             X29, X30, [SP,#arg_30]                                 ; +0xc, 0x64058\nADD             X29, SP, #arg_30                                       ; +0x10, 0x6405c\nLDR             X24, [X24]                                             ; +0x14, 0x64060\nCMP             X24, X23                                               ; +0x18, 0x64064\nB.EQ            loc_64094                                              ; +0x1c, 0x64068\nBL              sub_64228                                              ; +0x20, 0x6406c\nAND             W8, W0, #0xFF                                          ; +0x24, 0x64070\nCMP             W8, W20,UXTB                                           ; +0x28, 0x64074\nB.NE            loc_64060                                              ; +0x2c, 0x64078\nBL              sub_642C4                                              ; +0x30, 0x6407c\nLDR             X8, [X8,#0x50]                                         ; +0x34, 0x64080\nMOV             W3, W19                                                ; +0x38, 0x64084\nBLR             X8                                                     ; +0x3c, 0x64088\nCBZ             W0, loc_64060                                          ; +0x40, 0x6408c\nB               loc_64098                                              ; +0x44, 0x64090\nMOV             W0, WZR                                                ; +0x48, 0x64094\nLDP             X29, X30, [SP,#arg_30]                                 ; +0x4c, 0x64098\nB               loc_64260                                              ; +0x50, 0x6409c", "xrefs": ["<???> @ 0x10c8f8"], "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"}