{"type": "func", "start": 4360944, "end": 4361110, "name": "EndLevelLayer::diamondEnterFinished", "pseudocode": "// \n// EndLevelLayer::diamondEnterFinished from 0x428af0 to 0x428b96 (166 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::diamondEnterFinished(EndLevelLayer *a1)\n{\n  bool v2; // r2\n  cocos2d::CCNode *v3; // r4\n  CCCircleWave *v4; // r0\n  cocos2d::CCNode *v5; // r4\n  _BYTE v6[8]; // [sp+4h] [bp+0h] BYREF\n  cocos2d::CCPoint v7; // [sp+Ch] [bp+8h] BYREF\n\n  cocos2d::CCPoint::CCPoint(&v7, 0.0, 8.0);\n  cocos2d::CCPoint::operator+(v6, &a1->m_diamondsPosition, &v7);\n  v3 = (cocos2d::CCNode *)cocos2d::CCParticleSystemQuad::create(\n                            (cocos2d::CCParticleSystemQuad *)\"starEffect.plist\",\n                            nullptr,\n                            v2);\n  ((void (__fastcall *)(cocos2d::CCNode *, int))v3->__vftable[1].onEnter)(v3, 1);\n  a1->m_mainLayer->addChild_0(a1->m_mainLayer, v3, 9);\n  v3->setPosition(v3, (const cocos2d::CCPoint *)v6);\n  v4 = CCCircleWave::create(10.0, 90.0, 0.4, 0);\n  v4->m_color.r = -1;\n  v5 = v4;\n  v4->m_color.g = -1;\n  v4->m_color.b = -1;\n  v4->setPosition(v4, (const cocos2d::CCPoint *)v6);\n  a1->m_mainLayer->addChild_0(a1->m_mainLayer, v5, 9);\n  EndLevelLayer::playEndEffect(a1);\n}", "assembly": "; \n; EndLevelLayer::diamondEnterFinished from 0x428af0 to 0x428b96 (166 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\nPUSH            {R4-R7,LR}                                             ; +0x0, 0x428af0\nSUB             SP, SP, #0x1C; bool                                    ; +0x2, 0x428af2\nLDR             R5, =(__stack_chk_guard_ptr - 0x428B00)                ; +0x4, 0x428af4\nADD             R4, SP, #0x1C+var_10                                   ; +0x6, 0x428af6\nADD             R7, SP, #4                                             ; +0x8, 0x428af8\nMOV             R6, R0                                                 ; +0xa, 0x428afa\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x428afc\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x428afe\nMOV             R0, R4; this                                           ; +0x10, 0x428b00\nMOVS            R1, #0; float                                          ; +0x12, 0x428b02\nMOV.W           R2, #0x41000000; float                                 ; +0x14, 0x428b04\nLDR             R3, [R5]                                               ; +0x18, 0x428b08\nSTR             R3, [SP,#0x1C+var_8]                                   ; +0x1a, 0x428b0a\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1c, 0x428b0c\nMOV             R2, R4                                                 ; +0x20, 0x428b10\nMOV             R0, R7                                                 ; +0x22, 0x428b12\nADD.W           R1, R6, #0x204                                         ; +0x24, 0x428b14\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x28, 0x428b18\nLDR             R0, =(aStareffectPlis - 0x428B24); \"starEffect.plist\"  ; +0x2c, 0x428b1c\nMOVS            R1, #0; char *                                         ; +0x2e, 0x428b1e\nADD             R0, PC; \"starEffect.plist\"                             ; +0x30, 0x428b20\nBL              _ZN7cocos2d20CCParticleSystemQuad6createEPKcb; cocos2d::CCParticleSystemQuad::create(char const*,bool) ; +0x32, 0x428b22\nMOVS            R1, #1                                                 ; +0x36, 0x428b26\nLDR             R3, [R0]                                               ; +0x38, 0x428b28\nMOV             R4, R0                                                 ; +0x3a, 0x428b2a\nLDR.W           R3, [R3,#0x310]                                        ; +0x3c, 0x428b2c\nBLX             R3                                                     ; +0x40, 0x428b30\nLDR.W           R0, [R6,#0x1D0]                                        ; +0x42, 0x428b32\nMOV             R1, R4                                                 ; +0x46, 0x428b36\nMOVS            R2, #9                                                 ; +0x48, 0x428b38\nLDR             R3, [R0]                                               ; +0x4a, 0x428b3a\nLDR.W           R3, [R3,#0xE0]                                         ; +0x4c, 0x428b3c\nBLX             R3                                                     ; +0x50, 0x428b40\nLDR             R3, [R4]                                               ; +0x52, 0x428b42\nMOV             R0, R4                                                 ; +0x54, 0x428b44\nMOV             R1, R7                                                 ; +0x56, 0x428b46\nLDR             R3, [R3,#0x5C]                                         ; +0x58, 0x428b48\nBLX             R3                                                     ; +0x5a, 0x428b4a\nLDR             R2, flt_428B98; float                                  ; +0x5c, 0x428b4c\nLDR             R1, flt_428B9C; float                                  ; +0x5e, 0x428b4e\nMOVS            R3, #0; float                                          ; +0x60, 0x428b50\nLDR             R0, =0x41200000; this                                  ; +0x62, 0x428b52\nBL              _ZN12CCCircleWave6createEfffb; CCCircleWave::create(float,float,float,bool) ; +0x64, 0x428b54\nMOVS            R3, #0xFF                                              ; +0x68, 0x428b58\nMOV             R1, R7                                                 ; +0x6a, 0x428b5a\nSTRB.W          R3, [R0,#0x118]                                        ; +0x6c, 0x428b5c\nMOV             R4, R0                                                 ; +0x70, 0x428b60\nSTRB.W          R3, [R0,#0x119]                                        ; +0x72, 0x428b62\nSTRB.W          R3, [R0,#0x11A]                                        ; +0x76, 0x428b66\nLDR             R3, [R0]                                               ; +0x7a, 0x428b6a\nLDR             R3, [R3,#0x5C]                                         ; +0x7c, 0x428b6c\nBLX             R3                                                     ; +0x7e, 0x428b6e\nLDR.W           R0, [R6,#0x1D0]                                        ; +0x80, 0x428b70\nMOVS            R2, #9                                                 ; +0x84, 0x428b74\nMOV             R1, R4                                                 ; +0x86, 0x428b76\nLDR             R3, [R0]                                               ; +0x88, 0x428b78\nLDR.W           R3, [R3,#0xE0]                                         ; +0x8a, 0x428b7a\nBLX             R3                                                     ; +0x8e, 0x428b7e\nMOV             R0, R6; this                                           ; +0x90, 0x428b80\nBL              _ZN13EndLevelLayer13playEndEffectEv; EndLevelLayer::playEndEffect(void) ; +0x92, 0x428b82\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x96, 0x428b86\nLDR             R3, [R5]                                               ; +0x98, 0x428b88\nCMP             R2, R3                                                 ; +0x9a, 0x428b8a\nBEQ             loc_428B92                                             ; +0x9c, 0x428b8c\nBLX             __stack_chk_fail                                       ; +0x9e, 0x428b8e\nADD             SP, SP, #0x1C                                          ; +0xa2, 0x428b92\nPOP             {R4-R7,PC}                                             ; +0xa4, 0x428b94", "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"}