// // sub_1001249D4 from 0x1001249d4 to 0x100124cdc (776 bytes) // // 5 xrefs: // > ConfigureHSVWidget::init @ 0x100124424 // > sub_100124738 @ 0x100124824 // > sub_10012486C @ 0x1001248b0 // > sub_1001248E0 @ 0x100124924 // > sub_100124954 @ 0x10012499c // // This function is hookable on this platform (idp: arm, 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 10:59:17 +0000 // void __fastcall sub_1001249D4(__int64 a1) { __int64 v2; // x20 __int64 v3; // x0 char *CString; // x0 __int64 v5; // x20 __int64 v6; // x0 char *v7; // x0 __int64 v8; // x20 __int64 v9; // x0 char *v10; // x0 float v11; // s0 __int64 v12; // x0 const std::string::value_type *v13; // x0 std::string *v14; // x1 const std::string::value_type *v15; // x1 __int64 v16; // x0 const std::string::value_type *v17; // x0 std::string *v18; // x1 const std::string::value_type *v19; // x1 __int64 v20; // x0 const std::string::value_type *v21; // x0 std::string *v22; // x1 std::string v23; // [xsp+10h] [xbp-A0h] BYREF std::string v24; // [xsp+28h] [xbp-88h] BYREF std::string v25; // [xsp+40h] [xbp-70h] BYREF void *__p[2]; // [xsp+58h] [xbp-58h] BYREF char v27; // [xsp+6Fh] [xbp-41h] void *v28[2]; // [xsp+70h] [xbp-40h] BYREF char v29; // [xsp+87h] [xbp-29h] void *v30[2]; // [xsp+88h] [xbp-28h] BYREF char v31; // [xsp+9Fh] [xbp-11h] if ( *(_BYTE *)(a1 + 408) == 1 ) { *(_BYTE *)(a1 + 409) = 1; v2 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 416), 1); v3 = sub_1003065B0("%.0f", *(float *)(a1 + 376)); CString = (char *)cocos2d::CCString::getCString(v3); sub_100009900(v30, CString); CCTextInputNode::setString(v2, v30); if ( v31 < 0 ) operator delete(v30[0]); v5 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 416), 2); v6 = sub_1003065B0("%.2f", *(float *)(a1 + 380)); v7 = (char *)cocos2d::CCString::getCString(v6); sub_100009900(v28, v7); CCTextInputNode::setString(v5, v28); if ( v29 < 0 ) operator delete(v28[0]); v8 = cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 416), 3); v9 = sub_1003065B0("%.2f", *(float *)(a1 + 384)); v10 = (char *)cocos2d::CCString::getCString(v9); sub_100009900(__p, v10); CCTextInputNode::setString(v8, __p); if ( v27 < 0 ) operator delete(__p[0]); *(_BYTE *)(a1 + 409) = 0; goto LABEL_36; } sub_100009900(&v25, "Hue: "); v11 = *(float *)(a1 + 376); if ( v11 > 0.0 ) { std::string::append(&v25, "+"); v11 = *(float *)(a1 + 376); } v12 = sub_1003065B0("%i", (int)v11); v13 = (const std::string::value_type *)cocos2d::CCString::getCString(v12); std::string::append(&v25, v13); if ( (v25.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v14 = &v25; else v14 = (std::string *)v25.__r_.__value_.__r.__words[0]; (*(void (__fastcall **)(_QWORD, std::string *))(**(_QWORD **)(a1 + 328) + 928LL))(*(_QWORD *)(a1 + 328), v14); sub_100009900(&v24, "Saturation: "); if ( *(_BYTE *)(a1 + 388) == 1 ) { if ( *(float *)(a1 + 380) <= 0.0 ) goto LABEL_19; v15 = "+"; } else { v15 = "x"; } std::string::append(&v24, v15); LABEL_19: v16 = sub_1003065B0("%.02f", *(float *)(a1 + 380)); v17 = (const std::string::value_type *)cocos2d::CCString::getCString(v16); std::string::append(&v24, v17); if ( (v24.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v18 = &v24; else v18 = (std::string *)v24.__r_.__value_.__r.__words[0]; (*(void (__fastcall **)(_QWORD, std::string *))(**(_QWORD **)(a1 + 336) + 928LL))(*(_QWORD *)(a1 + 336), v18); sub_100009900(&v23, "Brightness: "); if ( *(_BYTE *)(a1 + 389) != 1 ) { v19 = "x"; goto LABEL_26; } if ( *(float *)(a1 + 384) > 0.0 ) { v19 = "+"; LABEL_26: std::string::append(&v23, v19); } v20 = sub_1003065B0("%.02f", *(float *)(a1 + 384)); v21 = (const std::string::value_type *)cocos2d::CCString::getCString(v20); std::string::append(&v23, v21); if ( (v23.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v22 = &v23; else v22 = (std::string *)v23.__r_.__value_.__r.__words[0]; (*(void (__fastcall **)(_QWORD, std::string *))(**(_QWORD **)(a1 + 344) + 928LL))(*(_QWORD *)(a1 + 344), v22); if ( SHIBYTE(v23.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v23.__r_.__value_.__l.__data_); if ( SHIBYTE(v24.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v24.__r_.__value_.__l.__data_); if ( SHIBYTE(v25.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v25.__r_.__value_.__l.__data_); LABEL_36: *(_BYTE *)(a1 + 392) = 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source