// // SetupAreaMoveTriggerPopup::updateEnterTargetIDState from 0x1004d4a20 to 0x1004d4c73 (595 bytes) // // 2 xrefs: // > SetupAreaMoveTriggerPopup::onSpecialTarget @ 0x1004d47c7 // > SetupAreaMoveTriggerPopup::updateDefaultTriggerValues @ 0x1004d49e1 // // 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 SetupAreaMoveTriggerPopup::updateEnterTargetIDState(SetupAreaMoveTriggerPopup *a1) { int v1; // eax int v2; // r15d cocos2d::CCArray *m_targetButtons; // rax cocos2d::ccArray *data; // rax CCMenuItemToggler **arr; // r12 unsigned __int64 v6; // r13 CCMenuItemToggler *v7; // r14 int v8; // eax cocos2d::CCObject *v9; // rax unsigned __int64 v10; // rdx CCTextInputNode *v11; // r14 unsigned __int64 v12; // r15 __m128i *v13; // rax __m128i inserted; // xmm0 char v15; // r12 __m128i v16; // xmm0 _QWORD v17[2]; // [rsp+0h] [rbp-60h] BYREF void *__p; // [rsp+10h] [rbp-50h] __m128i v19; // [rsp+18h] [rbp-48h] BYREF void *v20; // [rsp+28h] [rbp-38h] unsigned __int8 v21; // [rsp+37h] [rbp-29h] BYREF v1 = (int)((float (__fastcall *)(SetupAreaMoveTriggerPopup *, __int64))a1->getValue)(a1, 538); if ( v1 ) { v2 = (int)(float)v1; m_targetButtons = a1->m_targetButtons; if ( !m_targetButtons ) goto LABEL_9; } else { v2 = (int)((float (__fastcall *)(SetupAreaMoveTriggerPopup *, __int64))a1->getValue)(a1, 71); m_targetButtons = a1->m_targetButtons; if ( !m_targetButtons ) goto LABEL_9; } data = m_targetButtons->data; if ( data->num ) { arr = (CCMenuItemToggler **)data->arr; v6 = (unsigned __int64)&arr[data->num - 1]; do { v7 = *arr; if ( !*arr ) break; v8 = ((__int64 (__fastcall *)(CCMenuItemToggler *))v7->getTag)(*arr); CCMenuItemToggler::toggle(v7, v8 == v2); ++arr; } while ( (unsigned __int64)arr <= v6 ); } LABEL_9: v9 = cocos2d::CCDictionary::objectForKey(a1->m_inputNodes, 71); if ( v9 ) { v11 = (CCTextInputNode *)v9; a1->m_disableTextDelegate = 1; if ( v2 < 0 ) { v12 = (unsigned int)(v2 + 11); switch ( v12 ) { case 0uLL: v19.i8[0] = 82; v16 = _mm_cvtsi32_si128(0x5404u); goto LABEL_26; case 1uLL: v19.i8[0] = 82; v16 = _mm_cvtsi32_si128(0x4304u); goto LABEL_26; case 2uLL: v19.i8[0] = 82; v16 = _mm_cvtsi32_si128(0x4204u); goto LABEL_26; case 3uLL: v19.i8[0] = 67; v16 = _mm_cvtsi32_si128(0x5404u); goto LABEL_26; case 4uLL: v19.i8[0] = 67; v16 = _mm_cvtsi32_si128(0x4204u); goto LABEL_26; case 5uLL: v19.i8[0] = 76; v16 = _mm_cvtsi32_si128(0x5404u); goto LABEL_26; case 6uLL: v19.i8[0] = 76; v16 = _mm_cvtsi32_si128(0x4304u); goto LABEL_26; case 7uLL: v19.i8[0] = 76; v16 = _mm_cvtsi32_si128(0x4204u); goto LABEL_26; case 8uLL: v16 = _mm_cvtsi32_si128(0x4302u); v13 = &v19; goto LABEL_27; case 9uLL: v19.i8[0] = 50; v16 = _mm_cvtsi32_si128(0x5004u); goto LABEL_26; case 0xAuLL: v19.i8[0] = 49; v16 = _mm_cvtsi32_si128(0x5004u); goto LABEL_26; default: v19.i8[0] = 65; v16 = _mm_cvtsi32_si128(0x4E04u); LABEL_26: v13 = (__m128i *)&v21; LABEL_27: v13->i8[0] = 0; inserted = _mm_insert_epi8(_mm_insert_epi8(_mm_cvtepu16_epi32(v16), v19.u8[0], 2), v21, 3); v15 = _mm_cvtsi128_si32(inserted); if ( (v15 & 1) != 0 ) goto LABEL_28; goto LABEL_12; } } GameToolbox::intToString(&v19, (unsigned int)v2); v12 = (unsigned __int64)v20; v10 = v19.u64[1]; LODWORD(v13) = v19.i32[1]; inserted = _mm_loadl_epi64(&v19); v15 = _mm_cvtsi128_si32(inserted); if ( (v15 & 1) != 0 ) { LABEL_28: sub_100006B70(v17, (const void *)v12, v10, *(double *)inserted.i64); } else { LABEL_12: v17[0] = __PAIR64__((unsigned int)v13, _mm_cvtsi128_si32(inserted)); v17[1] = v10; __p = (void *)v12; } CCTextInputNode::setString(v11, (__int64)v17, (__m128)inserted); if ( (v17[0] & 1) != 0 ) operator delete(__p); a1->m_disableTextDelegate = 0; if ( (v15 & 1) != 0 ) operator delete((void *)v12); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source