{"type": "func", "start": 5371299584, "end": 5371300048, "name": "GJGarageLayer::dialogClosed", "pseudocode": "// \n// GJGarageLayer::dialogClosed from 0x140278700 to 0x1402788d0 (464 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14056a300\n// > <???> @ 0x1406d1004\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=3\nvoid GJGarageLayer::dialogClosed(GJGarageLayer *a1, DialogLayer *a2)\n{\n  bool v2; // r9\n  float v3; // xmm0_4\n  GameManager *v5; // rcx\n  __int64 v6; // rax\n  __int64 v7; // rcx\n  cocos2d::CCDirector *v8; // rax\n  cocos2d::CCPoint v9; // rax\n  CurrencyRewardLayer *v10; // rsi\n  float v11; // xmm0_4\n  GJItemIcon *BrowserItem; // rdi\n  cocos2d::CCPoint v13; // rax\n  cocos2d::CCPoint v14; // [rsp+60h] [rbp-38h] BYREF\n  float v15; // [rsp+A0h] [rbp+8h]\n  void *v16; // [rsp+B0h] [rbp+18h]\n  void *v17; // [rsp+B0h] [rbp+18h]\n\n  v5 = (GameManager *)qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v16 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v16);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v5 = (GameManager *)qword_1406C2ED8;\n  }\n  GameManager::reportAchievementWithID(v5, \"geometry.ach.rate\", 100, v2);\n  v6 = qword_1406C2ED8;\n  if ( !qword_1406C2ED8 )\n  {\n    v17 = operator new(0x668u);\n    qword_1406C2ED8 = sub_14017AB00((__int64)v17);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n    v6 = qword_1406C2ED8;\n  }\n  *(_BYTE *)(v6 + 676) = 1;\n  *(_BYTE *)(v6 + 1004) = 1;\n  (**(void (__fastcall ***)(int *))&a1[-1].m_iconID)(&a1[-1].m_iconID);\n  v8 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v7);\n  cocos2d::CCDirector::getWinSize(v8);\n  cocos2d::CCPoint::CCPoint(v3, v15 * 0.5);\n  v10 = CurrencyRewardLayer::create(0, 0, 0, 0, Icon, 0, Icon, 0, v9, (CurrencyRewardType)0, 0.0, 1.0);\n  v11 = (*(float (__fastcall **)(float *, CurrencyRewardLayer *, __int64))(*(_QWORD *)&a1[-1].m_sInverse.b + 440LL))(\n          &a1[-1].m_sInverse.b,\n          v10,\n          100);\n  cocos2d::CCPoint::CCPoint(v11, v15 * 0.5);\n  BrowserItem = GJItemIcon::createBrowserItem((UnlockType)1, 13);\n  cocos2d::CCPoint::CCPoint(&v14);\n  CurrencyRewardLayer::createObjectsFull(v10, Icon, 1, BrowserItem, v13, 0.5);\n}", "assembly": "; \n; GJGarageLayer::dialogClosed from 0x140278700 to 0x1402788d0 (464 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14056a300\n; > <???> @ 0x1406d1004\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, 0x140278700\npush    rsi                                                            ; +0x2, 0x140278702\npush    rdi                                                            ; +0x3, 0x140278703\nsub     rsp, 80h                                                       ; +0x4, 0x140278704\nmovaps  [rsp+98h+var_28], xmm6                                         ; +0xb, 0x14027870b\nmov     rbx, rcx                                                       ; +0x10, 0x140278710\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x13, 0x140278713\ntest    rcx, rcx                                                       ; +0x1a, 0x14027871a\njnz     short loc_140278751                                            ; +0x1d, 0x14027871d\nmov     ecx, 668h; Size                                                ; +0x1f, 0x14027871f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x24, 0x140278724\nmov     [rsp+98h+arg_10], rax                                          ; +0x29, 0x140278729\nmov     rcx, rax                                                       ; +0x31, 0x140278731\ncall    sub_14017AB00                                                  ; +0x34, 0x140278734\nnop                                                                    ; +0x39, 0x140278739\nmov     cs:qword_1406C2ED8, rax                                        ; +0x3a, 0x14027873a\nmov     rdx, [rax]                                                     ; +0x41, 0x140278741\nmov     rcx, rax                                                       ; +0x44, 0x140278744\ncall    qword ptr [rdx+48h]                                            ; +0x47, 0x140278747\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x4a, 0x14027874a\nmov     r8d, 64h ; 'd'                                                 ; +0x51, 0x140278751\nlea     rdx, aGeometryAchRat; \"geometry.ach.rate\"                      ; +0x57, 0x140278757\ncall    GameManager__reportAchievementWithID                           ; +0x5e, 0x14027875e\nmov     rax, cs:qword_1406C2ED8                                        ; +0x63, 0x140278763\ntest    rax, rax                                                       ; +0x6a, 0x14027876a\njnz     short loc_1402787A1                                            ; +0x6d, 0x14027876d\nmov     ecx, 668h; Size                                                ; +0x6f, 0x14027876f\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x74, 0x140278774\nmov     [rsp+98h+arg_10], rax                                          ; +0x79, 0x140278779\nmov     rcx, rax                                                       ; +0x81, 0x140278781\ncall    sub_14017AB00                                                  ; +0x84, 0x140278784\nnop                                                                    ; +0x89, 0x140278789\nmov     cs:qword_1406C2ED8, rax                                        ; +0x8a, 0x14027878a\nmov     rdx, [rax]                                                     ; +0x91, 0x140278791\nmov     rcx, rax                                                       ; +0x94, 0x140278794\ncall    qword ptr [rdx+48h]                                            ; +0x97, 0x140278797\nmov     rax, cs:qword_1406C2ED8                                        ; +0x9a, 0x14027879a\nmov     byte ptr [rax+2A4h], 1                                         ; +0xa1, 0x1402787a1\nmov     byte ptr [rax+3ECh], 1                                         ; +0xa8, 0x1402787a8\nlea     rcx, [rbx-10h]                                                 ; +0xaf, 0x1402787af\nmov     rax, [rcx]                                                     ; +0xb3, 0x1402787b3\ncall    qword ptr [rax]                                                ; +0xb6, 0x1402787b6\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0xb8, 0x1402787b8\nmov     rcx, rax                                                       ; +0xbe, 0x1402787be\nlea     rdx, [rsp+98h+arg_0]                                           ; +0xc1, 0x1402787c1\ncall    cs:?getWinSize@CCDirector@cocos2d@@QEAA?AVCCSize@2@XZ; cocos2d::CCDirector::getWinSize(void) ; +0xc9, 0x1402787c9\nmovss   xmm2, [rsp+98h+arg_4]                                          ; +0xcf, 0x1402787cf\nmovss   xmm6, cs:dword_140622B08                                       ; +0xd8, 0x1402787d8\nmulss   xmm2, xmm6                                                     ; +0xe0, 0x1402787e0\nmovss   xmm1, [rsp+98h+arg_0]                                          ; +0xe4, 0x1402787e4\nmulss   xmm1, xmm6                                                     ; +0xed, 0x1402787ed\nlea     rcx, [rsp+98h+arg_10]                                          ; +0xf1, 0x1402787f1\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xf9, 0x1402787f9\nmovss   xmm0, cs:flt_140622C24                                         ; +0xff, 0x1402787ff\nmovss   [rsp+98h+var_40], xmm0                                         ; +0x107, 0x140278807\nxorps   xmm1, xmm1                                                     ; +0x10d, 0x14027880d\nmovss   [rsp+98h+var_48], xmm1                                         ; +0x110, 0x140278810\nxor     ecx, ecx                                                       ; +0x116, 0x140278816\nmov     [rsp+98h+var_50], ecx                                          ; +0x118, 0x140278818\nmov     [rsp+98h+var_58], rax                                          ; +0x11c, 0x14027881c\nmov     [rsp+98h+var_60], ecx                                          ; +0x121, 0x140278821\nmov     [rsp+98h+var_68], ecx                                          ; +0x125, 0x140278825\nmov     [rsp+98h+var_70], ecx                                          ; +0x129, 0x140278829\nmov     dword ptr [rsp+98h+var_78], ecx                                ; +0x12d, 0x14027882d\nxor     r9d, r9d                                                       ; +0x131, 0x140278831\nxor     r8d, r8d                                                       ; +0x134, 0x140278834\nxor     edx, edx                                                       ; +0x137, 0x140278837\ncall    CurrencyRewardLayer__create                                    ; +0x139, 0x140278839\nmov     rsi, rax                                                       ; +0x13e, 0x14027883e\nlea     rcx, [rbx-1B8h]                                                ; +0x141, 0x140278841\nmov     r9, [rcx]                                                      ; +0x148, 0x140278848\nmov     r8d, 64h ; 'd'                                                 ; +0x14b, 0x14027884b\nmov     rdx, rax                                                       ; +0x151, 0x140278851\ncall    qword ptr [r9+1B8h]                                            ; +0x154, 0x140278854\nmovss   xmm2, [rsp+98h+arg_4]                                          ; +0x15b, 0x14027885b\nmulss   xmm2, xmm6                                                     ; +0x164, 0x140278864\nmovss   xmm1, [rsp+98h+arg_0]                                          ; +0x168, 0x140278868\nmulss   xmm1, xmm6                                                     ; +0x171, 0x140278871\nlea     rcx, [rsp+98h+arg_18]                                          ; +0x175, 0x140278875\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x17d, 0x14027887d\nmov     rbx, rax                                                       ; +0x183, 0x140278883\nmov     edx, 0Dh                                                       ; +0x186, 0x140278886\nlea     ecx, [rdx-0Ch]                                                 ; +0x18b, 0x14027888b\ncall    GJItemIcon__createBrowserItem                                  ; +0x18e, 0x14027888e\nmov     rdi, rax                                                       ; +0x193, 0x140278893\nmov     rdx, rbx                                                       ; +0x196, 0x140278896\nlea     rcx, [rsp+98h+var_38]                                          ; +0x199, 0x140278899\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x19e, 0x14027889e\nmovss   [rsp+98h+var_70], xmm6                                         ; +0x1a4, 0x1402788a4\nmov     [rsp+98h+var_78], rax                                          ; +0x1aa, 0x1402788aa\nmov     r9, rdi                                                        ; +0x1af, 0x1402788af\nxor     edx, edx                                                       ; +0x1b2, 0x1402788b2\nlea     r8d, [rdx+1]                                                   ; +0x1b4, 0x1402788b4\nmov     rcx, rsi                                                       ; +0x1b8, 0x1402788b8\ncall    CurrencyRewardLayer__createObjectsFull                         ; +0x1bb, 0x1402788bb\nmovaps  xmm6, [rsp+98h+var_28]                                         ; +0x1c0, 0x1402788c0\nadd     rsp, 80h                                                       ; +0x1c5, 0x1402788c5\npop     rdi                                                            ; +0x1cc, 0x1402788cc\npop     rsi                                                            ; +0x1cd, 0x1402788cd\npop     rbx                                                            ; +0x1ce, 0x1402788ce\nretn                                                                   ; +0x1cf, 0x1402788cf", "xrefs": ["<???> @ 0x14056a300", "<???> @ 0x1406d1004"], "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"}