{"type": "func", "start": 4299960800, "end": 4299961102, "name": "EndLevelLayer::starEnterFinished", "pseudocode": "// \n// EndLevelLayer::starEnterFinished from 0x1004c31e0 to 0x1004c330e (302 bytes)\n// \n// 1 xrefs:\n// > EndLevelLayer::playStarEffect @ 0x1004c2741\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\nvoid __fastcall EndLevelLayer::starEnterFinished(EndLevelLayer *a1)\n{\n  PlayLayer *m_playLayer; // rax\n  int m_levelLength; // r13d\n  cocos2d::CCParticleSystemQuad *v3; // r15\n  CCCircleWave *v4; // r15\n  int v5; // ecx\n  double v6; // [rsp-40h] [rbp-40h] BYREF\n  unsigned __int64 v7[7]; // [rsp-38h] [rbp-38h] BYREF\n\n  m_playLayer = a1->m_playLayer;\n  if ( m_playLayer )\n  {\n    m_levelLength = m_playLayer->m_level->GJBaseGameLayer::m_levelLength;\n    sub_10028CBE0((float *)v7, 0.0, 8.0);\n    sub_10028CCE0(&v6, (unsigned __int64 *)&a1->m_starsPosition, v7);\n    v3 = cocos2d::CCParticleSystemQuad::create(\"starEffect.plist\", 0);\n    ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v3->setAutoRemoveOnFinish)(v3, 1);\n    ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_mainLayer->addChild_0)(\n      a1->m_mainLayer,\n      v3,\n      9);\n    ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, double *))v3->setPosition)(v3, &v6);\n    v4 = CCCircleWave::create_1(10.0, 90.0, 0.40000001, 0);\n    v5 = 0xFFFF;\n    if ( m_levelLength == 5 )\n      v5 = -256;\n    *(_WORD *)&v4->m_color.r = v5;\n    v4->m_color.b = BYTE2(v5);\n    ((void (__fastcall *)(CCCircleWave *, double *))v4->setPosition)(v4, &v6);\n    ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_mainLayer->addChild_0)(\n      a1->m_mainLayer,\n      v4,\n      9);\n    EndLevelLayer::playEndEffect(a1);\n  }\n}", "assembly": "; \n; EndLevelLayer::starEnterFinished from 0x1004c31e0 to 0x1004c330e (302 bytes)\n; \n; 1 xrefs:\n; > EndLevelLayer::playStarEffect @ 0x1004c2741\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\nmov     rax, [rdi+260h]                                                ; +0x0, 0x1004c31e0\ntest    rax, rax                                                       ; +0x7, 0x1004c31e7\njz      locret_1004C330D                                               ; +0xa, 0x1004c31ea\npush    rbp                                                            ; +0x10, 0x1004c31f0\nmov     rbp, rsp                                                       ; +0x11, 0x1004c31f1\npush    r15                                                            ; +0x14, 0x1004c31f4\npush    r14                                                            ; +0x16, 0x1004c31f6\npush    r13                                                            ; +0x18, 0x1004c31f8\npush    r12                                                            ; +0x1a, 0x1004c31fa\npush    rbx                                                            ; +0x1c, 0x1004c31fc\nsub     rsp, 18h                                                       ; +0x1d, 0x1004c31fd\nmov     rax, [rax+790h]                                                ; +0x21, 0x1004c3201\nmov     r13d, [rax+310h]                                               ; +0x28, 0x1004c3208\nlea     r15, [rdi+280h]                                                ; +0x2f, 0x1004c320f\nlea     r12, [rbp-30h]                                                 ; +0x36, 0x1004c3216\nmovss   xmm1, cs:dword_100815034                                       ; +0x3a, 0x1004c321a\nxorps   xmm0, xmm0                                                     ; +0x42, 0x1004c3222\nmov     rbx, rdi                                                       ; +0x45, 0x1004c3225\nmov     rdi, r12                                                       ; +0x48, 0x1004c3228\ncall    sub_10028CBE0                                                  ; +0x4b, 0x1004c322b\nlea     r14, [rbp-38h]                                                 ; +0x50, 0x1004c3230\nmov     rdi, r14                                                       ; +0x54, 0x1004c3234\nmov     rsi, r15                                                       ; +0x57, 0x1004c3237\nmov     rdx, r12                                                       ; +0x5a, 0x1004c323a\ncall    sub_10028CCE0                                                  ; +0x5d, 0x1004c323d\nlea     rdi, aStareffectPlis; \"starEffect.plist\"                       ; +0x62, 0x1004c3242\nxor     esi, esi                                                       ; +0x69, 0x1004c3249\ncall    cocos2d__CCParticleSystemQuad__create                          ; +0x6b, 0x1004c324b\nmov     r15, rax                                                       ; +0x70, 0x1004c3250\nmov     rax, [rax]                                                     ; +0x73, 0x1004c3253\nmov     rdi, r15                                                       ; +0x76, 0x1004c3256\nmov     esi, 1                                                         ; +0x79, 0x1004c3259\ncall    qword ptr [rax+620h]                                           ; +0x7e, 0x1004c325e\nmov     rdi, [rbx+240h]                                                ; +0x84, 0x1004c3264\nmov     rax, [rdi]                                                     ; +0x8b, 0x1004c326b\nmov     rsi, r15                                                       ; +0x8e, 0x1004c326e\nmov     edx, 9                                                         ; +0x91, 0x1004c3271\ncall    qword ptr [rax+1C0h]                                           ; +0x96, 0x1004c3276\nmov     rax, [r15]                                                     ; +0x9c, 0x1004c327c\nmov     rdi, r15                                                       ; +0x9f, 0x1004c327f\nmov     rsi, r14                                                       ; +0xa2, 0x1004c3282\ncall    qword ptr [rax+0B8h]                                           ; +0xa5, 0x1004c3285\nmovss   xmm0, cs:dword_100814FEC                                       ; +0xab, 0x1004c328b\nmovss   xmm1, cs:dword_100815038                                       ; +0xb3, 0x1004c3293\nmovss   xmm2, cs:dword_100815004                                       ; +0xbb, 0x1004c329b\nxor     edi, edi                                                       ; +0xc3, 0x1004c32a3\ncall    CCCircleWave__create_1                                         ; +0xc5, 0x1004c32a5\nmov     r15, rax                                                       ; +0xca, 0x1004c32aa\ncmp     r13d, 5                                                        ; +0xcd, 0x1004c32ad\nmov     eax, 0FFFFFF00h                                                ; +0xd1, 0x1004c32b1\nmov     ecx, 0FFFFh                                                    ; +0xd6, 0x1004c32b6\ncmovz   ecx, eax                                                       ; +0xdb, 0x1004c32bb\nmov     [r15+154h], cx                                                 ; +0xde, 0x1004c32be\nshr     ecx, 10h                                                       ; +0xe6, 0x1004c32c6\nmov     [r15+156h], cl                                                 ; +0xe9, 0x1004c32c9\nmov     rax, [r15]                                                     ; +0xf0, 0x1004c32d0\nmov     rdi, r15                                                       ; +0xf3, 0x1004c32d3\nmov     rsi, r14                                                       ; +0xf6, 0x1004c32d6\ncall    qword ptr [rax+0B8h]                                           ; +0xf9, 0x1004c32d9\nmov     rdi, [rbx+240h]                                                ; +0xff, 0x1004c32df\nmov     rax, [rdi]                                                     ; +0x106, 0x1004c32e6\nmov     rsi, r15                                                       ; +0x109, 0x1004c32e9\nmov     edx, 9                                                         ; +0x10c, 0x1004c32ec\ncall    qword ptr [rax+1C0h]                                           ; +0x111, 0x1004c32f1\nmov     rdi, rbx                                                       ; +0x117, 0x1004c32f7\ncall    EndLevelLayer__playEndEffect                                   ; +0x11a, 0x1004c32fa\nadd     rsp, 18h                                                       ; +0x11f, 0x1004c32ff\npop     rbx                                                            ; +0x123, 0x1004c3303\npop     r12                                                            ; +0x124, 0x1004c3304\npop     r13                                                            ; +0x126, 0x1004c3306\npop     r14                                                            ; +0x128, 0x1004c3308\npop     r15                                                            ; +0x12a, 0x1004c330a\npop     rbp                                                            ; +0x12c, 0x1004c330c\nretn                                                                   ; +0x12d, 0x1004c330d", "xrefs": ["EndLevelLayer::playStarEffect @ 0x1004c2741"], "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"}