// // AccountRegisterLayer::textInputClosed from 0x993a84 to 0x993fe4 (1376 bytes) // // 3 xrefs: // > `non-virtual thunk to'AccountRegisterLayer::textInputClosed @ 0x993fe8 // > @ 0x49f30 // > @ 0x1473ec0 // // 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:58:01 +0000 // __int64 __fastcall AccountRegisterLayer::textInputClosed(AccountRegisterLayer *this, CCTextInputNode *a2) { int v4; // w0 size_t v5; // x1 int v6; // w0 _BOOL4 v8; // w23 _BYTE *v9; // x2 void *v10; // x0 _BOOL4 v11; // w23 _BYTE *v12; // x2 size_t v13; // x1 __int64 v14; // [xsp+48h] [xbp+48h] BYREF size_t v15; // [xsp+50h] [xbp+50h] void *v16; // [xsp+58h] [xbp+58h] __int64 v17; // [xsp+60h] [xbp+60h] BYREF size_t v18; // [xsp+68h] [xbp+68h] void *v19; // [xsp+70h] [xbp+70h] __int64 v20; // [xsp+78h] [xbp+78h] BYREF size_t v21; // [xsp+80h] [xbp+80h] void *v22; // [xsp+88h] [xbp+88h] __int64 v23[2]; // [xsp+90h] [xbp+90h] BYREF void *v24; // [xsp+A0h] [xbp+A0h] __int64 v25[2]; // [xsp+A8h] [xbp+A8h] BYREF void *v26; // [xsp+B8h] [xbp+B8h] __int64 v27[2]; // [xsp+C0h] [xbp+C0h] BYREF void *v28; // [xsp+D0h] [xbp+D0h] __int64 v29[2]; // [xsp+D8h] [xbp+D8h] BYREF void *v30; // [xsp+E8h] [xbp+E8h] __int64 v31; // [xsp+F0h] [xbp+F0h] BYREF size_t v32; // [xsp+F8h] [xbp+F8h] void *v33; // [xsp+100h] [xbp+100h] CCTextInputNode::getString(a2, &v14); v4 = (*(__int64 (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2); AccountRegisterLayer::resetLabel((_QWORD **)this, v4); switch ( (*(unsigned int (__fastcall **)(CCTextInputNode *))(*(_QWORD *)a2 + 64LL))(a2) ) { case 1u: v17 = 0; v18 = 0; v19 = nullptr; if ( (v14 & 1) != 0 ) { std::string::__init(&v17, v16, v15); } else { v19 = v16; v17 = v14; v18 = v15; } if ( !AccountRegisterLayer::validUser((__int64)this, (__int64)&v17) ) { v13 = (unsigned __int8)v14 >> 1; if ( (v14 & 1) != 0 ) v13 = v15; if ( v13 ) { if ( (v17 & 1) != 0 ) operator delete(v19); AccountRegisterLayer::updateLabel((__int64)this, -9); goto LABEL_11; } } if ( (v17 & 1) == 0 ) goto LABEL_11; v10 = v19; goto LABEL_28; case 2u: AccountRegisterLayer::resetLabel((_QWORD **)this, 3); if ( (v14 & 1) == 0 ) { if ( (int)(unsigned __int8)v14 >> 1 ) { v20 = v14; v21 = v15; v22 = v16; goto LABEL_32; } LABEL_64: (*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 92) + 928LL))( *((_QWORD *)this + 92), &byte_11B8890); goto LABEL_34; } if ( !v15 ) goto LABEL_64; v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, v16, v15); LABEL_32: AccountRegisterLayer::updatePasswordInfo((__int64)this, (unsigned __int8 *)&v20); if ( (v20 & 1) != 0 ) operator delete(v22); LABEL_34: CCTextInputNode::getString(*((CCTextInputNode **)this + 87), &v31); v23[0] = 0; v23[1] = 0; v24 = nullptr; std::string::__init(v23, "Confirm Password:", 0x11u); v11 = 1; if ( !sub_98F118((__int64)&v31, (__int64)v23) ) { v25[0] = 0; v25[1] = 0; v26 = nullptr; std::string::__init(v25, "Password:", 9u); v11 = sub_98F118((__int64)&v14, (__int64)v25); if ( (v25[0] & 1) != 0 ) operator delete(v26); } if ( (v23[0] & 1) != 0 ) operator delete(v24); if ( sub_98F118((__int64)&v14, (__int64)&v31) ) goto LABEL_26; v12 = (char *)&v14 + 1; v6 = v14 & 1; if ( v6 ) v12 = v16; if ( !*v12 ) goto LABEL_26; if ( (v31 & 1) != 0 ) { v10 = v33; if ( v11 || !*(_BYTE *)v33 ) { LABEL_28: operator delete(v10); v6 = v14 & 1; goto LABEL_12; } goto LABEL_25; } if ( !v11 && BYTE1(v31) ) { LABEL_25: AccountRegisterLayer::updateLabel((__int64)this, -7); LABEL_26: if ( (v31 & 1) == 0 ) { LABEL_11: v6 = v14 & 1; goto LABEL_12; } v10 = v33; goto LABEL_28; } LABEL_12: *((_BYTE *)this + 776) = 0; if ( v6 ) operator delete(v16); return _stack_chk_guard; case 3u: CCTextInputNode::getString(*((CCTextInputNode **)this + 86), &v31); v27[0] = 0; v27[1] = 0; v28 = nullptr; std::string::__init(v27, "Password:", 9u); v8 = 1; if ( !sub_98F118((__int64)&v14, (__int64)v27) ) { v29[0] = 0; v29[1] = 0; v30 = nullptr; std::string::__init(v29, "Confirm Password:", 0x11u); v8 = sub_98F118((__int64)&v31, (__int64)v29); if ( (v29[0] & 1) != 0 ) operator delete(v30); } if ( (v27[0] & 1) != 0 ) operator delete(v28); if ( sub_98F118((__int64)&v14, (__int64)&v31) ) goto LABEL_26; v9 = (char *)&v14 + 1; v6 = v14 & 1; if ( v6 ) v9 = v16; if ( !*v9 ) goto LABEL_26; if ( (v31 & 1) == 0 ) { if ( v8 || !BYTE1(v31) ) goto LABEL_12; goto LABEL_25; } v10 = v33; if ( !v8 && *(_BYTE *)v33 ) goto LABEL_25; goto LABEL_28; case 4u: v31 = 0; v32 = 0; v33 = nullptr; if ( (v14 & 1) != 0 ) { std::string::__init(&v31, v16, v15); } else { v33 = v16; v31 = v14; v32 = v15; } if ( AccountRegisterLayer::validEmail((__int64)this, (__int64)&v31) ) goto LABEL_26; v5 = (unsigned __int8)v14 >> 1; if ( (v14 & 1) != 0 ) v5 = v15; if ( !v5 ) goto LABEL_26; if ( (v31 & 1) != 0 ) operator delete(v33); AccountRegisterLayer::updateLabel((__int64)this, -6); goto LABEL_11; default: goto LABEL_11; } }