{"type": "func", "start": 4299634592, "end": 4299634718, "name": "CreateParticlePopup::onPosType", "pseudocode": "// \n// CreateParticlePopup::onPosType from 0x1004737a0 to 0x10047381e (126 bytes)\n// \n// 3 xrefs:\n// > CreateParticlePopup::init @ 0x10046fd3b\n// > CreateParticlePopup::init @ 0x10046fe66\n// > CreateParticlePopup::init @ 0x10046ff97\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::onPosType(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  int v2; // r14d\n\n  v2 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);\n  CreateParticlePopup::updateParticleValueForType(a1, (float)v2, PositionType, nullptr);\n  if ( !v2 )\n  {\n    CCMenuItemToggler::toggle(a1->m_relativeToggler, 0);\nLABEL_6:\n    CCMenuItemToggler::toggle(a1->m_groupedToggler, 0);\n    return;\n  }\n  CCMenuItemToggler::toggle(a1->m_freeToggler, 0);\n  if ( v2 == 1 )\n    goto LABEL_6;\n  CCMenuItemToggler::toggle(a1->m_relativeToggler, 0);\n  if ( v2 != 2 )\n    goto LABEL_6;\n}", "assembly": "; \n; CreateParticlePopup::onPosType from 0x1004737a0 to 0x10047381e (126 bytes)\n; \n; 3 xrefs:\n; > CreateParticlePopup::init @ 0x10046fd3b\n; > CreateParticlePopup::init @ 0x10046fe66\n; > CreateParticlePopup::init @ 0x10046ff97\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, 0x1004737a0\nmov     rbp, rsp                                                       ; +0x1, 0x1004737a1\npush    r14                                                            ; +0x4, 0x1004737a4\npush    rbx                                                            ; +0x6, 0x1004737a6\nmov     rbx, rdi                                                       ; +0x7, 0x1004737a7\nmov     rax, [rsi]                                                     ; +0xa, 0x1004737aa\nmov     rdi, rsi                                                       ; +0xd, 0x1004737ad\ncall    qword ptr [rax+40h]                                            ; +0x10, 0x1004737b0\nmov     r14d, eax                                                      ; +0x13, 0x1004737b3\nmov     eax, eax                                                       ; +0x16, 0x1004737b6\ncvtsi2ss xmm0, rax                                                     ; +0x18, 0x1004737b8\nmov     rdi, rbx                                                       ; +0x1d, 0x1004737bd\nmov     esi, 39h ; '9'                                                 ; +0x20, 0x1004737c0\nxor     edx, edx                                                       ; +0x25, 0x1004737c5\ncall    CreateParticlePopup__updateParticleValueForType                ; +0x27, 0x1004737c7\ntest    r14d, r14d                                                     ; +0x2c, 0x1004737cc\njz      short loc_1004737FE                                            ; +0x2f, 0x1004737cf\nmov     rdi, [rbx+328h]                                                ; +0x31, 0x1004737d1\nxor     esi, esi                                                       ; +0x38, 0x1004737d8\ncall    CCMenuItemToggler__toggle                                      ; +0x3a, 0x1004737da\ncmp     r14d, 1                                                        ; +0x3f, 0x1004737df\njz      short loc_10047380C                                            ; +0x43, 0x1004737e3\nmov     rdi, [rbx+330h]                                                ; +0x45, 0x1004737e5\nxor     esi, esi                                                       ; +0x4c, 0x1004737ec\ncall    CCMenuItemToggler__toggle                                      ; +0x4e, 0x1004737ee\ncmp     r14d, 2                                                        ; +0x53, 0x1004737f3\njnz     short loc_10047380C                                            ; +0x57, 0x1004737f7\npop     rbx                                                            ; +0x59, 0x1004737f9\npop     r14                                                            ; +0x5a, 0x1004737fa\npop     rbp                                                            ; +0x5c, 0x1004737fc\nretn                                                                   ; +0x5d, 0x1004737fd\nmov     rdi, [rbx+330h]                                                ; +0x5e, 0x1004737fe\nxor     esi, esi                                                       ; +0x65, 0x100473805\ncall    CCMenuItemToggler__toggle                                      ; +0x67, 0x100473807\nmov     rdi, [rbx+338h]                                                ; +0x6c, 0x10047380c\nxor     esi, esi                                                       ; +0x73, 0x100473813\npop     rbx                                                            ; +0x75, 0x100473815\npop     r14                                                            ; +0x76, 0x100473816\npop     rbp                                                            ; +0x78, 0x100473818\njmp     CCMenuItemToggler__toggle                                      ; +0x79, 0x100473819", "xrefs": ["CreateParticlePopup::init @ 0x10046fd3b", "CreateParticlePopup::init @ 0x10046fe66", "CreateParticlePopup::init @ 0x10046ff97"], "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"}