{"type": "func", "start": 5374772176, "end": 5374772365, "name": "CreateParticlePopup::onCalcEmission", "pseudocode": "// \n// CreateParticlePopup::onCalcEmission from 0x1405c83d0 to 0x1405c848d (189 bytes)\n// \n// 2 xrefs:\n// > CreateParticlePopup::createParticleSlider @ 0x1405c6830\n// > <???> @ 0x14092e394\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 11:34:51 +0000\n// \n\nvoid __fastcall CreateParticlePopup::onCalcEmission(__int64 a1)\n{\n  __int64 v1; // rbx\n  double v3; // xmm0_8\n  float v4; // xmm6_4\n  __int64 v5; // rdx\n  double v6; // xmm0_8\n\n  v1 = *(_QWORD *)(a1 + 712);\n  v3 = (*(double (__fastcall **)(__int64))(*(_QWORD *)v1 + 976LL))(v1);\n  v4 = *(float *)&v3;\n  v6 = (*(double (__fastcall **)(__int64))(*(_QWORD *)v1 + 960LL))(v1);\n  if ( (float)(*(float *)&v6 + v4) > 0.0 )\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1488LL))(*(_QWORD *)(a1 + 712));\n  CreateParticlePopup::updateParticleValueForType(a1, v5, 5, 0);\n  CreateParticlePopup::updateSliderForType(a1, 5);\n  CreateParticlePopup::updateInputNodeStringForType(a1, 5);\n  cocos2d::CCParticleSystem::resetSystem(*(cocos2d::CCParticleSystem **)(a1 + 712));\n}", "assembly": "; \n; CreateParticlePopup::onCalcEmission from 0x1405c83d0 to 0x1405c848d (189 bytes)\n; \n; 2 xrefs:\n; > CreateParticlePopup::createParticleSlider @ 0x1405c6830\n; > <???> @ 0x14092e394\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 11:34:51 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1405c83d0\npush    rdi                                                            ; +0x5, 0x1405c83d5\nsub     rsp, 40h                                                       ; +0x6, 0x1405c83d6\nmov     rbx, [rcx+2C8h]                                                ; +0xa, 0x1405c83da\nmov     rdi, rcx                                                       ; +0x11, 0x1405c83e1\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x14, 0x1405c83e4\nmov     rcx, rbx                                                       ; +0x19, 0x1405c83e9\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x1c, 0x1405c83ec\nmov     rax, [rbx]                                                     ; +0x21, 0x1405c83f1\ncall    qword ptr [rax+3D0h]                                           ; +0x24, 0x1405c83f4\nmov     rax, [rbx]                                                     ; +0x2a, 0x1405c83fa\nmov     rcx, rbx                                                       ; +0x2d, 0x1405c83fd\nmovaps  xmm6, xmm0                                                     ; +0x30, 0x1405c8400\ncall    qword ptr [rax+3C0h]                                           ; +0x33, 0x1405c8403\nmovaps  xmm7, xmm0                                                     ; +0x39, 0x1405c8409\nxorps   xmm1, xmm1                                                     ; +0x3c, 0x1405c840c\naddss   xmm7, xmm6                                                     ; +0x3f, 0x1405c840f\ncomiss  xmm7, xmm1                                                     ; +0x43, 0x1405c8413\njbe     short loc_1405C8438                                            ; +0x46, 0x1405c8416\nmov     rcx, [rdi+2C8h]                                                ; +0x48, 0x1405c8418\nmov     rax, [rcx]                                                     ; +0x4f, 0x1405c841f\ncall    qword ptr [rax+5D0h]                                           ; +0x52, 0x1405c8422\nxorps   xmm1, xmm1                                                     ; +0x58, 0x1405c8428\nmov     eax, eax                                                       ; +0x5b, 0x1405c842b\ncvtsi2ss xmm1, rax                                                     ; +0x5d, 0x1405c842d\ndivss   xmm1, xmm7                                                     ; +0x62, 0x1405c8432\njmp     short loc_1405C8440                                            ; +0x66, 0x1405c8436\nmovss   xmm1, cs:dword_140835C90                                       ; +0x68, 0x1405c8438\nxor     r9d, r9d                                                       ; +0x70, 0x1405c8440\nmov     r8d, 5                                                         ; +0x73, 0x1405c8443\nmov     rcx, rdi                                                       ; +0x79, 0x1405c8449\ncall    CreateParticlePopup__updateParticleValueForType                ; +0x7c, 0x1405c844c\nmov     edx, 5                                                         ; +0x81, 0x1405c8451\nmov     rcx, rdi                                                       ; +0x86, 0x1405c8456\ncall    CreateParticlePopup__updateSliderForType                       ; +0x89, 0x1405c8459\nmov     edx, 5                                                         ; +0x8e, 0x1405c845e\nmov     rcx, rdi                                                       ; +0x93, 0x1405c8463\ncall    CreateParticlePopup__updateInputNodeStringForType              ; +0x96, 0x1405c8466\nmov     rcx, [rdi+2C8h]                                                ; +0x9b, 0x1405c846b\nmov     rbx, [rsp+48h+arg_0]                                           ; +0xa2, 0x1405c8472\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0xa7, 0x1405c8477\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0xac, 0x1405c847c\nadd     rsp, 40h                                                       ; +0xb1, 0x1405c8481\npop     rdi                                                            ; +0xb5, 0x1405c8485\njmp     cs:?resetSystem@CCParticleSystem@cocos2d@@QEAAXXZ; cocos2d::CCParticleSystem::resetSystem(void) ; +0xb6, 0x1405c8486", "xrefs": ["CreateParticlePopup::createParticleSlider @ 0x1405c6830", "<???> @ 0x14092e394"], "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"}