//
// GJBaseGameLayer::createTextLayers from 0x8584cc to 0x8588f0 (1060 bytes)
//
// 4 xrefs:
// > PlayLayer::setupHasCompleted @ 0x5dc2d0
// > LevelEditorLayer::updateLevelFont @ 0x660ebc
// > LevelEditorLayer::init @ 0x67c92c
// > ??> @ 0x7b198
//
// 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 GJBaseGameLayer::createTextLayers(GJBaseGameLayer *a1)
{
GameManager *v2; // x20
GameManager *v3; // x0
const char *FontTexture; // x22
cocos2d::CCTextureCache *v5; // x0
cocos2d::CCTexture2D *v6; // x20
cocos2d::CCSpriteBatchNode *v7; // x0
cocos2d::CCSpriteBatchNode *v8; // x0
cocos2d::CCSpriteBatchNode_vtbl *v9; // x2
cocos2d::CCSpriteBatchNode *v10; // x0
cocos2d::CCSpriteBatchNode *v11; // x0
cocos2d::CCSpriteBatchNode_vtbl *v12; // x2
cocos2d::CCSpriteBatchNode *v13; // x0
cocos2d::CCSpriteBatchNode *v14; // x0
cocos2d::CCSpriteBatchNode_vtbl *v15; // x2
cocos2d::CCSpriteBatchNode *v16; // x0
cocos2d::CCSpriteBatchNode *v17; // x0
cocos2d::CCSpriteBatchNode_vtbl *v18; // x2
cocos2d::CCTextureCache *v19; // x0
cocos2d::CCTexture2D *v20; // x0
cocos2d::CCSpriteBatchNode *v21; // x0
cocos2d::CCTextureCache *v22; // x0
cocos2d::CCTexture2D *v23; // x0
cocos2d::CCSpriteBatchNode *v24; // x0
cocos2d::CCSpriteBatchNode_vtbl *v25; // x2
cocos2d::CCSpriteBatchNode *v26; // x0
cocos2d::CCSpriteBatchNode *v27; // x0
cocos2d::CCSpriteBatchNode_vtbl *v28; // x2
cocos2d::CCSpriteBatchNode *v29; // x0
cocos2d::CCSpriteBatchNode *v30; // x0
cocos2d::CCSpriteBatchNode_vtbl *v31; // x2
cocos2d::CCSpriteBatchNode *v32; // x0
cocos2d::CCSpriteBatchNode *v33; // x0
cocos2d::CCSpriteBatchNode_vtbl *v34; // x2
cocos2d::CCSpriteBatchNode *v35; // x0
cocos2d::CCSpriteBatchNode *v36; // x0
cocos2d::CCSpriteBatchNode_vtbl *v37; // x2
v2 = GameManager::sharedState();
v3 = GameManager::sharedState();
FontTexture = GameManager::getFontTexture(v2, v3->m_loadedFont);
v5 = cocos2d::CCTextureCache::sharedTextureCache();
v6 = cocos2d::CCTextureCache::addImage(v5, FontTexture, 0);
v7 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, (unsigned int)&off_18 + 5);
a1->m_textLayerT4 = v7;
a1->m_objectLayer->addChild_0(a1->m_objectLayer, v7, 1260);
v8 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, (unsigned int)&off_18 + 5);
v9 = v8->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_textBlendingLayerT4 = v8;
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, __int64))v9->setBlendFunc)(
v8,
(((_QWORD)&dword_0 + 1) << 32) | 0x302LL);
a1->m_objectLayer->addChild_0(a1->m_objectLayer, a1->m_textBlendingLayerT4, 1280);
v10 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, (unsigned int)&off_18 + 5);
a1->m_textLayerT3 = v10;
a1->m_objectLayer->addChild_0(a1->m_objectLayer, v10, 880);
v11 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, (unsigned int)&off_18 + 5);
v12 = v11->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_textBlendingLayerT3 = v11;
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, __int64))v12->setBlendFunc)(
v11,
(((_QWORD)&dword_0 + 1) << 32) | 0x302LL);
a1->m_objectLayer->addChild_0(a1->m_objectLayer, a1->m_textBlendingLayerT3, 900);
v13 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, (unsigned int)&off_18 + 5);
a1->m_textLayerT2 = v13;
a1->m_objectLayer->addChild_0(a1->m_objectLayer, v13, 580);
v14 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, (unsigned int)&off_18 + 5);
v15 = v14->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_textBlendingLayerT2 = v14;
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, __int64))v15->setBlendFunc)(
v14,
(((_QWORD)&dword_0 + 1) << 32) | 0x302LL);
a1->m_objectLayer->addChild_0(a1->m_objectLayer, a1->m_textBlendingLayerT2, 600);
v16 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, (unsigned int)&off_18 + 5);
a1->m_textLayerT1 = v16;
a1->m_objectLayer->addChild_0(a1->m_objectLayer, v16, 280);
v17 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, (unsigned int)&off_18 + 5);
v18 = v17->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_textBlendingLayerT1 = v17;
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, __int64))v18->setBlendFunc)(
v17,
(((_QWORD)&dword_0 + 1) << 32) | 0x302LL);
a1->m_objectLayer->addChild_0(a1->m_objectLayer, a1->m_textBlendingLayerT1, 300);
v19 = cocos2d::CCTextureCache::sharedTextureCache();
v20 = cocos2d::CCTextureCache::addImage(v19, FontTexture, 0);
v21 = cocos2d::CCSpriteBatchNode::createWithTexture(v20, (unsigned int)&off_18 + 5);
a1->m_textLayerB1 = v21;
a1->m_objectLayer->addChild_0(a1->m_objectLayer, v21, -100);
v22 = cocos2d::CCTextureCache::sharedTextureCache();
v23 = cocos2d::CCTextureCache::addImage(v22, FontTexture, 0);
v24 = cocos2d::CCSpriteBatchNode::createWithTexture(v23, (unsigned int)&off_18 + 5);
v25 = v24->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_textBlendingLayerB1 = v24;
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, __int64))v25->setBlendFunc)(
v24,
(((_QWORD)&dword_0 + 1) << 32) | 0x302LL);
a1->m_objectLayer->addChild_0(a1->m_objectLayer, a1->m_textBlendingLayerB1, -80);
v26 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, (unsigned int)&off_18 + 5);
a1->m_textLayerB2 = v26;
a1->m_objectLayer->addChild_0(a1->m_objectLayer, v26, -400);
v27 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, (unsigned int)&off_18 + 5);
v28 = v27->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_textBlendingLayerB2 = v27;
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, __int64))v28->setBlendFunc)(
v27,
(((_QWORD)&dword_0 + 1) << 32) | 0x302LL);
a1->m_objectLayer->addChild_0(a1->m_objectLayer, a1->m_textBlendingLayerB2, -380);
v29 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, (unsigned int)&off_18 + 5);
a1->m_textLayerB3 = v29;
a1->m_objectLayer->addChild_0(a1->m_objectLayer, v29, -700);
v30 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, (unsigned int)&off_18 + 5);
v31 = v30->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_textBlendingLayerB3 = v30;
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, __int64))v31->setBlendFunc)(
v30,
(((_QWORD)&dword_0 + 1) << 32) | 0x302LL);
a1->m_objectLayer->addChild_0(a1->m_objectLayer, a1->m_textBlendingLayerB3, -680);
v32 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, (unsigned int)&off_18 + 5);
a1->m_textLayerB4 = v32;
a1->m_objectLayer->addChild_0(a1->m_objectLayer, v32, -1000);
v33 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, (unsigned int)&off_18 + 5);
v34 = v33->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_textBlendingLayerB4 = v33;
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, __int64))v34->setBlendFunc)(
v33,
(((_QWORD)&dword_0 + 1) << 32) | 0x302LL);
a1->m_objectLayer->addChild_0(a1->m_objectLayer, a1->m_textBlendingLayerB4, -980);
v35 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, (unsigned int)&off_18 + 5);
a1->m_textLayerB5 = v35;
a1->m_objectLayer->addChild_0(a1->m_objectLayer, v35, -1300);
v36 = cocos2d::CCSpriteBatchNode::createWithTexture(v6, (unsigned int)&off_18 + 5);
v37 = v36->cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
a1->m_textBlendingLayerB5 = v36;
((void (__fastcall *)(cocos2d::CCSpriteBatchNode *, __int64))v37->setBlendFunc)(
v36,
(((_QWORD)&dword_0 + 1) << 32) | 0x302LL);
a1->m_objectLayer->addChild_0(a1->m_objectLayer, a1->m_textBlendingLayerB5, -1280);
}