// // AccountRegisterLayer::textInputClosed from 0x469110 to 0x46936c (604 bytes) // // 1 xrefs: // > `non-virtual thunk to'AccountRegisterLayer::textInputClosed @ 0x469384 // // 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 AccountRegisterLayer::textInputClosed(AccountRegisterLayer *a1, CCTextInputNode *a2) { int v4; // r0 _BOOL4 v5; // r7 AccountRegisterLayer *v6; // r0 AccountError v7; // r1 _BOOL4 v8; // r8 int v9; // r9 AccountRegisterLayer *v10; // r0 AccountError v11; // r1 _BOOL4 v12; // r8 _BOOL4 v13; // r7 _BYTE *v14; // [sp+4h] [bp-24h] BYREF int v15; // [sp+8h] [bp-20h] BYREF _BYTE v16[4]; // [sp+Ch] [bp-1Ch] BYREF _BYTE v17[4]; // [sp+10h] [bp-18h] BYREF int v18; // [sp+14h] [bp-14h] BYREF _BYTE v19[4]; // [sp+18h] [bp-10h] BYREF _BYTE v20[4]; // [sp+1Ch] [bp-Ch] BYREF const char *v21; // [sp+20h] [bp-8h] BYREF CCTextInputNode::getString((CCTextInputNode *)&v14, (int)a2); v4 = a2->getTag(a2); AccountRegisterLayer::resetLabel(a1, v4); switch ( a2->getTag(a2) ) { case 1: sub_775C20(&v15); v5 = !AccountRegisterLayer::validUser((int)a1, &v15) && *((_DWORD *)v14 - 3) != 0; sub_774008(&v15); if ( v5 ) { v6 = a1; v7 = TooShortLessThan3; goto LABEL_37; } goto LABEL_38; case 2: AccountRegisterLayer::resetLabel(a1, 3); CCTextInputNode::getString((CCTextInputNode *)&v21, (int)a1->m_confirmPasswordField); sub_776584((int)v16, "Confirm Password:"); if ( sub_774DBC(&v21, v16) ) { sub_776584((int)v17, "Password:"); v8 = sub_774DBC(&v14, v17) == 0; sub_774008(v17); } else { v8 = 1; } sub_774008(v16); sub_775C20(&v18); if ( AccountRegisterLayer::validPassword((int)a1, &v18) ) { v9 = 0; } else { v9 = (unsigned __int8)*v14; if ( *v14 ) v9 = 1; } sub_774008(&v18); if ( v9 ) { v10 = a1; v11 = TooShortLessThan6; LABEL_17: AccountRegisterLayer::updateLabel(v10, v11); goto LABEL_27; } if ( sub_774DBC(&v14, &v21) && *v14 && *v21 && !v8 ) { v10 = a1; v11 = PasswordsDoNotMatch; goto LABEL_17; } LABEL_27: sub_774008(&v21); LABEL_38: a1->m_lockInput = 0; sub_774008(&v14); return; case 3: CCTextInputNode::getString((CCTextInputNode *)&v21, (int)a1->m_passwordField); sub_776584((int)v19, "Password:"); if ( sub_774DBC(&v14, v19) ) { sub_776584((int)v20, "Confirm Password:"); v12 = sub_774DBC(&v21, v20) == 0; sub_774008(v20); } else { v12 = 1; } sub_774008(v19); if ( sub_774DBC(&v14, &v21) && *v14 && *v21 && !v12 ) AccountRegisterLayer::updateLabel(a1, PasswordsDoNotMatch); goto LABEL_27; case 4: sub_775C20(&v21); v13 = !AccountRegisterLayer::validEmail((int)a1, &v21) && *((_DWORD *)v14 - 3) != 0; sub_774008(&v21); if ( v13 ) { v6 = a1; v7 = InvalidEmail; LABEL_37: AccountRegisterLayer::updateLabel(v6, v7); } goto LABEL_38; default: goto LABEL_38; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source