{"type": "func", "start": 4296742924, "end": 4296743100, "name": "GJRateLevelLayer::onRate", "pseudocode": "// \n// GJRateLevelLayer::onRate from 0x1001b180c to 0x1001b18bc (176 bytes)\n// \n// 1 xrefs:\n// > GJRateLevelLayer::init @ 0x1001b141c\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 GJRateLevelLayer::onRate(GJRateLevelLayer *a1, cocos2d::CCObject *a2)\n{\n  GameLevelManager *v3; // x0\n  int v4; // w0\n  UploadActionPopup *m_uploadPopup; // x8\n  UploadActionPopup *v6; // x0\n  void *__p[2]; // [xsp+8h] [xbp-28h] BYREF\n  char v8; // [xsp+1Fh] [xbp-11h]\n\n  if ( a1->m_stars != -1 )\n  {\n    v3 = GameLevelManager::sharedState();\n    GameLevelManager::suggestLevelStars(\n      v3,\n      a1->m_level->m_levelID.random - a1->m_level->m_levelID.seed,\n      a1->m_stars,\n      a1->m_difficultySprite->m_featureState);\n    if ( v4 )\n    {\n      GameLevelManager::sharedState()->m_uploadActionDelegate = &a1->UploadActionDelegate;\n      m_uploadPopup = a1->m_uploadPopup;\n      if ( m_uploadPopup )\n        m_uploadPopup->m_delegate = nullptr;\n      sub_100009900(__p, \"Sending rating...\");\n      v6 = (UploadActionPopup *)UploadActionPopup::create(&a1->UploadPopupDelegate, __p);\n      a1->m_uploadPopup = v6;\n      if ( v8 < 0 )\n      {\n        operator delete(__p[0]);\n        v6 = a1->m_uploadPopup;\n      }\n      ((void (__fastcall *)(UploadActionPopup *))v6->show)(v6);\n    }\n  }\n}", "assembly": "; \n; GJRateLevelLayer::onRate from 0x1001b180c to 0x1001b18bc (176 bytes)\n; \n; 1 xrefs:\n; > GJRateLevelLayer::init @ 0x1001b141c\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\nSUB             SP, SP, #0x40                                          ; +0x0, 0x1001b180c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x4, 0x1001b1810\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0x8, 0x1001b1814\nADD             X29, SP, #0x30                                         ; +0xc, 0x1001b1818\nLDR             W8, [X0,#0x3F0]                                        ; +0x10, 0x1001b181c\nCMN             W8, #1                                                 ; +0x14, 0x1001b1820\nB.EQ            loc_1001B18AC                                          ; +0x18, 0x1001b1824\nMOV             X19, X0                                                ; +0x1c, 0x1001b1828\nBL              GameLevelManager__sharedState                          ; +0x20, 0x1001b182c\nLDR             X8, [X19,#0x3D0]                                       ; +0x24, 0x1001b1830\nLDR             W9, [X8,#0x148]                                        ; +0x28, 0x1001b1834\nLDR             W8, [X8,#0x14C]                                        ; +0x2c, 0x1001b1838\nSUB             W1, W9, W8                                             ; +0x30, 0x1001b183c\nLDR             W2, [X19,#0x3F0]                                       ; +0x34, 0x1001b1840\nLDR             X8, [X19,#0x408]                                       ; +0x38, 0x1001b1844\nLDR             W3, [X8,#0x254]                                        ; +0x3c, 0x1001b1848\nBL              GameLevelManager__suggestLevelStars                    ; +0x40, 0x1001b184c\nCBZ             W0, loc_1001B18AC                                      ; +0x44, 0x1001b1850\nBL              GameLevelManager__sharedState                          ; +0x48, 0x1001b1854\nADD             X8, X19, #0x3B8                                        ; +0x4c, 0x1001b1858\nSTR             X8, [X0,#0x328]                                        ; +0x50, 0x1001b185c\nLDR             X8, [X19,#0x400]                                       ; +0x54, 0x1001b1860\nCBZ             X8, loc_1001B186C                                      ; +0x58, 0x1001b1864\nSTR             XZR, [X8,#0x278]                                       ; +0x5c, 0x1001b1868\nADRL            X1, aSendingRating; \"Sending rating...\"                ; +0x60, 0x1001b186c\nADD             X0, SP, #0x30+__p; int                                 ; +0x68, 0x1001b1874\nBL              sub_100009900                                          ; +0x6c, 0x1001b1878\nADD             X0, X19, #0x3B0                                        ; +0x70, 0x1001b187c\nADD             X1, SP, #0x30+__p                                      ; +0x74, 0x1001b1880\nBL              UploadActionPopup__create                              ; +0x78, 0x1001b1884\nSTR             X0, [X19,#0x400]                                       ; +0x7c, 0x1001b1888\nLDRSB           W8, [SP,#0x30+var_11]                                  ; +0x80, 0x1001b188c\nTBZ             W8, #0x1F, loc_1001B18A0                               ; +0x84, 0x1001b1890\nLDR             X0, [SP,#0x30+__p]; __p                                ; +0x88, 0x1001b1894\nBL              __ZdlPv; operator delete(void *)                       ; +0x8c, 0x1001b1898\nLDR             X0, [X19,#0x400]                                       ; +0x90, 0x1001b189c\nLDR             X8, [X0]                                               ; +0x94, 0x1001b18a0\nLDR             X8, [X8,#0x508]                                        ; +0x98, 0x1001b18a4\nBLR             X8                                                     ; +0x9c, 0x1001b18a8\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0xa0, 0x1001b18ac\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0xa4, 0x1001b18b0\nADD             SP, SP, #0x40 ; '@'                                    ; +0xa8, 0x1001b18b4\nRET                                                                    ; +0xac, 0x1001b18b8", "xrefs": ["GJRateLevelLayer::init @ 0x1001b141c"], "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"}