//
// GJGarageLayer::dialogClosed from 0x100358f90 to 0x1003590ce (318 bytes)
//
// 2 xrefs:
// > sub_1003590D0 @ 0x1003590dc
// > ??> @ 0x100b23ce0
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:28:53 +0000
//
__int64 __fastcall GJGarageLayer::dialogClosed(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v4; // rax
__int64 v5; // rdi
__int64 v6; // rdx
__int64 v7; // rax
__int64 v8; // rdx
double v9; // xmm0_8
__int64 v10; // rax
__int64 v11; // rax
__int64 v12; // r14
__int64 v13; // rbx
float v15; // [rsp+8h] [rbp-28h] BYREF
float v16; // [rsp+10h] [rbp-20h] BYREF
float v17; // [rsp+14h] [rbp-1Ch]
GameManager::sharedState(a1, a2, a3);
v5 = v4;
GameManager::reportAchievementWithID(v4, "geometry.ach.rate", 100, 0);
GameManager::sharedState(v5, "geometry.ach.rate", v6);
*(_BYTE *)(v7 + 684) = 1;
*(_QWORD *)&v9 = GameManager::sharedState(v5, "geometry.ach.rate", v8).u64[0];
*(_BYTE *)(v10 + 1024) = 1;
(*(void (__fastcall **)(__int64, double))(*(_QWORD *)a1 + 1192LL))(a1, v9);
v11 = cocos2d::CCDirector::sharedDirector(a1, "geometry.ach.rate");
cocos2d::CCDirector::getWinSize(&v16, v11);
sub_100278250(&v15, v16 * 0.5, v17 * 0.5);
v12 = CurrencyRewardLayer::create(0, 0, 0, 0, 0, 0, 0, 0, (__int64)&v15, 0);
(*(void (__fastcall **)(__int64, __int64, __int64, double, float))(*(_QWORD *)a1 + 464LL))(a1, v12, 100, 0.0, 1.0);
v13 = GJItemIcon::create(1, 13, 11513775, 0xFFFFFF, 0, 1, 1, 0xFFFFFF);
sub_100278250(&v15, v16 * 0.5, v17 * 0.5);
return CurrencyRewardLayer::createUnlockObject(v12, v13, &v15, 0.5);
}