{"type": "func", "start": 10240168, "end": 10240524, "name": "CreateParticlePopup::onDuplicateColor", "pseudocode": "// \n// CreateParticlePopup::onDuplicateColor from 0x9c40a8 to 0x9c420c (356 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xc6c78\n// > CreateParticlePopup::init @ 0x9c6a1c\n// > <???> @ 0x122ee80\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::onDuplicateColor(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  const cocos2d::ccColor4F *v3; // x0\n  const cocos2d::ccColor4F *v4; // x0\n  const cocos2d::ccColor4F *v5; // x0\n  const cocos2d::ccColor4F *v6; // x2\n  float r; // s0\n  cocos2d::CCSprite *m_endColorSprite; // x0\n  float v9; // s1\n  void (__fastcall *setColor)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // x5\n  _BYTE v11[8]; // [xsp+20h] [xbp+20h] BYREF\n\n  v3 = a1->m_particle->getStartColor(a1->m_particle);\n  CreateParticlePopup::updateParticleValueForType(a1, v3->r, EndR, nullptr);\n  v4 = a1->m_particle->getStartColor(a1->m_particle);\n  CreateParticlePopup::updateParticleValueForType(a1, v4->g, EndG, nullptr);\n  v5 = a1->m_particle->getStartColor(a1->m_particle);\n  CreateParticlePopup::updateParticleValueForType(a1, v5->b, 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  v6 = a1->m_particle->getStartColor(a1->m_particle);\n  r = v6->r;\n  m_endColorSprite = a1->m_endColorSprite;\n  v9 = v6->b * 255.0;\n  setColor = m_endColorSprite->setColor;\n  v11[1] = (unsigned int)(float)(v6->g * 255.0);\n  v11[2] = (unsigned int)v9;\n  v11[0] = (unsigned int)(float)(r * 255.0);\n  setColor(m_endColorSprite, (const cocos2d::ccColor3B *)v11);\n}", "assembly": "; \n; CreateParticlePopup::onDuplicateColor from 0x9c40a8 to 0x9c420c (356 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xc6c78\n; > CreateParticlePopup::init @ 0x9c6a1c\n; > <???> @ 0x122ee80\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_30]!                                ; +0x0, 0x9c40a8\nMOV             X29, SP                                                ; +0x4, 0x9c40ac\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x9c40b0\nLDR             X2, [X0,#0x2B0]                                        ; +0xc, 0x9c40b4\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x9c40b8\nMOV             X19, X0                                                ; +0x14, 0x9c40bc\nMOV             X0, X2                                                 ; +0x18, 0x9c40c0\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x9c40c4\nLDR             X1, [X2]                                               ; +0x20, 0x9c40c8\nLDR             X2, [X20]                                              ; +0x24, 0x9c40cc\nLDR             X1, [X1,#0x538]                                        ; +0x28, 0x9c40d0\nSTR             X2, [X29,#0x30+var_8]                                  ; +0x2c, 0x9c40d4\nBLR             X1                                                     ; +0x30, 0x9c40d8\nLDR             S0, [X0]                                               ; +0x34, 0x9c40dc\nMOV             X2, #0                                                 ; +0x38, 0x9c40e0\nMOV             W1, #0x22 ; '\"'                                        ; +0x3c, 0x9c40e4\nMOV             X0, X19                                                ; +0x40, 0x9c40e8\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x44, 0x9c40ec\nLDR             X1, [X19,#0x2B0]                                       ; +0x48, 0x9c40f0\nMOV             X0, X1                                                 ; +0x4c, 0x9c40f4\nLDR             X1, [X1]                                               ; +0x50, 0x9c40f8\nLDR             X1, [X1,#0x538]                                        ; +0x54, 0x9c40fc\nBLR             X1                                                     ; +0x58, 0x9c4100\nLDR             S0, [X0,#4]                                            ; +0x5c, 0x9c4104\nMOV             X2, #0                                                 ; +0x60, 0x9c4108\nMOV             W1, #0x24 ; '$'                                        ; +0x64, 0x9c410c\nMOV             X0, X19                                                ; +0x68, 0x9c4110\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x6c, 0x9c4114\nLDR             X1, [X19,#0x2B0]                                       ; +0x70, 0x9c4118\nMOV             X0, X1                                                 ; +0x74, 0x9c411c\nLDR             X1, [X1]                                               ; +0x78, 0x9c4120\nLDR             X1, [X1,#0x538]                                        ; +0x7c, 0x9c4124\nBLR             X1                                                     ; +0x80, 0x9c4128\nLDR             S0, [X0,#8]                                            ; +0x84, 0x9c412c\nMOV             X2, #0                                                 ; +0x88, 0x9c4130\nMOV             W1, #0x26 ; '&'                                        ; +0x8c, 0x9c4134\nMOV             X0, X19                                                ; +0x90, 0x9c4138\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x94, 0x9c413c\nMOV             X0, X19                                                ; +0x98, 0x9c4140\nMOV             W1, #0x22 ; '\"'                                        ; +0x9c, 0x9c4144\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0xa0, 0x9c4148\nMOV             X0, X19                                                ; +0xa4, 0x9c414c\nMOV             W1, #0x24 ; '$'                                        ; +0xa8, 0x9c4150\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0xac, 0x9c4154\nMOV             X0, X19                                                ; +0xb0, 0x9c4158\nMOV             W1, #0x26 ; '&'                                        ; +0xb4, 0x9c415c\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0xb8, 0x9c4160\nMOV             X0, X19                                                ; +0xbc, 0x9c4164\nMOV             W1, #0x22 ; '\"'                                        ; +0xc0, 0x9c4168\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0xc4, 0x9c416c\nMOV             X0, X19                                                ; +0xc8, 0x9c4170\nMOV             W1, #0x24 ; '$'                                        ; +0xcc, 0x9c4174\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0xd0, 0x9c4178\nMOV             X0, X19                                                ; +0xd4, 0x9c417c\nMOV             W1, #0x26 ; '&'                                        ; +0xd8, 0x9c4180\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0xdc, 0x9c4184\nLDR             X1, [X19,#0x2B0]                                       ; +0xe0, 0x9c4188\nMOV             X0, X1                                                 ; +0xe4, 0x9c418c\nLDR             X1, [X1]                                               ; +0xe8, 0x9c4190\nLDR             X1, [X1,#0x538]                                        ; +0xec, 0x9c4194\nBLR             X1                                                     ; +0xf0, 0x9c4198\nMOV             X2, X0                                                 ; +0xf4, 0x9c419c\nLDR             S0, [X0]                                               ; +0xf8, 0x9c41a0\nLDR             X3, [X19,#0x378]                                       ; +0xfc, 0x9c41a4\nLDR             S3, =0x437F0000                                        ; +0x100, 0x9c41a8\nADD             X1, X29, #0x30+var_10                                  ; +0x104, 0x9c41ac\nLDR             S2, [X0,#4]                                            ; +0x108, 0x9c41b0\nMOV             X0, X3                                                 ; +0x10c, 0x9c41b4\nLDR             S1, [X2,#8]                                            ; +0x110, 0x9c41b8\nLDR             X2, [X3]                                               ; +0x114, 0x9c41bc\nFMUL            S2, S2, S3                                             ; +0x118, 0x9c41c0\nFMUL            S1, S1, S3                                             ; +0x11c, 0x9c41c4\nFMUL            S0, S0, S3                                             ; +0x120, 0x9c41c8\nLDR             X5, [X2,#0x3B0]                                        ; +0x124, 0x9c41cc\nFCVTZU          W4, S2                                                 ; +0x128, 0x9c41d0\nFCVTZU          W3, S1                                                 ; +0x12c, 0x9c41d4\nFCVTZU          W2, S0                                                 ; +0x130, 0x9c41d8\nSTRB            W4, [X29,#0x30+var_F]                                  ; +0x134, 0x9c41dc\nSTRB            W3, [X29,#0x30+var_E]                                  ; +0x138, 0x9c41e0\nSTRB            W2, [X29,#0x30+var_10]                                 ; +0x13c, 0x9c41e4\nBLR             X5                                                     ; +0x140, 0x9c41e8\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x144, 0x9c41ec\nLDR             X0, [X20]                                              ; +0x148, 0x9c41f0\nCMP             X1, X0                                                 ; +0x14c, 0x9c41f4\nB.NE            loc_9C4208                                             ; +0x150, 0x9c41f8\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x154, 0x9c41fc\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x158, 0x9c4200\nRET                                                                    ; +0x15c, 0x9c4204\nBL              .__stack_chk_fail                                      ; +0x160, 0x9c4208", "xrefs": ["<???> @ 0xc6c78", "CreateParticlePopup::init @ 0x9c6a1c", "<???> @ 0x122ee80"], "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"}