// // ConfigureHSVWidget::updateLabels from 0x140130e70 to 0x1401313ce (1374 bytes) // // 6 xrefs: // > ConfigureHSVWidget::init @ 0x1401303dd // > ConfigureHSVWidget::sliderChanged @ 0x140130ca8 // > ConfigureHSVWidget::onToggleSConst @ 0x140130d2e // > ConfigureHSVWidget::onToggleVConst @ 0x140130dae // > ConfigureHSVWidget::onResetHSV @ 0x140130e36 // > @ 0x140916eb0 // // 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 11:27:03 +0000 // // Hidden C++ exception states: #wind=3 void __fastcall ConfigureHSVWidget::updateLabels(__int64 a1) { struct cocos2d::CCObject *v2; // r14 cocos2d::CCString *v3; // rax const char *CString; // rax size_t v5; // rbx size_t v6; // r8 struct cocos2d::CCObject *v7; // r14 cocos2d::CCString *v8; // rax const char *v9; // rax size_t v10; // r8 struct cocos2d::CCObject *v11; // r14 cocos2d::CCString *v12; // rax const char *v13; // rax cocos2d::CCString *v14; // rax char *v15; // rax size_t v16; // rbx size_t v17; // r8 void **v18; // rdx float *v19; // rsi cocos2d::CCString *v20; // rax char *v21; // rax size_t v22; // r8 void **v23; // rdx float *v24; // rsi cocos2d::CCString *v25; // rax char *v26; // rax void **v27; // rdx void *v28; // rcx __m128i v29; // xmm0 void *v30; // rcx void *v31; // rcx void *Src[2]; // [rsp+40h] [rbp-31h] BYREF __m128i si128; // [rsp+50h] [rbp-21h] void *Block[2]; // [rsp+60h] [rbp-11h] BYREF __m128i v35; // [rsp+70h] [rbp-1h] void *v36[2]; // [rsp+80h] [rbp+Fh] BYREF __m128i v37; // [rsp+90h] [rbp+1Fh] if ( *(_BYTE *)(a1 + 408) ) { *(_BYTE *)(a1 + 409) = 1; v2 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 416), 1); v3 = cocos2d::CCString::createWithFormat("%.0f", *(float *)(a1 + 376)); CString = cocos2d::CCString::getCString(v3); *(_OWORD *)Src = 0; si128 = 0u; v5 = -1; v6 = -1; do ++v6; while ( CString[v6] ); sub_14003D230(Src, CString, v6); CCTextInputNode::setString(v2, Src); v7 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 416), 2); v8 = cocos2d::CCString::createWithFormat("%.2f", *(float *)(a1 + 380)); v9 = cocos2d::CCString::getCString(v8); *(_OWORD *)Src = 0; si128 = 0u; v10 = -1; do ++v10; while ( v9[v10] ); sub_14003D230(Src, v9, v10); CCTextInputNode::setString(v7, Src); v11 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 416), 3); v12 = cocos2d::CCString::createWithFormat("%.2f", *(float *)(a1 + 384)); v13 = cocos2d::CCString::getCString(v12); *(_OWORD *)Src = 0; si128 = 0u; do ++v5; while ( v13[v5] ); sub_14003D230(Src, v13, v5); CCTextInputNode::setString(v11, Src); *(_BYTE *)(a1 + 409) = 0; } else { *(_OWORD *)Src = 0; si128 = _mm_load_si128((const __m128i *)&xmmword_140836560); strcpy((char *)Src, "Hue: "); if ( *(float *)(a1 + 376) > 0.0 ) sub_140044D80(Src, "+", 1u); v14 = cocos2d::CCString::createWithFormat((const char *)&word_1406ED6F8, (unsigned int)(int)*(float *)(a1 + 376)); v15 = (char *)cocos2d::CCString::getCString(v14); v16 = -1; v17 = -1; do ++v17; while ( v15[v17] ); sub_140044D80(Src, v15, v17); v18 = Src; if ( si128.m128i_i64[1] > 0xFuLL ) v18 = (void **)Src[0]; (**(void (__fastcall ***)(__int64, void **))(*(_QWORD *)(a1 + 328) + 360LL))(*(_QWORD *)(a1 + 328) + 360LL, v18); v37 = _mm_load_si128((const __m128i *)&xmmword_1408365D0); strcpy((char *)v36, "Saturation: "); BYTE5(v36[1]) = 0; HIWORD(v36[1]) = 0; if ( *(_BYTE *)(a1 + 388) ) { v19 = (float *)(a1 + 380); if ( *(float *)(a1 + 380) > 0.0 ) sub_140044D80(v36, "+", 1u); } else { sub_140044D80(v36, "x", 1u); v19 = (float *)(a1 + 380); } v20 = cocos2d::CCString::createWithFormat("%.02f", *v19); v21 = (char *)cocos2d::CCString::getCString(v20); v22 = -1; do ++v22; while ( v21[v22] ); sub_140044D80(v36, v21, v22); v23 = v36; if ( v37.m128i_i64[1] > 0xFuLL ) v23 = (void **)v36[0]; (**(void (__fastcall ***)(__int64, void **))(*(_QWORD *)(a1 + 336) + 360LL))(*(_QWORD *)(a1 + 336) + 360LL, v23); v35 = _mm_load_si128((const __m128i *)&xmmword_1408365D0); strcpy((char *)Block, "Brightness: "); BYTE5(Block[1]) = 0; HIWORD(Block[1]) = 0; if ( *(_BYTE *)(a1 + 389) ) { v24 = (float *)(a1 + 384); if ( *(float *)(a1 + 384) > 0.0 ) sub_140044D80(Block, "+", 1u); } else { sub_140044D80(Block, "x", 1u); v24 = (float *)(a1 + 384); } v25 = cocos2d::CCString::createWithFormat("%.02f", *v24); v26 = (char *)cocos2d::CCString::getCString(v25); do ++v16; while ( v26[v16] ); sub_140044D80(Block, v26, v16); v27 = Block; if ( v35.m128i_i64[1] > 0xFuLL ) v27 = (void **)Block[0]; (**(void (__fastcall ***)(__int64, void **))(*(_QWORD *)(a1 + 344) + 360LL))(*(_QWORD *)(a1 + 344) + 360LL, v27); if ( v35.m128i_i64[1] > 0xFuLL ) { v28 = Block[0]; if ( (unsigned __int64)(v35.m128i_i64[1] + 1) >= 0x1000 ) { v28 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v28 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v28); } v29 = _mm_load_si128((const __m128i *)&Size); v35 = v29; LOBYTE(Block[0]) = 0; if ( v37.m128i_i64[1] > 0xFuLL ) { v30 = v36[0]; if ( (unsigned __int64)(v37.m128i_i64[1] + 1) >= 0x1000 ) { v30 = *((void **)v36[0] - 1); if ( (unsigned __int64)((char *)v36[0] - (char *)v30 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v30); v29 = _mm_load_si128((const __m128i *)&Size); } v37 = v29; LOBYTE(v36[0]) = 0; if ( si128.m128i_i64[1] > 0xFuLL ) { v31 = Src[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v31 = *((void **)Src[0] - 1); if ( (unsigned __int64)((char *)Src[0] - (char *)v31 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v31); } } *(_BYTE *)(a1 + 392) = 0; }