{"type": "func", "start": 5462520, "end": 5462686, "name": "EndLevelLayer::diamondEnterFinished", "pseudocode": "// \n// EndLevelLayer::diamondEnterFinished from 0x5359f8 to 0x535a9e (166 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:52:07 +0000\n// \n\nunsigned __int8 *__fastcall EndLevelLayer::diamondEnterFinished(EndLevelLayer *this)\n{\n  bool v2; // r2\n  int v3; // r4\n  CCCircleWave *v4; // r0\n  CCCircleWave *v5; // r4\n  bool v7; // [sp+0h] [bp-4h]\n  _BYTE v8[8]; // [sp+4h] [bp+0h] BYREF\n  _BYTE v9[8]; // [sp+Ch] [bp+8h] BYREF\n\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 0.0, 8.0);\n  cocos2d::CCPoint::operator+(v8, (char *)this + 516, v9);\n  v3 = cocos2d::CCParticleSystemQuad::create((cocos2d::CCParticleSystemQuad *)\"starEffect.plist\", nullptr, v2);\n  (*(void (__fastcall **)(int, int))(*(_DWORD *)v3 + 792))(v3, 1);\n  (*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 116) + 232))(*((_DWORD *)this + 116), v3, 9);\n  (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v3 + 92))(v3, v8);\n  v4 = CCCircleWave::create((CCCircleWave *)0x41200000, 1119092736, (cocos2d::CCActionTween *)0x3ECCCCCD, 0.0, v7);\n  *((_BYTE *)v4 + 280) = -1;\n  v5 = v4;\n  *((_BYTE *)v4 + 281) = -1;\n  *((_BYTE *)v4 + 282) = -1;\n  (*(void (__fastcall **)(CCCircleWave *, _BYTE *))(*(_DWORD *)v4 + 92))(v4, v8);\n  (*(void (__fastcall **)(_DWORD, CCCircleWave *, int))(**((_DWORD **)this + 116) + 232))(\n    *((_DWORD *)this + 116),\n    v5,\n    9);\n  return EndLevelLayer::playEndEffect((unsigned __int8 *)this);\n}", "assembly": "; \n; EndLevelLayer::diamondEnterFinished from 0x5359f8 to 0x535a9e (166 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:52:07 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x5359f8\nSUB             SP, SP, #0x1C; bool                                    ; +0x2, 0x5359fa\nLDR             R5, =(__stack_chk_guard_ptr - 0x535A08)                ; +0x4, 0x5359fc\nADD             R4, SP, #0x1C+var_10                                   ; +0x6, 0x5359fe\nADD             R7, SP, #4                                             ; +0x8, 0x535a00\nMOV             R6, R0                                                 ; +0xa, 0x535a02\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x535a04\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x535a06\nMOV             R0, R4; this                                           ; +0x10, 0x535a08\nMOVS            R1, #0; float                                          ; +0x12, 0x535a0a\nMOV.W           R2, #0x41000000; float                                 ; +0x14, 0x535a0c\nLDR             R3, [R5]                                               ; +0x18, 0x535a10\nSTR             R3, [SP,#0x1C+var_8]                                   ; +0x1a, 0x535a12\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1c, 0x535a14\nMOV             R2, R4                                                 ; +0x20, 0x535a18\nMOV             R0, R7                                                 ; +0x22, 0x535a1a\nADD.W           R1, R6, #0x204                                         ; +0x24, 0x535a1c\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x28, 0x535a20\nLDR             R0, =(aStareffectPlis - 0x535A2C); \"starEffect.plist\"  ; +0x2c, 0x535a24\nMOVS            R1, #0; char *                                         ; +0x2e, 0x535a26\nADD             R0, PC; \"starEffect.plist\"                             ; +0x30, 0x535a28\nBL              _ZN7cocos2d20CCParticleSystemQuad6createEPKcb; cocos2d::CCParticleSystemQuad::create(char const*,bool) ; +0x32, 0x535a2a\nMOVS            R1, #1                                                 ; +0x36, 0x535a2e\nLDR             R3, [R0]                                               ; +0x38, 0x535a30\nMOV             R4, R0                                                 ; +0x3a, 0x535a32\nLDR.W           R3, [R3,#0x318]                                        ; +0x3c, 0x535a34\nBLX             R3                                                     ; +0x40, 0x535a38\nLDR.W           R0, [R6,#0x1D0]                                        ; +0x42, 0x535a3a\nMOV             R1, R4                                                 ; +0x46, 0x535a3e\nMOVS            R2, #9                                                 ; +0x48, 0x535a40\nLDR             R3, [R0]                                               ; +0x4a, 0x535a42\nLDR.W           R3, [R3,#0xE8]                                         ; +0x4c, 0x535a44\nBLX             R3                                                     ; +0x50, 0x535a48\nLDR             R3, [R4]                                               ; +0x52, 0x535a4a\nMOV             R0, R4                                                 ; +0x54, 0x535a4c\nMOV             R1, R7                                                 ; +0x56, 0x535a4e\nLDR             R3, [R3,#0x5C]                                         ; +0x58, 0x535a50\nBLX             R3                                                     ; +0x5a, 0x535a52\nLDR             R2, flt_535AA0; float                                  ; +0x5c, 0x535a54\nLDR             R1, flt_535AA4; float                                  ; +0x5e, 0x535a56\nMOVS            R3, #0; float                                          ; +0x60, 0x535a58\nLDR             R0, =0x41200000; this                                  ; +0x62, 0x535a5a\nBL              _ZN12CCCircleWave6createEfffb; CCCircleWave::create(float,float,float,bool) ; +0x64, 0x535a5c\nMOVS            R3, #0xFF                                              ; +0x68, 0x535a60\nMOV             R1, R7                                                 ; +0x6a, 0x535a62\nSTRB.W          R3, [R0,#0x118]                                        ; +0x6c, 0x535a64\nMOV             R4, R0                                                 ; +0x70, 0x535a68\nSTRB.W          R3, [R0,#0x119]                                        ; +0x72, 0x535a6a\nSTRB.W          R3, [R0,#0x11A]                                        ; +0x76, 0x535a6e\nLDR             R3, [R0]                                               ; +0x7a, 0x535a72\nLDR             R3, [R3,#0x5C]                                         ; +0x7c, 0x535a74\nBLX             R3                                                     ; +0x7e, 0x535a76\nLDR.W           R0, [R6,#0x1D0]                                        ; +0x80, 0x535a78\nMOVS            R2, #9                                                 ; +0x84, 0x535a7c\nMOV             R1, R4                                                 ; +0x86, 0x535a7e\nLDR             R3, [R0]                                               ; +0x88, 0x535a80\nLDR.W           R3, [R3,#0xE8]                                         ; +0x8a, 0x535a82\nBLX             R3                                                     ; +0x8e, 0x535a86\nMOV             R0, R6; this                                           ; +0x90, 0x535a88\nBL              _ZN13EndLevelLayer13playEndEffectEv; EndLevelLayer::playEndEffect(void) ; +0x92, 0x535a8a\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x96, 0x535a8e\nLDR             R3, [R5]                                               ; +0x98, 0x535a90\nCMP             R2, R3                                                 ; +0x9a, 0x535a92\nBEQ             loc_535A9A                                             ; +0x9c, 0x535a94\nBLX             __stack_chk_fail                                       ; +0x9e, 0x535a96\nADD             SP, SP, #0x1C                                          ; +0xa2, 0x535a9a\nPOP             {R4-R7,PC}                                             ; +0xa4, 0x535a9c", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "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"}