// // EditLevelLayer::textInputClosed from 0x100111790 to 0x10011196c (476 bytes) // // 2 xrefs: // > sub_100111A18 @ 0x100111a1c // > @ 0x1008d0150 // // 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 10:59:08 +0000 // void __fastcall EditLevelLayer::textInputClosed(__int64 a1, __int64 a2) { int v4; // w0 __int64 v5; // x20 __int64 v6; // x19 _QWORD *String; // x0 __int64 v8; // x19 void *v9; // x0 char *v10; // x1 std::string v11; // [xsp+0h] [xbp-D0h] BYREF std::string __dst; // [xsp+20h] [xbp-B0h] BYREF std::string __str; // [xsp+38h] [xbp-98h] BYREF _QWORD v14[2]; // [xsp+50h] [xbp-80h] BYREF char v15; // [xsp+67h] [xbp-69h] void *__p[2]; // [xsp+68h] [xbp-68h] BYREF char v17; // [xsp+7Fh] [xbp-51h] std::string v18; // [xsp+80h] [xbp-50h] BYREF std::string v19; // [xsp+98h] [xbp-38h] BYREF v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); if ( v4 == 3 ) { String = CCTextInputNode::getString(&v19); v8 = GameManager::sharedState(String); if ( SHIBYTE(v19.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&v11, v19.__r_.__value_.__l.__data_, v19.__r_.__value_.__l.__size_); else v11 = v19; std::string::operator=((std::string *)(v8 + 632), &v11); if ( (SHIBYTE(v11.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 ) goto LABEL_29; v9 = (void *)v11.__r_.__value_.__r.__words[0]; goto LABEL_28; } if ( v4 == 2 ) { CCTextInputNode::getString(&v19); v6 = *(_QWORD *)(a1 + 472); if ( SHIBYTE(v19.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&__dst, v19.__r_.__value_.__l.__data_, v19.__r_.__value_.__l.__size_); else __dst = v19; LevelTools::base64EncodeString(&__str, &__dst); std::string::operator=((std::string *)(v6 + 368), &__str); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); if ( (SHIBYTE(__dst.__r_.__value_.__r.__words[2]) & 0x80000000) == 0 ) goto LABEL_29; v9 = (void *)__dst.__r_.__value_.__r.__words[0]; goto LABEL_28; } if ( v4 != 1 ) return; CCTextInputNode::getString(&v19); v5 = *(_QWORD *)(a1 + 472); if ( SHIBYTE(v19.__r_.__value_.__r.__words[2]) < 0 ) sub_1000097D0(&v18, v19.__r_.__value_.__l.__data_, v19.__r_.__value_.__l.__size_); else v18 = v19; std::string::operator=((std::string *)(v5 + 344), &v18); if ( SHIBYTE(v18.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v18.__r_.__value_.__l.__data_); CCTextInputNode::getString(v14); if ( v15 >= 0 ) v10 = (char *)v14; else v10 = (char *)v14[0]; sub_100009900(__p, v10); CCTextInputNode::updateLabel(a2, __p); if ( v17 < 0 ) operator delete(__p[0]); if ( v15 < 0 ) { v9 = (void *)v14[0]; LABEL_28: operator delete(v9); } LABEL_29: if ( SHIBYTE(v19.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v19.__r_.__value_.__l.__data_); }