{"type": "func", "start": 4297908840, "end": 4297909116, "name": "CreateParticlePopup::updateColorSprite", "pseudocode": "// \n// CreateParticlePopup::updateColorSprite from 0x1002ce268 to 0x1002ce37c (276 bytes)\n// \n// 2 xrefs:\n// > CreateParticlePopup::init @ 0x1002cb908\n// > CreateParticlePopup::init @ 0x1002cb9dc\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::updateColorSprite(CreateParticlePopup *a1, int a2)\n{\n  void (*setColor)(void); // x8\n\n  if ( a2 == 2 )\n  {\n    ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getEndColor)(a1->m_particle);\n    setColor = (void (*)(void))a1->m_endColorSprite->setColor;\n  }\n  else\n  {\n    if ( a2 != 1 )\n      return;\n    ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_particle->getStartColor)(a1->m_particle);\n    setColor = (void (*)(void))a1->m_startColorSprite->setColor;\n  }\n  setColor();\n}", "assembly": "; \n; CreateParticlePopup::updateColorSprite from 0x1002ce268 to 0x1002ce37c (276 bytes)\n; \n; 2 xrefs:\n; > CreateParticlePopup::init @ 0x1002cb908\n; > CreateParticlePopup::init @ 0x1002cb9dc\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, 0x1002ce268\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1002ce26c\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1002ce270\nADD             X29, SP, #0x20                                         ; +0xc, 0x1002ce274\nMOV             X19, X0                                                ; +0x10, 0x1002ce278\nCMP             W1, #2                                                 ; +0x14, 0x1002ce27c\nB.EQ            loc_1002CE2FC                                          ; +0x18, 0x1002ce280\nCMP             W1, #1                                                 ; +0x1c, 0x1002ce284\nB.NE            loc_1002CE36C                                          ; +0x20, 0x1002ce288\nLDR             X0, [X19,#0x2B0]                                       ; +0x24, 0x1002ce28c\nLDR             X8, [X0]                                               ; +0x28, 0x1002ce290\nLDR             X8, [X8,#0x538]                                        ; +0x2c, 0x1002ce294\nBLR             X8                                                     ; +0x30, 0x1002ce298\nLDR             S0, [X0]                                               ; +0x34, 0x1002ce29c\nMOV             W8, #0x437F0000                                        ; +0x38, 0x1002ce2a0\nDUP             V1.2S, W8                                              ; +0x3c, 0x1002ce2a4\nFMOV            S2, W8                                                 ; +0x40, 0x1002ce2a8\nFMUL            S0, S0, S2                                             ; +0x44, 0x1002ce2ac\nFCVTZS          W8, S0                                                 ; +0x48, 0x1002ce2b0\nLDUR            D0, [X0,#4]                                            ; +0x4c, 0x1002ce2b4\nFMUL            V0.2S, V0.2S, V1.2S                                    ; +0x50, 0x1002ce2b8\nFCVTZS          V0.2S, V0.2S                                           ; +0x54, 0x1002ce2bc\nADRP            X9, #qword_1006442A8@PAGE                              ; +0x58, 0x1002ce2c0\nLDR             D1, [X9,#qword_1006442A8@PAGEOFF]                      ; +0x5c, 0x1002ce2c4\nUSHL            V0.2S, V0.2S, V1.2S                                    ; +0x60, 0x1002ce2c8\nDUP             V1.2S, V0.S[1]                                         ; +0x64, 0x1002ce2cc\nORR             V0.8B, V1.8B, V0.8B                                    ; +0x68, 0x1002ce2d0\nFMOV            W9, S0                                                 ; +0x6c, 0x1002ce2d4\nORR             W8, W9, W8                                             ; +0x70, 0x1002ce2d8\nLSR             W9, W9, #0x10                                          ; +0x74, 0x1002ce2dc\nSTRB            W9, [SP,#0x20+var_12]                                  ; +0x78, 0x1002ce2e0\nSTRH            W8, [SP,#0x20+var_14]                                  ; +0x7c, 0x1002ce2e4\nLDR             X0, [X19,#0x370]                                       ; +0x80, 0x1002ce2e8\nLDR             X8, [X0]                                               ; +0x84, 0x1002ce2ec\nLDR             X8, [X8,#0x3B0]                                        ; +0x88, 0x1002ce2f0\nADD             X1, SP, #0x20+var_14                                   ; +0x8c, 0x1002ce2f4\nB               loc_1002CE368                                          ; +0x90, 0x1002ce2f8\nLDR             X0, [X19,#0x2B0]                                       ; +0x94, 0x1002ce2fc\nLDR             X8, [X0]                                               ; +0x98, 0x1002ce300\nLDR             X8, [X8,#0x558]                                        ; +0x9c, 0x1002ce304\nBLR             X8                                                     ; +0xa0, 0x1002ce308\nLDR             S0, [X0]                                               ; +0xa4, 0x1002ce30c\nMOV             W8, #0x437F0000                                        ; +0xa8, 0x1002ce310\nDUP             V1.2S, W8                                              ; +0xac, 0x1002ce314\nFMOV            S2, W8                                                 ; +0xb0, 0x1002ce318\nFMUL            S0, S0, S2                                             ; +0xb4, 0x1002ce31c\nFCVTZS          W8, S0                                                 ; +0xb8, 0x1002ce320\nLDUR            D0, [X0,#4]                                            ; +0xbc, 0x1002ce324\nFMUL            V0.2S, V0.2S, V1.2S                                    ; +0xc0, 0x1002ce328\nFCVTZS          V0.2S, V0.2S                                           ; +0xc4, 0x1002ce32c\nADRP            X9, #qword_1006442A8@PAGE                              ; +0xc8, 0x1002ce330\nLDR             D1, [X9,#qword_1006442A8@PAGEOFF]                      ; +0xcc, 0x1002ce334\nUSHL            V0.2S, V0.2S, V1.2S                                    ; +0xd0, 0x1002ce338\nDUP             V1.2S, V0.S[1]                                         ; +0xd4, 0x1002ce33c\nORR             V0.8B, V1.8B, V0.8B                                    ; +0xd8, 0x1002ce340\nFMOV            W9, S0                                                 ; +0xdc, 0x1002ce344\nORR             W8, W9, W8                                             ; +0xe0, 0x1002ce348\nLSR             W9, W9, #0x10                                          ; +0xe4, 0x1002ce34c\nSTRB            W9, [SP,#0x20+var_16]                                  ; +0xe8, 0x1002ce350\nSTRH            W8, [SP,#0x20+var_18]                                  ; +0xec, 0x1002ce354\nLDR             X0, [X19,#0x378]                                       ; +0xf0, 0x1002ce358\nLDR             X8, [X0]                                               ; +0xf4, 0x1002ce35c\nLDR             X8, [X8,#0x3B0]                                        ; +0xf8, 0x1002ce360\nADD             X1, SP, #0x20+var_18                                   ; +0xfc, 0x1002ce364\nBLR             X8                                                     ; +0x100, 0x1002ce368\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x104, 0x1002ce36c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x108, 0x1002ce370\nADD             SP, SP, #0x30 ; '0'                                    ; +0x10c, 0x1002ce374\nRET                                                                    ; +0x110, 0x1002ce378", "xrefs": ["CreateParticlePopup::init @ 0x1002cb908", "CreateParticlePopup::init @ 0x1002cb9dc"], "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"}