{"type": "func", "start": 4299641936, "end": 4299642100, "name": "CreateParticlePopup::onCalcEmission", "pseudocode": "// \n// CreateParticlePopup::onCalcEmission from 0x100475450 to 0x1004754f4 (164 bytes)\n// \n// 1 xrefs:\n// > CreateParticlePopup::createParticleSlider @ 0x1004743a1\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::onCalcEmission(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  float v2; // xmm0_4\n  float v3; // xmm0_4\n  float v4; // [rsp+0h] [rbp-Ch]\n\n  v4 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *, cocos2d::CCObject *))a1->m_particle->getLife)(\n         a1->m_particle,\n         a2);\n  v2 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getLifeVar)(a1->m_particle) + v4;\n  if ( v2 <= 0.0 )\n    v3 = -1.0;\n  else\n    v3 = (float)((int (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getTotalParticles)(a1->m_particle)\n       / v2;\n  CreateParticlePopup::updateParticleValueForType(a1, v3, Emission, nullptr);\n  CreateParticlePopup::updateSliderForType(a1, Emission);\n  CreateParticlePopup::updateInputNodeStringForType(a1, Emission);\n  cocos2d::CCParticleSystem::resetSystem(a1->m_particle);\n}", "assembly": "; \n; CreateParticlePopup::onCalcEmission from 0x100475450 to 0x1004754f4 (164 bytes)\n; \n; 1 xrefs:\n; > CreateParticlePopup::createParticleSlider @ 0x1004743a1\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, 0x100475450\nmov     rbp, rsp                                                       ; +0x1, 0x100475451\npush    rbx                                                            ; +0x4, 0x100475454\npush    rax                                                            ; +0x5, 0x100475455\nmov     rbx, rdi                                                       ; +0x6, 0x100475456\nmov     rdi, [rdi+2B0h]                                                ; +0x9, 0x100475459\nmov     rax, [rdi]                                                     ; +0x10, 0x100475460\ncall    qword ptr [rax+3B8h]                                           ; +0x13, 0x100475463\nmovss   [rbp+var_C], xmm0                                              ; +0x19, 0x100475469\nmov     rdi, [rbx+2B0h]                                                ; +0x1e, 0x10047546e\nmov     rax, [rdi]                                                     ; +0x25, 0x100475475\ncall    qword ptr [rax+3C8h]                                           ; +0x28, 0x100475478\naddss   xmm0, [rbp+var_C]                                              ; +0x2e, 0x10047547e\nxorps   xmm1, xmm1                                                     ; +0x33, 0x100475483\nucomiss xmm0, xmm1                                                     ; +0x36, 0x100475486\njbe     short loc_1004754B1                                            ; +0x39, 0x100475489\nmov     rdi, [rbx+2B0h]                                                ; +0x3b, 0x10047548b\nmov     rax, [rdi]                                                     ; +0x42, 0x100475492\nmovss   [rbp+var_C], xmm0                                              ; +0x45, 0x100475495\ncall    qword ptr [rax+5C8h]                                           ; +0x4a, 0x10047549a\nmov     eax, eax                                                       ; +0x50, 0x1004754a0\nxorps   xmm0, xmm0                                                     ; +0x52, 0x1004754a2\ncvtsi2ss xmm0, rax                                                     ; +0x55, 0x1004754a5\ndivss   xmm0, [rbp+var_C]                                              ; +0x5a, 0x1004754aa\njmp     short loc_1004754B9                                            ; +0x5f, 0x1004754af\nmovss   xmm0, cs:dword_100815094                                       ; +0x61, 0x1004754b1\nmov     rdi, rbx                                                       ; +0x69, 0x1004754b9\nmov     esi, 5                                                         ; +0x6c, 0x1004754bc\nxor     edx, edx                                                       ; +0x71, 0x1004754c1\ncall    CreateParticlePopup__updateParticleValueForType                ; +0x73, 0x1004754c3\nmov     rdi, rbx                                                       ; +0x78, 0x1004754c8\nmov     esi, 5                                                         ; +0x7b, 0x1004754cb\ncall    CreateParticlePopup__updateSliderForType                       ; +0x80, 0x1004754d0\nmov     rdi, rbx                                                       ; +0x85, 0x1004754d5\nmov     esi, 5                                                         ; +0x88, 0x1004754d8\ncall    CreateParticlePopup__updateInputNodeStringForType              ; +0x8d, 0x1004754dd\nmov     rdi, [rbx+2B0h]                                                ; +0x92, 0x1004754e2\nadd     rsp, 8                                                         ; +0x99, 0x1004754e9\npop     rbx                                                            ; +0x9d, 0x1004754ed\npop     rbp                                                            ; +0x9e, 0x1004754ee\njmp     cocos2d__CCParticleSystem__resetSystem                         ; +0x9f, 0x1004754ef", "xrefs": ["CreateParticlePopup::createParticleSlider @ 0x1004743a1"], "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"}