{"type": "func", "start": 5372662704, "end": 5372663050, "name": "ProfilePage::show", "pseudocode": "// \n// ProfilePage::show from 0x1403c53b0 to 0x1403c550a (346 bytes)\n// \n// 5 xrefs:\n// > MenuLayer::onDaily @ 0x1403351d7\n// > MenuLayer::onDaily @ 0x1403351be\n// > <???> @ 0x1405cbc10\n// > <???> @ 0x1405cda50\n// > <???> @ 0x1406d7838\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\n// Merged with: ProfilePage::show, RewardsPage::show\nvoid __fastcall ProfilePage::show(__int64 a1, __int64 a2, __int64 a3, float a4)\n{\n  unsigned __int8 v5; // al\n  float v6; // xmm6_4\n  struct cocos2d::CCScaleTo *v7; // rax\n  struct cocos2d::CCEaseElasticOut *v8; // rax\n  cocos2d::ccColor3B *v9; // r8\n  __int64 v10; // rcx\n  cocos2d::CCScene *v11; // rdi\n  int v12; // eax\n  struct cocos2d::CCFadeTo *v13; // rax\n  cocos2d::ccColor3B *v14; // r8\n  __int64 v15; // rdx\n  float v16; // [rsp+20h] [rbp-18h]\n  float v17; // [rsp+20h] [rbp-18h]\n\n  if ( *(_BYTE *)(a1 + 588) )\n  {\n    FLAlertLayer::show((FLAlertLayer *)a1);\n  }\n  else\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)(a1 + 408) + 32LL))(a1 + 408);\n    v6 = (float)v5;\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 576) + 160LL))(*(_QWORD *)(a1 + 576));\n    v7 = cocos2d::CCScaleTo::create(0.30000001, 1.0);\n    v8 = cocos2d::CCEaseElasticOut::create(v7, 1.6);\n    cocos2d::CCNode::runAction(*(CCLightFlash **)(a1 + 576), (cocos2d::CCPoint)v8, v9, a4, v16);\n    v11 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v10) + 264);\n    if ( *(_QWORD *)(a1 + 560) )\n    {\n      v11 = *(cocos2d::CCScene **)(a1 + 560);\n    }\n    else\n    {\n      if ( cocos2d::CCScene::getHighestChildZ(v11) + 1 >= 105 )\n        v12 = cocos2d::CCScene::getHighestChildZ(v11) + 1;\n      else\n        v12 = 105;\n      *(_DWORD *)(a1 + 584) = v12;\n    }\n    if ( !*(_DWORD *)(a1 + 584) )\n      *(_DWORD *)(a1 + 584) = 105;\n    ((void (__fastcall *)(cocos2d::CCScene *, __int64))v11->addChild_0)(v11, a1);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(a1 + 408) + 40LL))(a1 + 408, 0);\n    v13 = cocos2d::CCFadeTo::create(0.14, (int)v6);\n    cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v13, v14, a4, v17);\n    LOBYTE(v15) = 1;\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 320LL))(a1, v15);\n  }\n}", "assembly": "; \n; ProfilePage::show from 0x1403c53b0 to 0x1403c550a (346 bytes)\n; \n; 5 xrefs:\n; > MenuLayer::onDaily @ 0x1403351d7\n; > MenuLayer::onDaily @ 0x1403351be\n; > <???> @ 0x1405cbc10\n; > <???> @ 0x1405cda50\n; > <???> @ 0x1406d7838\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    rbx                                                            ; +0x0, 0x1403c53b0\nsub     rsp, 30h                                                       ; +0x2, 0x1403c53b2\ncmp     byte ptr [rcx+24Ch], 0                                         ; +0x6, 0x1403c53b6\nmov     rbx, rcx                                                       ; +0xd, 0x1403c53bd\njz      short loc_1403C53CC                                            ; +0x10, 0x1403c53c0\nadd     rsp, 30h                                                       ; +0x12, 0x1403c53c2\npop     rbx                                                            ; +0x16, 0x1403c53c6\njmp     FLAlertLayer__show                                             ; +0x17, 0x1403c53c7\nmov     rax, [rcx+198h]                                                ; +0x1c, 0x1403c53cc\nadd     rcx, 198h                                                      ; +0x23, 0x1403c53d3\nmov     [rsp+38h+arg_0], rsi                                           ; +0x2a, 0x1403c53da\nmov     [rsp+38h+arg_8], rdi                                           ; +0x2f, 0x1403c53df\nmovaps  xmmword ptr [rsp+38h+var_18], xmm6                             ; +0x34, 0x1403c53e4\ncall    qword ptr [rax+20h]                                            ; +0x39, 0x1403c53e9\nmov     rcx, [rbx+240h]                                                ; +0x3c, 0x1403c53ec\nmovss   xmm1, cs:dword_140622A10                                       ; +0x43, 0x1403c53f3\nmovzx   eax, al                                                        ; +0x4b, 0x1403c53fb\nmovd    xmm6, eax                                                      ; +0x4e, 0x1403c53fe\nmov     rax, [rcx]                                                     ; +0x52, 0x1403c5402\ncvtdq2ps xmm6, xmm6                                                    ; +0x55, 0x1403c5405\ncall    qword ptr [rax+0A0h]                                           ; +0x58, 0x1403c5408\nmovss   xmm1, cs:flt_140622C24                                         ; +0x5e, 0x1403c540e\nmovss   xmm0, cs:dword_140622AA0                                       ; +0x66, 0x1403c5416\ncall    cs:?create@CCScaleTo@cocos2d@@SAPEAV12@MM@Z; cocos2d::CCScaleTo::create(float,float) ; +0x6e, 0x1403c541e\nmovss   xmm1, cs:dword_140622D24                                       ; +0x74, 0x1403c5424\nmov     rcx, rax                                                       ; +0x7c, 0x1403c542c\ncall    cs:?create@CCEaseElasticOut@cocos2d@@SAPEAV12@PEAVCCActionInterval@2@M@Z; cocos2d::CCEaseElasticOut::create(cocos2d::CCActionInterval *,float) ; +0x7f, 0x1403c542f\nmov     rcx, [rbx+240h]                                                ; +0x85, 0x1403c5435\nmov     rdx, rax                                                       ; +0x8c, 0x1403c543c\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x8f, 0x1403c543f\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x95, 0x1403c5445\nmov     rdi, [rax+108h]                                                ; +0x9b, 0x1403c544b\nmov     rax, [rbx+230h]                                                ; +0xa2, 0x1403c5452\ntest    rax, rax                                                       ; +0xa9, 0x1403c5459\njz      short loc_1403C5463                                            ; +0xac, 0x1403c545c\nmov     rdi, rax                                                       ; +0xae, 0x1403c545e\njmp     short loc_1403C548B                                            ; +0xb1, 0x1403c5461\nmov     rcx, rdi                                                       ; +0xb3, 0x1403c5463\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0xb6, 0x1403c5466\ninc     eax                                                            ; +0xbc, 0x1403c546c\ncmp     eax, 69h ; 'i'                                                 ; +0xbe, 0x1403c546e\njge     short loc_1403C547A                                            ; +0xc1, 0x1403c5471\nmov     eax, 69h ; 'i'                                                 ; +0xc3, 0x1403c5473\njmp     short loc_1403C5485                                            ; +0xc8, 0x1403c5478\nmov     rcx, rdi                                                       ; +0xca, 0x1403c547a\ncall    cs:?getHighestChildZ@CCScene@cocos2d@@QEAAHXZ; cocos2d::CCScene::getHighestChildZ(void) ; +0xcd, 0x1403c547d\ninc     eax                                                            ; +0xd3, 0x1403c5483\nmov     [rbx+248h], eax                                                ; +0xd5, 0x1403c5485\nmov     r8d, [rbx+248h]                                                ; +0xdb, 0x1403c548b\ntest    r8d, r8d                                                       ; +0xe2, 0x1403c5492\njnz     short loc_1403C54A7                                            ; +0xe5, 0x1403c5495\nmov     dword ptr [rbx+248h], 69h ; 'i'                                ; +0xe7, 0x1403c5497\nmov     r8d, 69h ; 'i'                                                 ; +0xf1, 0x1403c54a1\nmov     rax, [rdi]                                                     ; +0xf7, 0x1403c54a7\nmov     rdx, rbx                                                       ; +0xfa, 0x1403c54aa\nmov     rcx, rdi                                                       ; +0xfd, 0x1403c54ad\ncall    qword ptr [rax+1B8h]                                           ; +0x100, 0x1403c54b0\nmov     rax, [rbx+198h]                                                ; +0x106, 0x1403c54b6\nlea     rcx, [rbx+198h]                                                ; +0x10d, 0x1403c54bd\nxor     edx, edx                                                       ; +0x114, 0x1403c54c4\ncall    qword ptr [rax+28h]                                            ; +0x116, 0x1403c54c6\nmovss   xmm0, cs:dword_140622A38                                       ; +0x119, 0x1403c54c9\ncvttss2si edx, xmm6                                                    ; +0x121, 0x1403c54d1\ncall    cs:?create@CCFadeTo@cocos2d@@SAPEAV12@ME@Z; cocos2d::CCFadeTo::create(float,uchar) ; +0x125, 0x1403c54d5\nmov     rdx, rax                                                       ; +0x12b, 0x1403c54db\nmov     rcx, rbx                                                       ; +0x12e, 0x1403c54de\ncall    cs:?runAction@CCNode@cocos2d@@QEAAPEAVCCAction@2@PEAV32@@Z; cocos2d::CCNode::runAction(cocos2d::CCAction *) ; +0x131, 0x1403c54e1\nmov     rax, [rbx]                                                     ; +0x137, 0x1403c54e7\nmov     dl, 1                                                          ; +0x13a, 0x1403c54ea\nmov     rcx, rbx                                                       ; +0x13c, 0x1403c54ec\nmovaps  xmm6, xmmword ptr [rsp+38h+var_18]                             ; +0x13f, 0x1403c54ef\nmov     rdi, [rsp+38h+arg_8]                                           ; +0x144, 0x1403c54f4\nmov     rsi, [rsp+38h+arg_0]                                           ; +0x149, 0x1403c54f9\nadd     rsp, 30h                                                       ; +0x14e, 0x1403c54fe\npop     rbx                                                            ; +0x152, 0x1403c5502\njmp     qword ptr [rax+140h]                                           ; +0x153, 0x1403c5503", "xrefs": ["MenuLayer::onDaily @ 0x1403351d7", "MenuLayer::onDaily @ 0x1403351be", "<???> @ 0x1405cbc10", "<???> @ 0x1405cda50", "<???> @ 0x1406d7838"], "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"}