{"type": "func", "start": 4299586240, "end": 4299586464, "name": "CreateParticlePopup::onSelectColor", "pseudocode": "// \n// CreateParticlePopup::onSelectColor from 0x100467ac0 to 0x100467ba0 (224 bytes)\n// \n// 3 xrefs:\n// > CreateParticlePopup::init @ 0x100463963\n// > CreateParticlePopup::init @ 0x100464779\n// > CreateParticlePopup::init @ 0x1004648da\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:30:29 +0000\n// \n\n__int64 __fastcall CreateParticlePopup::onSelectColor(__int64 a1, __int64 a2)\n{\n  __int64 v3; // rdi\n  int v4; // eax\n  unsigned __int16 *v5; // rax\n  float *v6; // rax\n  _QWORD *v7; // r15\n  unsigned int v8; // eax\n\n  v3 = a2;\n  v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n  switch ( v4 )\n  {\n    case 2:\n      v6 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1384LL))(*(_QWORD *)(a1 + 712));\n      goto LABEL_7;\n    case 1:\n      v6 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1352LL))(*(_QWORD *)(a1 + 712));\nLABEL_7:\n      v3 = ((int)(float)(255.0 * v6[2]) << 16)\n         | ((unsigned __int8)(int)(float)(_mm_movehdup_ps((__m128)*(unsigned __int64 *)v6).f32[0] * 255.0) << 8)\n         | (unsigned int)(unsigned __int8)(int)(float)(COERCE_FLOAT(*(_QWORD *)v6) * 255.0);\n      break;\n    case 0:\n      v5 = (unsigned __int16 *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 792) + 1200LL))(*(_QWORD *)(a1 + 792));\n      v3 = *v5 | (*((unsigned __int8 *)v5 + 2) << 16);\n      break;\n  }\n  v7 = (_QWORD *)ColorSelectPopup::create_2(v3);\n  v8 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n  (*(void (__fastcall **)(_QWORD *, _QWORD))(*v7 + 72LL))(v7, v8);\n  v7[140] = a1 + 664;\n  return (*(__int64 (__fastcall **)(_QWORD *))(*v7 + 1312LL))(v7);\n}", "assembly": "; \n; CreateParticlePopup::onSelectColor from 0x100467ac0 to 0x100467ba0 (224 bytes)\n; \n; 3 xrefs:\n; > CreateParticlePopup::init @ 0x100463963\n; > CreateParticlePopup::init @ 0x100464779\n; > CreateParticlePopup::init @ 0x1004648da\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:30:29 +0000\n; \npush    rbp                                                            ; +0x0, 0x100467ac0\nmov     rbp, rsp                                                       ; +0x1, 0x100467ac1\npush    r15                                                            ; +0x4, 0x100467ac4\npush    r14                                                            ; +0x6, 0x100467ac6\npush    rbx                                                            ; +0x8, 0x100467ac8\npush    rax                                                            ; +0x9, 0x100467ac9\nmov     r14, rsi                                                       ; +0xa, 0x100467aca\nmov     rbx, rdi                                                       ; +0xd, 0x100467acd\nmov     rax, [rsi]                                                     ; +0x10, 0x100467ad0\nmov     rdi, rsi                                                       ; +0x13, 0x100467ad3\ncall    qword ptr [rax+40h]                                            ; +0x16, 0x100467ad6\ncmp     eax, 2                                                         ; +0x19, 0x100467ad9\njz      short loc_100467B17                                            ; +0x1c, 0x100467adc\ncmp     eax, 1                                                         ; +0x1e, 0x100467ade\njz      short loc_100467B05                                            ; +0x21, 0x100467ae1\ntest    eax, eax                                                       ; +0x23, 0x100467ae3\njnz     short loc_100467B60                                            ; +0x25, 0x100467ae5\nmov     rdi, [rbx+318h]                                                ; +0x27, 0x100467ae7\nmov     rax, [rdi]                                                     ; +0x2e, 0x100467aee\ncall    qword ptr [rax+4B0h]                                           ; +0x31, 0x100467af1\nmovzx   ecx, word ptr [rax]                                            ; +0x37, 0x100467af7\nmovzx   edi, byte ptr [rax+2]                                          ; +0x3a, 0x100467afa\nshl     edi, 10h                                                       ; +0x3e, 0x100467afe\nor      edi, ecx                                                       ; +0x41, 0x100467b01\njmp     short loc_100467B60                                            ; +0x43, 0x100467b03\nmov     rdi, [rbx+2C8h]                                                ; +0x45, 0x100467b05\nmov     rax, [rdi]                                                     ; +0x4c, 0x100467b0c\ncall    qword ptr [rax+548h]                                           ; +0x4f, 0x100467b0f\njmp     short loc_100467B27                                            ; +0x55, 0x100467b15\nmov     rdi, [rbx+2C8h]                                                ; +0x57, 0x100467b17\nmov     rax, [rdi]                                                     ; +0x5e, 0x100467b1e\ncall    qword ptr [rax+568h]                                           ; +0x61, 0x100467b21\nmovsd   xmm0, qword ptr [rax]                                          ; +0x67, 0x100467b27\nmovss   xmm1, cs:dword_100A03F80                                       ; +0x6b, 0x100467b2b\nmovshdup xmm2, xmm0                                                    ; +0x73, 0x100467b33\nmulss   xmm0, xmm1                                                     ; +0x77, 0x100467b37\ncvttss2si ecx, xmm0                                                    ; +0x7b, 0x100467b3b\nmulss   xmm2, xmm1                                                     ; +0x7f, 0x100467b3f\ncvttss2si edx, xmm2                                                    ; +0x83, 0x100467b43\nmulss   xmm1, dword ptr [rax+8]                                        ; +0x87, 0x100467b47\ncvttss2si eax, xmm1                                                    ; +0x8c, 0x100467b4c\nshl     eax, 10h                                                       ; +0x90, 0x100467b50\nmovzx   edx, dl                                                        ; +0x93, 0x100467b53\nshl     edx, 8                                                         ; +0x96, 0x100467b56\nor      edx, eax                                                       ; +0x99, 0x100467b59\nmovzx   edi, cl                                                        ; +0x9b, 0x100467b5b\nor      edi, edx                                                       ; +0x9e, 0x100467b5e\ncall    ColorSelectPopup__create_2                                     ; +0xa0, 0x100467b60\nmov     r15, rax                                                       ; +0xa5, 0x100467b65\nmov     rax, [r14]                                                     ; +0xa8, 0x100467b68\nmov     rdi, r14                                                       ; +0xab, 0x100467b6b\ncall    qword ptr [rax+40h]                                            ; +0xae, 0x100467b6e\nmov     rcx, [r15]                                                     ; +0xb1, 0x100467b71\nmov     rdi, r15                                                       ; +0xb4, 0x100467b74\nmov     esi, eax                                                       ; +0xb7, 0x100467b77\ncall    qword ptr [rcx+48h]                                            ; +0xb9, 0x100467b79\nadd     rbx, 298h                                                      ; +0xbc, 0x100467b7c\nmov     [r15+460h], rbx                                                ; +0xc3, 0x100467b83\nmov     rax, [r15]                                                     ; +0xca, 0x100467b8a\nmov     rdi, r15                                                       ; +0xcd, 0x100467b8d\nadd     rsp, 8                                                         ; +0xd0, 0x100467b90\npop     rbx                                                            ; +0xd4, 0x100467b94\npop     r14                                                            ; +0xd5, 0x100467b95\npop     r15                                                            ; +0xd7, 0x100467b97\npop     rbp                                                            ; +0xd9, 0x100467b99\njmp     qword ptr [rax+520h]                                           ; +0xda, 0x100467b9a", "xrefs": ["CreateParticlePopup::init @ 0x100463963", "CreateParticlePopup::init @ 0x100464779", "CreateParticlePopup::init @ 0x1004648da"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}