// // SetupAreaMoveTriggerPopup::updateEnterTargetIDState from 0x1004d0220 to 0x1004d0473 (595 bytes) // // 2 xrefs: // > SetupAreaMoveTriggerPopup::onSpecialTarget @ 0x1004cffc7 // > SetupAreaMoveTriggerPopup::updateDefaultTriggerValues @ 0x1004d01e1 // // This function is hookable on this platform (idp: pc, 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:31:12 +0000 // void __fastcall SetupAreaMoveTriggerPopup::updateEnterTargetIDState(__int64 a1) { int v1; // eax int v2; // r15d __int64 v3; // rax unsigned int *v4; // rax __int64 *v5; // r12 unsigned __int64 v6; // r13 __int64 v7; // r14 int v8; // eax __int64 v9; // rax unsigned __int64 v10; // rdx _QWORD *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 **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 538); if ( v1 ) { v2 = (int)(float)v1; v3 = *(_QWORD *)(a1 + 1024); if ( !v3 ) goto LABEL_9; } else { v2 = (int)(*(float (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 1464LL))(a1, 71); v3 = *(_QWORD *)(a1 + 1024); if ( !v3 ) goto LABEL_9; } v4 = *(unsigned int **)(v3 + 56); if ( *v4 ) { v5 = *((__int64 **)v4 + 2); v6 = (unsigned __int64)&v5[*v4 - 1]; do { v7 = *v5; if ( !*v5 ) break; v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 64LL))(*v5); CCMenuItemToggler::toggle(v7, v8 == v2); ++v5; } while ( (unsigned __int64)v5 <= v6 ); } LABEL_9: v9 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 760), 71); if ( v9 ) { v11 = (_QWORD *)v9; *(_BYTE *)(a1 + 744) = 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_10001AD30(v17, (const void *)v12, v10); } else { LABEL_12: v17[0] = __PAIR64__((unsigned int)v13, _mm_cvtsi128_si32(inserted)); v17[1] = v10; __p = (void *)v12; } CCTextInputNode::setString(v11, (__int64)v17); if ( (v17[0] & 1) != 0 ) operator delete(__p); *(_BYTE *)(a1 + 744) = 0; if ( (v15 & 1) != 0 ) operator delete((void *)v12); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source