{"type": "func", "start": 5372727712, "end": 5372728018, "name": "SecretRewardsLayer::updateBackButton", "pseudocode": "// \n// SecretRewardsLayer::updateBackButton from 0x1403d51a0 to 0x1403d52d2 (306 bytes)\n// \n// 3 xrefs:\n// > SecretRewardsLayer::onChestType @ 0x1403d5189\n// > SecretRewardsLayer::onBack @ 0x1403d7d62\n// > <???> @ 0x1406d7d18\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::updateBackButton(SecretRewardsLayer *a1)\n{\n  float v1; // xmm3_4\n  __int64 v3; // rcx\n  const char *v4; // rbx\n  cocos2d::CCSprite_vtbl *v5; // rdi\n  cocos2d::CCSpriteFrameCache *v6; // rax\n  struct cocos2d::CCSpriteFrame *v7; // rax\n  double v8; // xmm0_8\n  struct cocos2d::CCScaleTo *v9; // rax\n  struct cocos2d::CCEaseBackOut *v10; // rbx\n  double v11; // xmm0_8\n  struct cocos2d::CCScaleTo *v12; // rax\n  struct cocos2d::CCEaseInOut *v13; // rax\n  struct cocos2d::CCSequence *v14; // rax\n  cocos2d::ccColor3B *v15; // r8\n  float v16; // [rsp+20h] [rbp-8h]\n\n  cocos2d::CCNode::stopAllActions(a1->m_backSprite);\n  v4 = \"GJ_closeBtn_001.png\";\n  v5 = a1->m_backSprite->__vftable;\n  if ( a1->m_inMainLayer )\n    v4 = \"GJ_arrow_03_001.png\";\n  v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v3);\n  v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, v4);\n  v5->setDisplayFrame(a1->m_backSprite, v7);\n  ((void (__fastcall *)(cocos2d::CCSprite *))a1->m_backSprite->setScale_0)(a1->m_backSprite);\n  if ( !a1->m_inMainLayer )\n  {\n    v8 = ((double (__fastcall *)(cocos2d::CCSprite *))a1->m_backSprite->getScale)(a1->m_backSprite);\n    v9 = cocos2d::CCScaleTo::create(0.2, *(float *)&v8 + 0.1);\n    v10 = cocos2d::CCEaseBackOut::create(v9);\n    v11 = ((double (__fastcall *)(cocos2d::CCSprite *))a1->m_backSprite->getScale)(a1->m_backSprite);\n    v12 = cocos2d::CCScaleTo::create(0.2, *(float *)&v11);\n    v13 = cocos2d::CCEaseInOut::create(v12, 2.0);\n    v14 = cocos2d::CCSequence::create(v10, v13, 0);\n    cocos2d::CCNode::runAction((CCLightFlash *)a1->m_backSprite, (cocos2d::CCPoint)v14, v15, v1, v16);\n  }\n}", "assembly": "; \n; SecretRewardsLayer::updateBackButton from 0x1403d51a0 to 0x1403d52d2 (306 bytes)\n; \n; 3 xrefs:\n; > SecretRewardsLayer::onChestType @ 0x1403d5189\n; > SecretRewardsLayer::onBack @ 0x1403d7d62\n; > <???> @ 0x1406d7d18\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, 0x1403d51a0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1403d51a5\npush    rdi                                                            ; +0xa, 0x1403d51aa\nsub     rsp, 20h                                                       ; +0xb, 0x1403d51ab\nmov     rsi, rcx                                                       ; +0xf, 0x1403d51af\nmov     rcx, [rcx+210h]                                                ; +0x12, 0x1403d51b2\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0x19, 0x1403d51b9\nmov     rax, [rsi+210h]                                                ; +0x1f, 0x1403d51bf\nlea     rbx, aGjClosebtn001P; \"GJ_closeBtn_001.png\"                    ; +0x26, 0x1403d51c6\ncmp     byte ptr [rsi+248h], 0                                         ; +0x2d, 0x1403d51cd\nmov     rdi, [rax]                                                     ; +0x34, 0x1403d51d4\nlea     rax, aGjArrow03001Pn; \"GJ_arrow_03_001.png\"                    ; +0x37, 0x1403d51d7\ncmovnz  rbx, rax                                                       ; +0x3e, 0x1403d51de\ncall    cs:?sharedSpriteFrameCache@CCSpriteFrameCache@cocos2d@@SAPEAV12@XZ; cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(void) ; +0x42, 0x1403d51e2\nmov     rcx, rax                                                       ; +0x48, 0x1403d51e8\nmov     rdx, rbx                                                       ; +0x4b, 0x1403d51eb\ncall    cs:?spriteFrameByName@CCSpriteFrameCache@cocos2d@@QEAAPEAVCCSpriteFrame@2@PEBD@Z; cocos2d::CCSpriteFrameCache::spriteFrameByName(char const *) ; +0x4e, 0x1403d51ee\nmov     rcx, [rsi+210h]                                                ; +0x54, 0x1403d51f4\nmov     rdx, rax                                                       ; +0x5b, 0x1403d51fb\ncall    qword ptr [rdi+3E0h]                                           ; +0x5e, 0x1403d51fe\ncmp     byte ptr [rsi+248h], 0                                         ; +0x64, 0x1403d5204\njz      short loc_1403D5217                                            ; +0x6b, 0x1403d520b\nmovss   xmm1, cs:flt_140622C24                                         ; +0x6d, 0x1403d520d\njmp     short loc_1403D521F                                            ; +0x75, 0x1403d5215\nmovss   xmm1, cs:dword_140622BA4                                       ; +0x77, 0x1403d5217\nmov     rcx, [rsi+210h]                                                ; +0x7f, 0x1403d521f\nmov     rax, [rcx]                                                     ; +0x86, 0x1403d5226\ncall    qword ptr [rax+0A0h]                                           ; +0x89, 0x1403d5229\ncmp     byte ptr [rsi+248h], 0                                         ; +0x8f, 0x1403d522f\njnz     loc_1403D52C2                                                  ; +0x96, 0x1403d5236\nmov     rcx, [rsi+210h]                                                ; +0x9c, 0x1403d523c\nmov     rax, [rcx]                                                     ; +0xa3, 0x1403d5243\ncall    qword ptr [rax+0A8h]                                           ; +0xa6, 0x1403d5246\naddss   xmm0, cs:dword_140622A10                                       ; +0xac, 0x1403d524c\nmovaps  xmm1, xmm0                                                     ; +0xb4, 0x1403d5254\nmovss   xmm0, cs:dword_140622A74                                       ; +0xb7, 0x1403d5257\ncall    cs:?create@CCScaleTo@cocos2d@@SAPEAV12@MM@Z; cocos2d::CCScaleTo::create(float,float) ; +0xbf, 0x1403d525f\nmov     rcx, rax                                                       ; +0xc5, 0x1403d5265\ncall    cs:?create@CCEaseBackOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@@Z; cocos2d::CCEaseBackOut::create(cocos2d::CCActionInterval *) ; +0xc8, 0x1403d5268\nmov     rcx, [rsi+210h]                                                ; +0xce, 0x1403d526e\nmov     rbx, rax                                                       ; +0xd5, 0x1403d5275\nmov     rdx, [rcx]                                                     ; +0xd8, 0x1403d5278\ncall    qword ptr [rdx+0A8h]                                           ; +0xdb, 0x1403d527b\nmovaps  xmm1, xmm0                                                     ; +0xe1, 0x1403d5281\nmovss   xmm0, cs:dword_140622A74                                       ; +0xe4, 0x1403d5284\ncall    cs:?create@CCScaleTo@cocos2d@@SAPEAV12@MM@Z; cocos2d::CCScaleTo::create(float,float) ; +0xec, 0x1403d528c\nmovss   xmm1, cs:width                                                 ; +0xf2, 0x1403d5292\nmov     rcx, rax                                                       ; +0xfa, 0x1403d529a\ncall    cs:?create@CCEaseInOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@M@Z; cocos2d::CCEaseInOut::create(cocos2d::CCActionInterval *,float) ; +0xfd, 0x1403d529d\nxor     r8d, r8d                                                       ; +0x103, 0x1403d52a3\nmov     rcx, rbx                                                       ; +0x106, 0x1403d52a6\nmov     rdx, rax                                                       ; +0x109, 0x1403d52a9\ncall    cs:?create@CCSequence@cocos2d@@SAPEAV12@PEAVCCFiniteTimeAction@2@ZZ; cocos2d::CCSequence::create(cocos2d::CCFiniteTimeAction *,...) ; +0x10c, 0x1403d52ac\nmov     rcx, [rsi+210h]                                                ; +0x112, 0x1403d52b2\nmov     rdx, rax                                                       ; +0x119, 0x1403d52b9\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x11c, 0x1403d52bc\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x122, 0x1403d52c2\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x127, 0x1403d52c7\nadd     rsp, 20h                                                       ; +0x12c, 0x1403d52cc\npop     rdi                                                            ; +0x130, 0x1403d52d0\nretn                                                                   ; +0x131, 0x1403d52d1", "xrefs": ["SecretRewardsLayer::onChestType @ 0x1403d5189", "SecretRewardsLayer::onBack @ 0x1403d7d62", "<???> @ 0x1406d7d18"], "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"}