//
// GJGarageLayer::dialogClosed from 0x1003a39cc to 0x1003a3b00 (308 bytes)
//
// 2 xrefs:
// > sub_1003A3B00 @ 0x1003a3b04
// > ??> @ 0x100944270
//
// This function is hookable on this platform (idp: arm, 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 11:03:47 +0000
//
__int64 __fastcall GJGarageLayer::dialogClosed(__int64 a1)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x20
__int64 v7; // x19
float v9; // [xsp+10h] [xbp-30h] BYREF
__int64 v10; // [xsp+18h] [xbp-28h] BYREF
v2 = GameManager::sharedState(a1);
v3 = GameManager::reportAchievementWithID(v2, "geometry.ach.rate", 100, 0);
v4 = GameManager::sharedState(v3);
*(_BYTE *)(v4 + 684) = 1;
*(_BYTE *)(GameManager::sharedState(v4) + 1024) = 1;
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1192LL))(a1);
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v5, &v10);
sub_1000262BC(&v9, *(float *)&v10 * 0.5, *((float *)&v10 + 1) * 0.5);
v6 = CurrencyRewardLayer::create(0, 0, 0, 0, 0, 0, 0, 0, 0.0, 1.0, &v9, 0);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v6, 100);
v7 = GJItemIcon::create(1, 13, 11513775, 0xFFFFFF, 0, 1, 1, 0xFFFFFF);
sub_1000262BC(&v9, *(float *)&v10 * 0.5, *((float *)&v10 + 1) * 0.5);
return CurrencyRewardLayer::createUnlockObject(v6, v7, &v9, 0.5);
}