{"type": "func", "start": 5374781200, "end": 5374781322, "name": "CreateParticlePopup::onEmitterMode", "pseudocode": "// \n// CreateParticlePopup::onEmitterMode from 0x1405ca710 to 0x1405ca78a (122 bytes)\n// \n// 3 xrefs:\n// > CreateParticlePopup::init @ 0x1405c2df5\n// > CreateParticlePopup::init @ 0x1405c2f33\n// > <???> @ 0x14092e418\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:52 +0000\n// \n\n__int64 __fastcall CreateParticlePopup::onEmitterMode(__int64 a1, __int64 a2)\n{\n  int v3; // ebx\n  __int64 v4; // rdx\n  __int64 v5; // rdx\n  __int64 v6; // rdx\n  __int64 v7; // rdx\n\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);\n  CreateParticlePopup::updateParticleValueForType(a1, v4, 0x3Eu, nullptr);\n  LOBYTE(v5) = v3 == 0;\n  CCMenuItemToggler::toggle(*(_QWORD *)(a1 + 872), v5);\n  LOBYTE(v6) = v3 == 1;\n  CCMenuItemToggler::toggle(*(_QWORD *)(a1 + 880), v6);\n  LOBYTE(v7) = (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 712) + 1552LL))(*(_QWORD *)(a1 + 712)) == 0;\n  return CreateParticlePopup::toggleGravityMode(a1, v7);\n}", "assembly": "; \n; CreateParticlePopup::onEmitterMode from 0x1405ca710 to 0x1405ca78a (122 bytes)\n; \n; 3 xrefs:\n; > CreateParticlePopup::init @ 0x1405c2df5\n; > CreateParticlePopup::init @ 0x1405c2f33\n; > <???> @ 0x14092e418\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:52 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1405ca710\npush    rdi                                                            ; +0x5, 0x1405ca715\nsub     rsp, 20h                                                       ; +0x6, 0x1405ca716\nmov     rax, [rdx]                                                     ; +0xa, 0x1405ca71a\nmov     rdi, rcx                                                       ; +0xd, 0x1405ca71d\nmov     rcx, rdx                                                       ; +0x10, 0x1405ca720\ncall    qword ptr [rax+38h]                                            ; +0x13, 0x1405ca723\nxor     r9d, r9d                                                       ; +0x16, 0x1405ca726\nmov     r8d, 3Eh ; '>'                                                 ; +0x19, 0x1405ca729\nmov     rcx, rdi                                                       ; +0x1f, 0x1405ca72f\nmov     ebx, eax                                                       ; +0x22, 0x1405ca732\nmovd    xmm1, eax                                                      ; +0x24, 0x1405ca734\ncvtdq2ps xmm1, xmm1                                                    ; +0x28, 0x1405ca738\ncall    CreateParticlePopup__updateParticleValueForType                ; +0x2b, 0x1405ca73b\nmov     rcx, [rdi+368h]                                                ; +0x30, 0x1405ca740\ntest    ebx, ebx                                                       ; +0x37, 0x1405ca747\nsetz    dl                                                             ; +0x39, 0x1405ca749\ncall    CCMenuItemToggler__toggle                                      ; +0x3c, 0x1405ca74c\nmov     rcx, [rdi+370h]                                                ; +0x41, 0x1405ca751\ncmp     ebx, 1                                                         ; +0x48, 0x1405ca758\nsetz    dl                                                             ; +0x4b, 0x1405ca75b\ncall    CCMenuItemToggler__toggle                                      ; +0x4e, 0x1405ca75e\nmov     rcx, [rdi+2C8h]                                                ; +0x53, 0x1405ca763\nmov     rax, [rcx]                                                     ; +0x5a, 0x1405ca76a\ncall    qword ptr [rax+610h]                                           ; +0x5d, 0x1405ca76d\ntest    eax, eax                                                       ; +0x63, 0x1405ca773\nmov     rcx, rdi                                                       ; +0x65, 0x1405ca775\nsetz    dl                                                             ; +0x68, 0x1405ca778\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x6b, 0x1405ca77b\nadd     rsp, 20h                                                       ; +0x70, 0x1405ca780\npop     rdi                                                            ; +0x74, 0x1405ca784\njmp     CreateParticlePopup__toggleGravityMode                         ; +0x75, 0x1405ca785", "xrefs": ["CreateParticlePopup::init @ 0x1405c2df5", "CreateParticlePopup::init @ 0x1405c2f33", "<???> @ 0x14092e418"], "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"}