{"type": "func", "start": 5370830816, "end": 5370831272, "name": "EndLevelLayer::showLayer", "pseudocode": "// \n// EndLevelLayer::showLayer from 0x140205fe0 to 0x1402061a8 (456 bytes)\n// \n// 4 xrefs:\n// > PlayLayer::showEndLayer @ 0x14050b1ed\n// > PlayLayer::showEndLayer @ 0x14050b1cd\n// > <???> @ 0x140753710\n// > <???> @ 0x14091b164\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:28:15 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall EndLevelLayer::showLayer(cocos2d::CCNode *a1, char a2)\n{\n  __int64 v4; // rcx\n  char v5; // bl\n  const struct cocos2d::CCPoint *v6; // rdx\n  __int64 v7; // rdx\n  struct cocos2d::CCActionInterval *v8; // rax\n  struct cocos2d::CCFiniteTimeAction *v9; // rbx\n  __int64 v10; // rax\n  struct cocos2d::CCAction *v11; // rax\n  struct cocos2d::CCAction *v12; // rax\n  cocos2d::CCArray *v13; // rcx\n  void *v15; // [rsp+40h] [rbp+8h]\n\n  v4 = qword_14090BFD0;\n  if ( !qword_14090BFD0 )\n  {\n    v15 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager(v15);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n    v4 = qword_14090BFD0;\n  }\n  v5 = 1;\n  if ( !(unsigned __int8)GameManager::getGameVariable(v4, \"0168\") )\n    v5 = a2;\n  cocos2d::CCNode::stopAllActions(*((cocos2d::CCNode **)a1 + 72));\n  (*(void (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a1 + 1096LL))(a1);\n  v6 = (cocos2d::CCNode *)((char *)a1 + 544);\n  if ( v5 )\n  {\n    (*(void (__fastcall **)(_QWORD, const struct cocos2d::CCPoint *))(**((_QWORD **)a1 + 72) + 184LL))(\n      *((_QWORD *)a1 + 72),\n      v6);\n    LOBYTE(v7) = 100;\n    (*(void (__fastcall **)(_QWORD *, __int64))(*((_QWORD *)a1 + 51) + 40LL))((_QWORD *)a1 + 51, v7);\n    (*(void (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a1 + 1112LL))(a1);\n    EndLevelLayer::playStarEffect(a1);\n    EndLevelLayer::playCoinEffect(a1);\n  }\n  else\n  {\n    v8 = cocos2d::CCMoveTo::create(1.0, v6);\n    v9 = cocos2d::CCEaseBounceOut::create(v8);\n    v10 = cocos2d::CCCallFunc::create(a1, sub_1401353DC);\n    v11 = cocos2d::CCSequence::create(v9, v10, 0);\n    cocos2d::CCNode::runAction(*((cocos2d::CCNode **)a1 + 72), v11);\n    (*(void (__fastcall **)(_QWORD *, _QWORD))(*((_QWORD *)a1 + 51) + 40LL))((_QWORD *)a1 + 51, 0);\n    v12 = cocos2d::CCFadeTo::create(1.0, 0x64u);\n    cocos2d::CCNode::runAction(a1, v12);\n    EndLevelLayer::playCoinEffect(a1);\n    v13 = *((cocos2d::CCArray **)a1 + 79);\n    if ( v13 )\n      cocos2d::CCArray::count(v13);\n    EndLevelLayer::playStarEffect(a1);\n  }\n  EndLevelLayer::playCurrencyEffect(a1);\n  return EndLevelLayer::playDiamondEffect(a1);\n}", "assembly": "; \n; EndLevelLayer::showLayer from 0x140205fe0 to 0x1402061a8 (456 bytes)\n; \n; 4 xrefs:\n; > PlayLayer::showEndLayer @ 0x14050b1ed\n; > PlayLayer::showEndLayer @ 0x14050b1cd\n; > <???> @ 0x140753710\n; > <???> @ 0x14091b164\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:28:15 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140205fe0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x140205fe5\npush    rdi                                                            ; +0xa, 0x140205fea\nsub     rsp, 30h                                                       ; +0xb, 0x140205feb\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xf, 0x140205fef\nmovzx   esi, dl                                                        ; +0x14, 0x140205ff4\nmov     rdi, rcx                                                       ; +0x17, 0x140205ff7\nmov     rcx, cs:qword_14090BFD0                                        ; +0x1a, 0x140205ffa\ntest    rcx, rcx                                                       ; +0x21, 0x140206001\njnz     short loc_140206038                                            ; +0x24, 0x140206004\nmov     ecx, 6E8h; Size                                                ; +0x26, 0x140206006\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2b, 0x14020600b\nmov     [rsp+38h+arg_0], rax                                           ; +0x30, 0x140206010\nmov     rcx, rax                                                       ; +0x35, 0x140206015\ncall    GameManager__GameManager                                       ; +0x38, 0x140206018\nnop                                                                    ; +0x3d, 0x14020601d\nmov     cs:qword_14090BFD0, rax                                        ; +0x3e, 0x14020601e\nmov     rcx, [rax]                                                     ; +0x45, 0x140206025\nmov     rdx, [rcx+48h]                                                 ; +0x48, 0x140206028\nmov     rcx, rax                                                       ; +0x4c, 0x14020602c\ncall    rdx                                                            ; +0x4f, 0x14020602f\nmov     rcx, cs:qword_14090BFD0                                        ; +0x51, 0x140206031\nlea     rdx, a0168; \"0168\"                                             ; +0x58, 0x140206038\ncall    GameManager__getGameVariable                                   ; +0x5f, 0x14020603f\nmov     ebx, 1                                                         ; +0x64, 0x140206044\ntest    al, al                                                         ; +0x69, 0x140206049\ncmovz   ebx, esi                                                       ; +0x6b, 0x14020604b\nmov     rcx, [rdi+240h]                                                ; +0x6e, 0x14020604e\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0x75, 0x140206055\nmov     rax, [rdi]                                                     ; +0x7b, 0x14020605b\nmov     rcx, rdi                                                       ; +0x7e, 0x14020605e\ncall    qword ptr [rax+448h]                                           ; +0x81, 0x140206061\nlea     rdx, [rdi+220h]                                                ; +0x87, 0x140206067\ntest    bl, bl                                                         ; +0x8e, 0x14020606e\njz      short loc_1402060BF                                            ; +0x90, 0x140206070\nmov     rcx, [rdi+240h]                                                ; +0x92, 0x140206072\nmov     rax, [rcx]                                                     ; +0x99, 0x140206079\ncall    qword ptr [rax+0B8h]                                           ; +0x9c, 0x14020607c\nmov     rax, [rdi+198h]                                                ; +0xa2, 0x140206082\nmov     dl, 64h ; 'd'                                                  ; +0xa9, 0x140206089\nlea     rcx, [rdi+198h]                                                ; +0xab, 0x14020608b\ncall    qword ptr [rax+28h]                                            ; +0xb2, 0x140206092\nmov     rax, [rdi]                                                     ; +0xb5, 0x140206095\nmov     rcx, rdi                                                       ; +0xb8, 0x140206098\ncall    qword ptr [rax+458h]                                           ; +0xbb, 0x14020609b\nxorps   xmm6, xmm6                                                     ; +0xc1, 0x1402060a1\nxorps   xmm1, xmm1                                                     ; +0xc4, 0x1402060a4\nmov     rcx, rdi                                                       ; +0xc7, 0x1402060a7\ncall    EndLevelLayer__playStarEffect                                  ; +0xca, 0x1402060aa\nxorps   xmm1, xmm1                                                     ; +0xcf, 0x1402060af\nmov     rcx, rdi                                                       ; +0xd2, 0x1402060b2\ncall    EndLevelLayer__playCoinEffect                                  ; +0xd5, 0x1402060b5\njmp     loc_14020617E                                                  ; +0xda, 0x1402060ba\nmovss   xmm6, cs:flt_140835080                                         ; +0xdf, 0x1402060bf\nmovaps  xmm0, xmm6                                                     ; +0xe7, 0x1402060c7\ncall    cs:?create@CCMoveTo@cocos2d@@SAPEAV12@MAEBVCCPoint@2@@Z; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const &) ; +0xea, 0x1402060ca\nmov     rcx, rax                                                       ; +0xf0, 0x1402060d0\ncall    cs:?create@CCEaseBounceOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@@Z; cocos2d::CCEaseBounceOut::create(cocos2d::CCActionInterval *) ; +0xf3, 0x1402060d3\nmov     rbx, rax                                                       ; +0xf9, 0x1402060d9\nlea     rdx, sub_1401353DC                                             ; +0xfc, 0x1402060dc\nmov     rcx, rdi                                                       ; +0x103, 0x1402060e3\ncall    cs:?create@CCCallFunc@cocos2d@@SAPEAV12@PEAVCCObject@2@P832@EAAXXZ@Z; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x106, 0x1402060e6\nxor     r8d, r8d                                                       ; +0x10c, 0x1402060ec\nmov     rdx, rax                                                       ; +0x10f, 0x1402060ef\nmov     rcx, rbx                                                       ; +0x112, 0x1402060f2\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x115, 0x1402060f5\nmov     rdx, rax                                                       ; +0x11b, 0x1402060fb\nmov     rcx, [rdi+240h]                                                ; +0x11e, 0x1402060fe\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x125, 0x140206105\nmov     rax, [rdi+198h]                                                ; +0x12b, 0x14020610b\nxor     edx, edx                                                       ; +0x132, 0x140206112\nlea     rcx, [rdi+198h]                                                ; +0x134, 0x140206114\ncall    qword ptr [rax+28h]                                            ; +0x13b, 0x14020611b\nmov     dl, 64h ; 'd'                                                  ; +0x13e, 0x14020611e\nmovaps  xmm0, xmm6                                                     ; +0x140, 0x140206120\ncall    cs:?create@CCFadeTo@cocos2d@@SAPEAV12@ME@Z; cocos2d::CCFadeTo::create(float,uchar) ; +0x143, 0x140206123\nmov     rdx, rax                                                       ; +0x149, 0x140206129\nmov     rcx, rdi                                                       ; +0x14c, 0x14020612c\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x14f, 0x14020612f\nmovss   xmm6, cs:dword_140834FAC                                       ; +0x155, 0x140206135\nmovaps  xmm1, xmm6                                                     ; +0x15d, 0x14020613d\nmov     rcx, rdi                                                       ; +0x160, 0x140206140\ncall    EndLevelLayer__playCoinEffect                                  ; +0x163, 0x140206143\nmov     rcx, [rdi+278h]                                                ; +0x168, 0x140206148\ntest    rcx, rcx                                                       ; +0x16f, 0x14020614f\njz      short loc_140206173                                            ; +0x172, 0x140206152\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x174, 0x140206154\nmov     eax, eax                                                       ; +0x17a, 0x14020615a\nxorps   xmm0, xmm0                                                     ; +0x17c, 0x14020615c\ncvtsi2ss xmm0, rax                                                     ; +0x17f, 0x14020615f\nmulss   xmm0, cs:dword_140834EC0                                       ; +0x184, 0x140206164\naddss   xmm0, xmm6                                                     ; +0x18c, 0x14020616c\nmovaps  xmm6, xmm0                                                     ; +0x190, 0x140206170\nmovaps  xmm1, xmm6                                                     ; +0x193, 0x140206173\nmov     rcx, rdi                                                       ; +0x196, 0x140206176\ncall    EndLevelLayer__playStarEffect                                  ; +0x199, 0x140206179\nmovaps  xmm1, xmm6                                                     ; +0x19e, 0x14020617e\nmov     rcx, rdi                                                       ; +0x1a1, 0x140206181\ncall    EndLevelLayer__playCurrencyEffect                              ; +0x1a4, 0x140206184\nmovaps  xmm1, xmm6                                                     ; +0x1a9, 0x140206189\nmov     rcx, rdi                                                       ; +0x1ac, 0x14020618c\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x1af, 0x14020618f\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x1b4, 0x140206194\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x1b9, 0x140206199\nadd     rsp, 30h                                                       ; +0x1be, 0x14020619e\npop     rdi                                                            ; +0x1c2, 0x1402061a2\njmp     EndLevelLayer__playDiamondEffect                               ; +0x1c3, 0x1402061a3", "xrefs": ["PlayLayer::showEndLayer @ 0x14050b1ed", "PlayLayer::showEndLayer @ 0x14050b1cd", "<???> @ 0x140753710", "<???> @ 0x14091b164"], "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"}