{"type": "func", "start": 4297909116, "end": 4297909448, "name": "CreateParticlePopup::onDuplicateColor", "pseudocode": "// \n// CreateParticlePopup::onDuplicateColor from 0x1002ce37c to 0x1002ce4c8 (332 bytes)\n// \n// 1 xrefs:\n// > CreateParticlePopup::init @ 0x1002cba24\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::onDuplicateColor(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  float *v3; // x0\n  __int64 v4; // x0\n  __int64 v5; // x0\n  __int64 v6; // x0\n  cocos2d::CCSprite *m_endColorSprite; // x8\n  int32x2_t v8; // d0\n  __int16 v9; // w9\n  __int16 v10; // [xsp+Ch] [xbp-14h] BYREF\n  __int8 v11; // [xsp+Eh] [xbp-12h]\n\n  v3 = (float *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *, cocos2d::CCObject *))a1->m_particle->getStartColor)(\n                  a1->m_particle,\n                  a2);\n  CreateParticlePopup::updateParticleValueForType(a1, *v3, EndR, nullptr);\n  v4 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getStartColor)(a1->m_particle);\n  CreateParticlePopup::updateParticleValueForType(a1, *(float *)(v4 + 4), EndG, nullptr);\n  v5 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getStartColor)(a1->m_particle);\n  CreateParticlePopup::updateParticleValueForType(a1, *(float *)(v5 + 8), 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 = ((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getStartColor)(a1->m_particle);\n  m_endColorSprite = a1->m_endColorSprite;\n  v8 = (int32x2_t)vshl_u32(\n                    (uint32x2_t)vcvt_s32_f32(vmul_f32(*(float32x2_t *)(v6 + 4), (float32x2_t)vdup_n_s32(0x437F0000u))),\n                    (uint32x2_t)0x1000000008LL);\n  v8.i32[0] = vorr_s8((int8x8_t)vdup_lane_s32(v8, 1), (int8x8_t)v8).u32[0];\n  v9 = v8.i16[0] | (int)(float)(*(float *)v6 * 255.0);\n  v11 = v8.i8[2];\n  v10 = v9;\n  ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))m_endColorSprite->setColor)(m_endColorSprite, &v10);\n}", "assembly": "; \n; CreateParticlePopup::onDuplicateColor from 0x1002ce37c to 0x1002ce4c8 (332 bytes)\n; \n; 1 xrefs:\n; > CreateParticlePopup::init @ 0x1002cba24\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x1002ce37c\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002ce380\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002ce384\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002ce388\nMOV             X19, X0                                                ; +0x10, 0x1002ce38c\nLDR             X0, [X0,#0x2B0]                                        ; +0x14, 0x1002ce390\nLDR             X8, [X0]                                               ; +0x18, 0x1002ce394\nLDR             X8, [X8,#0x538]                                        ; +0x1c, 0x1002ce398\nBLR             X8                                                     ; +0x20, 0x1002ce39c\nLDR             S0, [X0]                                               ; +0x24, 0x1002ce3a0\nMOV             X0, X19                                                ; +0x28, 0x1002ce3a4\nMOV             W1, #0x22 ; '\"'                                        ; +0x2c, 0x1002ce3a8\nMOV             X2, #0                                                 ; +0x30, 0x1002ce3ac\nBL              CreateParticlePopup__updateParticleValueForType        ; +0x34, 0x1002ce3b0\nLDR             X0, [X19,#0x2B0]                                       ; +0x38, 0x1002ce3b4\nLDR             X8, [X0]                                               ; +0x3c, 0x1002ce3b8\nLDR             X8, [X8,#0x538]                                        ; +0x40, 0x1002ce3bc\nBLR             X8                                                     ; +0x44, 0x1002ce3c0\nLDR             S0, [X0,#4]                                            ; +0x48, 0x1002ce3c4\nMOV             X0, X19                                                ; +0x4c, 0x1002ce3c8\nMOV             W1, #0x24 ; '$'                                        ; +0x50, 0x1002ce3cc\nMOV             X2, #0                                                 ; +0x54, 0x1002ce3d0\nBL              CreateParticlePopup__updateParticleValueForType        ; +0x58, 0x1002ce3d4\nLDR             X0, [X19,#0x2B0]                                       ; +0x5c, 0x1002ce3d8\nLDR             X8, [X0]                                               ; +0x60, 0x1002ce3dc\nLDR             X8, [X8,#0x538]                                        ; +0x64, 0x1002ce3e0\nBLR             X8                                                     ; +0x68, 0x1002ce3e4\nLDR             S0, [X0,#8]                                            ; +0x6c, 0x1002ce3e8\nMOV             X0, X19                                                ; +0x70, 0x1002ce3ec\nMOV             W1, #0x26 ; '&'                                        ; +0x74, 0x1002ce3f0\nMOV             X2, #0                                                 ; +0x78, 0x1002ce3f4\nBL              CreateParticlePopup__updateParticleValueForType        ; +0x7c, 0x1002ce3f8\nMOV             X0, X19                                                ; +0x80, 0x1002ce3fc\nMOV             W1, #0x22 ; '\"'                                        ; +0x84, 0x1002ce400\nBL              CreateParticlePopup__updateInputNodeStringForType      ; +0x88, 0x1002ce404\nMOV             X0, X19                                                ; +0x8c, 0x1002ce408\nMOV             W1, #0x24 ; '$'                                        ; +0x90, 0x1002ce40c\nBL              CreateParticlePopup__updateInputNodeStringForType      ; +0x94, 0x1002ce410\nMOV             X0, X19                                                ; +0x98, 0x1002ce414\nMOV             W1, #0x26 ; '&'                                        ; +0x9c, 0x1002ce418\nBL              CreateParticlePopup__updateInputNodeStringForType      ; +0xa0, 0x1002ce41c\nMOV             X0, X19                                                ; +0xa4, 0x1002ce420\nMOV             W1, #0x22 ; '\"'                                        ; +0xa8, 0x1002ce424\nBL              CreateParticlePopup__updateSliderForType               ; +0xac, 0x1002ce428\nMOV             X0, X19                                                ; +0xb0, 0x1002ce42c\nMOV             W1, #0x24 ; '$'                                        ; +0xb4, 0x1002ce430\nBL              CreateParticlePopup__updateSliderForType               ; +0xb8, 0x1002ce434\nMOV             X0, X19                                                ; +0xbc, 0x1002ce438\nMOV             W1, #0x26 ; '&'                                        ; +0xc0, 0x1002ce43c\nBL              CreateParticlePopup__updateSliderForType               ; +0xc4, 0x1002ce440\nLDR             X0, [X19,#0x2B0]                                       ; +0xc8, 0x1002ce444\nLDR             X8, [X0]                                               ; +0xcc, 0x1002ce448\nLDR             X8, [X8,#0x538]                                        ; +0xd0, 0x1002ce44c\nBLR             X8                                                     ; +0xd4, 0x1002ce450\nLDR             S0, [X0]                                               ; +0xd8, 0x1002ce454\nMOV             W8, #0x437F0000                                        ; +0xdc, 0x1002ce458\nDUP             V1.2S, W8                                              ; +0xe0, 0x1002ce45c\nFMOV            S2, W8                                                 ; +0xe4, 0x1002ce460\nFMUL            S0, S0, S2                                             ; +0xe8, 0x1002ce464\nFCVTZS          W9, S0                                                 ; +0xec, 0x1002ce468\nLDR             X8, [X19,#0x378]                                       ; +0xf0, 0x1002ce46c\nLDUR            D0, [X0,#4]                                            ; +0xf4, 0x1002ce470\nFMUL            V0.2S, V0.2S, V1.2S                                    ; +0xf8, 0x1002ce474\nFCVTZS          V0.2S, V0.2S                                           ; +0xfc, 0x1002ce478\nADRP            X10, #qword_1006442A8@PAGE                             ; +0x100, 0x1002ce47c\nLDR             D1, [X10,#qword_1006442A8@PAGEOFF]                     ; +0x104, 0x1002ce480\nUSHL            V0.2S, V0.2S, V1.2S                                    ; +0x108, 0x1002ce484\nDUP             V1.2S, V0.S[1]                                         ; +0x10c, 0x1002ce488\nORR             V0.8B, V1.8B, V0.8B                                    ; +0x110, 0x1002ce48c\nFMOV            W10, S0                                                ; +0x114, 0x1002ce490\nORR             W9, W10, W9                                            ; +0x118, 0x1002ce494\nLSR             W10, W10, #0x10                                        ; +0x11c, 0x1002ce498\nSTRB            W10, [SP,#0x20+var_12]                                 ; +0x120, 0x1002ce49c\nSTRH            W9, [SP,#0x20+var_14]                                  ; +0x124, 0x1002ce4a0\nLDR             X9, [X8]                                               ; +0x128, 0x1002ce4a4\nLDR             X9, [X9,#0x3B0]                                        ; +0x12c, 0x1002ce4a8\nADD             X1, SP, #0x20+var_14                                   ; +0x130, 0x1002ce4ac\nMOV             X0, X8                                                 ; +0x134, 0x1002ce4b0\nBLR             X9                                                     ; +0x138, 0x1002ce4b4\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x13c, 0x1002ce4b8\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x140, 0x1002ce4bc\nADD             SP, SP, #0x30 ; '0'                                    ; +0x144, 0x1002ce4c0\nRET                                                                    ; +0x148, 0x1002ce4c4", "xrefs": ["CreateParticlePopup::init @ 0x1002cba24"], "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"}