{"type": "func", "start": 649848, "end": 650052, "name": "sub_9EA78", "pseudocode": "// \n// sub_9EA78 from 0x9ea78 to 0x9eb44 (204 bytes)\n// \n// 2 xrefs:\n// > sub_9E9F4 @ 0x9ea20\n// > sub_9E9F4 @ 0x9ea2c\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_9EA78(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v4; // x0\n  __int64 result; // x0\n  unsigned int v7; // w3\n  __int64 v8; // x8\n  unsigned int v9; // w0\n  unsigned int v10; // w2\n\n  *(_QWORD *)(a1 + 328) = 0;\n  *(_QWORD *)(a1 + 360) = 0;\n  *(_DWORD *)(a1 + 24) = 0;\n  v4 = *(_QWORD *)(a1 + 368);\n  *(_DWORD *)(a1 + 40) = 12;\n  *(_OWORD *)(a1 + 288) = 0u;\n  *(_OWORD *)(a1 + 304) = 0u;\n  *(_QWORD *)(a1 + 8) = a1 + 376;\n  result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 24LL))(v4, a1 + 396);\n  if ( !(_DWORD)result )\n  {\n    *(_DWORD *)(a1 + 272) = 0;\n    v7 = *(_DWORD *)(a3 + 20);\n    if ( v7 - 1 <= 4 )\n    {\n      v8 = *(_QWORD *)(a1 + 8);\n      *(_DWORD *)(v8 + 8) = v7;\n      v9 = *(_DWORD *)(v8 + 20);\n      v10 = *(_QWORD *)(a3 + 12);\n      *(_QWORD *)(v8 + 12) = *(_QWORD *)(a3 + 12);\n      sub_5C214(v9, (unsigned int *)(v8 + 24), v10, v7);\n      *(_DWORD *)(a1 + 24) = 0;\n      return 0;\n    }\n    else\n    {\n      return 19;\n    }\n  }\n  return result;\n}", "assembly": "; \n; sub_9EA78 from 0x9ea78 to 0x9eb44 (204 bytes)\n; \n; 2 xrefs:\n; > sub_9E9F4 @ 0x9ea20\n; > sub_9E9F4 @ 0x9ea2c\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\nB               loc_9EAA4                                              ; +0x0, 0x9ea78\nB               loc_9ED28                                              ; +0x4, 0x9ea7c\nB               sub_9EB44                                              ; +0x8, 0x9ea80\nB               sub_9ECD0                                              ; +0xc, 0x9ea84\nB               loc_9ED28                                              ; +0x10, 0x9ea88\nCBZ             X3, loc_9EA98                                          ; +0x14, 0x9ea8c\nMOV             W8, #0x100                                             ; +0x18, 0x9ea90\nSTR             W8, [X3]                                               ; +0x1c, 0x9ea94\nCBZ             X2, loc_9EAA0                                          ; +0x20, 0x9ea98\nSTR             WZR, [X2]                                              ; +0x24, 0x9ea9c\nB               loc_9ED28                                              ; +0x28, 0x9eaa0\nSTP             X20, X19, [SP,#var_20]!                                ; +0x2c, 0x9eaa4\nSTP             X29, X30, [SP,#0x20+var_10]                            ; +0x30, 0x9eaa8\nMOV             X19, X0                                                ; +0x34, 0x9eaac\nSTR             XZR, [X0,#0x148]                                       ; +0x38, 0x9eab0\nSTR             XZR, [X0,#0x168]                                       ; +0x3c, 0x9eab4\nSTR             WZR, [X0,#0x18]                                        ; +0x40, 0x9eab8\nLDR             X0, [X0,#0x170]                                        ; +0x44, 0x9eabc\nMOV             W8, #0xC                                               ; +0x48, 0x9eac0\nMOVI            V0.2D, #0                                              ; +0x4c, 0x9eac4\nSTR             W8, [X19,#0x28]                                        ; +0x50, 0x9eac8\nADD             X8, X19, #0x178                                        ; +0x54, 0x9eacc\nSTP             Q0, Q0, [X19,#0x120]                                   ; +0x58, 0x9ead0\nSTR             X8, [X19,#8]                                           ; +0x5c, 0x9ead4\nLDR             X9, [X0]                                               ; +0x60, 0x9ead8\nADD             X1, X8, #0x14                                          ; +0x64, 0x9eadc\nADD             X29, SP, #0x20+var_10                                  ; +0x68, 0x9eae0\nMOV             X20, X2                                                ; +0x6c, 0x9eae4\nLDR             X9, [X9,#0x18]                                         ; +0x70, 0x9eae8\nBLR             X9                                                     ; +0x74, 0x9eaec\nCBNZ            W0, loc_9EB38                                          ; +0x78, 0x9eaf0\nSTR             WZR, [X19,#0x110]                                      ; +0x7c, 0x9eaf4\nLDR             W3, [X20,#0x14]                                        ; +0x80, 0x9eaf8\nSUB             W8, W3, #1                                             ; +0x84, 0x9eafc\nCMP             W8, #4                                                 ; +0x88, 0x9eb00\nB.LS            loc_9EB10                                              ; +0x8c, 0x9eb04\nMOV             W0, #0x13                                              ; +0x90, 0x9eb08\nB               loc_9EB38                                              ; +0x94, 0x9eb0c\nLDR             X8, [X19,#8]                                           ; +0x98, 0x9eb10\nSTR             W3, [X8,#8]                                            ; +0x9c, 0x9eb14\nLDUR            D0, [X20,#0xC]                                         ; +0xa0, 0x9eb18\nLDR             W0, [X8,#0x14]                                         ; +0xa4, 0x9eb1c\nADD             X1, X8, #0x18                                          ; +0xa8, 0x9eb20\nFMOV            W2, S0                                                 ; +0xac, 0x9eb24\nSTUR            D0, [X8,#0xC]                                          ; +0xb0, 0x9eb28\nBL              sub_5C214                                              ; +0xb4, 0x9eb2c\nMOV             W0, WZR                                                ; +0xb8, 0x9eb30\nSTR             WZR, [X19,#0x18]                                       ; +0xbc, 0x9eb34\nLDP             X29, X30, [SP,#0x20+var_10]                            ; +0xc0, 0x9eb38\nLDP             X20, X19, [SP+0x20+var_20],#0x20                       ; +0xc4, 0x9eb3c\nRET                                                                    ; +0xc8, 0x9eb40", "xrefs": ["sub_9E9F4 @ 0x9ea20", "sub_9E9F4 @ 0x9ea2c"], "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"}