{"type": "func", "start": 4299597952, "end": 4299598643, "name": "CreateParticlePopup::colorSelectClosed", "pseudocode": "// \n// CreateParticlePopup::colorSelectClosed from 0x10046a880 to 0x10046ab33 (691 bytes)\n// \n// 2 xrefs:\n// > sub_10046AB40 @ 0x10046ab4c\n// > <???> @ 0x100b44640\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:31 +0000\n// \n\n_OWORD *__fastcall CreateParticlePopup::colorSelectClosed(__int64 a1, __int64 a2, __m128 a3)\n{\n  _OWORD *result; // rax\n  __int64 v4; // rdi\n  __int16 v5; // [rsp+0h] [rbp-20h] BYREF\n  char v6; // [rsp+2h] [rbp-1Eh]\n  float v7; // [rsp+4h] [rbp-1Ch]\n  float v8; // [rsp+8h] [rbp-18h]\n  unsigned __int16 v9; // [rsp+Ch] [rbp-14h] BYREF\n  unsigned __int8 v10; // [rsp+Eh] [rbp-12h]\n\n  result = (_OWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);\n  v10 = *(_BYTE *)(a2 + 1114);\n  v9 = *(_WORD *)(a2 + 1112);\n  switch ( (_DWORD)result )\n  {\n    case 2:\n      a3.f32[0] = (float)(unsigned __int8)v9 / 255.0;\n      v8 = (float)HIBYTE(v9) / 255.0;\n      v7 = (float)v10 / 255.0;\n      CreateParticlePopup::updateParticleValueForType(a1, 0x22u, nullptr, a3);\n      CreateParticlePopup::updateParticleValueForType(a1, 0x24u, nullptr, (__m128)LODWORD(v8));\n      CreateParticlePopup::updateParticleValueForType(a1, 0x26u, nullptr, (__m128)LODWORD(v7));\n      CreateParticlePopup::updateInputNodeStringForType(a1, 0x22u);\n      CreateParticlePopup::updateInputNodeStringForType(a1, 0x24u);\n      CreateParticlePopup::updateInputNodeStringForType(a1, 0x26u);\n      CreateParticlePopup::updateSliderForType(a1, 0x22u, v7);\n      CreateParticlePopup::updateSliderForType(a1, 0x24u, v7);\n      CreateParticlePopup::updateSliderForType(a1, 0x26u, v7);\n      return (_OWORD *)(*(__int64 (__fastcall **)(_QWORD, unsigned __int16 *))(**(_QWORD **)(a1 + 952) + 960LL))(\n                         *(_QWORD *)(a1 + 952),\n                         &v9);\n    case 1:\n      a3.f32[0] = (float)(unsigned __int8)v9 / 255.0;\n      v8 = (float)HIBYTE(v9) / 255.0;\n      v7 = (float)v10 / 255.0;\n      CreateParticlePopup::updateParticleValueForType(a1, 0x1Au, nullptr, a3);\n      CreateParticlePopup::updateParticleValueForType(a1, 0x1Cu, nullptr, (__m128)LODWORD(v8));\n      CreateParticlePopup::updateParticleValueForType(a1, 0x1Eu, nullptr, (__m128)LODWORD(v7));\n      CreateParticlePopup::updateInputNodeStringForType(a1, 0x1Au);\n      CreateParticlePopup::updateInputNodeStringForType(a1, 0x1Cu);\n      CreateParticlePopup::updateInputNodeStringForType(a1, 0x1Eu);\n      CreateParticlePopup::updateSliderForType(a1, 0x1Au, v7);\n      CreateParticlePopup::updateSliderForType(a1, 0x1Cu, v7);\n      CreateParticlePopup::updateSliderForType(a1, 0x1Eu, v7);\n      (*(void (__fastcall **)(_QWORD, unsigned __int16 *))(**(_QWORD **)(a1 + 944) + 960LL))(*(_QWORD *)(a1 + 944), &v9);\n      *(_OWORD *)(*(_QWORD *)(a1 + 712) + 708LL) = *(_OWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712)\n                                                                                                + 1352LL))(*(_QWORD *)(a1 + 712));\n      result = (_OWORD *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1384LL))(*(_QWORD *)(a1 + 712));\n      *(_OWORD *)(*(_QWORD *)(a1 + 712) + 724LL) = *result;\n      break;\n    case 0:\n      (*(void (__fastcall **)(_QWORD, unsigned __int16 *))(**(_QWORD **)(a1 + 792) + 1216LL))(\n        *(_QWORD *)(a1 + 792),\n        &v9);\n      (*(void (__fastcall **)(_QWORD, unsigned __int16 *))(**(_QWORD **)(a1 + 936) + 960LL))(*(_QWORD *)(a1 + 936), &v9);\n      v4 = *(_QWORD *)(a1 + 984);\n      v6 = ~v10;\n      v5 = ((HIBYTE(v9) ^ 0xFF) << 8) | (unsigned __int8)v9 ^ 0xFF;\n      return (_OWORD *)(*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v4 + 1072LL))(v4, &v5);\n  }\n  return result;\n}", "assembly": "; \n; CreateParticlePopup::colorSelectClosed from 0x10046a880 to 0x10046ab33 (691 bytes)\n; \n; 2 xrefs:\n; > sub_10046AB40 @ 0x10046ab4c\n; > <???> @ 0x100b44640\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:31 +0000\n; \npush    rbp                                                            ; +0x0, 0x10046a880\nmov     rbp, rsp                                                       ; +0x1, 0x10046a881\npush    r14                                                            ; +0x4, 0x10046a884\npush    rbx                                                            ; +0x6, 0x10046a886\nsub     rsp, 10h                                                       ; +0x7, 0x10046a887\nmov     r14, rsi                                                       ; +0xb, 0x10046a88b\nmov     rbx, rdi                                                       ; +0xe, 0x10046a88e\nmov     rax, [rsi]                                                     ; +0x11, 0x10046a891\nmov     rdi, rsi                                                       ; +0x14, 0x10046a894\ncall    qword ptr [rax+40h]                                            ; +0x17, 0x10046a897\nmovzx   ecx, byte ptr [r14+45Ah]                                       ; +0x1a, 0x10046a89a\nmov     [rbp+var_12], cl                                               ; +0x22, 0x10046a8a2\nmovzx   ecx, word ptr [r14+458h]                                       ; +0x25, 0x10046a8a5\nmov     [rbp+var_14], cx                                               ; +0x2d, 0x10046a8ad\ncmp     eax, 2                                                         ; +0x31, 0x10046a8b1\njz      loc_10046AA54                                                  ; +0x34, 0x10046a8b4\ncmp     eax, 1                                                         ; +0x3a, 0x10046a8ba\njz      short loc_10046A937                                            ; +0x3d, 0x10046a8bd\ntest    eax, eax                                                       ; +0x3f, 0x10046a8bf\njnz     loc_10046AB2A                                                  ; +0x41, 0x10046a8c1\nmov     rdi, [rbx+318h]                                                ; +0x47, 0x10046a8c7\nmov     rax, [rdi]                                                     ; +0x4e, 0x10046a8ce\nlea     r14, [rbp+var_14]                                              ; +0x51, 0x10046a8d1\nmov     rsi, r14                                                       ; +0x55, 0x10046a8d5\ncall    qword ptr [rax+4C0h]                                           ; +0x58, 0x10046a8d8\nmov     rdi, [rbx+3A8h]                                                ; +0x5e, 0x10046a8de\nmov     rax, [rdi]                                                     ; +0x65, 0x10046a8e5\nmov     rsi, r14                                                       ; +0x68, 0x10046a8e8\ncall    qword ptr [rax+3C0h]                                           ; +0x6b, 0x10046a8eb\nmov     rdi, [rbx+3D8h]                                                ; +0x71, 0x10046a8f1\nmovzx   eax, byte ptr [rbp+var_14]                                     ; +0x78, 0x10046a8f8\nmovzx   ecx, byte ptr [rbp+var_14+1]                                   ; +0x7c, 0x10046a8fc\nmovzx   edx, [rbp+var_12]                                              ; +0x80, 0x10046a900\nnot     dl                                                             ; +0x84, 0x10046a904\nmovzx   edx, dl                                                        ; +0x86, 0x10046a906\nmov     [rbp+var_1E], dl                                               ; +0x89, 0x10046a909\nshl     edx, 10h                                                       ; +0x8c, 0x10046a90c\nxor     ecx, 0FFh                                                      ; +0x8f, 0x10046a90f\nshl     ecx, 8                                                         ; +0x95, 0x10046a915\nor      ecx, edx                                                       ; +0x98, 0x10046a918\nxor     eax, 0FFh                                                      ; +0x9a, 0x10046a91a\nor      eax, ecx                                                       ; +0x9f, 0x10046a91f\nmov     [rbp+var_20], ax                                               ; +0xa1, 0x10046a921\nmov     rax, [rdi]                                                     ; +0xa5, 0x10046a925\nlea     rsi, [rbp+var_20]                                              ; +0xa8, 0x10046a928\ncall    qword ptr [rax+430h]                                           ; +0xac, 0x10046a92c\njmp     loc_10046AB2A                                                  ; +0xb2, 0x10046a932\nmovzx   eax, [rbp+var_12]                                              ; +0xb7, 0x10046a937\ncvtsi2ss xmm2, eax                                                     ; +0xbb, 0x10046a93b\nshl     eax, 10h                                                       ; +0xbf, 0x10046a93f\nmovzx   ecx, [rbp+var_14]                                              ; +0xc2, 0x10046a942\nor      eax, ecx                                                       ; +0xc6, 0x10046a946\nmovzx   eax, al                                                        ; +0xc8, 0x10046a948\ncvtsi2ss xmm0, eax                                                     ; +0xcb, 0x10046a94b\nshr     ecx, 8                                                         ; +0xcf, 0x10046a94f\ncvtsi2ss xmm3, ecx                                                     ; +0xd2, 0x10046a952\nmovss   xmm1, cs:dword_100A03F80                                       ; +0xd6, 0x10046a956\ndivss   xmm0, xmm1                                                     ; +0xde, 0x10046a95e\ndivss   xmm3, xmm1                                                     ; +0xe2, 0x10046a962\nmovss   [rbp+var_18], xmm3                                             ; +0xe6, 0x10046a966\ndivss   xmm2, xmm1                                                     ; +0xeb, 0x10046a96b\nmovss   [rbp+var_1C], xmm2                                             ; +0xef, 0x10046a96f\nmov     rdi, rbx                                                       ; +0xf4, 0x10046a974\nmov     esi, 1Ah                                                       ; +0xf7, 0x10046a977\nxor     edx, edx                                                       ; +0xfc, 0x10046a97c\ncall    CreateParticlePopup__updateParticleValueForType                ; +0xfe, 0x10046a97e\nmov     rdi, rbx                                                       ; +0x103, 0x10046a983\nmovss   xmm0, [rbp+var_18]                                             ; +0x106, 0x10046a986\nmov     esi, 1Ch                                                       ; +0x10b, 0x10046a98b\nxor     edx, edx                                                       ; +0x110, 0x10046a990\ncall    CreateParticlePopup__updateParticleValueForType                ; +0x112, 0x10046a992\nmov     rdi, rbx                                                       ; +0x117, 0x10046a997\nmovss   xmm0, [rbp+var_1C]                                             ; +0x11a, 0x10046a99a\nmov     esi, 1Eh                                                       ; +0x11f, 0x10046a99f\nxor     edx, edx                                                       ; +0x124, 0x10046a9a4\ncall    CreateParticlePopup__updateParticleValueForType                ; +0x126, 0x10046a9a6\nmov     rdi, rbx                                                       ; +0x12b, 0x10046a9ab\nmov     esi, 1Ah                                                       ; +0x12e, 0x10046a9ae\ncall    CreateParticlePopup__updateInputNodeStringForType              ; +0x133, 0x10046a9b3\nmov     rdi, rbx                                                       ; +0x138, 0x10046a9b8\nmov     esi, 1Ch                                                       ; +0x13b, 0x10046a9bb\ncall    CreateParticlePopup__updateInputNodeStringForType              ; +0x140, 0x10046a9c0\nmov     rdi, rbx                                                       ; +0x145, 0x10046a9c5\nmov     esi, 1Eh                                                       ; +0x148, 0x10046a9c8\ncall    CreateParticlePopup__updateInputNodeStringForType              ; +0x14d, 0x10046a9cd\nmov     rdi, rbx                                                       ; +0x152, 0x10046a9d2\nmov     esi, 1Ah                                                       ; +0x155, 0x10046a9d5\ncall    CreateParticlePopup__updateSliderForType                       ; +0x15a, 0x10046a9da\nmov     rdi, rbx                                                       ; +0x15f, 0x10046a9df\nmov     esi, 1Ch                                                       ; +0x162, 0x10046a9e2\ncall    CreateParticlePopup__updateSliderForType                       ; +0x167, 0x10046a9e7\nmov     rdi, rbx                                                       ; +0x16c, 0x10046a9ec\nmov     esi, 1Eh                                                       ; +0x16f, 0x10046a9ef\ncall    CreateParticlePopup__updateSliderForType                       ; +0x174, 0x10046a9f4\nmov     rdi, [rbx+3B0h]                                                ; +0x179, 0x10046a9f9\nmov     rax, [rdi]                                                     ; +0x180, 0x10046aa00\nlea     rsi, [rbp+var_14]                                              ; +0x183, 0x10046aa03\ncall    qword ptr [rax+3C0h]                                           ; +0x187, 0x10046aa07\nmov     rdi, [rbx+2C8h]                                                ; +0x18d, 0x10046aa0d\nmov     rax, [rdi]                                                     ; +0x194, 0x10046aa14\ncall    qword ptr [rax+548h]                                           ; +0x197, 0x10046aa17\nmov     rcx, [rbx+2C8h]                                                ; +0x19d, 0x10046aa1d\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x1a4, 0x10046aa24\nmovups  xmmword ptr [rcx+2C4h], xmm0                                   ; +0x1a7, 0x10046aa27\nmov     rdi, [rbx+2C8h]                                                ; +0x1ae, 0x10046aa2e\nmov     rax, [rdi]                                                     ; +0x1b5, 0x10046aa35\ncall    qword ptr [rax+568h]                                           ; +0x1b8, 0x10046aa38\nmov     rcx, [rbx+2C8h]                                                ; +0x1be, 0x10046aa3e\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x1c5, 0x10046aa45\nmovups  xmmword ptr [rcx+2D4h], xmm0                                   ; +0x1c8, 0x10046aa48\njmp     loc_10046AB2A                                                  ; +0x1cf, 0x10046aa4f\nmovzx   eax, [rbp+var_12]                                              ; +0x1d4, 0x10046aa54\ncvtsi2ss xmm2, eax                                                     ; +0x1d8, 0x10046aa58\nshl     eax, 10h                                                       ; +0x1dc, 0x10046aa5c\nmovzx   ecx, [rbp+var_14]                                              ; +0x1df, 0x10046aa5f\nor      eax, ecx                                                       ; +0x1e3, 0x10046aa63\nmovzx   eax, al                                                        ; +0x1e5, 0x10046aa65\ncvtsi2ss xmm0, eax                                                     ; +0x1e8, 0x10046aa68\nshr     ecx, 8                                                         ; +0x1ec, 0x10046aa6c\ncvtsi2ss xmm3, ecx                                                     ; +0x1ef, 0x10046aa6f\nmovss   xmm1, cs:dword_100A03F80                                       ; +0x1f3, 0x10046aa73\ndivss   xmm0, xmm1                                                     ; +0x1fb, 0x10046aa7b\ndivss   xmm3, xmm1                                                     ; +0x1ff, 0x10046aa7f\nmovss   [rbp+var_18], xmm3                                             ; +0x203, 0x10046aa83\ndivss   xmm2, xmm1                                                     ; +0x208, 0x10046aa88\nmovss   [rbp+var_1C], xmm2                                             ; +0x20c, 0x10046aa8c\nmov     rdi, rbx                                                       ; +0x211, 0x10046aa91\nmov     esi, 22h ; '\"'                                                 ; +0x214, 0x10046aa94\nxor     edx, edx                                                       ; +0x219, 0x10046aa99\ncall    CreateParticlePopup__updateParticleValueForType                ; +0x21b, 0x10046aa9b\nmov     rdi, rbx                                                       ; +0x220, 0x10046aaa0\nmovss   xmm0, [rbp+var_18]                                             ; +0x223, 0x10046aaa3\nmov     esi, 24h ; '$'                                                 ; +0x228, 0x10046aaa8\nxor     edx, edx                                                       ; +0x22d, 0x10046aaad\ncall    CreateParticlePopup__updateParticleValueForType                ; +0x22f, 0x10046aaaf\nmov     rdi, rbx                                                       ; +0x234, 0x10046aab4\nmovss   xmm0, [rbp+var_1C]                                             ; +0x237, 0x10046aab7\nmov     esi, 26h ; '&'                                                 ; +0x23c, 0x10046aabc\nxor     edx, edx                                                       ; +0x241, 0x10046aac1\ncall    CreateParticlePopup__updateParticleValueForType                ; +0x243, 0x10046aac3\nmov     rdi, rbx                                                       ; +0x248, 0x10046aac8\nmov     esi, 22h ; '\"'                                                 ; +0x24b, 0x10046aacb\ncall    CreateParticlePopup__updateInputNodeStringForType              ; +0x250, 0x10046aad0\nmov     rdi, rbx                                                       ; +0x255, 0x10046aad5\nmov     esi, 24h ; '$'                                                 ; +0x258, 0x10046aad8\ncall    CreateParticlePopup__updateInputNodeStringForType              ; +0x25d, 0x10046aadd\nmov     rdi, rbx                                                       ; +0x262, 0x10046aae2\nmov     esi, 26h ; '&'                                                 ; +0x265, 0x10046aae5\ncall    CreateParticlePopup__updateInputNodeStringForType              ; +0x26a, 0x10046aaea\nmov     rdi, rbx                                                       ; +0x26f, 0x10046aaef\nmov     esi, 22h ; '\"'                                                 ; +0x272, 0x10046aaf2\ncall    CreateParticlePopup__updateSliderForType                       ; +0x277, 0x10046aaf7\nmov     rdi, rbx                                                       ; +0x27c, 0x10046aafc\nmov     esi, 24h ; '$'                                                 ; +0x27f, 0x10046aaff\ncall    CreateParticlePopup__updateSliderForType                       ; +0x284, 0x10046ab04\nmov     rdi, rbx                                                       ; +0x289, 0x10046ab09\nmov     esi, 26h ; '&'                                                 ; +0x28c, 0x10046ab0c\ncall    CreateParticlePopup__updateSliderForType                       ; +0x291, 0x10046ab11\nmov     rdi, [rbx+3B8h]                                                ; +0x296, 0x10046ab16\nmov     rax, [rdi]                                                     ; +0x29d, 0x10046ab1d\nlea     rsi, [rbp+var_14]                                              ; +0x2a0, 0x10046ab20\ncall    qword ptr [rax+3C0h]                                           ; +0x2a4, 0x10046ab24\nadd     rsp, 10h                                                       ; +0x2aa, 0x10046ab2a\npop     rbx                                                            ; +0x2ae, 0x10046ab2e\npop     r14                                                            ; +0x2af, 0x10046ab2f\npop     rbp                                                            ; +0x2b1, 0x10046ab31\nretn                                                                   ; +0x2b2, 0x10046ab32", "xrefs": ["sub_10046AB40 @ 0x10046ab4c", "<???> @ 0x100b44640"], "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"}