{"type": "func", "start": 5458744, "end": 5459026, "name": "EndLevelLayer::showLayer", "pseudocode": "// \n// EndLevelLayer::showLayer from 0x534b38 to 0x534c52 (282 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:06 +0000\n// \n\ncocos2d::CCDirector *__fastcall EndLevelLayer::showLayer(cocos2d::CCNode **this, int a2)\n{\n  GameManager *v4; // r0\n  const cocos2d::CCPoint *v5; // r2\n  char *v6; // r1\n  cocos2d::CCDirector *v7; // r0\n  cocos2d::CCDelayTime *v8; // r1\n  float v9; // s16\n  cocos2d::CCEaseBounceOut *v10; // r0\n  cocos2d::CCActionInterval *v11; // r1\n  cocos2d::CCSequence *v12; // r6\n  cocos2d::CCFiniteTimeAction *v13; // r0\n  int v14; // r3\n  cocos2d::CCAction *v15; // r0\n  unsigned __int8 v16; // r2\n  cocos2d::CCAction *v17; // r0\n  cocos2d::CCArray *v18; // r0\n\n  v4 = (GameManager *)GameManager::sharedState((GameManager *)this);\n  if ( GameManager::getGameVariable(v4, \"0168\") )\n    a2 = 1;\n  cocos2d::CCNode::stopAllActions(*(this + 116));\n  (*((void (__fastcall **)(cocos2d::CCNode **))*this + 168))(this);\n  v6 = (char *)(this + 110);\n  if ( a2 )\n  {\n    (*(void (__fastcall **)(_DWORD, char *))(*(_DWORD *)*(this + 116) + 92))(*(this + 116), v6);\n    (*((void (__fastcall **)(cocos2d::CCNode **, int))*this + 146))(this, 100);\n    (*((void (__fastcall **)(cocos2d::CCNode **))*this + 170))(this);\n    EndLevelLayer::playStarEffect((cocos2d::CCDirector *)this, nullptr);\n    EndLevelLayer::playCoinEffect((EndLevelLayer *)this, 0.0);\n    EndLevelLayer::playCurrencyEffect((cocos2d::CCDirector *)this, nullptr);\n    v7 = (cocos2d::CCDirector *)this;\n    v8 = nullptr;\n  }\n  else\n  {\n    v9 = 0.7;\n    v10 = (cocos2d::CCEaseBounceOut *)cocos2d::CCMoveTo::create((cocos2d::CCMoveTo *)0x3F800000, *(float *)&v6, v5);\n    v12 = (cocos2d::CCSequence *)cocos2d::CCEaseBounceOut::create(v10, v11);\n    v13 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, 680, 1);\n    v15 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v12, v13, 0, v14, 680, 1);\n    cocos2d::CCNode::runAction(*(this + 116), v15);\n    (*((void (__fastcall **)(cocos2d::CCNode **, _DWORD))*this + 146))(this, 0);\n    v17 = (cocos2d::CCAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)0x3F800000, COERCE_FLOAT(100), v16);\n    cocos2d::CCNode::runAction((cocos2d::CCNode *)this, v17);\n    EndLevelLayer::playCoinEffect((EndLevelLayer *)this, 0.7);\n    v18 = *(this + 124);\n    if ( v18 )\n      v9 = (float)((float)(unsigned int)cocos2d::CCArray::count(v18) * 0.35) + 0.7;\n    EndLevelLayer::playStarEffect((cocos2d::CCDirector *)this, (cocos2d::CCDelayTime *)LODWORD(v9));\n    EndLevelLayer::playCurrencyEffect((cocos2d::CCDirector *)this, (cocos2d::CCDelayTime *)LODWORD(v9));\n    v8 = (cocos2d::CCDelayTime *)LODWORD(v9);\n    v7 = (cocos2d::CCDirector *)this;\n  }\n  return EndLevelLayer::playDiamondEffect(v7, v8);\n}", "assembly": "; \n; EndLevelLayer::showLayer from 0x534b38 to 0x534c52 (282 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:06 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x534b38\nMOV             R4, R0                                                 ; +0x2, 0x534b3a\nVPUSH           {D8}                                                   ; +0x4, 0x534b3c\nMOV             R5, R1                                                 ; +0x8, 0x534b40\nSUB             SP, SP, #8                                             ; +0xa, 0x534b42\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0xc, 0x534b44\nLDR             R1, =(a0168 - 0x534B4E); \"0168\"                        ; +0x10, 0x534b48\nADD             R1, PC; \"0168\"                                         ; +0x12, 0x534b4a\nBL              _ZN11GameManager15getGameVariableEPKc; GameManager::getGameVariable(char const*) ; +0x14, 0x534b4c\nCMP             R0, #0                                                 ; +0x18, 0x534b50\nLDR.W           R0, [R4,#0x1D0]; this                                  ; +0x1a, 0x534b52\nIT NE                                                                  ; +0x1e, 0x534b56\nMOVNE           R5, #1                                                 ; +0x20, 0x534b58\nBL              _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x22, 0x534b5a\nLDR             R3, [R4]                                               ; +0x26, 0x534b5e\nMOV             R0, R4                                                 ; +0x28, 0x534b60\nLDR.W           R3, [R3,#0x2A0]                                        ; +0x2a, 0x534b62\nBLX             R3                                                     ; +0x2e, 0x534b66\nADD.W           R1, R4, #0x1B8; float                                  ; +0x30, 0x534b68\nCBZ             R5, loc_534BAC                                         ; +0x34, 0x534b6c\nLDR.W           R0, [R4,#0x1D0]                                        ; +0x36, 0x534b6e\nLDR             R3, [R0]                                               ; +0x3a, 0x534b72\nLDR             R3, [R3,#0x5C]                                         ; +0x3c, 0x534b74\nBLX             R3                                                     ; +0x3e, 0x534b76\nLDR             R3, [R4]                                               ; +0x40, 0x534b78\nMOVS            R1, #0x64 ; 'd'                                        ; +0x42, 0x534b7a\nMOV             R0, R4                                                 ; +0x44, 0x534b7c\nLDR.W           R3, [R3,#0x248]                                        ; +0x46, 0x534b7e\nBLX             R3                                                     ; +0x4a, 0x534b82\nLDR             R3, [R4]                                               ; +0x4c, 0x534b84\nMOV             R0, R4                                                 ; +0x4e, 0x534b86\nLDR.W           R3, [R3,#0x2A8]                                        ; +0x50, 0x534b88\nBLX             R3                                                     ; +0x54, 0x534b8c\nMOV             R0, R4; this                                           ; +0x56, 0x534b8e\nMOVS            R1, #0; float                                          ; +0x58, 0x534b90\nBL              _ZN13EndLevelLayer14playStarEffectEf; EndLevelLayer::playStarEffect(float) ; +0x5a, 0x534b92\nMOV             R0, R4; this                                           ; +0x5e, 0x534b96\nMOVS            R1, #0; float                                          ; +0x60, 0x534b98\nBL              _ZN13EndLevelLayer14playCoinEffectEf; EndLevelLayer::playCoinEffect(float) ; +0x62, 0x534b9a\nMOV             R0, R4; this                                           ; +0x66, 0x534b9e\nMOVS            R1, #0; float                                          ; +0x68, 0x534ba0\nBL              _ZN13EndLevelLayer18playCurrencyEffectEf; EndLevelLayer::playCurrencyEffect(float) ; +0x6a, 0x534ba2\nMOV             R0, R4                                                 ; +0x6e, 0x534ba6\nMOVS            R1, #0                                                 ; +0x70, 0x534ba8\nB               loc_534C44                                             ; +0x72, 0x534baa\nMOV.W           R0, #0x3F800000; this                                  ; +0x74, 0x534bac\nVLDR            S16, =0.7                                              ; +0x78, 0x534bb0\nBL              _ZN7cocos2d8CCMoveTo6createEfRKNS_7CCPointE; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const&) ; +0x7c, 0x534bb4\nBL              _ZN7cocos2d15CCEaseBounceOut6createEPNS_16CCActionIntervalE; cocos2d::CCEaseBounceOut::create(cocos2d::CCActionInterval *) ; +0x80, 0x534bb8\nLDR             R3, =(unk_BECE78 - 0x534BC2)                           ; +0x84, 0x534bbc\nADD             R3, PC; unk_BECE78                                     ; +0x86, 0x534bbe\nMOV             R6, R0                                                 ; +0x88, 0x534bc0\nLDM.W           R3, {R0,R1}                                            ; +0x8a, 0x534bc2\nSTMEA.W         SP, {R0,R1}                                            ; +0x8e, 0x534bc6\nMOV             R0, R4                                                 ; +0x92, 0x534bca\nLDMFD.W         SP, {R1,R2}                                            ; +0x94, 0x534bcc\nBL              _ZN7cocos2d10CCCallFunc6createEPNS_8CCObjectEMS1_FvvE; cocos2d::CCCallFunc::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(void)) ; +0x98, 0x534bd0\nMOV             R2, R5                                                 ; +0x9c, 0x534bd4\nMOV             R1, R0; cocos2d::CCFiniteTimeAction *                  ; +0x9e, 0x534bd6\nMOV             R0, R6; this                                           ; +0xa0, 0x534bd8\nBL              _ZN7cocos2d10CCSequence6createEPNS_18CCFiniteTimeActionEz; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0xa2, 0x534bda\nMOV             R1, R0; cocos2d::CCAction *                            ; +0xa6, 0x534bde\nLDR.W           R0, [R4,#0x1D0]; this                                  ; +0xa8, 0x534be0\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xac, 0x534be4\nLDR             R3, [R4]                                               ; +0xb0, 0x534be8\nMOV             R0, R4                                                 ; +0xb2, 0x534bea\nMOV             R1, R5                                                 ; +0xb4, 0x534bec\nLDR.W           R3, [R3,#0x248]                                        ; +0xb6, 0x534bee\nBLX             R3                                                     ; +0xba, 0x534bf2\nMOVS            R1, #0x64 ; 'd'; float                                 ; +0xbc, 0x534bf4\nMOV.W           R0, #0x3F800000; this                                  ; +0xbe, 0x534bf6\nBL              _ZN7cocos2d8CCFadeTo6createEfh; cocos2d::CCFadeTo::create(float,uchar) ; +0xc2, 0x534bfa\nMOV             R1, R0; cocos2d::CCAction *                            ; +0xc6, 0x534bfe\nMOV             R0, R4; this                                           ; +0xc8, 0x534c00\nBL              _ZN7cocos2d6CCNode9runActionEPNS_8CCActionE; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xca, 0x534c02\nMOV             R0, R4; this                                           ; +0xce, 0x534c06\nVMOV            R1, S16; float                                         ; +0xd0, 0x534c08\nBL              _ZN13EndLevelLayer14playCoinEffectEf; EndLevelLayer::playCoinEffect(float) ; +0xd4, 0x534c0c\nLDR.W           R0, [R4,#0x1F0]; this                                  ; +0xd8, 0x534c10\nCBZ             R0, loc_534C2A                                         ; +0xdc, 0x534c14\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xde, 0x534c16\nVMOV            S15, R0                                                ; +0xe2, 0x534c1a\nVCVT.F32.U32    S14, S15                                               ; +0xe6, 0x534c1e\nVLDR            S15, =0.35                                             ; +0xea, 0x534c22\nVMLA.F32        S16, S14, S15                                          ; +0xee, 0x534c26\nMOV             R0, R4; this                                           ; +0xf2, 0x534c2a\nVMOV            R1, S16; float                                         ; +0xf4, 0x534c2c\nBL              _ZN13EndLevelLayer14playStarEffectEf; EndLevelLayer::playStarEffect(float) ; +0xf8, 0x534c30\nMOV             R0, R4; this                                           ; +0xfc, 0x534c34\nVMOV            R1, S16; float                                         ; +0xfe, 0x534c36\nBL              _ZN13EndLevelLayer18playCurrencyEffectEf; EndLevelLayer::playCurrencyEffect(float) ; +0x102, 0x534c3a\nVMOV            R1, S16; float                                         ; +0x106, 0x534c3e\nMOV             R0, R4; this                                           ; +0x10a, 0x534c42\nADD             SP, SP, #8                                             ; +0x10c, 0x534c44\nVPOP            {D8}                                                   ; +0x10e, 0x534c46\nPOP.W           {R4-R6,LR}                                             ; +0x112, 0x534c4a\nB.W             _ZN13EndLevelLayer17playDiamondEffectEf; EndLevelLayer::playDiamondEffect(float) ; +0x116, 0x534c4e", "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"}