//
// GJGarageLayer::showUnlockPopup from 0x4058e8 to 0x405b66 (638 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'GJGarageLayer::showUnlockPopup @ 0x405bbc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJGarageLayer::showUnlockPopup(GJGarageLayer *a1, int a2, UnlockType a3)
{
cocos2d::CCArray *v4; // r7
cocos2d::CCObject *v5; // r0
cocos2d::CCObject *v6; // r0
cocos2d::CCObject *v7; // r0
cocos2d::CCObject *v8; // r0
cocos2d::CCObject *v9; // r0
cocos2d::CCObject *v10; // r0
DialogLayer *v11; // r4
char v12; // [sp+14h] [bp-10h] BYREF
_BYTE v13[4]; // [sp+18h] [bp-Ch] BYREF
if ( a3 == 1 && a2 == 13 )
{
v4 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1);
sub_776584((int)&v12, "Scratch");
sub_776584((int)v13, "Hey, over here...");
v5 = (cocos2d::CCObject *)DialogObject::create(
(DialogObject *)&v12,
(std::string)v13,
(std::string)10,
1061997773,
0.0,
255);
cocos2d::CCArray::addObject(v4, v5);
sub_774008(v13);
sub_774008(&v12);
sub_776584((int)&v12, "Scratch");
sub_776584((int)v13, "I've been watching you, and you got some skills.");
v6 = (cocos2d::CCObject *)DialogObject::create(
(DialogObject *)&v12,
(std::string)v13,
(std::string)13,
1065353216,
0.0,
255);
cocos2d::CCArray::addObject(v4, v6);
sub_774008(v13);
sub_774008(&v12);
sub_776584((int)&v12, "Scratch");
sub_776584((int)v13, "Whatever you need, Scratch's got it.");
v7 = (cocos2d::CCObject *)DialogObject::create(
(DialogObject *)&v12,
(std::string)v13,
(std::string)10,
1065353216,
0.0,
255);
cocos2d::CCArray::addObject(v4, v7);
sub_774008(v13);
sub_774008(&v12);
sub_776584((int)&v12, "Scratch");
sub_776584((int)v13, "Here's a free sample. Come find me when you can.");
v8 = (cocos2d::CCObject *)DialogObject::create(
(DialogObject *)&v12,
(std::string)v13,
(std::string)8,
1065353216,
0.0,
255);
cocos2d::CCArray::addObject(v4, v8);
sub_774008(v13);
sub_774008(&v12);
sub_776584((int)&v12, "Scratch");
sub_776584((int)v13, "Did you hear something?");
v9 = (cocos2d::CCObject *)DialogObject::create(
(DialogObject *)&v12,
(std::string)v13,
(std::string)9,
1065353216,
0.0,
255);
cocos2d::CCArray::addObject(v4, v9);
sub_774008(v13);
sub_774008(&v12);
sub_776584((int)&v12, "Scratch");
sub_776584((int)v13, "...");
v10 = (cocos2d::CCObject *)DialogObject::create(
(DialogObject *)&v12,
(std::string)v13,
(std::string)8,
1065353216,
0.0,
255);
cocos2d::CCArray::addObject(v4, v10);
sub_774008(v13);
sub_774008(&v12);
v11 = DialogLayer::createWithObjects(v4, (int)&dword_0 + 2);
a1->addChild_0(a1, v11, 100);
v11->m_delegate = &a1->DialogDelegate;
DialogLayer::updateChatPlacement(v11, Center);
DialogLayer::animateIn(v11, FromLeft);
}
else
{
GJGarageLayer::showUnlockPopupNew(a1, a2, a3);
}
}