{"type": "func", "start": 7948860, "end": 7949196, "name": "GJGarageLayer::dialogClosed", "pseudocode": "// \n// GJGarageLayer::dialogClosed from 0x794a3c to 0x794b8c (336 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'GJGarageLayer::dialogClosed @ 0x794b90\n// > <???> @ 0x99270\n// > <???> @ 0x1178ab8\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 GJGarageLayer::dialogClosed(GJGarageLayer *a1, DialogLayer *a2)\n{\n  GameManager *v3; // x0\n  GameManager *v4; // x0\n  GJGarageLayer_vtbl *v5; // x1\n  cocos2d::CCDirector *v6; // x0\n  float v7; // s2\n  float v8; // s3\n  CurrencyRewardLayer *v9; // x22\n  float v10; // s2\n  GJItemIcon *BrowserItem; // [xsp+58h] [xbp+48h]\n  float v12; // [xsp+68h] [xbp+58h]\n  float v13; // [xsp+6Ch] [xbp+5Ch]\n  cocos2d::CCPoint v14; // [xsp+70h] [xbp+60h] BYREF\n  cocos2d::CCPoint v15; // 0:s0.4,4:s1.4\n  cocos2d::CCPoint v16; // 0:s0.4,4:s1.4\n\n  v3 = GameManager::sharedState();\n  GameManager::reportAchievementWithID(v3, \"geometry.ach.rate\", 100, 0);\n  GameManager::sharedState()->m_ratedGame = 1;\n  v4 = GameManager::sharedState();\n  v5 = a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  v4->m_hasRatedGame = 1;\n  v5->updateRate(a1);\n  v6 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(v6);\n  cocos2d::CCPoint::CCPoint(&v14, v12 * 0.5, v13 * 0.5);\n  v15.x = 0.0;\n  v15.y = 1.0;\n  v9 = CurrencyRewardLayer::create(0, 0, 0, 0, Icon, 0, Icon, 0, v15, (CurrencyRewardType)&v14, v7, v8);\n  a1->addChild_0(a1, v9, 100);\n  BrowserItem = GJItemIcon::createBrowserItem((UnlockType)1, 13);\n  cocos2d::CCPoint::CCPoint(&v14, v12 * 0.5, v13 * 0.5);\n  v16.x = 0.5;\n  CurrencyRewardLayer::createUnlockObject(v9, BrowserItem, v16, v10);\n}", "assembly": "; \n; GJGarageLayer::dialogClosed from 0x794a3c to 0x794b8c (336 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'GJGarageLayer::dialogClosed @ 0x794b90\n; > <???> @ 0x99270\n; > <???> @ 0x1178ab8\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, #0x80                                          ; +0x0, 0x794a3c\nSTP             X29, X30, [SP,#0x80+var_70]                            ; +0x4, 0x794a40\nADD             X29, SP, #0x10                                         ; +0x8, 0x794a44\nSTP             X19, X20, [SP,#0x80+var_60]                            ; +0xc, 0x794a48\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x794a4c\nADD             X19, X29, #0x70+var_10                                 ; +0x14, 0x794a50\nSTP             X21, X22, [SP,#0x80+var_50]                            ; +0x18, 0x794a54\nMOV             X21, X0                                                ; +0x1c, 0x794a58\nMOV             W22, #1                                                ; +0x20, 0x794a5c\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0x794a60\nSTR             D8, [SP,#0x80+var_40]                                  ; +0x28, 0x794a64\nFMOV            S8, #0.5                                               ; +0x2c, 0x794a68\nLDR             X0, [X20]; this                                        ; +0x30, 0x794a6c\nSTR             X0, [X29,#0x70+var_8]                                  ; +0x34, 0x794a70\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x38, 0x794a74\nADRP            X1, #aGeometryAchRat_3@PAGE; \"geometry.ach.rate\"       ; +0x3c, 0x794a78\nMOV             W2, #0x64 ; 'd'; int                                   ; +0x40, 0x794a7c\nMOV             W3, #0; bool                                           ; +0x44, 0x794a80\nADD             X1, X1, #aGeometryAchRat_3@PAGEOFF; \"geometry.ach.rate\" ; +0x48, 0x794a84\nBL              _ZN11GameManager23reportAchievementWithIDEPKcib; GameManager::reportAchievementWithID(char const*,int,bool) ; +0x4c, 0x794a88\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x50, 0x794a8c\nSTRB            W22, [X0,#0x244]                                       ; +0x54, 0x794a90\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x58, 0x794a94\nLDR             X1, [X21]                                              ; +0x5c, 0x794a98\nSTRB            W22, [X0,#0x38C]                                       ; +0x60, 0x794a9c\nMOV             X0, X21                                                ; +0x64, 0x794aa0\nLDR             X1, [X1,#0x498]                                        ; +0x68, 0x794aa4\nBLR             X1                                                     ; +0x6c, 0x794aa8\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x70, 0x794aac\nADD             X8, X29, #0x70+var_18                                  ; +0x74, 0x794ab0\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x78, 0x794ab4\nLDR             S0, [X29,#0x70+var_18]                                 ; +0x7c, 0x794ab8\nMOV             X0, X19; this                                          ; +0x80, 0x794abc\nLDR             S1, [X29,#0x70+var_14]                                 ; +0x84, 0x794ac0\nFMUL            S0, S0, S8; float                                      ; +0x88, 0x794ac4\nFMUL            S1, S1, S8; float                                      ; +0x8c, 0x794ac8\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x90, 0x794acc\nSTR             X19, [SP,#0x80+var_80]                                 ; +0x94, 0x794ad0\nFMOV            S0, WZR                                                ; +0x98, 0x794ad4\nMOV             W4, #0                                                 ; +0x9c, 0x794ad8\nMOV             W5, #0                                                 ; +0xa0, 0x794adc\nMOV             W6, #0                                                 ; +0xa4, 0x794ae0\nMOV             W7, #0                                                 ; +0xa8, 0x794ae4\nMOV             W3, #0                                                 ; +0xac, 0x794ae8\nFMOV            S1, #1.0                                               ; +0xb0, 0x794aec\nMOV             W1, #0                                                 ; +0xb4, 0x794af0\nMOV             W2, #0                                                 ; +0xb8, 0x794af4\nSTR             WZR, [SP,#0x80+var_78]                                 ; +0xbc, 0x794af8\nMOV             W0, #0                                                 ; +0xc0, 0x794afc\nBL              _ZN19CurrencyRewardLayer6createEiiii18CurrencySpriteTypeiS0_iN7cocos2d7CCPointE18CurrencyRewardTypeff; CurrencyRewardLayer::create(int,int,int,int,CurrencySpriteType,int,CurrencySpriteType,int,cocos2d::CCPoint,CurrencyRewardType,float,float) ; +0xc4, 0x794b00\nMOV             X22, X0                                                ; +0xc8, 0x794b04\nLDR             X3, [X21]                                              ; +0xcc, 0x794b08\nMOV             W2, #0x64 ; 'd'                                        ; +0xd0, 0x794b0c\nMOV             X0, X21                                                ; +0xd4, 0x794b10\nMOV             X1, X22                                                ; +0xd8, 0x794b14\nLDR             X3, [X3,#0x1C0]                                        ; +0xdc, 0x794b18\nBLR             X3                                                     ; +0xe0, 0x794b1c\nMOV             W1, #0xD                                               ; +0xe4, 0x794b20\nMOV             W0, #1                                                 ; +0xe8, 0x794b24\nBL              _ZN10GJItemIcon17createBrowserItemE10UnlockTypei; GJItemIcon::createBrowserItem(UnlockType,int) ; +0xec, 0x794b28\nSTR             X0, [X29,#0x70+var_28]                                 ; +0xf0, 0x794b2c\nLDR             S0, [X29,#0x70+var_18]                                 ; +0xf4, 0x794b30\nMOV             X0, X19; this                                          ; +0xf8, 0x794b34\nLDR             S1, [X29,#0x70+var_14]                                 ; +0xfc, 0x794b38\nFMUL            S0, S0, S8; float                                      ; +0x100, 0x794b3c\nFMUL            S1, S1, S8; float                                      ; +0x104, 0x794b40\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x108, 0x794b44\nFMOV            S0, S8                                                 ; +0x10c, 0x794b48\nLDR             X1, [X29,#0x70+var_28]                                 ; +0x110, 0x794b4c\nMOV             X0, X22                                                ; +0x114, 0x794b50\nMOV             X2, X19                                                ; +0x118, 0x794b54\nBL              _ZN19CurrencyRewardLayer18createUnlockObjectEPN7cocos2d8CCSpriteENS0_7CCPointEf; CurrencyRewardLayer::createUnlockObject(cocos2d::CCSprite *,cocos2d::CCPoint,float) ; +0x11c, 0x794b58\nLDR             X1, [X29,#0x70+var_8]                                  ; +0x120, 0x794b5c\nLDR             X0, [X20]                                              ; +0x124, 0x794b60\nCMP             X1, X0                                                 ; +0x128, 0x794b64\nB.NE            loc_794B88                                             ; +0x12c, 0x794b68\nSUB             SP, X29, #0x10                                         ; +0x130, 0x794b6c\nLDR             D8, [SP,#0x80+var_40]                                  ; +0x134, 0x794b70\nLDP             X19, X20, [SP,#0x80+var_60]                            ; +0x138, 0x794b74\nLDP             X21, X22, [SP,#0x80+var_50]                            ; +0x13c, 0x794b78\nLDP             X29, X30, [SP,#0x80+var_70]                            ; +0x140, 0x794b7c\nADD             SP, SP, #0x80                                          ; +0x144, 0x794b80\nRET                                                                    ; +0x148, 0x794b84\nBL              .__stack_chk_fail                                      ; +0x14c, 0x794b88", "xrefs": ["`non-virtual thunk to'GJGarageLayer::dialogClosed @ 0x794b90", "<???> @ 0x99270", "<???> @ 0x1178ab8"], "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"}