// // EditLevelLayer::textChanged from 0x1400d7c60 to 0x1400d7e4f (495 bytes) // // 2 xrefs: // > @ 0x140551728 // > @ 0x1406c87d8 // // 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 // // Hidden C++ exception states: #wind=2 void EditLevelLayer::textChanged(EditLevelLayer *a1, CCTextInputNode *a2) { int v4; // eax const char *v5; // rax size_t v6; // rbx void *v7; // rcx const char *v8; // rax size_t v9; // rbx size_t v10; // r8 void **v11; // rdx void **v12; // rcx void **v13; // rdx void *Src[2]; // [rsp+28h] [rbp-48h] BYREF size_t Size; // [rsp+38h] [rbp-38h] unsigned __int64 v16; // [rsp+40h] [rbp-30h] void *Block[2]; // [rsp+48h] [rbp-28h] BYREF __int128 v18; // [rsp+58h] [rbp-18h] v4 = ((__int64 (__fastcall *)(CCTextInputNode *))a2->getTag)(a2) - 1; if ( v4 ) { if ( v4 == 1 ) { v5 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol); *(_OWORD *)Block = 0; v18 = 0; v6 = -1; do ++v6; while ( v5[v6] ); sub_14003A930(Block, v5, v6); if ( *((_QWORD *)&v18 + 1) > 0xFu ) { v7 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v18 + 1) + 1LL) >= 0x1000 ) { v7 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } LABEL_23: j_j_free(v7); } } } else { v8 = a2->m_textField->getString(&a2->m_textField->cocos2d::CCLabelProtocol); *(_OWORD *)Block = 0; v18 = 0; v9 = -1; v10 = -1; do ++v10; while ( v8[v10] ); sub_14003A930(Block, v8, v10); v11 = Block; if ( *((_QWORD *)&v18 + 1) > 0xFu ) v11 = (void **)Block[0]; *(_OWORD *)Src = 0; Size = 0; v16 = 0; do ++v9; while ( *((_BYTE *)v11 + v9) ); sub_14003A930(Src, v11, v9); v12 = (void **)(*(_QWORD *)&a1->m_uOrderOfArrival + 344LL); if ( v12 != Src ) { v13 = Src; if ( v16 > 0xF ) v13 = (void **)Src[0]; sub_14003CCE0(v12, v13, Size); } sub_14003A830((__int64)Src); if ( *((_QWORD *)&v18 + 1) > 0xFu ) { v7 = Block[0]; if ( (unsigned __int64)(*((_QWORD *)&v18 + 1) + 1LL) >= 0x1000 ) { v7 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } goto LABEL_23; } } }