{"type": "func", "start": 4297917272, "end": 4297917944, "name": "CreateParticlePopup::colorSelectClosed", "pseudocode": "// \n// CreateParticlePopup::colorSelectClosed from 0x1002d0358 to 0x1002d05f8 (672 bytes)\n// \n// 2 xrefs:\n// > sub_1002D05F8 @ 0x1002d05fc\n// > <???> @ 0x1007d78c0\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::colorSelectClosed(CreateParticlePopup *a1, cocos2d::CCNode *a2)\n{\n  int v4; // w0\n  void (*setColor)(void); // x8\n  unsigned __int16 y_low; // [xsp+Ch] [xbp-24h] BYREF\n  unsigned __int8 v7; // [xsp+Eh] [xbp-22h]\n\n  v4 = ((__int64 (__fastcall *)(cocos2d::CCNode *))a2->getTag)(a2);\n  y_low = LOWORD(a2[3].m_obPosition.y);\n  v7 = BYTE2(a2[3].m_obPosition.y);\n  if ( v4 == 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)v7 / 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    setColor = (void (*)(void))a1->m_endColorSprite->setColor;\n  }\n  else\n  {\n    if ( v4 == 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)v7 / 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      ((void (__fastcall *)(cocos2d::CCSprite *, unsigned __int16 *))a1->m_startColorSprite->setColor)(\n        a1->m_startColorSprite,\n        &y_low);\n      a1->m_particle->m_tUniformColor = *(cocos2d::ccColor4F *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getStartColor)(a1->m_particle);\n      a1->m_particle->m_tUniformDeltaColor = *(cocos2d::ccColor4F *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getEndColor)(a1->m_particle);\n      return;\n    }\n    if ( v4 )\n      return;\n    ((void (__fastcall *)(ParticlePreviewLayer *, unsigned __int16 *))a1->m_previewLayer->setColor)(\n      a1->m_previewLayer,\n      &y_low);\n    ((void (__fastcall *)(cocos2d::CCSprite *, unsigned __int16 *))a1->m_particleColorSprite->setColor)(\n      a1->m_particleColorSprite,\n      &y_low);\n    setColor = (void (*)(void))a1->m_perfLogLabel->setColor;\n  }\n  setColor();\n}", "assembly": "; \n; CreateParticlePopup::colorSelectClosed from 0x1002d0358 to 0x1002d05f8 (672 bytes)\n; \n; 2 xrefs:\n; > sub_1002D05F8 @ 0x1002d05fc\n; > <???> @ 0x1007d78c0\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, #0x40                                          ; +0x0, 0x1002d0358\nSTP             D9, D8, [SP,#0x30+var_20]                              ; +0x4, 0x1002d035c\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x1002d0360\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x1002d0364\nADD             X29, SP, #0x30                                         ; +0x10, 0x1002d0368\nMOV             X20, X1                                                ; +0x14, 0x1002d036c\nMOV             X19, X0                                                ; +0x18, 0x1002d0370\nLDR             X8, [X1]                                               ; +0x1c, 0x1002d0374\nLDR             X8, [X8,#0x40]                                         ; +0x20, 0x1002d0378\nMOV             X0, X1                                                 ; +0x24, 0x1002d037c\nBLR             X8                                                     ; +0x28, 0x1002d0380\nLDRH            W8, [X20,#0x410]                                       ; +0x2c, 0x1002d0384\nSTRH            W8, [SP,#0x30+var_24]                                  ; +0x30, 0x1002d0388\nLDRB            W8, [X20,#0x412]                                       ; +0x34, 0x1002d038c\nSTRB            W8, [SP,#0x30+var_22]                                  ; +0x38, 0x1002d0390\nCMP             W0, #2                                                 ; +0x3c, 0x1002d0394\nB.EQ            loc_1002D0518                                          ; +0x40, 0x1002d0398\nCMP             W0, #1                                                 ; +0x44, 0x1002d039c\nB.EQ            loc_1002D0408                                          ; +0x48, 0x1002d03a0\nCBNZ            W0, loc_1002D05E4                                      ; +0x4c, 0x1002d03a4\nLDR             X0, [X19,#0x300]                                       ; +0x50, 0x1002d03a8\nLDR             X8, [X0]                                               ; +0x54, 0x1002d03ac\nLDR             X8, [X8,#0x4B0]                                        ; +0x58, 0x1002d03b0\nADD             X1, SP, #0x30+var_24                                   ; +0x5c, 0x1002d03b4\nBLR             X8                                                     ; +0x60, 0x1002d03b8\nLDR             X0, [X19,#0x368]                                       ; +0x64, 0x1002d03bc\nLDR             X8, [X0]                                               ; +0x68, 0x1002d03c0\nLDR             X8, [X8,#0x3B0]                                        ; +0x6c, 0x1002d03c4\nADD             X1, SP, #0x30+var_24                                   ; +0x70, 0x1002d03c8\nBLR             X8                                                     ; +0x74, 0x1002d03cc\nLDR             X0, [X19,#0x398]                                       ; +0x78, 0x1002d03d0\nLDRB            W8, [SP,#0x30+var_24]                                  ; +0x7c, 0x1002d03d4\nEOR             W8, W8, #0xFF                                          ; +0x80, 0x1002d03d8\nLDRB            W9, [SP,#0x30+var_24+1]                                ; +0x84, 0x1002d03dc\nMVN             W9, W9                                                 ; +0x88, 0x1002d03e0\nLDRB            W10, [SP,#0x30+var_22]                                 ; +0x8c, 0x1002d03e4\nMVN             W10, W10                                               ; +0x90, 0x1002d03e8\nORR             W8, W8, W9,LSL#8                                       ; +0x94, 0x1002d03ec\nSTRB            W10, [SP,#0x30+var_26]                                 ; +0x98, 0x1002d03f0\nSTRH            W8, [SP,#0x30+var_28]                                  ; +0x9c, 0x1002d03f4\nLDR             X8, [X0]                                               ; +0xa0, 0x1002d03f8\nLDR             X8, [X8,#0x420]                                        ; +0xa4, 0x1002d03fc\nADD             X1, SP, #0x30+var_28                                   ; +0xa8, 0x1002d0400\nB               loc_1002D05E0                                          ; +0xac, 0x1002d0404\nLDRB            W8, [SP,#0x30+var_22]                                  ; +0xb0, 0x1002d0408\nLDRH            W9, [SP,#0x30+var_24]                                  ; +0xb4, 0x1002d040c\nLSR             W10, W9, #8                                            ; +0xb8, 0x1002d0410\nBFI             W9, W8, #0x10, #8                                      ; +0xbc, 0x1002d0414\nUXTH            W8, W8                                                 ; +0xc0, 0x1002d0418\nAND             W9, W9, #0xFF                                          ; +0xc4, 0x1002d041c\nUCVTF           S0, W9                                                 ; +0xc8, 0x1002d0420\nMOV             W9, #0x437F0000                                        ; +0xcc, 0x1002d0424\nFMOV            S1, W9                                                 ; +0xd0, 0x1002d0428\nFDIV            S0, S0, S1                                             ; +0xd4, 0x1002d042c\nUCVTF           S2, W10                                                ; +0xd8, 0x1002d0430\nFDIV            S8, S2, S1                                             ; +0xdc, 0x1002d0434\nUCVTF           S2, W8                                                 ; +0xe0, 0x1002d0438\nFDIV            S9, S2, S1                                             ; +0xe4, 0x1002d043c\nMOV             X0, X19                                                ; +0xe8, 0x1002d0440\nMOV             W1, #0x1A                                              ; +0xec, 0x1002d0444\nMOV             X2, #0                                                 ; +0xf0, 0x1002d0448\nBL              CreateParticlePopup__updateParticleValueForType        ; +0xf4, 0x1002d044c\nMOV             X0, X19                                                ; +0xf8, 0x1002d0450\nFMOV            S0, S8                                                 ; +0xfc, 0x1002d0454\nMOV             W1, #0x1C                                              ; +0x100, 0x1002d0458\nMOV             X2, #0                                                 ; +0x104, 0x1002d045c\nBL              CreateParticlePopup__updateParticleValueForType        ; +0x108, 0x1002d0460\nMOV             X0, X19                                                ; +0x10c, 0x1002d0464\nFMOV            S0, S9                                                 ; +0x110, 0x1002d0468\nMOV             W1, #0x1E                                              ; +0x114, 0x1002d046c\nMOV             X2, #0                                                 ; +0x118, 0x1002d0470\nBL              CreateParticlePopup__updateParticleValueForType        ; +0x11c, 0x1002d0474\nMOV             X0, X19                                                ; +0x120, 0x1002d0478\nMOV             W1, #0x1A                                              ; +0x124, 0x1002d047c\nBL              CreateParticlePopup__updateInputNodeStringForType      ; +0x128, 0x1002d0480\nMOV             X0, X19                                                ; +0x12c, 0x1002d0484\nMOV             W1, #0x1C                                              ; +0x130, 0x1002d0488\nBL              CreateParticlePopup__updateInputNodeStringForType      ; +0x134, 0x1002d048c\nMOV             X0, X19                                                ; +0x138, 0x1002d0490\nMOV             W1, #0x1E                                              ; +0x13c, 0x1002d0494\nBL              CreateParticlePopup__updateInputNodeStringForType      ; +0x140, 0x1002d0498\nMOV             X0, X19                                                ; +0x144, 0x1002d049c\nMOV             W1, #0x1A                                              ; +0x148, 0x1002d04a0\nBL              CreateParticlePopup__updateSliderForType               ; +0x14c, 0x1002d04a4\nMOV             X0, X19                                                ; +0x150, 0x1002d04a8\nMOV             W1, #0x1C                                              ; +0x154, 0x1002d04ac\nBL              CreateParticlePopup__updateSliderForType               ; +0x158, 0x1002d04b0\nMOV             X0, X19                                                ; +0x15c, 0x1002d04b4\nMOV             W1, #0x1E                                              ; +0x160, 0x1002d04b8\nBL              CreateParticlePopup__updateSliderForType               ; +0x164, 0x1002d04bc\nLDR             X0, [X19,#0x370]                                       ; +0x168, 0x1002d04c0\nLDR             X8, [X0]                                               ; +0x16c, 0x1002d04c4\nLDR             X8, [X8,#0x3B0]                                        ; +0x170, 0x1002d04c8\nADD             X1, SP, #0x30+var_24                                   ; +0x174, 0x1002d04cc\nBLR             X8                                                     ; +0x178, 0x1002d04d0\nLDR             X0, [X19,#0x2B0]                                       ; +0x17c, 0x1002d04d4\nLDR             X8, [X0]                                               ; +0x180, 0x1002d04d8\nLDR             X8, [X8,#0x538]                                        ; +0x184, 0x1002d04dc\nBLR             X8                                                     ; +0x188, 0x1002d04e0\nLDR             X8, [X19,#0x2B0]                                       ; +0x18c, 0x1002d04e4\nADD             X8, X8, #0x2C4                                         ; +0x190, 0x1002d04e8\nLDR             Q0, [X0]                                               ; +0x194, 0x1002d04ec\nSTR             Q0, [X8]                                               ; +0x198, 0x1002d04f0\nLDR             X0, [X19,#0x2B0]                                       ; +0x19c, 0x1002d04f4\nLDR             X8, [X0]                                               ; +0x1a0, 0x1002d04f8\nLDR             X8, [X8,#0x558]                                        ; +0x1a4, 0x1002d04fc\nBLR             X8                                                     ; +0x1a8, 0x1002d0500\nLDR             X8, [X19,#0x2B0]                                       ; +0x1ac, 0x1002d0504\nADD             X8, X8, #0x2D4                                         ; +0x1b0, 0x1002d0508\nLDR             Q0, [X0]                                               ; +0x1b4, 0x1002d050c\nSTR             Q0, [X8]                                               ; +0x1b8, 0x1002d0510\nB               loc_1002D05E4                                          ; +0x1bc, 0x1002d0514\nLDRB            W8, [SP,#0x30+var_22]                                  ; +0x1c0, 0x1002d0518\nLDRH            W9, [SP,#0x30+var_24]                                  ; +0x1c4, 0x1002d051c\nLSR             W10, W9, #8                                            ; +0x1c8, 0x1002d0520\nBFI             W9, W8, #0x10, #8                                      ; +0x1cc, 0x1002d0524\nUXTH            W8, W8                                                 ; +0x1d0, 0x1002d0528\nAND             W9, W9, #0xFF                                          ; +0x1d4, 0x1002d052c\nUCVTF           S0, W9                                                 ; +0x1d8, 0x1002d0530\nMOV             W9, #0x437F0000                                        ; +0x1dc, 0x1002d0534\nFMOV            S1, W9                                                 ; +0x1e0, 0x1002d0538\nFDIV            S0, S0, S1                                             ; +0x1e4, 0x1002d053c\nUCVTF           S2, W10                                                ; +0x1e8, 0x1002d0540\nFDIV            S8, S2, S1                                             ; +0x1ec, 0x1002d0544\nUCVTF           S2, W8                                                 ; +0x1f0, 0x1002d0548\nFDIV            S9, S2, S1                                             ; +0x1f4, 0x1002d054c\nMOV             X0, X19                                                ; +0x1f8, 0x1002d0550\nMOV             W1, #0x22 ; '\"'                                        ; +0x1fc, 0x1002d0554\nMOV             X2, #0                                                 ; +0x200, 0x1002d0558\nBL              CreateParticlePopup__updateParticleValueForType        ; +0x204, 0x1002d055c\nMOV             X0, X19                                                ; +0x208, 0x1002d0560\nFMOV            S0, S8                                                 ; +0x20c, 0x1002d0564\nMOV             W1, #0x24 ; '$'                                        ; +0x210, 0x1002d0568\nMOV             X2, #0                                                 ; +0x214, 0x1002d056c\nBL              CreateParticlePopup__updateParticleValueForType        ; +0x218, 0x1002d0570\nMOV             X0, X19                                                ; +0x21c, 0x1002d0574\nFMOV            S0, S9                                                 ; +0x220, 0x1002d0578\nMOV             W1, #0x26 ; '&'                                        ; +0x224, 0x1002d057c\nMOV             X2, #0                                                 ; +0x228, 0x1002d0580\nBL              CreateParticlePopup__updateParticleValueForType        ; +0x22c, 0x1002d0584\nMOV             X0, X19                                                ; +0x230, 0x1002d0588\nMOV             W1, #0x22 ; '\"'                                        ; +0x234, 0x1002d058c\nBL              CreateParticlePopup__updateInputNodeStringForType      ; +0x238, 0x1002d0590\nMOV             X0, X19                                                ; +0x23c, 0x1002d0594\nMOV             W1, #0x24 ; '$'                                        ; +0x240, 0x1002d0598\nBL              CreateParticlePopup__updateInputNodeStringForType      ; +0x244, 0x1002d059c\nMOV             X0, X19                                                ; +0x248, 0x1002d05a0\nMOV             W1, #0x26 ; '&'                                        ; +0x24c, 0x1002d05a4\nBL              CreateParticlePopup__updateInputNodeStringForType      ; +0x250, 0x1002d05a8\nMOV             X0, X19                                                ; +0x254, 0x1002d05ac\nMOV             W1, #0x22 ; '\"'                                        ; +0x258, 0x1002d05b0\nBL              CreateParticlePopup__updateSliderForType               ; +0x25c, 0x1002d05b4\nMOV             X0, X19                                                ; +0x260, 0x1002d05b8\nMOV             W1, #0x24 ; '$'                                        ; +0x264, 0x1002d05bc\nBL              CreateParticlePopup__updateSliderForType               ; +0x268, 0x1002d05c0\nMOV             X0, X19                                                ; +0x26c, 0x1002d05c4\nMOV             W1, #0x26 ; '&'                                        ; +0x270, 0x1002d05c8\nBL              CreateParticlePopup__updateSliderForType               ; +0x274, 0x1002d05cc\nLDR             X0, [X19,#0x378]                                       ; +0x278, 0x1002d05d0\nLDR             X8, [X0]                                               ; +0x27c, 0x1002d05d4\nLDR             X8, [X8,#0x3B0]                                        ; +0x280, 0x1002d05d8\nADD             X1, SP, #0x30+var_24                                   ; +0x284, 0x1002d05dc\nBLR             X8                                                     ; +0x288, 0x1002d05e0\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x28c, 0x1002d05e4\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x290, 0x1002d05e8\nLDP             D9, D8, [SP,#0x30+var_20]                              ; +0x294, 0x1002d05ec\nADD             SP, SP, #0x40 ; '@'                                    ; +0x298, 0x1002d05f0\nRET                                                                    ; +0x29c, 0x1002d05f4", "xrefs": ["sub_1002D05F8 @ 0x1002d05fc", "<???> @ 0x1007d78c0"], "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"}