{"type": "func", "start": 5371847904, "end": 5371848458, "name": "LevelInfoLayer::onRateStarsMod", "pseudocode": "// \n// LevelInfoLayer::onRateStarsMod from 0x1402fe4e0 to 0x1402fe70a (554 bytes)\n// \n// 2 xrefs:\n// > LevelInfoLayer::init @ 0x1402f8940\n// > <???> @ 0x1406d4280\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// Hidden C++ exception states: #wind=2\nvoid LevelInfoLayer::onRateStarsMod(LevelInfoLayer *a1, cocos2d::CCObject *a2)\n{\n  GJAccountManager *v3; // rax\n  GJGameLevel *m_level; // rdi\n  GJRateLevelLayer *v5; // rbx\n  __int64 (__fastcall *show)(__int64); // rdx\n  RateStarsLayer *v7; // rax\n\n  if ( !a1->m_isBusy )\n  {\n    v3 = GJAccountManager::sharedState();\n    m_level = a1->m_level;\n    if ( v3->m_accountID - v3->m_unkInt1 == 2795 )\n    {\n      v5 = (GJRateLevelLayer *)operator new(0x420u);\n      SetupTriggerPopup::SetupTriggerPopup(v5);\n      v5->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (GJRateLevelLayer_vtbl *)&GJRateLevelLayer::`vftable';\n      v5->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCTouchDelegate::__vftable = (cocos2d::CCTouchDelegate_vtbl *)&GJRateLevelLayer::`vftable';\n      v5->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCAccelerometerDelegate::__vftable = (cocos2d::CCAccelerometerDelegate_vtbl *)&GJRateLevelLayer::`vftable';\n      v5->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeypadDelegate::__vftable = (cocos2d::CCKeypadDelegate_vtbl *)&GJRateLevelLayer::`vftable';\n      v5->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCKeyboardDelegate::__vftable = (cocos2d::CCKeyboardDelegate_vtbl *)&GJRateLevelLayer::`vftable';\n      v5->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCMouseDelegate::__vftable = (cocos2d::CCMouseDelegate_vtbl *)&GJRateLevelLayer::`vftable';\n      v5->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&GJRateLevelLayer::`vftable';\n      v5->SetupTriggerPopup::FLAlertLayer::cocos2d::CCLayerColor::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCBlendProtocol_vtbl *)&GJRateLevelLayer::`vftable';\n      v5->SetupTriggerPopup::TextInputDelegate::__vftable = (TextInputDelegate_vtbl *)&GJRateLevelLayer::`vftable';\n      v5->SetupTriggerPopup::ConfigureValuePopupDelegate::__vftable = (ConfigureValuePopupDelegate_vtbl *)&GJRateLevelLayer::`vftable';\n      v5->SetupTriggerPopup::SliderDelegate::__vftable = (SliderDelegate_vtbl *)&GJRateLevelLayer::`vftable';\n      v5->UploadPopupDelegate::__vftable = (UploadPopupDelegate_vtbl *)&GJRateLevelLayer::`vftable';\n      v5->UploadActionDelegate::__vftable = (UploadActionDelegate_vtbl *)&GJRateLevelLayer::`vftable';\n      v5->LevelRateInfoDelegate::__vftable = (LevelRateInfoDelegate_vtbl *)&GJRateLevelLayer::`vftable';\n      v5->FLAlertLayerProtocol::__vftable = (FLAlertLayerProtocol_vtbl *)&GJRateLevelLayer::`vftable';\n      v5->m_level = nullptr;\n      v5->m_uploadFinished = 0;\n      v5->m_submitButton = nullptr;\n      v5->m_starButtons = nullptr;\n      v5->m_stars = 0;\n      v5->m_coinsToggled = 0;\n      v5->m_coinSprite = nullptr;\n      v5->m_uploadPopup = nullptr;\n      v5->m_difficultySprite = nullptr;\n      v5->m_featureState = 0;\n      v5->m_loadingCircle = nullptr;\n      cocos2d::CCPoint::CCPoint(&v5->m_center);\n      if ( GJRateLevelLayer::init(v5, m_level) )\n      {\n        cocos2d::CCObject::autorelease(v5);\n      }\n      else\n      {\n        ((void (__fastcall *)(GJRateLevelLayer *, __int64))v5->~GJRateLevelLayer)(v5, 1);\n        v5 = nullptr;\n      }\n      show = (__int64 (__fastcall *)(__int64))v5->show;\n      if ( show == CollisionBlockPopup::show )\n        CollisionBlockPopup::show((__int64)v5);\n      else\n        show((__int64)v5);\n    }\n    else\n    {\n      v7 = RateStarsLayer::create(m_level->m_levelID.random - m_level->m_levelID.seed, m_level->m_levelLength == 5, 1);\n      v7->show(v7);\n    }\n  }\n}", "assembly": "; \n; LevelInfoLayer::onRateStarsMod from 0x1402fe4e0 to 0x1402fe70a (554 bytes)\n; \n; 2 xrefs:\n; > LevelInfoLayer::init @ 0x1402f8940\n; > <???> @ 0x1406d4280\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_8], rbx                                               ; +0x0, 0x1402fe4e0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1402fe4e5\npush    rdi                                                            ; +0xa, 0x1402fe4ea\nsub     rsp, 20h                                                       ; +0xb, 0x1402fe4eb\nmov     rdi, rcx                                                       ; +0xf, 0x1402fe4ef\ncmp     byte ptr [rcx+1E0h], 0                                         ; +0x12, 0x1402fe4f2\njnz     loc_1402FE6FA                                                  ; +0x19, 0x1402fe4f9\ncall    GJAccountManager__sharedState                                  ; +0x1f, 0x1402fe4ff\nmov     rdx, rax                                                       ; +0x24, 0x1402fe504\nmov     rdi, [rdi+1F0h]                                                ; +0x27, 0x1402fe507\nmov     eax, [rax+168h]                                                ; +0x2e, 0x1402fe50e\nsub     eax, [rdx+16Ch]                                                ; +0x34, 0x1402fe514\ncmp     eax, 0AEBh                                                     ; +0x3a, 0x1402fe51a\njnz     loc_1402FE6D0                                                  ; +0x3f, 0x1402fe51f\nmov     ecx, 420h; Size                                                ; +0x45, 0x1402fe525\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x4a, 0x1402fe52a\nmov     rbx, rax                                                       ; +0x4f, 0x1402fe52f\nmov     [rsp+28h+arg_0], rax                                           ; +0x52, 0x1402fe532\nmov     rcx, rax                                                       ; +0x57, 0x1402fe537\ncall    SetupTriggerPopup__SetupTriggerPopup                           ; +0x5a, 0x1402fe53a\nnop                                                                    ; +0x5f, 0x1402fe53f\nlea     rax, ??_7GJRateLevelLayer@@6B@; const GJRateLevelLayer::`vftable' ; +0x60, 0x1402fe540\nmov     [rbx], rax                                                     ; +0x67, 0x1402fe547\nlea     rax, ??_7GJRateLevelLayer@@6B@_0; const GJRateLevelLayer::`vftable' ; +0x6a, 0x1402fe54a\nmov     [rbx+140h], rax                                                ; +0x71, 0x1402fe551\nlea     rax, ??_7GJRateLevelLayer@@6B@_1; const GJRateLevelLayer::`vftable' ; +0x78, 0x1402fe558\nmov     [rbx+148h], rax                                                ; +0x7f, 0x1402fe55f\nlea     rax, ??_7GJRateLevelLayer@@6B@_2; const GJRateLevelLayer::`vftable' ; +0x86, 0x1402fe566\nmov     [rbx+150h], rax                                                ; +0x8d, 0x1402fe56d\nlea     rax, ??_7GJRateLevelLayer@@6B@_3; const GJRateLevelLayer::`vftable' ; +0x94, 0x1402fe574\nmov     [rbx+158h], rax                                                ; +0x9b, 0x1402fe57b\nlea     rax, ??_7GJRateLevelLayer@@6B@_4; const GJRateLevelLayer::`vftable' ; +0xa2, 0x1402fe582\nmov     [rbx+160h], rax                                                ; +0xa9, 0x1402fe589\nlea     rax, ??_7GJRateLevelLayer@@6B@_5; const GJRateLevelLayer::`vftable' ; +0xb0, 0x1402fe590\nmov     [rbx+198h], rax                                                ; +0xb7, 0x1402fe597\nlea     rax, ??_7GJRateLevelLayer@@6B@_6; const GJRateLevelLayer::`vftable' ; +0xbe, 0x1402fe59e\nmov     [rbx+1B0h], rax                                                ; +0xc5, 0x1402fe5a5\nlea     rax, ??_7GJRateLevelLayer@@6B@_7; const GJRateLevelLayer::`vftable' ; +0xcc, 0x1402fe5ac\nmov     [rbx+278h], rax                                                ; +0xd3, 0x1402fe5b3\nlea     rax, ??_7GJRateLevelLayer@@6B@_8; const GJRateLevelLayer::`vftable' ; +0xda, 0x1402fe5ba\nmov     [rbx+280h], rax                                                ; +0xe1, 0x1402fe5c1\nlea     rax, ??_7GJRateLevelLayer@@6B@_9; const GJRateLevelLayer::`vftable' ; +0xe8, 0x1402fe5c8\nmov     [rbx+288h], rax                                                ; +0xef, 0x1402fe5cf\nlea     rax, ??_7GJRateLevelLayer@@6B@_10; const GJRateLevelLayer::`vftable' ; +0xf6, 0x1402fe5d6\nmov     [rbx+3A8h], rax                                                ; +0xfd, 0x1402fe5dd\nlea     rax, ??_7GJRateLevelLayer@@6B@_11; const GJRateLevelLayer::`vftable' ; +0x104, 0x1402fe5e4\nmov     [rbx+3B0h], rax                                                ; +0x10b, 0x1402fe5eb\nlea     rax, ??_7GJRateLevelLayer@@6B@_12; const GJRateLevelLayer::`vftable' ; +0x112, 0x1402fe5f2\nmov     [rbx+3B8h], rax                                                ; +0x119, 0x1402fe5f9\nlea     rax, ??_7GJRateLevelLayer@@6B@_13; const GJRateLevelLayer::`vftable' ; +0x120, 0x1402fe600\nmov     [rbx+3C0h], rax                                                ; +0x127, 0x1402fe607\nxor     esi, esi                                                       ; +0x12e, 0x1402fe60e\nmov     [rbx+3C8h], rsi                                                ; +0x130, 0x1402fe610\nmov     [rbx+3D0h], sil                                                ; +0x137, 0x1402fe617\nmov     [rbx+3D8h], rsi                                                ; +0x13e, 0x1402fe61e\nmov     [rbx+3E0h], rsi                                                ; +0x145, 0x1402fe625\nmov     [rbx+3E8h], esi                                                ; +0x14c, 0x1402fe62c\nmov     [rbx+3ECh], sil                                                ; +0x152, 0x1402fe632\nmov     [rbx+3F0h], rsi                                                ; +0x159, 0x1402fe639\nmov     [rbx+3F8h], rsi                                                ; +0x160, 0x1402fe640\nmov     [rbx+400h], rsi                                                ; +0x167, 0x1402fe647\nmov     [rbx+408h], esi                                                ; +0x16e, 0x1402fe64e\nmov     [rbx+410h], rsi                                                ; +0x174, 0x1402fe654\nlea     rcx, [rbx+418h]                                                ; +0x17b, 0x1402fe65b\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x182, 0x1402fe662\nnop                                                                    ; +0x188, 0x1402fe668\nmov     rdx, rdi                                                       ; +0x189, 0x1402fe669\nmov     rcx, rbx                                                       ; +0x18c, 0x1402fe66c\ncall    GJRateLevelLayer__init                                         ; +0x18f, 0x1402fe66f\nmov     rcx, rbx                                                       ; +0x194, 0x1402fe674\ntest    al, al                                                         ; +0x197, 0x1402fe677\njz      short loc_1402FE683                                            ; +0x199, 0x1402fe679\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x19b, 0x1402fe67b\njmp     short loc_1402FE691                                            ; +0x1a1, 0x1402fe681\nmov     rax, [rbx]                                                     ; +0x1a3, 0x1402fe683\nmov     edx, 1                                                         ; +0x1a6, 0x1402fe686\ncall    qword ptr [rax+8]                                              ; +0x1ab, 0x1402fe68b\nmov     rbx, rsi                                                       ; +0x1ae, 0x1402fe68e\nmov     rax, [rbx]                                                     ; +0x1b1, 0x1402fe691\nmov     rdx, [rax+410h]                                                ; +0x1b4, 0x1402fe694\nlea     rax, CollisionBlockPopup__show; Merged with: CollisionBlockPopup::show, ColorSelectLiveOverlay::show, SetupTriggerPopup::show, HSVLiveOverlay::show, SetTextPopup::show, SetupObjectOptionsPopup::show, SetupSmartBlockLayer::show ; +0x1bb, 0x1402fe69b\nmov     rcx, rbx                                                       ; +0x1c2, 0x1402fe6a2\ncmp     rdx, rax                                                       ; +0x1c5, 0x1402fe6a5\njnz     short loc_1402FE6BE                                            ; +0x1c8, 0x1402fe6a8\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x1ca, 0x1402fe6aa\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x1cf, 0x1402fe6af\nadd     rsp, 20h                                                       ; +0x1d4, 0x1402fe6b4\npop     rdi                                                            ; +0x1d8, 0x1402fe6b8\njmp     CollisionBlockPopup__show; Merged with: CollisionBlockPopup::show, ColorSelectLiveOverlay::show, SetupTriggerPopup::show, HSVLiveOverlay::show, SetTextPopup::show, SetupObjectOptionsPopup::show, SetupSmartBlockLayer::show ; +0x1d9, 0x1402fe6b9\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x1de, 0x1402fe6be\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x1e3, 0x1402fe6c3\nadd     rsp, 20h                                                       ; +0x1e8, 0x1402fe6c8\npop     rdi                                                            ; +0x1ec, 0x1402fe6cc\njmp     rdx                                                            ; +0x1ed, 0x1402fe6cd\ncmp     dword ptr [rdi+358h], 5                                        ; +0x1f0, 0x1402fe6d0\nsetz    dl                                                             ; +0x1f7, 0x1402fe6d7\nmov     ecx, [rdi+148h]                                                ; +0x1fa, 0x1402fe6da\nsub     ecx, [rdi+14Ch]                                                ; +0x200, 0x1402fe6e0\nmov     r8b, 1                                                         ; +0x206, 0x1402fe6e6\ncall    RateStarsLayer__create                                         ; +0x209, 0x1402fe6e9\nmov     rdx, [rax]                                                     ; +0x20e, 0x1402fe6ee\nmov     rcx, rax                                                       ; +0x211, 0x1402fe6f1\ncall    qword ptr [rdx+410h]                                           ; +0x214, 0x1402fe6f4\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x21a, 0x1402fe6fa\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x21f, 0x1402fe6ff\nadd     rsp, 20h                                                       ; +0x224, 0x1402fe704\npop     rdi                                                            ; +0x228, 0x1402fe708\nretn                                                                   ; +0x229, 0x1402fe709", "xrefs": ["LevelInfoLayer::init @ 0x1402f8940", "<???> @ 0x1406d4280"], "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"}