{"type": "func", "start": 4299928512, "end": 4299928905, "name": "EndLevelLayer::showLayer", "pseudocode": "// \n// EndLevelLayer::showLayer from 0x1004bb3c0 to 0x1004bb549 (393 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x100b5a438\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 12:31:03 +0000\n// \n\n__int64 __fastcall EndLevelLayer::showLayer(__int64 *a1, char a2)\n{\n  __int64 v3; // rax\n  char v4; // r15\n  _OWORD *v5; // rax\n  __int64 v6; // r14\n  __int64 v7; // rax\n  __int64 v8; // rax\n  _OWORD *v9; // rsi\n  __int64 v10; // rdi\n  float v12; // [rsp+0h] [rbp-1Ch]\n\n  v3 = GameManager::sharedState();\n  v4 = a2 | GameManager::getGameVariable(v3, \"0168\");\n  cocos2d::CCNode::stopAllActions(a1[72]);\n  (*(void (__fastcall **)(__int64 *))(*a1 + 1344))(a1);\n  if ( v4 == 1 )\n  {\n    (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)a1[72] + 184LL))(a1[72], a1 + 68);\n    (*(void (__fastcall **)(__int64 *, __int64))(*a1 + 1168))(a1, 100);\n    (*(void (__fastcall **)(__int64 *))(*a1 + 1360))(a1);\n    v12 = 0.0;\n    EndLevelLayer::playStarEffect(a1, 0.0);\n    EndLevelLayer::playCoinEffect(a1);\n  }\n  else\n  {\n    v5 = cocos2d::CCMoveTo::create(a1 + 68, (__m128)0x3F800000u);\n    v6 = cocos2d::CCEaseBounceOut::create(v5);\n    v7 = cocos2d::CCCallFunc::create(a1, 1361, 0);\n    v8 = sub_10039EB60(v6, v7, 0);\n    cocos2d::CCNode::runAction(a1[72], v8);\n    (*(void (__fastcall **)(__int64 *, _QWORD))(*a1 + 1168))(a1, 0);\n    v9 = cocos2d::CCFadeTo::create(100, (__m128)0x3F800000u);\n    cocos2d::CCNode::runAction((__int64)a1, (__int64)v9);\n    v12 = 0.69999999;\n    EndLevelLayer::playCoinEffect(a1);\n    v10 = a1[79];\n    if ( v10 )\n      v12 = (float)((float)(int)sub_1007FEF90(v10) * 0.34999999) + 0.69999999;\n    EndLevelLayer::playStarEffect(a1, v12);\n  }\n  EndLevelLayer::playCurrencyEffect(a1, v12);\n  return EndLevelLayer::playDiamondEffect(a1, v12);\n}", "assembly": "; \n; EndLevelLayer::showLayer from 0x1004bb3c0 to 0x1004bb549 (393 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x100b5a438\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 12:31:03 +0000\n; \npush    rbp                                                            ; +0x0, 0x1004bb3c0\nmov     rbp, rsp                                                       ; +0x1, 0x1004bb3c1\npush    r15                                                            ; +0x4, 0x1004bb3c4\npush    r14                                                            ; +0x6, 0x1004bb3c6\npush    rbx                                                            ; +0x8, 0x1004bb3c8\npush    rax                                                            ; +0x9, 0x1004bb3c9\nmov     r14d, esi                                                      ; +0xa, 0x1004bb3ca\nmov     rbx, rdi                                                       ; +0xd, 0x1004bb3cd\ncall    GameManager__sharedState                                       ; +0x10, 0x1004bb3d0\nlea     rsi, a0168; \"0168\"                                             ; +0x15, 0x1004bb3d5\nmov     rdi, rax                                                       ; +0x1c, 0x1004bb3dc\ncall    GameManager__getGameVariable                                   ; +0x1f, 0x1004bb3df\nmov     r15d, eax                                                      ; +0x24, 0x1004bb3e4\nor      r15b, r14b                                                     ; +0x27, 0x1004bb3e7\nmov     rdi, [rbx+240h]                                                ; +0x2a, 0x1004bb3ea\ncall    cocos2d__CCNode__stopAllActions                                ; +0x31, 0x1004bb3f1\nmov     rax, [rbx]                                                     ; +0x36, 0x1004bb3f6\nmov     rdi, rbx                                                       ; +0x39, 0x1004bb3f9\ncall    qword ptr [rax+540h]                                           ; +0x3c, 0x1004bb3fc\ncmp     r15b, 1                                                        ; +0x42, 0x1004bb402\njnz     short loc_1004BB45C                                            ; +0x46, 0x1004bb406\nmov     rdi, [rbx+240h]                                                ; +0x48, 0x1004bb408\nlea     rsi, [rbx+220h]                                                ; +0x4f, 0x1004bb40f\nmov     rax, [rdi]                                                     ; +0x56, 0x1004bb416\ncall    qword ptr [rax+0B8h]                                           ; +0x59, 0x1004bb419\nmov     rax, [rbx]                                                     ; +0x5f, 0x1004bb41f\nmov     rdi, rbx                                                       ; +0x62, 0x1004bb422\nmov     esi, 64h ; 'd'                                                 ; +0x65, 0x1004bb425\ncall    qword ptr [rax+490h]                                           ; +0x6a, 0x1004bb42a\nmov     rax, [rbx]                                                     ; +0x70, 0x1004bb430\nmov     rdi, rbx                                                       ; +0x73, 0x1004bb433\ncall    qword ptr [rax+550h]                                           ; +0x76, 0x1004bb436\nxorps   xmm0, xmm0                                                     ; +0x7c, 0x1004bb43c\nmovss   [rbp+var_1C], xmm0                                             ; +0x7f, 0x1004bb43f\nmov     rdi, rbx                                                       ; +0x84, 0x1004bb444\ncall    EndLevelLayer__playStarEffect                                  ; +0x87, 0x1004bb447\nxorps   xmm0, xmm0                                                     ; +0x8c, 0x1004bb44c\nmov     rdi, rbx                                                       ; +0x8f, 0x1004bb44f\ncall    EndLevelLayer__playCoinEffect                                  ; +0x92, 0x1004bb452\njmp     loc_1004BB525                                                  ; +0x97, 0x1004bb457\nlea     rdi, [rbx+220h]                                                ; +0x9c, 0x1004bb45c\nmovss   xmm0, cs:alpha                                                 ; +0xa3, 0x1004bb463\ncall    cocos2d__CCMoveTo__create                                      ; +0xab, 0x1004bb46b\nmov     rdi, rax                                                       ; +0xb0, 0x1004bb470\ncall    cocos2d__CCEaseBounceOut__create                               ; +0xb3, 0x1004bb473\nmov     r14, rax                                                       ; +0xb8, 0x1004bb478\nmov     esi, 551h                                                      ; +0xbb, 0x1004bb47b\nmov     rdi, rbx                                                       ; +0xc0, 0x1004bb480\nxor     edx, edx                                                       ; +0xc3, 0x1004bb483\ncall    cocos2d__CCCallFunc__create                                    ; +0xc5, 0x1004bb485\nmov     rdi, r14                                                       ; +0xca, 0x1004bb48a\nmov     rsi, rax                                                       ; +0xcd, 0x1004bb48d\nxor     edx, edx                                                       ; +0xd0, 0x1004bb490\nxor     eax, eax                                                       ; +0xd2, 0x1004bb492\ncall    sub_10039EB60                                                  ; +0xd4, 0x1004bb494\nmov     rdi, [rbx+240h]                                                ; +0xd9, 0x1004bb499\nmov     rsi, rax                                                       ; +0xe0, 0x1004bb4a0\ncall    cocos2d__CCNode__runAction                                     ; +0xe3, 0x1004bb4a3\nmov     rax, [rbx]                                                     ; +0xe8, 0x1004bb4a8\nmov     rdi, rbx                                                       ; +0xeb, 0x1004bb4ab\nxor     esi, esi                                                       ; +0xee, 0x1004bb4ae\ncall    qword ptr [rax+490h]                                           ; +0xf0, 0x1004bb4b0\nmovss   xmm0, cs:alpha                                                 ; +0xf6, 0x1004bb4b6\nmov     edi, 64h ; 'd'                                                 ; +0xfe, 0x1004bb4be\ncall    cocos2d__CCFadeTo__create                                      ; +0x103, 0x1004bb4c3\nmov     rdi, rbx                                                       ; +0x108, 0x1004bb4c8\nmov     rsi, rax                                                       ; +0x10b, 0x1004bb4cb\ncall    cocos2d__CCNode__runAction                                     ; +0x10e, 0x1004bb4ce\nmovss   xmm0, cs:dword_100A0374C                                       ; +0x113, 0x1004bb4d3\nmov     rdi, rbx                                                       ; +0x11b, 0x1004bb4db\nmovss   [rbp+var_1C], xmm0                                             ; +0x11e, 0x1004bb4de\ncall    EndLevelLayer__playCoinEffect                                  ; +0x123, 0x1004bb4e3\nmov     rdi, [rbx+278h]                                                ; +0x128, 0x1004bb4e8\ntest    rdi, rdi                                                       ; +0x12f, 0x1004bb4ef\njz      short loc_1004BB518                                            ; +0x132, 0x1004bb4f2\ncall    sub_1007FEF90                                                  ; +0x134, 0x1004bb4f4\nmov     eax, eax                                                       ; +0x139, 0x1004bb4f9\nxorps   xmm0, xmm0                                                     ; +0x13b, 0x1004bb4fb\ncvtsi2ss xmm0, rax                                                     ; +0x13e, 0x1004bb4fe\nmulss   xmm0, cs:dword_100A03FDC                                       ; +0x143, 0x1004bb503\naddss   xmm0, cs:dword_100A0374C                                       ; +0x14b, 0x1004bb50b\nmovss   [rbp+var_1C], xmm0                                             ; +0x153, 0x1004bb513\nmov     rdi, rbx                                                       ; +0x158, 0x1004bb518\nmovss   xmm0, [rbp+var_1C]                                             ; +0x15b, 0x1004bb51b\ncall    EndLevelLayer__playStarEffect                                  ; +0x160, 0x1004bb520\nmov     rdi, rbx                                                       ; +0x165, 0x1004bb525\nmovss   xmm0, [rbp+var_1C]                                             ; +0x168, 0x1004bb528\ncall    EndLevelLayer__playCurrencyEffect                              ; +0x16d, 0x1004bb52d\nmov     rdi, rbx                                                       ; +0x172, 0x1004bb532\nmovss   xmm0, [rbp+var_1C]                                             ; +0x175, 0x1004bb535\nadd     rsp, 8                                                         ; +0x17a, 0x1004bb53a\npop     rbx                                                            ; +0x17e, 0x1004bb53e\npop     r14                                                            ; +0x17f, 0x1004bb53f\npop     r15                                                            ; +0x181, 0x1004bb541\npop     rbp                                                            ; +0x183, 0x1004bb543\njmp     EndLevelLayer__playDiamondEffect                               ; +0x184, 0x1004bb544", "xrefs": ["<???> @ 0x100b5a438"], "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"}