{"type": "func", "start": 4299298784, "end": 4299299163, "name": "FollowRewardPage::show", "pseudocode": "// \n// FollowRewardPage::show from 0x1004217e0 to 0x10042195b (379 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1009349d0\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 __fastcall FollowRewardPage::show(FollowRewardPage *a1)\n{\n  unsigned __int8 v1; // r14\n  double *v2; // rax\n  cocos2d::CCLayer *m_mainLayer; // r12\n  cocos2d::CCMoveTo *v4; // rax\n  cocos2d::CCEaseElasticOut *v5; // rax\n  cocos2d::CCDirector *v6; // rax\n  cocos2d::CCScene *m_scene; // r15\n  cocos2d::CCFadeTo *v8; // rax\n  int HighestChildZ; // eax\n  int v10; // edx\n  float v11; // [rsp+8h] [rbp-38h] BYREF\n  cocos2d::CCPoint v12[6]; // [rsp+10h] [rbp-30h] BYREF\n\n  if ( a1->m_noElasticity )\n  {\n    FLAlertLayer::show(a1);\n    return;\n  }\n  v1 = ((__int64 (__fastcall *)(FollowRewardPage *))a1->getOpacity)(a1);\n  v2 = (double *)((__int64 (__fastcall *)(cocos2d::CCLayer *))a1->m_mainLayer->getPosition)(a1->m_mainLayer);\n  sub_10028CC60(v12, v2);\n  m_mainLayer = a1->m_mainLayer;\n  sub_10028CBE0(&v11, -160.0, v12[0].y);\n  ((void (__fastcall *)(cocos2d::CCLayer *, float *))m_mainLayer->setPosition)(m_mainLayer, &v11);\n  v4 = cocos2d::CCMoveTo::create(0.5, v12);\n  v5 = cocos2d::CCEaseElasticOut::create(v4, 0.60000002);\n  cocos2d::CCNode::runAction(a1->m_mainLayer, v5);\n  v6 = cocos2d::CCDirector::sharedDirector();\n  m_scene = (cocos2d::CCScene *)a1->m_scene;\n  if ( !m_scene )\n  {\n    m_scene = v6->m_pRunningScene;\n    HighestChildZ = cocos2d::CCScene::getHighestChildZ(m_scene);\n    v10 = 105;\n    if ( HighestChildZ >= 105 )\n      v10 = cocos2d::CCScene::getHighestChildZ(m_scene) + 1;\n    a1->m_ZOrder = v10;\n    if ( v10 )\n      goto LABEL_6;\n    goto LABEL_5;\n  }\n  if ( !a1->m_ZOrder )\nLABEL_5:\n    a1->m_ZOrder = 105;\nLABEL_6:\n  ((void (__fastcall *)(cocos2d::CCScene *, FollowRewardPage *))m_scene->addChild_0)(m_scene, a1);\n  ((void (__fastcall *)(FollowRewardPage *, _QWORD))a1->setOpacity)(a1, 0);\n  v8 = cocos2d::CCFadeTo::create(0.14, v1);\n  cocos2d::CCNode::runAction(a1, v8);\n  ((void (__fastcall *)(FollowRewardPage *, __int64))a1->setVisible)(a1, 1);\n}", "assembly": "; \n; FollowRewardPage::show from 0x1004217e0 to 0x10042195b (379 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1009349d0\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    rbp                                                            ; +0x0, 0x1004217e0\nmov     rbp, rsp                                                       ; +0x1, 0x1004217e1\npush    r15                                                            ; +0x4, 0x1004217e4\npush    r14                                                            ; +0x6, 0x1004217e6\npush    r13                                                            ; +0x8, 0x1004217e8\npush    r12                                                            ; +0xa, 0x1004217ea\npush    rbx                                                            ; +0xc, 0x1004217ec\nsub     rsp, 18h                                                       ; +0xd, 0x1004217ed\nmov     rbx, rdi                                                       ; +0x11, 0x1004217f1\ncmp     byte ptr [rdi+24Ch], 1                                         ; +0x14, 0x1004217f4\njnz     short loc_100421813                                            ; +0x1b, 0x1004217fb\nmov     rdi, rbx                                                       ; +0x1d, 0x1004217fd\nadd     rsp, 18h                                                       ; +0x20, 0x100421800\npop     rbx                                                            ; +0x24, 0x100421804\npop     r12                                                            ; +0x25, 0x100421805\npop     r13                                                            ; +0x27, 0x100421807\npop     r14                                                            ; +0x29, 0x100421809\npop     r15                                                            ; +0x2b, 0x10042180b\npop     rbp                                                            ; +0x2d, 0x10042180d\njmp     FLAlertLayer__show                                             ; +0x2e, 0x10042180e\nmov     rax, [rbx]                                                     ; +0x33, 0x100421813\nmov     rdi, rbx                                                       ; +0x36, 0x100421816\ncall    qword ptr [rax+470h]                                           ; +0x39, 0x100421819\nmov     r14d, eax                                                      ; +0x3f, 0x10042181f\nmov     rdi, [rbx+240h]                                                ; +0x42, 0x100421822\nmov     rax, [rdi]                                                     ; +0x49, 0x100421829\ncall    qword ptr [rax+0C0h]                                           ; +0x4c, 0x10042182c\nlea     r15, [rbp+var_30]                                              ; +0x52, 0x100421832\nmov     rdi, r15                                                       ; +0x56, 0x100421836\nmov     rsi, rax                                                       ; +0x59, 0x100421839\ncall    sub_10028CC60                                                  ; +0x5c, 0x10042183c\nmov     r12, [rbx+240h]                                                ; +0x61, 0x100421841\nmovss   xmm1, [rbp+var_2C]                                             ; +0x68, 0x100421848\nlea     r13, [rbp+var_38]                                              ; +0x6d, 0x10042184d\nmovss   xmm0, cs:dword_10081687C                                       ; +0x71, 0x100421851\nmov     rdi, r13                                                       ; +0x79, 0x100421859\ncall    sub_10028CBE0                                                  ; +0x7c, 0x10042185c\nmov     rax, [r12]                                                     ; +0x81, 0x100421861\nmov     rdi, r12                                                       ; +0x85, 0x100421865\nmov     rsi, r13                                                       ; +0x88, 0x100421868\ncall    qword ptr [rax+0B8h]                                           ; +0x8b, 0x10042186b\nmovss   xmm0, cs:dword_100814FA8                                       ; +0x91, 0x100421871\nmov     rdi, r15                                                       ; +0x99, 0x100421879\ncall    cocos2d__CCMoveTo__create                                      ; +0x9c, 0x10042187c\nmovss   xmm0, cs:dword_100814FB0                                       ; +0xa1, 0x100421881\nmov     rdi, rax                                                       ; +0xa9, 0x100421889\ncall    cocos2d__CCEaseElasticOut__create                              ; +0xac, 0x10042188c\nmov     rdi, [rbx+240h]                                                ; +0xb1, 0x100421891\nmov     rsi, rax                                                       ; +0xb8, 0x100421898\ncall    cocos2d__CCNode__runAction                                     ; +0xbb, 0x10042189b\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xc0, 0x1004218a0\nmov     r15, [rbx+230h]                                                ; +0xc5, 0x1004218a5\ntest    r15, r15                                                       ; +0xcc, 0x1004218ac\njz      short loc_100421923                                            ; +0xcf, 0x1004218af\nmov     edx, [rbx+248h]                                                ; +0xd1, 0x1004218b1\ntest    edx, edx                                                       ; +0xd7, 0x1004218b7\njnz     short loc_1004218CA                                            ; +0xd9, 0x1004218b9\nmov     dword ptr [rbx+248h], 69h ; 'i'                                ; +0xdb, 0x1004218bb\nmov     edx, 69h ; 'i'                                                 ; +0xe5, 0x1004218c5\nmov     rax, [r15]                                                     ; +0xea, 0x1004218ca\nmov     rdi, r15                                                       ; +0xed, 0x1004218cd\nmov     rsi, rbx                                                       ; +0xf0, 0x1004218d0\ncall    qword ptr [rax+1C0h]                                           ; +0xf3, 0x1004218d3\nmov     rax, [rbx]                                                     ; +0xf9, 0x1004218d9\nmov     rdi, rbx                                                       ; +0xfc, 0x1004218dc\nxor     esi, esi                                                       ; +0xff, 0x1004218df\ncall    qword ptr [rax+480h]                                           ; +0x101, 0x1004218e1\nmovzx   edi, r14b                                                      ; +0x107, 0x1004218e7\nmovss   xmm0, cs:dword_100817A50                                       ; +0x10b, 0x1004218eb\ncall    cocos2d__CCFadeTo__create                                      ; +0x113, 0x1004218f3\nmov     rdi, rbx                                                       ; +0x118, 0x1004218f8\nmov     rsi, rax                                                       ; +0x11b, 0x1004218fb\ncall    cocos2d__CCNode__runAction                                     ; +0x11e, 0x1004218fe\nmov     rax, [rbx]                                                     ; +0x123, 0x100421903\nmov     rdi, rbx                                                       ; +0x126, 0x100421906\nmov     esi, 1                                                         ; +0x129, 0x100421909\ncall    qword ptr [rax+148h]                                           ; +0x12e, 0x10042190e\nadd     rsp, 18h                                                       ; +0x134, 0x100421914\npop     rbx                                                            ; +0x138, 0x100421918\npop     r12                                                            ; +0x139, 0x100421919\npop     r13                                                            ; +0x13b, 0x10042191b\npop     r14                                                            ; +0x13d, 0x10042191d\npop     r15                                                            ; +0x13f, 0x10042191f\npop     rbp                                                            ; +0x141, 0x100421921\nretn                                                                   ; +0x142, 0x100421922\nmov     r15, [rax+108h]                                                ; +0x143, 0x100421923\nmov     rdi, r15                                                       ; +0x14a, 0x10042192a\ncall    cocos2d__CCScene__getHighestChildZ                             ; +0x14d, 0x10042192d\nmov     edx, 69h ; 'i'                                                 ; +0x152, 0x100421932\ncmp     eax, 69h ; 'i'                                                 ; +0x157, 0x100421937\njl      short loc_100421948                                            ; +0x15a, 0x10042193a\nmov     rdi, r15                                                       ; +0x15c, 0x10042193c\ncall    cocos2d__CCScene__getHighestChildZ                             ; +0x15f, 0x10042193f\nmov     edx, eax                                                       ; +0x164, 0x100421944\ninc     edx                                                            ; +0x166, 0x100421946\nmov     [rbx+248h], edx                                                ; +0x168, 0x100421948\ntest    edx, edx                                                       ; +0x16e, 0x10042194e\njnz     loc_1004218CA                                                  ; +0x170, 0x100421950\njmp     loc_1004218BB                                                  ; +0x176, 0x100421956", "xrefs": ["<???> @ 0x1009349d0"], "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"}