{"type": "func", "start": 5373119968, "end": 5373120088, "name": "CreateParticlePopup::onEmitterMode", "pseudocode": "// \n// CreateParticlePopup::onEmitterMode from 0x140434de0 to 0x140434e58 (120 bytes)\n// \n// 3 xrefs:\n// > CreateParticlePopup::init @ 0x14042dad2\n// > CreateParticlePopup::init @ 0x14042dc12\n// > <???> @ 0x1406d9c98\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 CreateParticlePopup::onEmitterMode(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  int v3; // ebx\n  int v4; // eax\n\n  v3 = a2->getTag(a2);\n  CreateParticlePopup::updateParticleValueForType(a1, (float)v3, EmitterMode, nullptr);\n  CCMenuItemToggler::toggle(a1->m_gravityToggler, v3 == 0);\n  CCMenuItemToggler::toggle(a1->m_radiusToggler, v3 == 1);\n  v4 = a1->m_particle->getEmitterMode(a1->m_particle);\n  CreateParticlePopup::toggleGravityMode(a1, v4 == 0);\n}", "assembly": "; \n; CreateParticlePopup::onEmitterMode from 0x140434de0 to 0x140434e58 (120 bytes)\n; \n; 3 xrefs:\n; > CreateParticlePopup::init @ 0x14042dad2\n; > CreateParticlePopup::init @ 0x14042dc12\n; > <???> @ 0x1406d9c98\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140434de0\npush    rdi                                                            ; +0x5, 0x140434de5\nsub     rsp, 20h                                                       ; +0x6, 0x140434de6\nmov     rax, [rdx]                                                     ; +0xa, 0x140434dea\nmov     rdi, rcx                                                       ; +0xd, 0x140434ded\nmov     rcx, rdx                                                       ; +0x10, 0x140434df0\ncall    qword ptr [rax+38h]                                            ; +0x13, 0x140434df3\nxor     r9d, r9d                                                       ; +0x16, 0x140434df6\nmov     rcx, rdi                                                       ; +0x19, 0x140434df9\nmov     ebx, eax                                                       ; +0x1c, 0x140434dfc\nmovd    xmm1, eax                                                      ; +0x1e, 0x140434dfe\ncvtdq2ps xmm1, xmm1                                                    ; +0x22, 0x140434e02\nlea     r8d, [r9+3Eh]                                                  ; +0x25, 0x140434e05\ncall    CreateParticlePopup__updateParticleValueForType                ; +0x29, 0x140434e09\nmov     rcx, [rdi+350h]                                                ; +0x2e, 0x140434e0e\ntest    ebx, ebx                                                       ; +0x35, 0x140434e15\nsetz    dl                                                             ; +0x37, 0x140434e17\ncall    CCMenuItemToggler__toggle                                      ; +0x3a, 0x140434e1a\nmov     rcx, [rdi+358h]                                                ; +0x3f, 0x140434e1f\ncmp     ebx, 1                                                         ; +0x46, 0x140434e26\nsetz    dl                                                             ; +0x49, 0x140434e29\ncall    CCMenuItemToggler__toggle                                      ; +0x4c, 0x140434e2c\nmov     rcx, [rdi+2B0h]                                                ; +0x51, 0x140434e31\nmov     rax, [rcx]                                                     ; +0x58, 0x140434e38\ncall    qword ptr [rax+600h]                                           ; +0x5b, 0x140434e3b\ntest    eax, eax                                                       ; +0x61, 0x140434e41\nmov     rcx, rdi                                                       ; +0x63, 0x140434e43\nsetz    dl                                                             ; +0x66, 0x140434e46\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x69, 0x140434e49\nadd     rsp, 20h                                                       ; +0x6e, 0x140434e4e\npop     rdi                                                            ; +0x72, 0x140434e52\njmp     CreateParticlePopup__toggleGravityMode                         ; +0x73, 0x140434e53", "xrefs": ["CreateParticlePopup::init @ 0x14042dad2", "CreateParticlePopup::init @ 0x14042dc12", "<???> @ 0x1406d9c98"], "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"}