{"type": "func", "start": 10229384, "end": 10229608, "name": "CreateParticlePopup::updateColorSprite", "pseudocode": "// \n// CreateParticlePopup::updateColorSprite from 0x9c1688 to 0x9c1768 (224 bytes)\n// \n// 3 xrefs:\n// > CreateParticlePopup::init @ 0x9c68d4\n// > CreateParticlePopup::init @ 0x9c69c0\n// > <???> @ 0xa74d8\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::updateColorSprite(CreateParticlePopup *a1, int a2)\n{\n  const cocos2d::ccColor4F *v3; // x2\n  cocos2d::CCSprite *m_startColorSprite; // x5\n  float v5; // s1\n  float v6; // s0\n  _BYTE v7[8]; // [xsp+20h] [xbp+20h] BYREF\n\n  if ( a2 == 1 )\n  {\n    v3 = a1->m_particle->getStartColor(a1->m_particle);\n    m_startColorSprite = a1->m_startColorSprite;\n  }\n  else\n  {\n    if ( a2 != 2 )\n      return;\n    v3 = a1->m_particle->getEndColor(a1->m_particle);\n    m_startColorSprite = a1->m_endColorSprite;\n  }\n  v5 = v3->b * 255.0;\n  v6 = v3->r * 255.0;\n  v7[1] = (unsigned int)(float)(v3->g * 255.0);\n  v7[2] = (unsigned int)v5;\n  v7[0] = (unsigned int)v6;\n  m_startColorSprite->setColor(m_startColorSprite, (const cocos2d::ccColor3B *)v7);\n}", "assembly": "; \n; CreateParticlePopup::updateColorSprite from 0x9c1688 to 0x9c1768 (224 bytes)\n; \n; 3 xrefs:\n; > CreateParticlePopup::init @ 0x9c68d4\n; > CreateParticlePopup::init @ 0x9c69c0\n; > <???> @ 0xa74d8\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, 0x9c1688\nCMP             W1, #1                                                 ; +0x4, 0x9c168c\nMOV             X29, SP                                                ; +0x8, 0x9c1690\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0xc, 0x9c1694\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x9c1698\nMOV             X20, X0                                                ; +0x14, 0x9c169c\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x9c16a0\nLDR             X0, [X0]                                               ; +0x1c, 0x9c16a4\nSTR             X0, [X29,#0x30+var_8]                                  ; +0x20, 0x9c16a8\nB.EQ            loc_9C1740                                             ; +0x24, 0x9c16ac\nCMP             W1, #2                                                 ; +0x28, 0x9c16b0\nB.EQ            loc_9C16D8                                             ; +0x2c, 0x9c16b4\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x30, 0x9c16b8\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x34, 0x9c16bc\nLDR             X0, [X19]                                              ; +0x38, 0x9c16c0\nCMP             X1, X0                                                 ; +0x3c, 0x9c16c4\nB.NE            loc_9C1764                                             ; +0x40, 0x9c16c8\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x44, 0x9c16cc\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x48, 0x9c16d0\nRET                                                                    ; +0x4c, 0x9c16d4\nLDR             X1, [X20,#0x2B0]                                       ; +0x50, 0x9c16d8\nMOV             X0, X1                                                 ; +0x54, 0x9c16dc\nLDR             X1, [X1]                                               ; +0x58, 0x9c16e0\nLDR             X1, [X1,#0x558]                                        ; +0x5c, 0x9c16e4\nBLR             X1                                                     ; +0x60, 0x9c16e8\nMOV             X2, X0                                                 ; +0x64, 0x9c16ec\nLDR             S3, =0x437F0000                                        ; +0x68, 0x9c16f0\nLDR             X5, [X20,#0x378]                                       ; +0x6c, 0x9c16f4\nLDR             S2, [X2,#4]                                            ; +0x70, 0x9c16f8\nADD             X1, X29, #0x30+var_10                                  ; +0x74, 0x9c16fc\nLDR             S1, [X2,#8]                                            ; +0x78, 0x9c1700\nMOV             X0, X5                                                 ; +0x7c, 0x9c1704\nLDR             S0, [X2]                                               ; +0x80, 0x9c1708\nFMUL            S2, S2, S3                                             ; +0x84, 0x9c170c\nFMUL            S1, S1, S3                                             ; +0x88, 0x9c1710\nFMUL            S0, S0, S3                                             ; +0x8c, 0x9c1714\nFCVTZU          W4, S2                                                 ; +0x90, 0x9c1718\nFCVTZU          W3, S1                                                 ; +0x94, 0x9c171c\nFCVTZU          W2, S0                                                 ; +0x98, 0x9c1720\nSTRB            W4, [X29,#0x30+var_F]                                  ; +0x9c, 0x9c1724\nSTRB            W3, [X29,#0x30+var_E]                                  ; +0xa0, 0x9c1728\nSTRB            W2, [X29,#0x30+var_10]                                 ; +0xa4, 0x9c172c\nLDR             X2, [X5]                                               ; +0xa8, 0x9c1730\nLDR             X2, [X2,#0x3B0]                                        ; +0xac, 0x9c1734\nBLR             X2                                                     ; +0xb0, 0x9c1738\nB               loc_9C16B8                                             ; +0xb4, 0x9c173c\nLDR             X1, [X20,#0x2B0]                                       ; +0xb8, 0x9c1740\nMOV             X0, X1                                                 ; +0xbc, 0x9c1744\nLDR             X1, [X1]                                               ; +0xc0, 0x9c1748\nLDR             X1, [X1,#0x538]                                        ; +0xc4, 0x9c174c\nBLR             X1                                                     ; +0xc8, 0x9c1750\nMOV             X2, X0                                                 ; +0xcc, 0x9c1754\nLDR             S3, =0x437F0000                                        ; +0xd0, 0x9c1758\nLDR             X5, [X20,#0x370]                                       ; +0xd4, 0x9c175c\nB               loc_9C16F8                                             ; +0xd8, 0x9c1760\nBL              .__stack_chk_fail                                      ; +0xdc, 0x9c1764", "xrefs": ["CreateParticlePopup::init @ 0x9c68d4", "CreateParticlePopup::init @ 0x9c69c0", "<???> @ 0xa74d8"], "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"}