{"type": "func", "start": 5439316, "end": 5439528, "name": "CreateParticlePopup::updateColorSprite", "pseudocode": "// \n// CreateParticlePopup::updateColorSprite from 0x52ff54 to 0x530028 (212 bytes)\n// \n// 2 xrefs:\n// > CreateParticlePopup::init @ 0x5336ee\n// > CreateParticlePopup::init @ 0x5337a4\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; // r0\n  unsigned int v4; // r3\n  float r; // s15\n  cocos2d::CCSprite *m_startColorSprite; // r0\n  const cocos2d::ccColor4F *v7; // r0\n  unsigned int v8; // r2\n  unsigned int v9; // r3\n  float v10; // s15\n  _DWORD v11[3]; // [sp+0h] [bp-Ch] BYREF\n\n  v11[0] = a1;\n  v11[1] = a2;\n  if ( a2 == 1 )\n  {\n    v3 = a1->m_particle->getStartColor(a1->m_particle);\n    v4 = (unsigned int)(float)(v3->b * 255.0);\n    r = v3->r;\n    BYTE1(v11[0]) = (unsigned int)(float)(v3->g * 255.0);\n    m_startColorSprite = a1->m_startColorSprite;\n    BYTE2(v11[0]) = v4;\n    LOBYTE(v11[0]) = (unsigned int)(float)(r * 255.0);\n  }\n  else\n  {\n    if ( a2 != 2 )\n      return;\n    v7 = a1->m_particle->getEndColor(a1->m_particle);\n    v8 = (unsigned int)(float)(v7->g * 255.0);\n    v9 = (unsigned int)(float)(v7->b * 255.0);\n    v10 = v7->r;\n    m_startColorSprite = a1->m_endColorSprite;\n    BYTE1(v11[0]) = v8;\n    BYTE2(v11[0]) = v9;\n    LOBYTE(v11[0]) = (unsigned int)(float)(v10 * 255.0);\n  }\n  m_startColorSprite->setColor(m_startColorSprite, (const cocos2d::ccColor3B *)v11);\n}", "assembly": "; \n; CreateParticlePopup::updateColorSprite from 0x52ff54 to 0x530028 (212 bytes)\n; \n; 2 xrefs:\n; > CreateParticlePopup::init @ 0x5336ee\n; > CreateParticlePopup::init @ 0x5337a4\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\nPUSH            {R0-R2,R4,R5,LR}                                       ; +0x0, 0x52ff54\nMOV             R4, R0                                                 ; +0x2, 0x52ff56\nLDR             R0, =(__stack_chk_guard_ptr - 0x52FF60)                ; +0x4, 0x52ff58\nCMP             R1, #1                                                 ; +0x6, 0x52ff5a\nADD             R0, PC; __stack_chk_guard_ptr                          ; +0x8, 0x52ff5c\nLDR             R0, [R0]; __stack_chk_guard                            ; +0xa, 0x52ff5e\nLDR             R3, [R0]                                               ; +0xc, 0x52ff60\nMOV             R5, R0                                                 ; +0xe, 0x52ff62\nSTR             R3, [SP,#0xC+var_8]                                    ; +0x10, 0x52ff64\nBNE             loc_52FFBA                                             ; +0x12, 0x52ff66\nLDR.W           R0, [R4,#0x20C]                                        ; +0x14, 0x52ff68\nLDR             R3, [R0]                                               ; +0x18, 0x52ff6c\nLDR.W           R3, [R3,#0x29C]                                        ; +0x1a, 0x52ff6e\nBLX             R3                                                     ; +0x1e, 0x52ff72\nVLDR            S14, =255.0                                            ; +0x20, 0x52ff74\nVLDR            S15, [R0,#4]                                           ; +0x24, 0x52ff78\nVMUL.F32        S15, S15, S14                                          ; +0x28, 0x52ff7c\nVCVT.U32.F32    S15, S15                                               ; +0x2c, 0x52ff80\nVMOV            R2, S15                                                ; +0x30, 0x52ff84\nVLDR            S15, [R0,#8]                                           ; +0x34, 0x52ff88\nVMUL.F32        S15, S15, S14                                          ; +0x38, 0x52ff8c\nVCVT.U32.F32    S15, S15                                               ; +0x3c, 0x52ff90\nVMOV            R3, S15                                                ; +0x40, 0x52ff94\nVLDR            S15, [R0]                                              ; +0x44, 0x52ff98\nSTRB.W          R2, [SP,#0xC+var_B]                                    ; +0x48, 0x52ff9c\nLDR.W           R0, [R4,#0x274]                                        ; +0x4c, 0x52ffa0\nVMUL.F32        S15, S15, S14                                          ; +0x50, 0x52ffa4\nVCVT.U32.F32    S15, S15                                               ; +0x54, 0x52ffa8\nSTRB.W          R3, [SP,#0xC+var_A]                                    ; +0x58, 0x52ffac\nVMOV            R1, S15                                                ; +0x5c, 0x52ffb0\nSTRB.W          R1, [SP,#0xC+var_C]                                    ; +0x60, 0x52ffb4\nB               loc_53000E                                             ; +0x64, 0x52ffb8\nCMP             R1, #2                                                 ; +0x66, 0x52ffba\nBNE             loc_530018                                             ; +0x68, 0x52ffbc\nLDR.W           R0, [R4,#0x20C]                                        ; +0x6a, 0x52ffbe\nLDR             R3, [R0]                                               ; +0x6e, 0x52ffc2\nLDR.W           R3, [R3,#0x2AC]                                        ; +0x70, 0x52ffc4\nBLX             R3                                                     ; +0x74, 0x52ffc8\nVLDR            S14, =255.0                                            ; +0x76, 0x52ffca\nVLDR            S15, [R0,#4]                                           ; +0x7a, 0x52ffce\nVMUL.F32        S15, S15, S14                                          ; +0x7e, 0x52ffd2\nVCVT.U32.F32    S15, S15                                               ; +0x82, 0x52ffd6\nVMOV            R2, S15                                                ; +0x86, 0x52ffda\nVLDR            S15, [R0,#8]                                           ; +0x8a, 0x52ffde\nVMUL.F32        S15, S15, S14                                          ; +0x8e, 0x52ffe2\nVCVT.U32.F32    S15, S15                                               ; +0x92, 0x52ffe6\nVMOV            R3, S15                                                ; +0x96, 0x52ffea\nVLDR            S15, [R0]                                              ; +0x9a, 0x52ffee\nLDR.W           R0, [R4,#0x278]                                        ; +0x9e, 0x52fff2\nSTRB.W          R2, [SP,#0xC+var_B]                                    ; +0xa2, 0x52fff6\nVMUL.F32        S15, S15, S14                                          ; +0xa6, 0x52fffa\nVCVT.U32.F32    S15, S15                                               ; +0xaa, 0x52fffe\nSTRB.W          R3, [SP,#0xC+var_A]                                    ; +0xae, 0x530002\nVMOV            R1, S15                                                ; +0xb2, 0x530006\nSTRB.W          R1, [SP,#0xC+var_C]                                    ; +0xb6, 0x53000a\nLDR             R3, [R0]                                               ; +0xba, 0x53000e\nMOV             R1, SP                                                 ; +0xbc, 0x530010\nLDR.W           R3, [R3,#0x1D8]                                        ; +0xbe, 0x530012\nBLX             R3                                                     ; +0xc2, 0x530016\nLDR             R2, [SP,#0xC+var_8]                                    ; +0xc4, 0x530018\nLDR             R3, [R5]                                               ; +0xc6, 0x53001a\nCMP             R2, R3                                                 ; +0xc8, 0x53001c\nBEQ             loc_530024                                             ; +0xca, 0x53001e\nBLX             __stack_chk_fail                                       ; +0xcc, 0x530020\nADD             SP, SP, #0xC                                           ; +0xd0, 0x530024\nPOP             {R4,R5,PC}                                             ; +0xd2, 0x530026", "xrefs": ["CreateParticlePopup::init @ 0x5336ee", "CreateParticlePopup::init @ 0x5337a4"], "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"}