// // AccountLoginLayer::init from 0x587408 to 0x5879ee (1510 bytes) // // 1 xrefs: // > AccountLoginLayer::create @ 0x587ada // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:52:59 +0000 // int __fastcall AccountLoginLayer::init(int *a1, _BYTE *a2) { cocos2d::CCDirector *v3; // r0 cocos2d::CCLayer *WinSize; // r0 int v5; // r0 int v6; // r3 int v7; // r8 void (__fastcall *v8)(int, float *); // r7 const char *v9; // r2 int v10; // r10 void (__fastcall *v11)(int, float *); // r8 cocos2d::CCMenu *v12; // r0 int v13; // r0 cocos2d::CCArray *v14; // r0 cocos2d::CCArray *v15; // r8 const char *v16; // r1 ButtonSprite *v17; // r0 cocos2d::CCObject *v18; // r10 const char *v19; // r1 ButtonSprite *v20; // r0 cocos2d::CCObject *v21; // r7 const cocos2d::CCPoint *v22; // r10 float v23; // r11 float v24; // s17 float v25; // r0 int *TextInput; // r0 int v27; // r5 unsigned int v28; // r3 int v29; // r7 const char *v30; // r5 size_t v31; // r0 int *v32; // r0 int v33; // r6 ButtonSprite *v34; // r0 cocos2d::CCObject *v35; // r7 ButtonSprite *v36; // r0 cocos2d::CCObject *v37; // r9 const cocos2d::CCPoint *v38; // r10 float v39; // r7 float v40; // s17 float v41; // r0 float v42; // r0 cocos2d::CCLayerColor *v43; // r0 int v44; // r3 int v45; // r4 void (__fastcall *v46)(int, _BYTE *); // r5 float v49; // [sp+10h] [bp-84h] int v50; // [sp+14h] [bp-80h] float v51; // [sp+20h] [bp-74h] BYREF float v52; // [sp+24h] [bp-70h] float v53; // [sp+28h] [bp-6Ch] BYREF float v54; // [sp+2Ch] [bp-68h] _BYTE v55[8]; // [sp+30h] [bp-64h] BYREF _BYTE v56[8]; // [sp+38h] [bp-5Ch] BYREF _BYTE v57[8]; // [sp+40h] [bp-54h] BYREF _BYTE v58[8]; // [sp+48h] [bp-4Ch] BYREF _BYTE v59[8]; // [sp+50h] [bp-44h] BYREF int (__fastcall *v60)(AccountLoginLayer *, cocos2d::CCObject *); // [sp+58h] [bp-3Ch] int v61; // [sp+5Ch] [bp-38h] int (__fastcall *v62)(AccountLoginLayer *, cocos2d::CCObject *); // [sp+60h] [bp-34h] int v63; // [sp+64h] [bp-30h] _DWORD v64[2]; // [sp+68h] [bp-2Ch] BYREF int v65; // [sp+70h] [bp-24h] BYREF int v66; // [sp+74h] [bp-20h] int v67; // [sp+78h] [bp-1Ch] float v68[4]; // [sp+7Ch] [bp-18h] BYREF v68[0] = -1.034e-25; v50 = cocos2d::CCLayerColor::initWithColor(a1, v68); if ( v50 ) { FLAlertLayer::incrementForcePrio((cocos2d::CCObject *)a1); (*(void (__fastcall **)(int *, int))(*a1 + 500))(a1, 1); v3 = (cocos2d::CCDirector *)(*(int (__fastcall **)(int *, int))(*a1 + 536))(a1, 1); *((_BYTE *)a1 + 468) = 1; cocos2d::CCDirector::sharedDirector(v3); WinSize = (cocos2d::CCLayer *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v51); v5 = cocos2d::CCLayer::create(WinSize); v6 = *a1; a1[115] = v5; (*(void (__fastcall **)(int *, int))(v6 + 228))(a1, v5); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v68, 0.0, 0.0, 80.0, 80.0); v7 = cocos2d::extension::CCScale9Sprite::create("GJ_square01.png", v68); (*(void (__fastcall **)(int, int))(*(_DWORD *)v7 + 456))(v7, 255); v8 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v7 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v68, 400.0, 300.0); v8(v7, v68); (*(void (__fastcall **)(int, int, int))(*(_DWORD *)a1[115] + 232))(a1[115], v7, -1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v53, v51 * 0.5, v52 * 0.5); (*(void (__fastcall **)(int, float *))(*(_DWORD *)v7 + 92))(v7, &v53); v10 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Login", "bigFont.fnt", v9); v11 = *(void (__fastcall **)(int, float *))(*(_DWORD *)v10 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v68, v53, (float)(v54 + 150.0) - 16.0); v11(v10, v68); (*(void (__fastcall **)(int, int))(*(_DWORD *)a1[115] + 228))(a1[115], v10); v12 = (cocos2d::CCMenu *)(*(int (__fastcall **)(int, int))(*(_DWORD *)v10 + 80))(v10, 1058642330); a1[125] = -1; v13 = cocos2d::CCMenu::create(v12); a1[111] = v13; v14 = (cocos2d::CCArray *)(*(int (__fastcall **)(int, int, int))(*(_DWORD *)a1[115] + 232))(a1[115], v13, 10); v15 = (cocos2d::CCArray *)cocos2d::CCArray::create(v14); v17 = ButtonSprite::create((ButtonSprite *)"Cancel", v16); v61 = 0; v60 = AccountLoginLayer::onClose; v18 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create((int)v17, 0, (int)a1, (int)AccountLoginLayer::onClose, 0); (*(void (__fastcall **)(int, cocos2d::CCObject *))(*(_DWORD *)a1[111] + 228))(a1[111], v18); cocos2d::CCArray::addObject(v15, v18); v20 = ButtonSprite::create((ButtonSprite *)"Login", v19); v63 = 0; v62 = AccountLoginLayer::onSubmit; v21 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create((int)v20, 0, (int)a1, (int)AccountLoginLayer::onSubmit, 0); (*(void (__fastcall **)(int, cocos2d::CCObject *))(*(_DWORD *)a1[111] + 228))(a1[111], v21); cocos2d::CCArray::addObject(v15, v21); v22 = (const cocos2d::CCPoint *)a1[111]; v23 = v53; v24 = (float)(v54 - 150.0) + 22.0; v25 = (*(float (__fastcall **)(int))(*(_DWORD *)a1[115] + 96))(a1[115]); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v64, v23, v24 + *(float *)(LODWORD(v25) + 4)); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v68, v22); GameToolbox::alignItemsHorisontally(*(float *)&v15, 15.0, (int)v68, 0); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v55, 300.0, 30.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, v53, v54 + 80.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v64, (const cocos2d::CCPoint *)v56); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v68, (const cocos2d::CCSize *)v55); AccountLoginLayer::createTextBackground((int)a1, (int)v64, (int)"Username:", (int)v68); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v64, (const cocos2d::CCPoint *)v56); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v68, (const cocos2d::CCSize *)v55); a1[134] = AccountLoginLayer::createTextLabel((int)a1, (int)v64, (cocos2d::CCLabelBMFont *)"Username:", v68); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v64, (const cocos2d::CCPoint *)v56); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v68, (const cocos2d::CCSize *)v55); TextInput = AccountLoginLayer::createTextInput((int)a1, (int)v64, (int)v68, "Username", 1); v65 = 0; v66 = 0; v67 = 0; v27 = (int)TextInput; a1[132] = (int)TextInput; std::string::__init(&v65, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", 0x3Fu); CCTextInputNode::setAllowedChars(v27, (unsigned __int8 *)&v65); std::string::~string((int)&v65); *(_DWORD *)(a1[132] + 424) = 16; v28 = (unsigned __int8)*a2; if ( (v28 & 1) != 0 ) { if ( !*((_DWORD *)a2 + 1) ) goto LABEL_9; v29 = a1[132]; v30 = *((const char **)a2 + 2); } else { if ( !(v28 >> 1) ) goto LABEL_9; v29 = a1[132]; v30 = a2 + 1; } v65 = 0; v66 = 0; v67 = 0; v31 = strlen(v30); std::string::__init(&v65, v30, v31); CCTextInputNode::setString(v29, (int)&v65); std::string::~string((int)&v65); LABEL_9: cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v68, 0.0, -50.0); cocos2d::CCPoint::operator+(v57, v56, v68); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v64, (const cocos2d::CCPoint *)v57); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v68, (const cocos2d::CCSize *)v55); AccountLoginLayer::createTextBackground((int)a1, (int)v64, (int)"Password:", (int)v68); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v64, (const cocos2d::CCPoint *)v57); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v68, (const cocos2d::CCSize *)v55); a1[135] = AccountLoginLayer::createTextLabel((int)a1, (int)v64, (cocos2d::CCLabelBMFont *)"Password:", v68); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v64, (const cocos2d::CCPoint *)v57); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v68, (const cocos2d::CCSize *)v55); v32 = AccountLoginLayer::createTextInput((int)a1, (int)v64, (int)v68, "Password", 2); v65 = 0; v66 = 0; v67 = 0; v33 = (int)v32; a1[133] = (int)v32; std::string::__init(&v65, &unk_B6B226, 0); CCTextInputNode::setAllowedChars(v33, (unsigned __int8 *)&v65); std::string::~string((int)&v65); *(_DWORD *)(a1[133] + 424) = 64; *(_BYTE *)(a1[133] + 433) = 1; CCTextInputNode::setMaxLabelScale(a1[133], 1.0); cocos2d::CCArray::removeAllObjects(v15); v34 = ButtonSprite::create( (ButtonSprite *)"Forgot Username", (const char *)&dword_78, 0, 0.8, 1, "goldFont.fnt", "GJ_button_05.png", COERCE_CONST_CHAR_(25.0), *(float *)&a2); v64[1] = 0; v64[0] = AccountLoginLayer::onForgotUser; v35 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (int)v34, 0, (int)a1, (int)AccountLoginLayer::onForgotUser, 0); (*(void (__fastcall **)(int, cocos2d::CCObject *))(*(_DWORD *)a1[111] + 228))(a1[111], v35); v36 = ButtonSprite::create( (ButtonSprite *)"Forgot Password", (const char *)&dword_78, 0, 0.8, 1, "goldFont.fnt", "GJ_button_05.png", COERCE_CONST_CHAR_(25.0), v49); v68[1] = 0.0; LODWORD(v68[0]) = AccountLoginLayer::onForgotPassword; v37 = (cocos2d::CCObject *)CCMenuItemSpriteExtra::create( (int)v36, 0, (int)a1, (int)AccountLoginLayer::onForgotPassword, 0); (*(void (__fastcall **)(int, cocos2d::CCObject *))(*(_DWORD *)a1[111] + 228))(a1[111], v37); cocos2d::CCArray::addObject(v15, v37); cocos2d::CCArray::addObject(v15, v35); v38 = (const cocos2d::CCPoint *)a1[111]; v39 = v53; v40 = v54 - 45.0; v41 = (*(float (__fastcall **)(int))(*(_DWORD *)a1[115] + 96))(a1[115]); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v58, v39, v40 + *(float *)(LODWORD(v41) + 4)); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v59, v38); v42 = GameToolbox::alignItemsVertically(*(float *)&v15, 15.0, (int)v59); v43 = LoadingCircle::create((LoadingCircle *)LODWORD(v42)); v44 = a1[115]; a1[136] = (int)v43; *((_DWORD *)v43 + 111) = v44; *(_BYTE *)(a1[136] + 448) = 1; cocos2d::CCObject::retain((cocos2d::CCObject *)a1[136]); LoadingCircle::show((cocos2d::CCNode **)a1[136]); (*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)a1[136] + 172))(a1[136], 0); v45 = *(_DWORD *)(a1[136] + 440); v46 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v45 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v59, v51 * 0.5, v52 * 0.5); v46(v45, v59); } return v50; }
GD Web Decomp Icon

GD Web Decomp

Raw Source