{"type": "func", "start": 4360532, "end": 4360734, "name": "EndLevelLayer::starEnterFinished", "pseudocode": "// \n// EndLevelLayer::starEnterFinished from 0x428954 to 0x428a1e (202 bytes)\n// \n// 0 xrefs:\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 EndLevelLayer::starEnterFinished(EndLevelLayer *a1)\n{\n  PlayLayer *m_playLayer; // r2\n  int m_levelLength; // r8\n  bool v4; // r2\n  cocos2d::CCNode *v5; // r4\n  CCCircleWave *v6; // r0\n  char v7; // r3\n  char v8; // r2\n  cocos2d::CCNode *v9; // r4\n  CCCircleWave_vtbl *v10; // r3\n  cocos2d::CCPoint v11; // [sp+4h] [bp-14h] BYREF\n  cocos2d::CCPoint v12; // [sp+Ch] [bp-Ch] BYREF\n\n  m_playLayer = a1->m_playLayer;\n  if ( m_playLayer )\n  {\n    m_levelLength = m_playLayer->m_level->GJBaseGameLayer::m_levelLength;\n    cocos2d::CCPoint::CCPoint(&v12, 0.0, 8.0);\n    cocos2d::CCPoint::operator+(&v11, &a1->m_starsPosition, &v12);\n    v5 = (cocos2d::CCNode *)cocos2d::CCParticleSystemQuad::create(\n                              (cocos2d::CCParticleSystemQuad *)\"starEffect.plist\",\n                              nullptr,\n                              v4);\n    ((void (__fastcall *)(cocos2d::CCNode *, int))v5->__vftable[1].onEnter)(v5, 1);\n    a1->m_mainLayer->addChild_0(a1->m_mainLayer, v5, 9);\n    v5->setPosition(v5, &v11);\n    v6 = CCCircleWave::create(10.0, 90.0, 0.4, 0);\n    if ( m_levelLength == 5 )\n      v7 = -1;\n    else\n      v7 = 0;\n    if ( m_levelLength == 5 )\n      v8 = 0;\n    else\n      v8 = -1;\n    v6->m_color.b = v7;\n    v9 = v6;\n    v10 = v6->__vftable;\n    v6->m_color.r = v8;\n    v6->m_color.g = -1;\n    v10->setPosition(v6, &v11);\n    a1->m_mainLayer->addChild_0(a1->m_mainLayer, v9, 9);\n    EndLevelLayer::playEndEffect(a1);\n  }\n}", "assembly": "; \n; EndLevelLayer::starEnterFinished from 0x428954 to 0x428a1e (202 bytes)\n; \n; 0 xrefs:\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x42895E)                ; +0x0, 0x428954\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x428956\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x42895a\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x42895c\nSUB             SP, SP, #0x18; bool                                    ; +0xa, 0x42895e\nMOV             R6, R0                                                 ; +0xc, 0x428960\nLDR             R2, [R3]                                               ; +0xe, 0x428962\nMOV             R5, R3                                                 ; +0x10, 0x428964\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x12, 0x428966\nLDR.W           R2, [R0,#0x1E0]                                        ; +0x14, 0x428968\nCMP             R2, #0                                                 ; +0x18, 0x42896c\nBEQ             loc_428A0C                                             ; +0x1a, 0x42896e\nLDR.W           R3, [R2,#0x608]                                        ; +0x1c, 0x428970\nADD             R4, SP, #0x18+var_C                                    ; +0x20, 0x428974\nADD             R7, SP, #0x18+var_14                                   ; +0x22, 0x428976\nMOVS            R1, #0; float                                          ; +0x24, 0x428978\nMOV             R0, R4; this                                           ; +0x26, 0x42897a\nMOV.W           R2, #0x41000000; float                                 ; +0x28, 0x42897c\nLDR.W           R8, [R3,#0x21C]                                        ; +0x2c, 0x428980\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x30, 0x428984\nMOV             R2, R4                                                 ; +0x34, 0x428988\nMOV             R0, R7                                                 ; +0x36, 0x42898a\nADD.W           R1, R6, #0x1F4                                         ; +0x38, 0x42898c\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x3c, 0x428990\nLDR             R0, =(aStareffectPlis - 0x42899C); \"starEffect.plist\"  ; +0x40, 0x428994\nMOVS            R1, #0; char *                                         ; +0x42, 0x428996\nADD             R0, PC; \"starEffect.plist\"                             ; +0x44, 0x428998\nBL              _ZN7cocos2d20CCParticleSystemQuad6createEPKcb; cocos2d::CCParticleSystemQuad::create(char const*,bool) ; +0x46, 0x42899a\nMOVS            R1, #1                                                 ; +0x4a, 0x42899e\nLDR             R3, [R0]                                               ; +0x4c, 0x4289a0\nMOV             R4, R0                                                 ; +0x4e, 0x4289a2\nLDR.W           R3, [R3,#0x310]                                        ; +0x50, 0x4289a4\nBLX             R3                                                     ; +0x54, 0x4289a8\nLDR.W           R0, [R6,#0x1D0]                                        ; +0x56, 0x4289aa\nMOV             R1, R4                                                 ; +0x5a, 0x4289ae\nMOVS            R2, #9                                                 ; +0x5c, 0x4289b0\nLDR             R3, [R0]                                               ; +0x5e, 0x4289b2\nLDR.W           R3, [R3,#0xE0]                                         ; +0x60, 0x4289b4\nBLX             R3                                                     ; +0x64, 0x4289b8\nLDR             R3, [R4]                                               ; +0x66, 0x4289ba\nMOV             R0, R4                                                 ; +0x68, 0x4289bc\nMOV             R1, R7                                                 ; +0x6a, 0x4289be\nLDR             R3, [R3,#0x5C]                                         ; +0x6c, 0x4289c0\nBLX             R3                                                     ; +0x6e, 0x4289c2\nLDR             R2, flt_428A20; float                                  ; +0x70, 0x4289c4\nMOVS            R3, #0; float                                          ; +0x72, 0x4289c6\nLDR             R1, flt_428A24; float                                  ; +0x74, 0x4289c8\nLDR             R0, =0x41200000; this                                  ; +0x76, 0x4289ca\nBL              _ZN12CCCircleWave6createEfffb; CCCircleWave::create(float,float,float,bool) ; +0x78, 0x4289cc\nCMP.W           R8, #5                                                 ; +0x7c, 0x4289d0\nMOV             R1, R7                                                 ; +0x80, 0x4289d4\nITETE EQ                                                               ; +0x82, 0x4289d6\nMOVEQ           R3, #0xFF                                              ; +0x84, 0x4289d8\nMOVNE           R3, #0                                                 ; +0x86, 0x4289da\nMOVEQ           R2, #0                                                 ; +0x88, 0x4289dc\nMOVNE           R2, #0xFF                                              ; +0x8a, 0x4289de\nSTRB.W          R3, [R0,#0x11A]                                        ; +0x8c, 0x4289e0\nMOV             R4, R0                                                 ; +0x90, 0x4289e4\nLDR             R3, [R0]                                               ; +0x92, 0x4289e6\nSTRB.W          R2, [R0,#0x118]                                        ; +0x94, 0x4289e8\nMOVS            R2, #0xFF                                              ; +0x98, 0x4289ec\nSTRB.W          R2, [R0,#0x119]                                        ; +0x9a, 0x4289ee\nLDR             R3, [R3,#0x5C]                                         ; +0x9e, 0x4289f2\nBLX             R3                                                     ; +0xa0, 0x4289f4\nLDR.W           R0, [R6,#0x1D0]                                        ; +0xa2, 0x4289f6\nMOV             R1, R4                                                 ; +0xa6, 0x4289fa\nMOVS            R2, #9                                                 ; +0xa8, 0x4289fc\nLDR             R3, [R0]                                               ; +0xaa, 0x4289fe\nLDR.W           R3, [R3,#0xE0]                                         ; +0xac, 0x428a00\nBLX             R3                                                     ; +0xb0, 0x428a04\nMOV             R0, R6; this                                           ; +0xb2, 0x428a06\nBL              _ZN13EndLevelLayer13playEndEffectEv; EndLevelLayer::playEndEffect(void) ; +0xb4, 0x428a08\nLDR             R2, [SP,#0x18+var_4]                                   ; +0xb8, 0x428a0c\nLDR             R3, [R5]                                               ; +0xba, 0x428a0e\nCMP             R2, R3                                                 ; +0xbc, 0x428a10\nBEQ             loc_428A18                                             ; +0xbe, 0x428a12\nBLX             __stack_chk_fail                                       ; +0xc0, 0x428a14\nADD             SP, SP, #0x18                                          ; +0xc4, 0x428a18\nPOP.W           {R4-R8,PC}                                             ; +0xc6, 0x428a1a", "xrefs": [], "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"}