// // GJGarageLayer::showUnlockPopup from 0x8bf864 to 0x8bfd14 (1200 bytes) // // 3 xrefs: // > `non-virtual thunk to'GJGarageLayer::showUnlockPopup @ 0x8bfd1c // > @ 0x70330 // > @ 0x145ab90 // // 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 12:56:30 +0000 // __int64 __fastcall GJGarageLayer::showUnlockPopup(__int64 a1, unsigned int a2, unsigned int a3) { cocos2d::CCArray *v4; // x24 cocos2d::CCObject *v5; // x0 cocos2d::CCObject *v6; // x0 cocos2d::CCObject *v7; // x0 cocos2d::CCObject *v8; // x0 cocos2d::CCObject *v9; // x0 cocos2d::CCObject *v10; // x0 int v11; // w2 __int64 v12; // x22 __int64 v14; // [xsp+58h] [xbp+58h] BYREF __int64 v15; // [xsp+60h] [xbp+60h] void *v16; // [xsp+68h] [xbp+68h] __int64 v17; // [xsp+70h] [xbp+70h] BYREF __int64 v18; // [xsp+78h] [xbp+78h] void *v19; // [xsp+80h] [xbp+80h] if ( a3 != 1 || a2 != 13 ) { GJGarageLayer::showUnlockPopupNew(a1, a2, a3); return _stack_chk_guard; } v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(_stack_chk_guard); v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "Scratch", 7u); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "Hey, over here...", 0x11u); v5 = (cocos2d::CCObject *)DialogObject::create(&v14, &v17, 10, 0, 0xFFFFFF, 0.8); cocos2d::CCArray::addObject(v4, v5); if ( (v17 & 1) != 0 ) { operator delete(v19); if ( (v14 & 1) == 0 ) goto LABEL_5; } else if ( (v14 & 1) == 0 ) { goto LABEL_5; } operator delete(v16); LABEL_5: v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "Scratch", 7u); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "I've been watching you, and you got some skills.", 0x30u); v6 = (cocos2d::CCObject *)DialogObject::create(&v14, &v17, 13, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v4, v6); if ( (v17 & 1) != 0 ) { operator delete(v19); if ( (v14 & 1) == 0 ) goto LABEL_7; } else if ( (v14 & 1) == 0 ) { goto LABEL_7; } operator delete(v16); LABEL_7: v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "Scratch", 7u); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "Whatever you need, Scratch's got it.", 0x2Cu); v7 = (cocos2d::CCObject *)DialogObject::create(&v14, &v17, 10, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v4, v7); if ( (v17 & 1) != 0 ) { operator delete(v19); if ( (v14 & 1) == 0 ) goto LABEL_9; } else if ( (v14 & 1) == 0 ) { goto LABEL_9; } operator delete(v16); LABEL_9: v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "Scratch", 7u); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "Here's a free sample. Come find me when you can.", 0x30u); v8 = (cocos2d::CCObject *)DialogObject::create(&v14, &v17, 8, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v4, v8); if ( (v17 & 1) != 0 ) { operator delete(v19); if ( (v14 & 1) == 0 ) goto LABEL_11; } else if ( (v14 & 1) == 0 ) { goto LABEL_11; } operator delete(v16); LABEL_11: v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "Scratch", 7u); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "Did you hear something?", 0x17u); v9 = (cocos2d::CCObject *)DialogObject::create(&v14, &v17, 9, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v4, v9); if ( (v17 & 1) != 0 ) { operator delete(v19); if ( (v14 & 1) == 0 ) goto LABEL_13; } else if ( (v14 & 1) == 0 ) { goto LABEL_13; } operator delete(v16); LABEL_13: v14 = 0; v15 = 0; v16 = nullptr; std::string::__init(&v14, "Scratch", 7u); v17 = 0; v18 = 0; v19 = nullptr; std::string::__init(&v17, "...", 0x15u); v10 = (cocos2d::CCObject *)DialogObject::create(&v14, &v17, 8, 0, 0xFFFFFF, 1.0); cocos2d::CCArray::addObject(v4, v10); if ( (v17 & 1) != 0 ) { operator delete(v19); if ( (v14 & 1) == 0 ) goto LABEL_15; goto LABEL_18; } if ( (v14 & 1) != 0 ) LABEL_18: operator delete(v16); LABEL_15: v12 = DialogLayer::createWithObjects(v4, (cocos2d::CCArray *)((char *)&dword_0 + 2), v11); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v12, 100); *(_QWORD *)(v12 + 624) = a1 + 440; DialogLayer::updateChatPlacement(v12, 0); DialogLayer::animateIn(v12, 2); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source