{"type": "func", "start": 11528660, "end": 11528804, "name": "CreateParticlePopup::onPosType", "pseudocode": "// \n// CreateParticlePopup::onPosType from 0xafe9d4 to 0xafea64 (144 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0xf4798\n// > CreateParticlePopup::init @ 0xb022b4\n// > CreateParticlePopup::init @ 0xb023c8\n// > CreateParticlePopup::init @ 0xb024d0\n// > <???> @ 0x1547698\n// \n// This function is hookable on this platform (idp: arm, 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 13:01:19 +0000\n// \n\n__int64 __fastcall CreateParticlePopup::onPosType(CCMenuItemToggler **this, cocos2d::CCObject *a2)\n{\n  long double v3; // q0\n  unsigned int v4; // w0\n  unsigned int v5; // w20\n  __int64 result; // x0\n\n  *(__n128 *)&v3 = ((__n128 (__fastcall *)(cocos2d::CCObject *))*(_QWORD *)(*(_QWORD *)a2 + 64LL))(a2);\n  v5 = v4;\n  *(float *)&v3 = (float)v4;\n  CreateParticlePopup::updateParticleValueForType((__int64)this, 0x39u, nullptr, v3);\n  if ( !v5 )\n  {\n    CCMenuItemToggler::toggle(*(this + 105), 0);\n    return CCMenuItemToggler::toggle(*(this + 106), 0);\n  }\n  CCMenuItemToggler::toggle(*(this + 104), 0);\n  if ( v5 == 1 )\n    return CCMenuItemToggler::toggle(*(this + 106), 0);\n  result = CCMenuItemToggler::toggle(*(this + 105), 0);\n  if ( v5 != 2 )\n    return CCMenuItemToggler::toggle(*(this + 106), 0);\n  return result;\n}", "assembly": "; \n; CreateParticlePopup::onPosType from 0xafe9d4 to 0xafea64 (144 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0xf4798\n; > CreateParticlePopup::init @ 0xb022b4\n; > CreateParticlePopup::init @ 0xb023c8\n; > CreateParticlePopup::init @ 0xb024d0\n; > <???> @ 0x1547698\n; \n; This function is hookable on this platform (idp: arm, 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 13:01:19 +0000\n; \nSTP             X29, X30, [SP,#-0x20+var_s0]!                          ; +0x0, 0xafe9d4\nMOV             X29, SP                                                ; +0x4, 0xafe9d8\nSTP             X19, X20, [SP,#var_s10]                                ; +0x8, 0xafe9dc\nMOV             X19, X0                                                ; +0xc, 0xafe9e0\nMOV             X0, X1                                                 ; +0x10, 0xafe9e4\nLDR             X1, [X1]                                               ; +0x14, 0xafe9e8\nLDR             X1, [X1,#0x40]                                         ; +0x18, 0xafe9ec\nBLR             X1                                                     ; +0x1c, 0xafe9f0\nMOV             W20, W0                                                ; +0x20, 0xafe9f4\nMOV             W1, #0x39 ; '9'                                        ; +0x24, 0xafe9f8\nMOV             X0, X19                                                ; +0x28, 0xafe9fc\nUCVTF           S0, W20                                                ; +0x2c, 0xafea00\nMOV             X2, #0                                                 ; +0x30, 0xafea04\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x34, 0xafea08\nCBNZ            W20, loc_AFEA30                                        ; +0x38, 0xafea0c\nLDR             X0, [X19,#0x348]; this                                 ; +0x3c, 0xafea10\nMOV             W1, #0; bool                                           ; +0x40, 0xafea14\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x44, 0xafea18\nLDR             X0, [X19,#0x350]; this                                 ; +0x48, 0xafea1c\nMOV             W1, #0; bool                                           ; +0x4c, 0xafea20\nLDP             X19, X20, [SP,#var_s10]                                ; +0x50, 0xafea24\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x54, 0xafea28\nB               _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x58, 0xafea2c\nLDR             X0, [X19,#0x340]; this                                 ; +0x5c, 0xafea30\nMOV             W1, #0; bool                                           ; +0x60, 0xafea34\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x64, 0xafea38\nCMP             W20, #1                                                ; +0x68, 0xafea3c\nB.EQ            loc_AFEA1C                                             ; +0x6c, 0xafea40\nLDR             X0, [X19,#0x348]; this                                 ; +0x70, 0xafea44\nMOV             W1, #0; bool                                           ; +0x74, 0xafea48\nBL              _ZN17CCMenuItemToggler6toggleEb; CCMenuItemToggler::toggle(bool) ; +0x78, 0xafea4c\nCMP             W20, #2                                                ; +0x7c, 0xafea50\nB.NE            loc_AFEA1C                                             ; +0x80, 0xafea54\nLDP             X19, X20, [SP,#var_s10]                                ; +0x84, 0xafea58\nLDP             X29, X30, [SP+var_s0],#0x20                            ; +0x88, 0xafea5c\nRET                                                                    ; +0x8c, 0xafea60", "xrefs": ["<???> @ 0xf4798", "CreateParticlePopup::init @ 0xb022b4", "CreateParticlePopup::init @ 0xb023c8", "CreateParticlePopup::init @ 0xb024d0", "<???> @ 0x1547698"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}