{"type": "func", "start": 927636, "end": 927888, "name": "sub_E2794", "pseudocode": "// \n// sub_E2794 from 0xe2794 to 0xe2890 (252 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x10f1f8\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_E2794(_QWORD *a1, __int64 a2, _DWORD *a3, char a4)\n{\n  __int64 (__fastcall *v8)(__int64, int); // x8\n  void (__fastcall *v9)(__int64, _QWORD); // x8\n  __int64 v10; // x0\n  __int64 result; // x0\n\n  *(_QWORD *)a2 = a1[69];\n  if ( !sub_E2664(a1) )\n  {\n    result = (*(__int64 (__fastcall **)(_QWORD *, _QWORD, _QWORD, __int64))(*a1 + 56LL))(\n               a1,\n               *(_QWORD *)(a2 + 32),\n               *(unsigned int *)(a2 + 12),\n               a2 + 40);\n    goto LABEL_16;\n  }\n  *((_DWORD *)a1 + 119) = 46;\n  if ( (a4 & 1) != 0 )\n    v8 = sub_E25A0;\n  else\n    v8 = sub_E25B8;\n  *(_QWORD *)(a2 + 48) = v8;\n  v9 = (void (__fastcall *)(__int64, _QWORD))a1[67];\n  if ( v9 || (sub_E28F4(), v9) )\n    v9(a2, a1[70]);\n  if ( (a4 & 1) != 0 )\n  {\n    v10 = a1[62];\n    if ( v10 )\n    {\n      sub_E71A8(v10);\n      result = *((unsigned int *)a1 + 119);\n    }\n    else\n    {\n      while ( 1 )\n      {\n        result = *((unsigned int *)a1 + 119);\n        if ( (_DWORD)result != 46 )\n          break;\n        if ( *((_BYTE *)a1 + 60) )\n        {\n          result = 46;\n          goto LABEL_16;\n        }\n        FMOD_OS_Time_Sleep(10);\n      }\n    }\n    goto LABEL_16;\n  }\n  result = *((unsigned int *)a1 + 119);\n  if ( (_DWORD)result != 46 )\nLABEL_16:\n    *a3 = *(_DWORD *)(a2 + 40);\n  return result;\n}", "assembly": "; \n; sub_E2794 from 0xe2794 to 0xe2890 (252 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x10f1f8\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             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0xe2794\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0xe2798\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0xe279c\nLDR             X8, [X0,#0x228]                                        ; +0xc, 0xe27a0\nADD             X29, SP, #0x20                                         ; +0x10, 0xe27a4\nMOV             W22, W3                                                ; +0x14, 0xe27a8\nMOV             X19, X2                                                ; +0x18, 0xe27ac\nMOV             X21, X0                                                ; +0x1c, 0xe27b0\nMOV             X20, X1                                                ; +0x20, 0xe27b4\nSTR             X8, [X1]                                               ; +0x24, 0xe27b8\nBL              sub_E2664                                              ; +0x28, 0xe27bc\nTBZ             W0, #0, loc_E2844                                      ; +0x2c, 0xe27c0\nADRP            X9, #sub_E25B8@PAGE                                    ; +0x30, 0xe27c4\nADRP            X10, #sub_E25A0@PAGE                                   ; +0x34, 0xe27c8\nMOV             W8, #0x2E ; '.'                                        ; +0x38, 0xe27cc\nADD             X9, X9, #sub_E25B8@PAGEOFF                             ; +0x3c, 0xe27d0\nADD             X10, X10, #sub_E25A0@PAGEOFF                           ; +0x40, 0xe27d4\nTST             W22, #1                                                ; +0x44, 0xe27d8\nSTR             W8, [X21,#0x1DC]                                       ; +0x48, 0xe27dc\nCSEL            X8, X10, X9, NE                                        ; +0x4c, 0xe27e0\nSTR             X8, [X20,#0x30]                                        ; +0x50, 0xe27e4\nLDR             X8, [X21,#0x218]                                       ; +0x54, 0xe27e8\nCBNZ            X8, loc_E2800                                          ; +0x58, 0xe27ec\nLDR             X8, [X21,#0x198]                                       ; +0x5c, 0xe27f0\nMOV             W9, #0x1208                                            ; +0x60, 0xe27f4\nBL              sub_E28F4                                              ; +0x64, 0xe27f8\nCBZ             X8, loc_E280C                                          ; +0x68, 0xe27fc\nLDR             X1, [X21,#0x230]                                       ; +0x6c, 0xe2800\nMOV             X0, X20                                                ; +0x70, 0xe2804\nBLR             X8                                                     ; +0x74, 0xe2808\nTBZ             W22, #0, loc_E2878                                     ; +0x78, 0xe280c\nLDR             X0, [X21,#0x1F0]                                       ; +0x7c, 0xe2810\nCBZ             X0, loc_E2834                                          ; +0x80, 0xe2814\nBL              sub_E71A8                                              ; +0x84, 0xe2818\nLDR             W0, [X21,#0x1DC]                                       ; +0x88, 0xe281c\nB               loc_E2860                                              ; +0x8c, 0xe2820\nLDRB            W8, [X21,#0x3C]                                        ; +0x90, 0xe2824\nCBNZ            W8, loc_E2888                                          ; +0x94, 0xe2828\nMOV             W0, #0xA                                               ; +0x98, 0xe282c\nBL              .FMOD_OS_Time_Sleep                                    ; +0x9c, 0xe2830\nLDR             W0, [X21,#0x1DC]                                       ; +0xa0, 0xe2834\nCMP             W0, #0x2E ; '.'                                        ; +0xa4, 0xe2838\nB.EQ            loc_E2824                                              ; +0xa8, 0xe283c\nB               loc_E2860                                              ; +0xac, 0xe2840\nLDR             X8, [X21]                                              ; +0xb0, 0xe2844\nLDR             X1, [X20,#0x20]                                        ; +0xb4, 0xe2848\nLDR             W2, [X20,#0xC]                                         ; +0xb8, 0xe284c\nADD             X3, X20, #0x28 ; '('                                   ; +0xbc, 0xe2850\nLDR             X8, [X8,#0x38]                                         ; +0xc0, 0xe2854\nMOV             X0, X21                                                ; +0xc4, 0xe2858\nBLR             X8                                                     ; +0xc8, 0xe285c\nLDR             W8, [X20,#0x28]                                        ; +0xcc, 0xe2860\nSTR             W8, [X19]                                              ; +0xd0, 0xe2864\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xd4, 0xe2868\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xd8, 0xe286c\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0xdc, 0xe2870\nRET                                                                    ; +0xe0, 0xe2874\nLDR             W0, [X21,#0x1DC]                                       ; +0xe4, 0xe2878\nCMP             W0, #0x2E ; '.'                                        ; +0xe8, 0xe287c\nB.NE            loc_E2860                                              ; +0xec, 0xe2880\nB               loc_E2868                                              ; +0xf0, 0xe2884\nMOV             W0, #0x2E ; '.'                                        ; +0xf4, 0xe2888\nB               loc_E2860                                              ; +0xf8, 0xe288c", "xrefs": ["<???> @ 0x10f1f8"], "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"}