{"type": "func", "start": 5446012, "end": 5446260, "name": "CreateParticlePopup::onDuplicateColor", "pseudocode": "// \n// CreateParticlePopup::onDuplicateColor from 0x53197c to 0x531a74 (248 bytes)\n// \n// 0 xrefs:\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::onDuplicateColor(CreateParticlePopup *a1, cocos2d::CCObject *a2)\n{\n  const cocos2d::ccColor4F *v3; // r0\n  const cocos2d::ccColor4F *v4; // r0\n  const cocos2d::ccColor4F *v5; // r0\n  const cocos2d::ccColor4F *v6; // r1\n  cocos2d::CCSprite *m_endColorSprite; // r0\n  void (__fastcall *setColor)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // r4\n  unsigned int v9; // r3\n  float r; // s15\n  _DWORD v11[3]; // [sp+0h] [bp-Ch] BYREF\n\n  v11[0] = a1;\n  v11[1] = a2;\n  v3 = a1->m_particle->getStartColor(a1->m_particle);\n  CreateParticlePopup::updateParticleValueForType(a1, v3->r, EndR, nullptr);\n  v4 = a1->m_particle->getStartColor(a1->m_particle);\n  CreateParticlePopup::updateParticleValueForType(a1, v4->g, EndG, nullptr);\n  v5 = a1->m_particle->getStartColor(a1->m_particle);\n  CreateParticlePopup::updateParticleValueForType(a1, v5->b, 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 = a1->m_particle->getStartColor(a1->m_particle);\n  m_endColorSprite = a1->m_endColorSprite;\n  setColor = m_endColorSprite->setColor;\n  v9 = (unsigned int)(float)(v6->b * 255.0);\n  r = v6->r;\n  BYTE1(v11[0]) = (unsigned int)(float)(v6->g * 255.0);\n  BYTE2(v11[0]) = v9;\n  LOBYTE(v11[0]) = (unsigned int)(float)(r * 255.0);\n  setColor(m_endColorSprite, (const cocos2d::ccColor3B *)v11);\n}", "assembly": "; \n; CreateParticlePopup::onDuplicateColor from 0x53197c to 0x531a74 (248 bytes)\n; \n; 0 xrefs:\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, 0x53197c\nMOV             R4, R0                                                 ; +0x2, 0x53197e\nLDR             R5, =(__stack_chk_guard_ptr - 0x53198A)                ; +0x4, 0x531980\nLDR.W           R0, [R0,#0x20C]                                        ; +0x6, 0x531982\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xa, 0x531986\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xc, 0x531988\nLDR             R3, [R5]                                               ; +0xe, 0x53198a\nSTR             R3, [SP,#0xC+var_8]                                    ; +0x10, 0x53198c\nLDR             R3, [R0]                                               ; +0x12, 0x53198e\nLDR.W           R3, [R3,#0x29C]                                        ; +0x14, 0x531990\nBLX             R3                                                     ; +0x18, 0x531994\nMOVS            R2, #0x22 ; '\"'                                        ; +0x1a, 0x531996\nMOV             R3, R0                                                 ; +0x1c, 0x531998\nMOV             R0, R4                                                 ; +0x1e, 0x53199a\nLDR             R1, [R3]                                               ; +0x20, 0x53199c\nMOVS            R3, #0                                                 ; +0x22, 0x53199e\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x24, 0x5319a0\nLDR.W           R0, [R4,#0x20C]                                        ; +0x28, 0x5319a4\nLDR             R3, [R0]                                               ; +0x2c, 0x5319a8\nLDR.W           R3, [R3,#0x29C]                                        ; +0x2e, 0x5319aa\nBLX             R3                                                     ; +0x32, 0x5319ae\nMOVS            R2, #0x24 ; '$'                                        ; +0x34, 0x5319b0\nMOV             R3, R0                                                 ; +0x36, 0x5319b2\nMOV             R0, R4                                                 ; +0x38, 0x5319b4\nLDR             R1, [R3,#4]                                            ; +0x3a, 0x5319b6\nMOVS            R3, #0                                                 ; +0x3c, 0x5319b8\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x3e, 0x5319ba\nLDR.W           R0, [R4,#0x20C]                                        ; +0x42, 0x5319be\nLDR             R3, [R0]                                               ; +0x46, 0x5319c2\nLDR.W           R3, [R3,#0x29C]                                        ; +0x48, 0x5319c4\nBLX             R3                                                     ; +0x4c, 0x5319c8\nMOVS            R2, #0x26 ; '&'                                        ; +0x4e, 0x5319ca\nMOV             R3, R0                                                 ; +0x50, 0x5319cc\nMOV             R0, R4                                                 ; +0x52, 0x5319ce\nLDR             R1, [R3,#8]                                            ; +0x54, 0x5319d0\nMOVS            R3, #0                                                 ; +0x56, 0x5319d2\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x58, 0x5319d4\nMOV             R0, R4                                                 ; +0x5c, 0x5319d8\nMOVS            R1, #0x22 ; '\"'                                        ; +0x5e, 0x5319da\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x60, 0x5319dc\nMOV             R0, R4                                                 ; +0x64, 0x5319e0\nMOVS            R1, #0x24 ; '$'                                        ; +0x66, 0x5319e2\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x68, 0x5319e4\nMOV             R0, R4                                                 ; +0x6c, 0x5319e8\nMOVS            R1, #0x26 ; '&'                                        ; +0x6e, 0x5319ea\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x70, 0x5319ec\nMOV             R0, R4                                                 ; +0x74, 0x5319f0\nMOVS            R1, #0x22 ; '\"'                                        ; +0x76, 0x5319f2\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x78, 0x5319f4\nMOV             R0, R4                                                 ; +0x7c, 0x5319f8\nMOVS            R1, #0x24 ; '$'                                        ; +0x7e, 0x5319fa\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x80, 0x5319fc\nMOV             R0, R4                                                 ; +0x84, 0x531a00\nMOVS            R1, #0x26 ; '&'                                        ; +0x86, 0x531a02\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x88, 0x531a04\nLDR.W           R0, [R4,#0x20C]                                        ; +0x8c, 0x531a08\nLDR             R3, [R0]                                               ; +0x90, 0x531a0c\nLDR.W           R3, [R3,#0x29C]                                        ; +0x92, 0x531a0e\nBLX             R3                                                     ; +0x96, 0x531a12\nVLDR            S14, =255.0                                            ; +0x98, 0x531a14\nVLDR            S15, [R0,#4]                                           ; +0x9c, 0x531a18\nMOV             R1, R0                                                 ; +0xa0, 0x531a1c\nVMUL.F32        S15, S15, S14                                          ; +0xa2, 0x531a1e\nVCVT.U32.F32    S15, S15                                               ; +0xa6, 0x531a22\nVMOV            R2, S15                                                ; +0xaa, 0x531a26\nVLDR            S15, [R0,#8]                                           ; +0xae, 0x531a2a\nLDR.W           R0, [R4,#0x278]                                        ; +0xb2, 0x531a2e\nVMUL.F32        S15, S15, S14                                          ; +0xb6, 0x531a32\nLDR             R4, [R0]                                               ; +0xba, 0x531a36\nLDR.W           R4, [R4,#0x1D8]                                        ; +0xbc, 0x531a38\nVCVT.U32.F32    S15, S15                                               ; +0xc0, 0x531a3c\nVMOV            R3, S15                                                ; +0xc4, 0x531a40\nVLDR            S15, [R1]                                              ; +0xc8, 0x531a44\nSTRB.W          R2, [SP,#0xC+var_B]                                    ; +0xcc, 0x531a48\nVMUL.F32        S15, S15, S14                                          ; +0xd0, 0x531a4c\nVCVT.U32.F32    S15, S15                                               ; +0xd4, 0x531a50\nSTRB.W          R3, [SP,#0xC+var_A]                                    ; +0xd8, 0x531a54\nVMOV            R1, S15                                                ; +0xdc, 0x531a58\nSTRB.W          R1, [SP,#0xC+var_C]                                    ; +0xe0, 0x531a5c\nMOV             R1, SP                                                 ; +0xe4, 0x531a60\nBLX             R4                                                     ; +0xe6, 0x531a62\nLDR             R2, [SP,#0xC+var_8]                                    ; +0xe8, 0x531a64\nLDR             R3, [R5]                                               ; +0xea, 0x531a66\nCMP             R2, R3                                                 ; +0xec, 0x531a68\nBEQ             loc_531A70                                             ; +0xee, 0x531a6a\nBLX             __stack_chk_fail                                       ; +0xf0, 0x531a6c\nADD             SP, SP, #0xC                                           ; +0xf4, 0x531a70\nPOP             {R4,R5,PC}                                             ; +0xf6, 0x531a72", "xrefs": [], "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"}