{"type": "func", "start": 10240528, "end": 10241244, "name": "CreateParticlePopup::colorSelectClosed", "pseudocode": "// \n// CreateParticlePopup::colorSelectClosed from 0x9c4210 to 0x9c44dc (716 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'CreateParticlePopup::colorSelectClosed @ 0x9c44e4\n// > <???> @ 0x75a38\n// > <???> @ 0x11c8af0\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::colorSelectClosed(CreateParticlePopup *a1, cocos2d::CCNode *a2)\n{\n  int v3; // w0\n  unsigned __int8 v4; // w1\n  cocos2d::CCLabelBMFont *m_perfLogLabel; // x0\n  void (__fastcall *setColor)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // x4\n  cocos2d::CCParticleSystemQuad *m_particle; // x0\n  cocos2d::ccColor4F *p_m_tUniformColor; // x21\n  const cocos2d::ccColor4F *v9; // x0\n  cocos2d::CCParticleSystemQuad_vtbl *v10; // x2\n  __int64 v11; // x3\n  cocos2d::CCParticleSystemQuad *v12; // x0\n  cocos2d::CCParticleSystemQuad_vtbl *v13; // x1\n  cocos2d::ccColor4F *p_m_tUniformDeltaColor; // x20\n  cocos2d::CCParticleSystemQuad_vtbl **v15; // x0\n  cocos2d::CCParticleSystemQuad_vtbl *v16; // x1\n  __int16 y_low; // [xsp+58h] [xbp+58h] BYREF\n  unsigned __int8 v19; // [xsp+5Ah] [xbp+5Ah]\n  __int16 v20; // [xsp+60h] [xbp+60h] BYREF\n  char v21; // [xsp+62h] [xbp+62h]\n\n  v3 = a2->getTag(a2);\n  v4 = BYTE2(a2[3].m_obAnchorPoint.y);\n  y_low = LOWORD(a2[3].m_obAnchorPoint.y);\n  v19 = v4;\n  if ( v3 )\n  {\n    if ( v3 == 1 )\n    {\n      CreateParticlePopup::updateParticleValueForType(a1, (float)(unsigned __int8)y_low / 255.0, StartR, nullptr);\n      CreateParticlePopup::updateParticleValueForType(a1, (float)HIBYTE(y_low) / 255.0, StartG, nullptr);\n      CreateParticlePopup::updateParticleValueForType(a1, (float)v19 / 255.0, StartB, nullptr);\n      CreateParticlePopup::updateInputNodeStringForType(a1, StartR);\n      CreateParticlePopup::updateInputNodeStringForType(a1, StartG);\n      CreateParticlePopup::updateInputNodeStringForType(a1, StartB);\n      CreateParticlePopup::updateSliderForType(a1, StartR);\n      CreateParticlePopup::updateSliderForType(a1, StartG);\n      CreateParticlePopup::updateSliderForType(a1, StartB);\n      a1->m_startColorSprite->setColor(a1->m_startColorSprite, (const cocos2d::ccColor3B *)&y_low);\n      m_particle = a1->m_particle;\n      p_m_tUniformColor = &m_particle->m_tUniformColor;\n      v9 = m_particle->getStartColor(m_particle);\n      v10 = *(cocos2d::CCParticleSystemQuad_vtbl **)&v9->r;\n      v11 = *(_QWORD *)&v9->b;\n      v12 = a1->m_particle;\n      v13 = v12->cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n      p_m_tUniformDeltaColor = &v12->m_tUniformDeltaColor;\n      *(_QWORD *)&p_m_tUniformColor->r = v10;\n      *(_QWORD *)&p_m_tUniformColor->b = v11;\n      v15 = (cocos2d::CCParticleSystemQuad_vtbl **)v13->getEndColor(v12);\n      v16 = v15[1];\n      *(_QWORD *)&p_m_tUniformDeltaColor->r = *v15;\n      *(_QWORD *)&p_m_tUniformDeltaColor->b = v16;\n    }\n    else if ( v3 == 2 )\n    {\n      CreateParticlePopup::updateParticleValueForType(a1, (float)(unsigned __int8)y_low / 255.0, EndR, nullptr);\n      CreateParticlePopup::updateParticleValueForType(a1, (float)HIBYTE(y_low) / 255.0, EndG, nullptr);\n      CreateParticlePopup::updateParticleValueForType(a1, (float)v19 / 255.0, EndB, nullptr);\n      CreateParticlePopup::updateInputNodeStringForType(a1, EndR);\n      CreateParticlePopup::updateInputNodeStringForType(a1, EndG);\n      CreateParticlePopup::updateInputNodeStringForType(a1, EndB);\n      CreateParticlePopup::updateSliderForType(a1, EndR);\n      CreateParticlePopup::updateSliderForType(a1, EndG);\n      CreateParticlePopup::updateSliderForType(a1, EndB);\n      a1->m_endColorSprite->setColor(a1->m_endColorSprite, (const cocos2d::ccColor3B *)&y_low);\n    }\n  }\n  else\n  {\n    a1->m_previewLayer->setColor(a1->m_previewLayer, (const cocos2d::ccColor3B *)&y_low);\n    a1->m_particleColorSprite->setColor(a1->m_particleColorSprite, (const cocos2d::ccColor3B *)&y_low);\n    m_perfLogLabel = a1->m_perfLogLabel;\n    setColor = m_perfLogLabel->setColor;\n    v21 = ~v19;\n    v20 = ~y_low;\n    setColor(m_perfLogLabel, (const cocos2d::ccColor3B *)&v20);\n  }\n}", "assembly": "; \n; CreateParticlePopup::colorSelectClosed from 0x9c4210 to 0x9c44dc (716 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'CreateParticlePopup::colorSelectClosed @ 0x9c44e4\n; > <???> @ 0x75a38\n; > <???> @ 0x11c8af0\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\nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0x9c4210\nMOV             X29, SP                                                ; +0x4, 0x9c4214\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0x8, 0x9c4218\nSTP             D8, D9, [SP,#0x70+var_48]                              ; +0xc, 0x9c421c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x9c4220\nLDR             X2, [X1]                                               ; +0x14, 0x9c4224\nSTR             X21, [SP,#0x70+var_50]                                 ; +0x18, 0x9c4228\nMOV             X20, X0                                                ; +0x1c, 0x9c422c\nSTR             X1, [X29,#0x70+var_28]                                 ; +0x20, 0x9c4230\nMOV             X0, X1                                                 ; +0x24, 0x9c4234\nLDR             X3, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x28, 0x9c4238\nADD             X21, X29, #0x70+var_18                                 ; +0x2c, 0x9c423c\nLDR             X2, [X2,#0x40]                                         ; +0x30, 0x9c4240\nLDR             X3, [X3]                                               ; +0x34, 0x9c4244\nSTR             X3, [X29,#0x70+var_8]                                  ; +0x38, 0x9c4248\nBLR             X2                                                     ; +0x3c, 0x9c424c\nLDR             X1, [X29,#0x70+var_28]                                 ; +0x40, 0x9c4250\nLDRH            W2, [X1,#0x428]                                        ; +0x44, 0x9c4254\nLDRB            W1, [X1,#0x42A]                                        ; +0x48, 0x9c4258\nSTRH            W2, [X29,#0x70+var_18]                                 ; +0x4c, 0x9c425c\nSTRB            W1, [X29,#0x70+var_16]                                 ; +0x50, 0x9c4260\nCBZ             W0, loc_9C42A0                                         ; +0x54, 0x9c4264\nCMP             W0, #1                                                 ; +0x58, 0x9c4268\nB.EQ            loc_9C43D4                                             ; +0x5c, 0x9c426c\nCMP             W0, #2                                                 ; +0x60, 0x9c4270\nB.EQ            loc_9C4310                                             ; +0x64, 0x9c4274\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x68, 0x9c4278\nLDR             X1, [X29,#0x70+var_8]                                  ; +0x6c, 0x9c427c\nLDR             X0, [X19]                                              ; +0x70, 0x9c4280\nCMP             X1, X0                                                 ; +0x74, 0x9c4284\nB.NE            loc_9C44D8                                             ; +0x78, 0x9c4288\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0x7c, 0x9c428c\nLDP             D8, D9, [SP,#0x70+var_48]                              ; +0x80, 0x9c4290\nLDR             X21, [SP,#0x70+var_50]                                 ; +0x84, 0x9c4294\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x88, 0x9c4298\nRET                                                                    ; +0x8c, 0x9c429c\nLDR             X2, [X20,#0x300]                                       ; +0x90, 0x9c42a0\nMOV             X1, X21                                                ; +0x94, 0x9c42a4\nMOV             X0, X2                                                 ; +0x98, 0x9c42a8\nLDR             X2, [X2]                                               ; +0x9c, 0x9c42ac\nLDR             X2, [X2,#0x4B0]                                        ; +0xa0, 0x9c42b0\nBLR             X2                                                     ; +0xa4, 0x9c42b4\nLDR             X2, [X20,#0x368]                                       ; +0xa8, 0x9c42b8\nMOV             X1, X21                                                ; +0xac, 0x9c42bc\nMOV             X0, X2                                                 ; +0xb0, 0x9c42c0\nLDR             X2, [X2]                                               ; +0xb4, 0x9c42c4\nLDR             X2, [X2,#0x3B0]                                        ; +0xb8, 0x9c42c8\nBLR             X2                                                     ; +0xbc, 0x9c42cc\nLDR             X2, [X20,#0x398]                                       ; +0xc0, 0x9c42d0\nADD             X1, X29, #0x70+var_10                                  ; +0xc4, 0x9c42d4\nLDRB            W4, [X29,#0x70+var_18+1]                               ; +0xc8, 0x9c42d8\nLDRB            W3, [X29,#0x70+var_16]                                 ; +0xcc, 0x9c42dc\nMOV             X0, X2                                                 ; +0xd0, 0x9c42e0\nLDR             X5, [X2]                                               ; +0xd4, 0x9c42e4\nMVN             W4, W4                                                 ; +0xd8, 0x9c42e8\nLDRB            W2, [X29,#0x70+var_18]                                 ; +0xdc, 0x9c42ec\nMVN             W3, W3                                                 ; +0xe0, 0x9c42f0\nSTRB            W4, [X29,#0x70+var_10+1]                               ; +0xe4, 0x9c42f4\nLDR             X4, [X5,#0x420]                                        ; +0xe8, 0x9c42f8\nMVN             W2, W2                                                 ; +0xec, 0x9c42fc\nSTRB            W3, [X29,#0x70+var_E]                                  ; +0xf0, 0x9c4300\nSTRB            W2, [X29,#0x70+var_10]                                 ; +0xf4, 0x9c4304\nBLR             X4                                                     ; +0xf8, 0x9c4308\nB               loc_9C4278                                             ; +0xfc, 0x9c430c\nLDRB            W4, [X29,#0x70+var_18+1]                               ; +0x100, 0x9c4310\nMOV             X0, X20                                                ; +0x104, 0x9c4314\nLDRB            W5, [X29,#0x70+var_18]                                 ; +0x108, 0x9c4318\nMOV             W1, #0x22 ; '\"'                                        ; +0x10c, 0x9c431c\nLDRB            W3, [X29,#0x70+var_16]                                 ; +0x110, 0x9c4320\nMOV             X2, #0                                                 ; +0x114, 0x9c4324\nSCVTF           S9, W4                                                 ; +0x118, 0x9c4328\nSCVTF           S0, W5                                                 ; +0x11c, 0x9c432c\nSCVTF           S8, W3                                                 ; +0x120, 0x9c4330\nLDR             S1, =0x437F0000                                        ; +0x124, 0x9c4334\nFDIV            S9, S9, S1                                             ; +0x128, 0x9c4338\nFDIV            S0, S0, S1                                             ; +0x12c, 0x9c433c\nFDIV            S8, S8, S1                                             ; +0x130, 0x9c4340\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x134, 0x9c4344\nFMOV            S0, S9                                                 ; +0x138, 0x9c4348\nMOV             X0, X20                                                ; +0x13c, 0x9c434c\nMOV             W1, #0x24 ; '$'                                        ; +0x140, 0x9c4350\nMOV             X2, #0                                                 ; +0x144, 0x9c4354\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x148, 0x9c4358\nFMOV            S0, S8                                                 ; +0x14c, 0x9c435c\nMOV             X2, #0                                                 ; +0x150, 0x9c4360\nMOV             X0, X20                                                ; +0x154, 0x9c4364\nMOV             W1, #0x26 ; '&'                                        ; +0x158, 0x9c4368\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x15c, 0x9c436c\nMOV             X0, X20                                                ; +0x160, 0x9c4370\nMOV             W1, #0x22 ; '\"'                                        ; +0x164, 0x9c4374\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x168, 0x9c4378\nMOV             X0, X20                                                ; +0x16c, 0x9c437c\nMOV             W1, #0x24 ; '$'                                        ; +0x170, 0x9c4380\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x174, 0x9c4384\nMOV             X0, X20                                                ; +0x178, 0x9c4388\nMOV             W1, #0x26 ; '&'                                        ; +0x17c, 0x9c438c\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x180, 0x9c4390\nMOV             X0, X20                                                ; +0x184, 0x9c4394\nMOV             W1, #0x22 ; '\"'                                        ; +0x188, 0x9c4398\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x18c, 0x9c439c\nMOV             X0, X20                                                ; +0x190, 0x9c43a0\nMOV             W1, #0x24 ; '$'                                        ; +0x194, 0x9c43a4\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x198, 0x9c43a8\nMOV             X0, X20                                                ; +0x19c, 0x9c43ac\nMOV             W1, #0x26 ; '&'                                        ; +0x1a0, 0x9c43b0\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x1a4, 0x9c43b4\nLDR             X2, [X20,#0x378]                                       ; +0x1a8, 0x9c43b8\nMOV             X1, X21                                                ; +0x1ac, 0x9c43bc\nMOV             X0, X2                                                 ; +0x1b0, 0x9c43c0\nLDR             X2, [X2]                                               ; +0x1b4, 0x9c43c4\nLDR             X2, [X2,#0x3B0]                                        ; +0x1b8, 0x9c43c8\nBLR             X2                                                     ; +0x1bc, 0x9c43cc\nB               loc_9C4278                                             ; +0x1c0, 0x9c43d0\nLDRB            W4, [X29,#0x70+var_18+1]                               ; +0x1c4, 0x9c43d4\nMOV             X0, X20                                                ; +0x1c8, 0x9c43d8\nLDRB            W5, [X29,#0x70+var_18]                                 ; +0x1cc, 0x9c43dc\nMOV             W1, #0x1A                                              ; +0x1d0, 0x9c43e0\nLDRB            W3, [X29,#0x70+var_16]                                 ; +0x1d4, 0x9c43e4\nMOV             X2, #0                                                 ; +0x1d8, 0x9c43e8\nSCVTF           S9, W4                                                 ; +0x1dc, 0x9c43ec\nSCVTF           S0, W5                                                 ; +0x1e0, 0x9c43f0\nSCVTF           S8, W3                                                 ; +0x1e4, 0x9c43f4\nLDR             S1, =0x437F0000                                        ; +0x1e8, 0x9c43f8\nFDIV            S9, S9, S1                                             ; +0x1ec, 0x9c43fc\nFDIV            S0, S0, S1                                             ; +0x1f0, 0x9c4400\nFDIV            S8, S8, S1                                             ; +0x1f4, 0x9c4404\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x1f8, 0x9c4408\nFMOV            S0, S9                                                 ; +0x1fc, 0x9c440c\nMOV             X0, X20                                                ; +0x200, 0x9c4410\nMOV             W1, #0x1C                                              ; +0x204, 0x9c4414\nMOV             X2, #0                                                 ; +0x208, 0x9c4418\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x20c, 0x9c441c\nFMOV            S0, S8                                                 ; +0x210, 0x9c4420\nMOV             X2, #0                                                 ; +0x214, 0x9c4424\nMOV             X0, X20                                                ; +0x218, 0x9c4428\nMOV             W1, #0x1E                                              ; +0x21c, 0x9c442c\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x220, 0x9c4430\nMOV             X0, X20                                                ; +0x224, 0x9c4434\nMOV             W1, #0x1A                                              ; +0x228, 0x9c4438\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x22c, 0x9c443c\nMOV             X0, X20                                                ; +0x230, 0x9c4440\nMOV             W1, #0x1C                                              ; +0x234, 0x9c4444\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x238, 0x9c4448\nMOV             X0, X20                                                ; +0x23c, 0x9c444c\nMOV             W1, #0x1E                                              ; +0x240, 0x9c4450\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x244, 0x9c4454\nMOV             X0, X20                                                ; +0x248, 0x9c4458\nMOV             W1, #0x1A                                              ; +0x24c, 0x9c445c\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x250, 0x9c4460\nMOV             X0, X20                                                ; +0x254, 0x9c4464\nMOV             W1, #0x1C                                              ; +0x258, 0x9c4468\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x25c, 0x9c446c\nMOV             X0, X20                                                ; +0x260, 0x9c4470\nMOV             W1, #0x1E                                              ; +0x264, 0x9c4474\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x268, 0x9c4478\nLDR             X2, [X20,#0x370]                                       ; +0x26c, 0x9c447c\nMOV             X1, X21                                                ; +0x270, 0x9c4480\nMOV             X0, X2                                                 ; +0x274, 0x9c4484\nLDR             X2, [X2]                                               ; +0x278, 0x9c4488\nLDR             X2, [X2,#0x3B0]                                        ; +0x27c, 0x9c448c\nBLR             X2                                                     ; +0x280, 0x9c4490\nLDR             X21, [X20,#0x2B0]                                      ; +0x284, 0x9c4494\nMOV             X0, X21                                                ; +0x288, 0x9c4498\nLDR             X1, [X21]                                              ; +0x28c, 0x9c449c\nADD             X21, X21, #0x2B4                                       ; +0x290, 0x9c44a0\nLDR             X1, [X1,#0x538]                                        ; +0x294, 0x9c44a4\nBLR             X1                                                     ; +0x298, 0x9c44a8\nLDR             X20, [X20,#0x2B0]                                      ; +0x29c, 0x9c44ac\nLDP             X2, X3, [X0]                                           ; +0x2a0, 0x9c44b0\nMOV             X0, X20                                                ; +0x2a4, 0x9c44b4\nLDR             X1, [X20]                                              ; +0x2a8, 0x9c44b8\nADD             X20, X20, #0x2C4                                       ; +0x2ac, 0x9c44bc\nSTP             X2, X3, [X21]                                          ; +0x2b0, 0x9c44c0\nLDR             X1, [X1,#0x558]                                        ; +0x2b4, 0x9c44c4\nBLR             X1                                                     ; +0x2b8, 0x9c44c8\nLDP             X0, X1, [X0]                                           ; +0x2bc, 0x9c44cc\nSTP             X0, X1, [X20]                                          ; +0x2c0, 0x9c44d0\nB               loc_9C4278                                             ; +0x2c4, 0x9c44d4\nBL              .__stack_chk_fail                                      ; +0x2c8, 0x9c44d8", "xrefs": ["`non-virtual thunk to'CreateParticlePopup::colorSelectClosed @ 0x9c44e4", "<???> @ 0x75a38", "<???> @ 0x11c8af0"], "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"}