{"type": "func", "start": 4213544, "end": 4213784, "name": "GJGarageLayer::dialogClosed", "pseudocode": "// \n// GJGarageLayer::dialogClosed from 0x404b28 to 0x404c18 (240 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'GJGarageLayer::dialogClosed @ 0x404c24\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; // r0\n  GameManager *v4; // r0\n  void (__fastcall *updateRate)(GJGarageLayer *__hidden); // r3\n  cocos2d::CCDirector *v6; // r0\n  CurrencyRewardLayer *v7; // r8\n  GJItemIcon *BrowserItem; // r6\n  cocos2d::CCPoint v9; // r2\n  float v10; // [sp+0h] [bp-38h]\n  float v11; // [sp+20h] [bp-18h]\n  cocos2d::CCSize v12; // [sp+24h] [bp-14h] BYREF\n  cocos2d::CCPoint v13; // [sp+2Ch] [bp-Ch] BYREF\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  updateRate = a1->updateRate;\n  v4->m_hasRatedGame = 1;\n  updateRate(a1);\n  v6 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::getWinSize(&v12, v6);\n  cocos2d::CCPoint::CCPoint(&v13, v12.width * 0.5, v12.height * 0.5);\n  v7 = CurrencyRewardLayer::create(\n         0,\n         0,\n         0,\n         0,\n         Icon,\n         0,\n         Icon,\n         0,\n         (cocos2d::CCPoint)(unsigned int)&v13,\n         (CurrencyRewardType)0,\n         1.0,\n         v11);\n  a1->addChild_0(a1, v7, 100);\n  BrowserItem = GJItemIcon::createBrowserItem((UnlockType)1, 13);\n  cocos2d::CCPoint::CCPoint(&v13, v12.width * 0.5, v12.height * 0.5);\n  LODWORD(v9.x) = &v13;\n  v9.y = 0.5;\n  CurrencyRewardLayer::createUnlockObject(v7, BrowserItem, v9, v10);\n}", "assembly": "; \n; GJGarageLayer::dialogClosed from 0x404b28 to 0x404c18 (240 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'GJGarageLayer::dialogClosed @ 0x404c24\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.W          {R4-R8,LR}                                             ; +0x0, 0x404b28\nMOV             R6, R0                                                 ; +0x4, 0x404b2c\nLDR             R5, =(__stack_chk_guard_ptr - 0x404B3A)                ; +0x6, 0x404b2e\nMOVS            R7, #1                                                 ; +0x8, 0x404b30\nVPUSH           {D8}                                                   ; +0xa, 0x404b32\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x404b36\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x404b38\nLDR             R3, [R5]                                               ; +0x12, 0x404b3a\nVMOV.F32        S16, #0.5                                              ; +0x14, 0x404b3c\nSUB             SP, SP, #0x38                                          ; +0x18, 0x404b40\nADD             R4, SP, #0x38+var_C                                    ; +0x1a, 0x404b42\nSTR             R3, [SP,#0x38+var_4]                                   ; +0x1c, 0x404b44\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x1e, 0x404b46\nLDR             R1, =(aGeometryAchRat - 0x404B54); \"geometry.ach.rate\" ; +0x22, 0x404b4a\nMOVS            R2, #0x64 ; 'd'; int                                   ; +0x24, 0x404b4c\nMOVS            R3, #0; bool                                           ; +0x26, 0x404b4e\nADD             R1, PC; \"geometry.ach.rate\"                            ; +0x28, 0x404b50\nBL              _ZN11GameManager23reportAchievementWithIDEPKcib; GameManager::reportAchievementWithID(char const*,int,bool) ; +0x2a, 0x404b52\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x2e, 0x404b56\nSTRB.W          R7, [R0,#0x1B0]                                        ; +0x32, 0x404b5a\nBL              _ZN11GameManager11sharedStateEv; GameManager::sharedState(void) ; +0x36, 0x404b5e\nLDR             R3, [R6]                                               ; +0x3a, 0x404b62\nLDR.W           R3, [R3,#0x24C]                                        ; +0x3c, 0x404b64\nSTRB.W          R7, [R0,#0x2EC]                                        ; +0x40, 0x404b68\nMOV             R0, R6                                                 ; +0x44, 0x404b6c\nBLX             R3                                                     ; +0x46, 0x404b6e\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x48, 0x404b70\nMOV             R1, R0                                                 ; +0x4c, 0x404b74\nADD             R0, SP, #0x38+var_14; this                             ; +0x4e, 0x404b76\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x50, 0x404b78\nVLDR            S15, [SP,#0x38+var_14]                                 ; +0x54, 0x404b7c\nMOV             R0, R4; this                                           ; +0x58, 0x404b80\nVMUL.F32        S15, S15, S16                                          ; +0x5a, 0x404b82\nVMOV            R1, S15; float                                         ; +0x5e, 0x404b86\nVLDR            S15, [SP,#0x38+var_10]                                 ; +0x62, 0x404b8a\nVMUL.F32        S15, S15, S16                                          ; +0x66, 0x404b8e\nVMOV            R2, S15; float                                         ; +0x6a, 0x404b92\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x6e, 0x404b96\nMOVS            R0, #0; int                                            ; +0x72, 0x404b9a\nMOVS            R3, #0                                                 ; +0x74, 0x404b9c\nMOV             R1, R0; int                                            ; +0x76, 0x404b9e\nSTR             R3, [SP,#0x38+var_20]; float                           ; +0x78, 0x404ba0\nMOV             R2, R0; int                                            ; +0x7a, 0x404ba2\nMOV.W           R3, #0x3F800000                                        ; +0x7c, 0x404ba4\nSTR             R0, [SP,#0x38+var_38]; int                             ; +0x80, 0x404ba8\nSTR             R3, [SP,#0x38+var_1C]; float                           ; +0x82, 0x404baa\nMOV             R3, R0; int                                            ; +0x84, 0x404bac\nSTR             R0, [SP,#0x38+var_34]; int                             ; +0x86, 0x404bae\nSTR             R0, [SP,#0x38+var_30]; int                             ; +0x88, 0x404bb0\nSTR             R0, [SP,#0x38+var_2C]; int                             ; +0x8a, 0x404bb2\nSTR             R4, [SP,#0x38+var_28]; int                             ; +0x8c, 0x404bb4\nSTR             R0, [SP,#0x38+var_24]; int                             ; +0x8e, 0x404bb6\nBL              _ZN19CurrencyRewardLayer6createEiiii18CurrencySpriteTypeiS0_iN7cocos2d7CCPointE18CurrencyRewardTypeff; CurrencyRewardLayer::create(int,int,int,int,CurrencySpriteType,int,CurrencySpriteType,int,cocos2d::CCPoint,CurrencyRewardType,float,float) ; +0x90, 0x404bb8\nLDR             R3, [R6]                                               ; +0x94, 0x404bbc\nMOVS            R2, #0x64 ; 'd'                                        ; +0x96, 0x404bbe\nLDR.W           R3, [R3,#0xE0]                                         ; +0x98, 0x404bc0\nMOV             R8, R0                                                 ; +0x9c, 0x404bc4\nMOV             R0, R6                                                 ; +0x9e, 0x404bc6\nMOV             R1, R8                                                 ; +0xa0, 0x404bc8\nBLX             R3                                                     ; +0xa2, 0x404bca\nMOVS            R1, #0xD                                               ; +0xa4, 0x404bcc\nMOV             R0, R7                                                 ; +0xa6, 0x404bce\nBL              _ZN10GJItemIcon17createBrowserItemE10UnlockTypei; GJItemIcon::createBrowserItem(UnlockType,int) ; +0xa8, 0x404bd0\nVLDR            S15, [SP,#0x38+var_14]                                 ; +0xac, 0x404bd4\nVMUL.F32        S15, S15, S16                                          ; +0xb0, 0x404bd8\nVMOV            R1, S15; float                                         ; +0xb4, 0x404bdc\nVLDR            S15, [SP,#0x38+var_10]                                 ; +0xb8, 0x404be0\nVMUL.F32        S15, S15, S16                                          ; +0xbc, 0x404be4\nMOV             R6, R0                                                 ; +0xc0, 0x404be8\nMOV             R0, R4; this                                           ; +0xc2, 0x404bea\nVMOV            R2, S15; float                                         ; +0xc4, 0x404bec\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xc8, 0x404bf0\nMOV             R2, R4                                                 ; +0xcc, 0x404bf4\nVMOV            R3, S16                                                ; +0xce, 0x404bf6\nMOV             R0, R8                                                 ; +0xd2, 0x404bfa\nMOV             R1, R6                                                 ; +0xd4, 0x404bfc\nBL              _ZN19CurrencyRewardLayer18createUnlockObjectEPN7cocos2d8CCSpriteENS0_7CCPointEf; CurrencyRewardLayer::createUnlockObject(cocos2d::CCSprite *,cocos2d::CCPoint,float) ; +0xd6, 0x404bfe\nLDR             R2, [SP,#0x38+var_4]                                   ; +0xda, 0x404c02\nLDR             R3, [R5]                                               ; +0xdc, 0x404c04\nCMP             R2, R3                                                 ; +0xde, 0x404c06\nBEQ             loc_404C0E                                             ; +0xe0, 0x404c08\nBLX             __stack_chk_fail                                       ; +0xe2, 0x404c0a\nADD             SP, SP, #0x38 ; '8'                                    ; +0xe6, 0x404c0e\nVPOP            {D8}                                                   ; +0xe8, 0x404c10\nPOP.W           {R4-R8,PC}                                             ; +0xec, 0x404c14", "xrefs": ["`non-virtual thunk to'GJGarageLayer::dialogClosed @ 0x404c24"], "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"}