// // CustomizeObjectLayer::textInputOpened from 0x1001f92e0 to 0x1001f93ad (205 bytes) // // 2 xrefs: // > sub_1001F93D0 @ 0x1001f93dc // > @ 0x1008d9898 // // 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 __fastcall CustomizeObjectLayer::textInputOpened(CustomizeObjectLayer *a1, CCTextInputNode *a2) { double v2; // xmm0_8 char m_uReference_high; // r12 void *v5; // r15 __int64 v6; // r13 unsigned int *p_m_uAutoReleaseCount; // rdi bool v8; // r13 cocos2d::CCObject __s2; // [rsp+1h] [rbp-6Fh] BYREF void *v10; // [rsp+40h] [rbp-30h] if ( ((unsigned int (__fastcall *)(CCTextInputNode *))a2->getTag)(a2) == 1 ) { CCTextInputNode::getString((unsigned int *)((char *)&__s2.m_uReference + 3), (__int64)a2, v2); LOWORD(__s2.__vftable) = 65; m_uReference_high = HIBYTE(__s2.m_uReference); v5 = *(void **)((char *)&__s2.m_uUnknown + 3); if ( (__s2.m_uReference & 0x1000000) != 0 ) { v6 = *(_QWORD *)((char *)&__s2.m_eObjType + 3); p_m_uAutoReleaseCount = *(unsigned int **)((char *)&__s2.m_uUnknown + 3); } else { v6 = HIBYTE(__s2.m_uReference) >> 1; p_m_uAutoReleaseCount = &__s2.m_uAutoReleaseCount; } v8 = memcmp(p_m_uAutoReleaseCount, &__s2, v6 != 0) == 0 && v6 == 1; if ( (m_uReference_high & 1) != 0 ) operator delete(v5); if ( v8 ) { CustomizeObjectLayer::onClear(a1, &__s2); *(_WORD *)((char *)&__s2.m_nZOrder + 3) = 8194; BYTE1(__s2.m_uOrderOfArrival) = 0; CCTextInputNode::updateLabel(a2, (std::string *)((char *)&__s2.m_nZOrder + 3), v2); if ( (__s2.m_nZOrder & 0x1000000) != 0 ) operator delete(v10); } } }