{"type": "func", "start": 5370834400, "end": 5370834722, "name": "EndLevelLayer::starEnterFinished", "pseudocode": "// \n// EndLevelLayer::starEnterFinished from 0x140206de0 to 0x140206f22 (322 bytes)\n// \n// 4 xrefs:\n// > EndLevelLayer::playStarEffect @ 0x140206cab\n// > <???> @ 0x1408a4430\n// > <???> @ 0x1408a4464\n// > <???> @ 0x14091b1dc\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__int64 __fastcall EndLevelLayer::starEnterFinished(__int64 a1)\n{\n  __int64 result; // rax\n  int v3; // edi\n  __int64 v4; // rax\n  struct cocos2d::CCParticleSystemQuad *v5; // rax\n  __int64 v6; // rdx\n  struct cocos2d::CCParticleSystemQuad *v7; // rbx\n  __int64 v8; // rdx\n  __int64 v9; // rcx\n  __int64 v10; // r8\n  cocos2d::CCObject *v11; // rax\n  cocos2d::CCObject *v12; // rbx\n  char v13; // cl\n  __int64 v14; // rax\n  __int16 v15; // [rsp+40h] [rbp+8h] BYREF\n  char v16; // [rsp+48h] [rbp+10h] BYREF\n\n  result = *(_QWORD *)(a1 + 608);\n  if ( result )\n  {\n    v3 = *(_DWORD *)(*(_QWORD *)(result + 2168) + 972LL);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, 0.0, 8.0);\n    cocos2d::CCPoint::operator+(a1 + 640, &v16, v4);\n    v5 = cocos2d::CCParticleSystemQuad::create(\"starEffect.plist\", 0);\n    LOBYTE(v6) = 1;\n    v7 = v5;\n    (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, __int64))(*(_QWORD *)v5 + 1544LL))(v5, v6);\n    (*(void (__fastcall **)(_QWORD, struct cocos2d::CCParticleSystemQuad *, __int64))(**(_QWORD **)(a1 + 576) + 456LL))(\n      *(_QWORD *)(a1 + 576),\n      v7,\n      9);\n    (*(void (__fastcall **)(struct cocos2d::CCParticleSystemQuad *, char *))(*(_QWORD *)v7 + 184LL))(v7, &v16);\n    v11 = CCCircleWave::create(v9, v8, v10, 0, 1);\n    v12 = v11;\n    if ( v3 == 5 )\n    {\n      v15 = -256;\n      v13 = -1;\n    }\n    else\n    {\n      v15 = -1;\n      v13 = 0;\n    }\n    *((_WORD *)v11 + 170) = v15;\n    v14 = *(_QWORD *)v11;\n    *((_BYTE *)v12 + 342) = v13;\n    (*(void (__fastcall **)(cocos2d::CCObject *, char *))(v14 + 184))(v12, &v16);\n    (*(void (__fastcall **)(_QWORD, cocos2d::CCObject *, __int64))(**(_QWORD **)(a1 + 576) + 456LL))(\n      *(_QWORD *)(a1 + 576),\n      v12,\n      9);\n    return EndLevelLayer::playEndEffect(a1);\n  }\n  return result;\n}", "assembly": "; \n; EndLevelLayer::starEnterFinished from 0x140206de0 to 0x140206f22 (322 bytes)\n; \n; 4 xrefs:\n; > EndLevelLayer::playStarEffect @ 0x140206cab\n; > <???> @ 0x1408a4430\n; > <???> @ 0x1408a4464\n; > <???> @ 0x14091b1dc\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; \npush    rsi                                                            ; +0x0, 0x140206de0\nsub     rsp, 30h                                                       ; +0x2, 0x140206de2\nmov     rax, [rcx+260h]                                                ; +0x6, 0x140206de6\nmov     rsi, rcx                                                       ; +0xd, 0x140206ded\ntest    rax, rax                                                       ; +0x10, 0x140206df0\njz      loc_140206F1C                                                  ; +0x13, 0x140206df3\nmov     rax, [rax+878h]                                                ; +0x19, 0x140206df9\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x20, 0x140206e00\nmovss   xmm2, cs:dword_1408354D4                                       ; +0x25, 0x140206e05\nxorps   xmm1, xmm1                                                     ; +0x2d, 0x140206e0d\nmov     [rsp+38h+arg_10], rbx                                          ; +0x30, 0x140206e10\nmov     [rsp+38h+arg_18], rdi                                          ; +0x35, 0x140206e15\nmov     edi, [rax+3CCh]                                                ; +0x3a, 0x140206e1a\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x40, 0x140206e20\nmov     r8, rax                                                        ; +0x46, 0x140206e26\nlea     rcx, [rsi+280h]                                                ; +0x49, 0x140206e29\nlea     rdx, [rsp+38h+arg_8]                                           ; +0x50, 0x140206e30\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0x55, 0x140206e35\nxor     edx, edx                                                       ; +0x5b, 0x140206e3b\nlea     rcx, aStareffectPlis; \"starEffect.plist\"                       ; +0x5d, 0x140206e3d\ncall    cs:?create@CCParticleSystemQuad@cocos2d@@SAPEAV12@PEBD_N@Z; cocos2d::CCParticleSystemQuad::create(char const *,bool) ; +0x64, 0x140206e44\nmov     dl, 1                                                          ; +0x6a, 0x140206e4a\nmov     rbx, rax                                                       ; +0x6c, 0x140206e4c\nmov     rcx, [rax]                                                     ; +0x6f, 0x140206e4f\nmov     r8, [rcx+608h]                                                 ; +0x72, 0x140206e52\nmov     rcx, rax                                                       ; +0x79, 0x140206e59\ncall    r8                                                             ; +0x7c, 0x140206e5c\nmov     rcx, [rsi+240h]                                                ; +0x7f, 0x140206e5f\nmov     r8d, 9                                                         ; +0x86, 0x140206e66\nmov     rdx, [rcx]                                                     ; +0x8c, 0x140206e6c\nmov     r9, [rdx+1C8h]                                                 ; +0x8f, 0x140206e6f\nmov     rdx, rbx                                                       ; +0x96, 0x140206e76\ncall    r9                                                             ; +0x99, 0x140206e79\nmov     rax, [rbx]                                                     ; +0x9c, 0x140206e7c\nlea     rdx, [rsp+38h+arg_8]                                           ; +0x9f, 0x140206e7f\nmov     rcx, rbx                                                       ; +0xa4, 0x140206e84\ncall    qword ptr [rax+0B8h]                                           ; +0xa7, 0x140206e87\nmovss   xmm2, cs:dword_140834EDC                                       ; +0xad, 0x140206e8d\nxor     r9d, r9d                                                       ; +0xb5, 0x140206e95\nmovss   xmm1, cs:flt_140835780                                         ; +0xb8, 0x140206e98\nmovss   xmm0, cs:flt_1408354EC                                         ; +0xc0, 0x140206ea0\nmov     [rsp+38h+var_18], 1                                            ; +0xc8, 0x140206ea8\ncall    CCCircleWave__create                                           ; +0xcd, 0x140206ead\ncmp     edi, 5                                                         ; +0xd2, 0x140206eb2\nmov     rbx, rax                                                       ; +0xd5, 0x140206eb5\nmov     rdi, [rsp+38h+arg_18]                                          ; +0xd8, 0x140206eb8\njnz     short loc_140206ECA                                            ; +0xdd, 0x140206ebd\nmov     [rsp+38h+arg_0], 0FF00h                                        ; +0xdf, 0x140206ebf\nmov     cl, 0FFh                                                       ; +0xe6, 0x140206ec6\njmp     short loc_140206ED3                                            ; +0xe8, 0x140206ec8\nmov     [rsp+38h+arg_0], 0FFFFh                                        ; +0xea, 0x140206eca\nxor     cl, cl                                                         ; +0xf1, 0x140206ed1\nmovzx   eax, [rsp+38h+arg_0]                                           ; +0xf3, 0x140206ed3\nlea     rdx, [rsp+38h+arg_8]                                           ; +0xf8, 0x140206ed8\nmov     [rbx+154h], ax                                                 ; +0xfd, 0x140206edd\nmov     rax, [rbx]                                                     ; +0x104, 0x140206ee4\nmov     [rbx+156h], cl                                                 ; +0x107, 0x140206ee7\nmov     rcx, rbx                                                       ; +0x10d, 0x140206eed\ncall    qword ptr [rax+0B8h]                                           ; +0x110, 0x140206ef0\nmov     rcx, [rsi+240h]                                                ; +0x116, 0x140206ef6\nmov     r8d, 9                                                         ; +0x11d, 0x140206efd\nmov     rdx, rbx                                                       ; +0x123, 0x140206f03\nmov     rax, [rcx]                                                     ; +0x126, 0x140206f06\ncall    qword ptr [rax+1C8h]                                           ; +0x129, 0x140206f09\nmov     rcx, rsi                                                       ; +0x12f, 0x140206f0f\ncall    EndLevelLayer__playEndEffect                                   ; +0x132, 0x140206f12\nmov     rbx, [rsp+38h+arg_10]                                          ; +0x137, 0x140206f17\nadd     rsp, 30h                                                       ; +0x13c, 0x140206f1c\npop     rsi                                                            ; +0x140, 0x140206f20\nretn                                                                   ; +0x141, 0x140206f21", "xrefs": ["EndLevelLayer::playStarEffect @ 0x140206cab", "<???> @ 0x1408a4430", "<???> @ 0x1408a4464", "<???> @ 0x14091b1dc"], "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"}