{"type": "func", "start": 5372727376, "end": 5372727705, "name": "SecretRewardsLayer::onChestType", "pseudocode": "// \n// SecretRewardsLayer::onChestType from 0x1403d5050 to 0x1403d5199 (329 bytes)\n// \n// 2 xrefs:\n// > SecretRewardsLayer::init @ 0x1403d337d\n// > <???> @ 0x1406d7d0c\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 SecretRewardsLayer::onChestType(SecretRewardsLayer *a1, cocos2d::CCObject *a2)\n{\n  float v2; // xmm3_4\n  int v5; // eax\n  __int64 v6; // rcx\n  __int32 v7; // ebx\n  cocos2d::CCDirector *v8; // rax\n  float v9; // xmm0_4\n  const struct cocos2d::CCPoint *v10; // rax\n  struct cocos2d::CCMoveTo *v11; // rax\n  struct cocos2d::CCEaseBounceOut *v12; // rax\n  cocos2d::ccColor3B *v13; // r8\n  cocos2d::CCLayer_vtbl *v14; // rbx\n  __int64 v15; // rax\n  float v16; // xmm0_4\n  const struct cocos2d::CCPoint *v17; // rax\n  struct cocos2d::CCMoveTo *v18; // rax\n  struct cocos2d::CCEaseBounceOut *v19; // rax\n  cocos2d::ccColor3B *v20; // r8\n  float v21; // [rsp+20h] [rbp-8h]\n  float v22; // [rsp+20h] [rbp-8h]\n\n  v5 = a2->getTag(a2);\n  if ( v5 < 6 )\n  {\n    v7 = v5 + 3;\n    if ( a1->m_inMainLayer )\n    {\n      a1->m_inMainLayer = 0;\n      a1->m_rewardType = v7;\n      v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v6);\n      cocos2d::CCDirector::getWinSize(v8);\n      v9 = ((float (__fastcall *)(BoomScrollLayer *, _QWORD))a1->m_mainScrollLayer->setTouchEnabled)(\n             a1->m_mainScrollLayer,\n             0);\n      cocos2d::CCPoint::CCPoint(v9, 0.0);\n      v11 = cocos2d::CCMoveTo::create(0.5, v10);\n      v12 = cocos2d::CCEaseBounceOut::create(v11);\n      cocos2d::CCNode::runAction((CCLightFlash *)a1->m_mainLayer, (cocos2d::CCPoint)v12, v13, v2, v21);\n      SecretRewardsLayer::createSecondaryLayer(a1, v7);\n      v14 = a1->m_secondaryLayer->__vftable;\n      cocos2d::CCPoint::CCPoint(0.5, 0.0);\n      v16 = ((float (__fastcall *)(cocos2d::CCLayer *, __int64))v14->setPosition_0)(a1->m_secondaryLayer, v15);\n      cocos2d::CCPoint::CCPoint(v16, 0.0);\n      v18 = cocos2d::CCMoveTo::create(0.5, v17);\n      v19 = cocos2d::CCEaseBounceOut::create(v18);\n      cocos2d::CCNode::runAction((CCLightFlash *)a1->m_secondaryLayer, (cocos2d::CCPoint)v19, v20, v2, v22);\n      SecretRewardsLayer::updateBackButton(a1);\n    }\n  }\n  else\n  {\n    SecretRewardsLayer::onSpecialItem(a1, a2);\n  }\n}", "assembly": "; \n; SecretRewardsLayer::onChestType from 0x1403d5050 to 0x1403d5199 (329 bytes)\n; \n; 2 xrefs:\n; > SecretRewardsLayer::init @ 0x1403d337d\n; > <???> @ 0x1406d7d0c\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1403d5050\npush    rdi                                                            ; +0x5, 0x1403d5055\nsub     rsp, 20h                                                       ; +0x6, 0x1403d5056\nmov     rax, [rdx]                                                     ; +0xa, 0x1403d505a\nmov     rdi, rcx                                                       ; +0xd, 0x1403d505d\nmov     rcx, rdx                                                       ; +0x10, 0x1403d5060\nmov     rbx, rdx                                                       ; +0x13, 0x1403d5063\ncall    qword ptr [rax+38h]                                            ; +0x16, 0x1403d5066\ncmp     eax, 6                                                         ; +0x19, 0x1403d5069\njl      short loc_1403D5083                                            ; +0x1c, 0x1403d506c\nmov     rdx, rbx                                                       ; +0x1e, 0x1403d506e\nmov     rcx, rdi                                                       ; +0x21, 0x1403d5071\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x24, 0x1403d5074\nadd     rsp, 20h                                                       ; +0x29, 0x1403d5079\npop     rdi                                                            ; +0x2d, 0x1403d507d\njmp     SecretRewardsLayer__onSpecialItem                              ; +0x2e, 0x1403d507e\ncmp     byte ptr [rdi+248h], 0                                         ; +0x33, 0x1403d5083\nlea     ebx, [rax+3]                                                   ; +0x3a, 0x1403d508a\njz      loc_1403D518E                                                  ; +0x3d, 0x1403d508d\nmov     byte ptr [rdi+248h], 0                                         ; +0x43, 0x1403d5093\nmov     [rdi+24Ch], ebx                                                ; +0x4a, 0x1403d509a\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x50, 0x1403d50a0\nmov     rcx, rax                                                       ; +0x56, 0x1403d50a6\nlea     rdx, [rsp+28h+arg_8]                                           ; +0x59, 0x1403d50a9\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0x5e, 0x1403d50ae\nmov     rcx, [rdi+220h]                                                ; +0x64, 0x1403d50b4\nxor     edx, edx                                                       ; +0x6b, 0x1403d50bb\nmov     rax, [rcx]                                                     ; +0x6d, 0x1403d50bd\ncall    qword ptr [rax+388h]                                           ; +0x70, 0x1403d50c0\nmovss   xmm2, [rsp+28h+arg_C]                                          ; +0x76, 0x1403d50c6\nlea     rcx, [rsp+28h+arg_10]                                          ; +0x7c, 0x1403d50cc\nxorps   xmm2, cs:xmmword_1406243F0                                     ; +0x81, 0x1403d50d1\nxorps   xmm1, xmm1                                                     ; +0x88, 0x1403d50d8\nsubss   xmm2, cs:dword_1406232BC                                       ; +0x8b, 0x1403d50db\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x93, 0x1403d50e3\nmovss   xmm0, cs:dword_140622B08                                       ; +0x99, 0x1403d50e9\nmov     rdx, rax                                                       ; +0xa1, 0x1403d50f1\ncall    cs:?create@CCMoveTo@cocos2d@@SAPEAV12@MAEBVCCPoint@2@@Z; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const &) ; +0xa4, 0x1403d50f4\nmov     rcx, rax                                                       ; +0xaa, 0x1403d50fa\ncall    cs:?create@CCEaseBounceOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@@Z; cocos2d::CCEaseBounceOut::create(cocos2d::CCActionInterval *) ; +0xad, 0x1403d50fd\nmov     rcx, [rdi+1A8h]                                                ; +0xb3, 0x1403d5103\nmov     rdx, rax                                                       ; +0xba, 0x1403d510a\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0xbd, 0x1403d510d\nmov     edx, ebx                                                       ; +0xc3, 0x1403d5113\nmov     rcx, rdi                                                       ; +0xc5, 0x1403d5115\ncall    SecretRewardsLayer__createSecondaryLayer                       ; +0xc8, 0x1403d5118\nmov     rax, [rdi+1B0h]                                                ; +0xcd, 0x1403d511d\nlea     rcx, [rsp+28h+arg_10]                                          ; +0xd4, 0x1403d5124\nmovss   xmm2, [rsp+28h+arg_C]                                          ; +0xd9, 0x1403d5129\nxorps   xmm1, xmm1                                                     ; +0xdf, 0x1403d512f\nmov     rbx, [rax]                                                     ; +0xe2, 0x1403d5132\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xe5, 0x1403d5135\nmov     rcx, [rdi+1B0h]                                                ; +0xeb, 0x1403d513b\nmov     rdx, rax                                                       ; +0xf2, 0x1403d5142\ncall    qword ptr [rbx+0B8h]                                           ; +0xf5, 0x1403d5145\nxorps   xmm2, xmm2                                                     ; +0xfb, 0x1403d514b\nlea     rcx, [rsp+28h+arg_10]                                          ; +0xfe, 0x1403d514e\nxorps   xmm1, xmm1                                                     ; +0x103, 0x1403d5153\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x106, 0x1403d5156\nmovss   xmm0, cs:dword_140622B08                                       ; +0x10c, 0x1403d515c\nmov     rdx, rax                                                       ; +0x114, 0x1403d5164\ncall    cs:?create@CCMoveTo@cocos2d@@SAPEAV12@MAEBVCCPoint@2@@Z; cocos2d::CCMoveTo::create(float,cocos2d::CCPoint const &) ; +0x117, 0x1403d5167\nmov     rcx, rax                                                       ; +0x11d, 0x1403d516d\ncall    cs:?create@CCEaseBounceOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@@Z; cocos2d::CCEaseBounceOut::create(cocos2d::CCActionInterval *) ; +0x120, 0x1403d5170\nmov     rcx, [rdi+1B0h]                                                ; +0x126, 0x1403d5176\nmov     rdx, rax                                                       ; +0x12d, 0x1403d517d\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x130, 0x1403d5180\nmov     rcx, rdi                                                       ; +0x136, 0x1403d5186\ncall    SecretRewardsLayer__updateBackButton                           ; +0x139, 0x1403d5189\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x13e, 0x1403d518e\nadd     rsp, 20h                                                       ; +0x143, 0x1403d5193\npop     rdi                                                            ; +0x147, 0x1403d5197\nretn                                                                   ; +0x148, 0x1403d5198", "xrefs": ["SecretRewardsLayer::init @ 0x1403d337d", "<???> @ 0x1406d7d0c"], "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"}