{"type": "func", "start": 4299641328, "end": 4299641563, "name": "CreateParticlePopup::sliderChanged", "pseudocode": "// \n// CreateParticlePopup::sliderChanged from 0x1004751f0 to 0x1004752db (235 bytes)\n// \n// 1 xrefs:\n// > CreateParticlePopup::createParticleSlider @ 0x100473f95\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall CreateParticlePopup::sliderChanged(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  __m128 v2; // xmm0\n  gjParticleValue v3; // r14d\n  __int64 v4; // rcx\n  __m128 v5; // xmm1\n  float v6; // xmm0_4\n  __m128 v7; // xmm2\n  float Value; // [rsp+8h] [rbp-18h]\n  float v9; // [rsp+Ch] [rbp-14h]\n\n  Value = SliderThumb::getValue((SliderThumb *)a2);\n  v3 = ((unsigned int (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n  v9 = CreateParticlePopup::minSliderValueForType((CreateParticlePopup *)a2, v3);\n  v2.f32[0] = (float)((float)(CreateParticlePopup::maxSliderValueForType((CreateParticlePopup *)a2, v3) - v9) * Value)\n            + v9;\n  if ( (unsigned int)(v3 - 5) < 0x15\n    || (unsigned int)v3 <= RotSecVar && (v4 = 0xFC000000000002LL, _bittest64(&v4, (unsigned int)v3)) )\n  {\n    v5 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, v2), (__m128)xmmword_1008150C0);\n    v5.f32[0] = v5.f32[0] + v2.f32[0];\n    v6 = _mm_round_ss((__m128)0LL, v5, 11).f32[0];\n  }\n  else\n  {\n    v2.f32[0] = v2.f32[0] * 100.0;\n    v7 = _mm_or_ps(_mm_and_ps((__m128)xmmword_1008150B0, v2), (__m128)xmmword_1008150C0);\n    v7.f32[0] = v7.f32[0] + v2.f32[0];\n    v6 = _mm_round_ss((__m128)0LL, v7, 11).f32[0] / 100.0;\n  }\n  CreateParticlePopup::updateParticleValueForType(a1, v6, v3, nullptr);\n  CreateParticlePopup::updateSliderForType(a1, v3);\n  CreateParticlePopup::updateInputNodeStringForType(a1, v3);\n}", "assembly": "; \n; CreateParticlePopup::sliderChanged from 0x1004751f0 to 0x1004752db (235 bytes)\n; \n; 1 xrefs:\n; > CreateParticlePopup::createParticleSlider @ 0x100473f95\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x1004751f0\nmov     rbp, rsp                                                       ; +0x1, 0x1004751f1\npush    r14                                                            ; +0x4, 0x1004751f4\npush    rbx                                                            ; +0x6, 0x1004751f6\nsub     rsp, 10h                                                       ; +0x7, 0x1004751f7\nmov     r14, rsi                                                       ; +0xb, 0x1004751fb\nmov     rbx, rdi                                                       ; +0xe, 0x1004751fe\nmov     rdi, rsi                                                       ; +0x11, 0x100475201\ncall    SliderThumb__getValue                                          ; +0x14, 0x100475204\nmovss   [rbp+var_18], xmm0                                             ; +0x19, 0x100475209\nmov     rax, [r14]                                                     ; +0x1e, 0x10047520e\nmov     rdi, r14                                                       ; +0x21, 0x100475211\ncall    qword ptr [rax+40h]                                            ; +0x24, 0x100475214\nmov     r14d, eax                                                      ; +0x27, 0x100475217\nmov     esi, eax                                                       ; +0x2a, 0x10047521a\ncall    CreateParticlePopup__minSliderValueForType                     ; +0x2c, 0x10047521c\nmovss   [rbp+var_14], xmm0                                             ; +0x31, 0x100475221\nmov     esi, r14d                                                      ; +0x36, 0x100475226\ncall    CreateParticlePopup__maxSliderValueForType                     ; +0x39, 0x100475229\nmovss   xmm1, [rbp+var_14]                                             ; +0x3e, 0x10047522e\nsubss   xmm0, xmm1                                                     ; +0x43, 0x100475233\nmulss   xmm0, [rbp+var_18]                                             ; +0x47, 0x100475237\naddss   xmm0, xmm1                                                     ; +0x4c, 0x10047523c\nlea     eax, [r14-5]                                                   ; +0x50, 0x100475240\ncmp     eax, 15h                                                       ; +0x54, 0x100475244\njb      short loc_100475262                                            ; +0x57, 0x100475247\ncmp     r14d, 37h ; '7'                                                ; +0x59, 0x100475249\nja      short loc_1004752AB                                            ; +0x5d, 0x10047524d\nmov     eax, r14d                                                      ; +0x5f, 0x10047524f\nmov     rcx, 0FC000000000002h                                          ; +0x62, 0x100475252\nbt      rcx, rax                                                       ; +0x6c, 0x10047525c\njnb     short loc_1004752AB                                            ; +0x70, 0x100475260\nmovaps  xmm1, cs:xmmword_1008150B0                                     ; +0x72, 0x100475262\nandps   xmm1, xmm0                                                     ; +0x79, 0x100475269\norps    xmm1, cs:xmmword_1008150C0                                     ; +0x7c, 0x10047526c\naddss   xmm1, xmm0                                                     ; +0x83, 0x100475273\nxorps   xmm0, xmm0                                                     ; +0x87, 0x100475277\nroundss xmm0, xmm1, 0Bh                                                ; +0x8a, 0x10047527a\nmov     rdi, rbx                                                       ; +0x90, 0x100475280\nmov     esi, r14d                                                      ; +0x93, 0x100475283\nxor     edx, edx                                                       ; +0x96, 0x100475286\ncall    CreateParticlePopup__updateParticleValueForType                ; +0x98, 0x100475288\nmov     rdi, rbx                                                       ; +0x9d, 0x10047528d\nmov     esi, r14d                                                      ; +0xa0, 0x100475290\ncall    CreateParticlePopup__updateSliderForType                       ; +0xa3, 0x100475293\nmov     rdi, rbx                                                       ; +0xa8, 0x100475298\nmov     esi, r14d                                                      ; +0xab, 0x10047529b\nadd     rsp, 10h                                                       ; +0xae, 0x10047529e\npop     rbx                                                            ; +0xb2, 0x1004752a2\npop     r14                                                            ; +0xb3, 0x1004752a3\npop     rbp                                                            ; +0xb5, 0x1004752a5\njmp     CreateParticlePopup__updateInputNodeStringForType              ; +0xb6, 0x1004752a6\nmovss   xmm1, cs:dword_100815014                                       ; +0xbb, 0x1004752ab\nmulss   xmm0, xmm1                                                     ; +0xc3, 0x1004752b3\nmovaps  xmm2, cs:xmmword_1008150B0                                     ; +0xc7, 0x1004752b7\nandps   xmm2, xmm0                                                     ; +0xce, 0x1004752be\norps    xmm2, cs:xmmword_1008150C0                                     ; +0xd1, 0x1004752c1\naddss   xmm2, xmm0                                                     ; +0xd8, 0x1004752c8\nxorps   xmm0, xmm0                                                     ; +0xdc, 0x1004752cc\nroundss xmm0, xmm2, 0Bh                                                ; +0xdf, 0x1004752cf\ndivss   xmm0, xmm1                                                     ; +0xe5, 0x1004752d5\njmp     short loc_100475280                                            ; +0xe9, 0x1004752d9", "xrefs": ["CreateParticlePopup::createParticleSlider @ 0x100473f95"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}