{"type": "func", "start": 5373333360, "end": 5373333630, "name": "LoadingLayer::scene", "pseudocode": "// \n// LoadingLayer::scene from 0x140468f70 to 0x14046907e (270 bytes)\n// \n// 3 xrefs:\n// > AppDelegate::applicationDidFinishLaunching @ 0x140098535\n// > GameManager::reloadAllStep5 @ 0x140287ba1\n// > <???> @ 0x140927ff8\n// \n// This function is hookable on this platform (idp: pc, 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 11:32:35 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall LoadingLayer::scene(__int64 a1, __int64 a2, __int64 a3, __int64 a4)\n{\n  unsigned __int8 v4; // bl\n  __int64 v5; // rsi\n  cocos2d::CCLayer *v6; // rdi\n\n  v4 = a1;\n  v5 = cocos2d::CCScene::create(a1, a2, a3, a4);\n  v6 = (cocos2d::CCLayer *)operator new(0x1C8u);\n  cocos2d::CCLayer::CCLayer(v6);\n  *(_QWORD *)v6 = &LoadingLayer::`vftable';\n  *((_QWORD *)v6 + 40) = &LoadingLayer::`vftable';\n  *((_QWORD *)v6 + 41) = &LoadingLayer::`vftable';\n  *((_QWORD *)v6 + 42) = &LoadingLayer::`vftable';\n  *((_QWORD *)v6 + 43) = &LoadingLayer::`vftable';\n  *((_QWORD *)v6 + 44) = &LoadingLayer::`vftable';\n  *((_WORD *)v6 + 204) = 0;\n  *((_DWORD *)v6 + 103) = 0;\n  *((_QWORD *)v6 + 52) = 0;\n  *((_QWORD *)v6 + 53) = 0;\n  *((_QWORD *)v6 + 54) = 0;\n  *((_QWORD *)v6 + 55) = 0;\n  *((_BYTE *)v6 + 448) = 0;\n  if ( (unsigned __int8)LoadingLayer::init(v6, v4) )\n  {\n    cocos2d::CCObject::autorelease(v6);\n  }\n  else\n  {\n    (*(void (__fastcall **)(cocos2d::CCLayer *, __int64))(*(_QWORD *)v6 + 8LL))(v6, 1);\n    v6 = nullptr;\n  }\n  (*(void (__fastcall **)(__int64, cocos2d::CCLayer *))(*(_QWORD *)v5 + 464LL))(v5, v6);\n  return v5;\n}", "assembly": "; \n; LoadingLayer::scene from 0x140468f70 to 0x14046907e (270 bytes)\n; \n; 3 xrefs:\n; > AppDelegate::applicationDidFinishLaunching @ 0x140098535\n; > GameManager::reloadAllStep5 @ 0x140287ba1\n; > <???> @ 0x140927ff8\n; \n; This function is hookable on this platform (idp: pc, 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 11:32:35 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140468f70\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x140468f75\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x140468f7a\npush    rdi                                                            ; +0xf, 0x140468f7f\nsub     rsp, 20h                                                       ; +0x10, 0x140468f80\nmovzx   ebx, cl                                                        ; +0x14, 0x140468f84\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x17, 0x140468f87\nmov     rsi, rax                                                       ; +0x1d, 0x140468f8d\nmov     ecx, 1C8h; Size                                                ; +0x20, 0x140468f90\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x25, 0x140468f95\nmov     rdi, rax                                                       ; +0x2a, 0x140468f9a\nmov     [rsp+28h+arg_8], rax                                           ; +0x2d, 0x140468f9d\nmov     rcx, rax                                                       ; +0x32, 0x140468fa2\ncall    cs:??0CCLayer@cocos2d@@QEAA@XZ; cocos2d::CCLayer::CCLayer(void) ; +0x35, 0x140468fa5\nlea     rax, ??_7LoadingLayer@@6B@; const LoadingLayer::`vftable'      ; +0x3b, 0x140468fab\nmov     [rdi], rax                                                     ; +0x42, 0x140468fb2\nlea     rax, ??_7LoadingLayer@@6B@_0; const LoadingLayer::`vftable'    ; +0x45, 0x140468fb5\nmov     [rdi+140h], rax                                                ; +0x4c, 0x140468fbc\nlea     rax, ??_7LoadingLayer@@6B@_1; const LoadingLayer::`vftable'    ; +0x53, 0x140468fc3\nmov     [rdi+148h], rax                                                ; +0x5a, 0x140468fca\nlea     rax, ??_7LoadingLayer@@6B@_2; const LoadingLayer::`vftable'    ; +0x61, 0x140468fd1\nmov     [rdi+150h], rax                                                ; +0x68, 0x140468fd8\nlea     rax, ??_7LoadingLayer@@6B@_3; const LoadingLayer::`vftable'    ; +0x6f, 0x140468fdf\nmov     [rdi+158h], rax                                                ; +0x76, 0x140468fe6\nlea     rax, ??_7LoadingLayer@@6B@_4; const LoadingLayer::`vftable'    ; +0x7d, 0x140468fed\nmov     [rdi+160h], rax                                                ; +0x84, 0x140468ff4\nmov     word ptr [rdi+198h], 0                                         ; +0x8b, 0x140468ffb\nxor     ebp, ebp                                                       ; +0x94, 0x140469004\nmov     [rdi+19Ch], ebp                                                ; +0x96, 0x140469006\nmov     [rdi+1A0h], rbp                                                ; +0x9c, 0x14046900c\nmov     [rdi+1A8h], rbp                                                ; +0xa3, 0x140469013\nmov     [rdi+1B0h], rbp                                                ; +0xaa, 0x14046901a\nmov     [rdi+1B8h], rbp                                                ; +0xb1, 0x140469021\nmov     [rdi+1C0h], bpl                                                ; +0xb8, 0x140469028\nmovzx   edx, bl                                                        ; +0xbf, 0x14046902f\nmov     rcx, rdi                                                       ; +0xc2, 0x140469032\ncall    LoadingLayer__init                                             ; +0xc5, 0x140469035\nmov     rcx, rdi                                                       ; +0xca, 0x14046903a\ntest    al, al                                                         ; +0xcd, 0x14046903d\njz      short loc_140469049                                            ; +0xcf, 0x14046903f\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xd1, 0x140469041\njmp     short loc_140469057                                            ; +0xd7, 0x140469047\nmov     rax, [rdi]                                                     ; +0xd9, 0x140469049\nmov     edx, 1                                                         ; +0xdc, 0x14046904c\ncall    qword ptr [rax+8]                                              ; +0xe1, 0x140469051\nmov     rdi, rbp                                                       ; +0xe4, 0x140469054\nmov     rax, [rsi]                                                     ; +0xe7, 0x140469057\nmov     rdx, rdi                                                       ; +0xea, 0x14046905a\nmov     rcx, rsi                                                       ; +0xed, 0x14046905d\ncall    qword ptr [rax+1D0h]                                           ; +0xf0, 0x140469060\nmov     rax, rsi                                                       ; +0xf6, 0x140469066\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xf9, 0x140469069\nmov     rbp, [rsp+28h+arg_10]                                          ; +0xfe, 0x14046906e\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x103, 0x140469073\nadd     rsp, 20h                                                       ; +0x108, 0x140469078\npop     rdi                                                            ; +0x10c, 0x14046907c\nretn                                                                   ; +0x10d, 0x14046907d", "xrefs": ["AppDelegate::applicationDidFinishLaunching @ 0x140098535", "GameManager::reloadAllStep5 @ 0x140287ba1", "<???> @ 0x140927ff8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}