{"type": "func", "start": 11522524, "end": 11522748, "name": "CreateParticlePopup::updateColorSprite", "pseudocode": "// \n// CreateParticlePopup::updateColorSprite from 0xafd1dc to 0xafd2bc (224 bytes)\n// \n// 3 xrefs:\n// > CreateParticlePopup::init @ 0xb02aa4\n// > CreateParticlePopup::init @ 0xb02b90\n// > <???> @ 0xdb910\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:01:18 +0000\n// \n\n__int64 __fastcall CreateParticlePopup::updateColorSprite(CreateParticlePopup *this, int a2)\n{\n  float *v4; // x2\n  __int64 v5; // x5\n  float v6; // s1\n  float v7; // s0\n  _BYTE v8[8]; // [xsp+20h] [xbp+20h] BYREF\n\n  if ( a2 == 1 )\n  {\n    v4 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 89) + 1352LL))(*((_QWORD *)this + 89));\n    v5 = *((_QWORD *)this + 118);\n    goto LABEL_5;\n  }\n  if ( a2 == 2 )\n  {\n    v4 = (float *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 89) + 1384LL))(*((_QWORD *)this + 89));\n    v5 = *((_QWORD *)this + 119);\nLABEL_5:\n    v6 = v4[2] * 255.0;\n    v7 = *v4 * 255.0;\n    v8[1] = (unsigned int)(float)(v4[1] * 255.0);\n    v8[2] = (unsigned int)v6;\n    v8[0] = (unsigned int)v7;\n    (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 960LL))(v5, v8);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; CreateParticlePopup::updateColorSprite from 0xafd1dc to 0xafd2bc (224 bytes)\n; \n; 3 xrefs:\n; > CreateParticlePopup::init @ 0xb02aa4\n; > CreateParticlePopup::init @ 0xb02b90\n; > <???> @ 0xdb910\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:01:18 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0xafd1dc\nCMP             W1, #1                                                 ; +0x4, 0xafd1e0\nMOV             X29, SP                                                ; +0x8, 0xafd1e4\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0xc, 0xafd1e8\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0xafd1ec\nMOV             X20, X0                                                ; +0x14, 0xafd1f0\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0xafd1f4\nLDR             X0, [X0]                                               ; +0x1c, 0xafd1f8\nSTR             X0, [X29,#0x30+var_8]                                  ; +0x20, 0xafd1fc\nB.EQ            loc_AFD294                                             ; +0x24, 0xafd200\nCMP             W1, #2                                                 ; +0x28, 0xafd204\nB.EQ            loc_AFD22C                                             ; +0x2c, 0xafd208\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x30, 0xafd20c\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x34, 0xafd210\nLDR             X0, [X19]                                              ; +0x38, 0xafd214\nCMP             X1, X0                                                 ; +0x3c, 0xafd218\nB.NE            loc_AFD2B8                                             ; +0x40, 0xafd21c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x44, 0xafd220\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x48, 0xafd224\nRET                                                                    ; +0x4c, 0xafd228\nLDR             X1, [X20,#0x2C8]                                       ; +0x50, 0xafd22c\nMOV             X0, X1                                                 ; +0x54, 0xafd230\nLDR             X1, [X1]                                               ; +0x58, 0xafd234\nLDR             X1, [X1,#0x568]                                        ; +0x5c, 0xafd238\nBLR             X1                                                     ; +0x60, 0xafd23c\nMOV             X2, X0                                                 ; +0x64, 0xafd240\nLDR             S3, =0x437F0000                                        ; +0x68, 0xafd244\nLDR             X5, [X20,#0x3B8]                                       ; +0x6c, 0xafd248\nLDR             S2, [X2,#4]                                            ; +0x70, 0xafd24c\nADD             X1, X29, #0x30+var_10                                  ; +0x74, 0xafd250\nLDR             S1, [X2,#8]                                            ; +0x78, 0xafd254\nMOV             X0, X5                                                 ; +0x7c, 0xafd258\nLDR             S0, [X2]                                               ; +0x80, 0xafd25c\nFMUL            S2, S2, S3                                             ; +0x84, 0xafd260\nFMUL            S1, S1, S3                                             ; +0x88, 0xafd264\nFMUL            S0, S0, S3                                             ; +0x8c, 0xafd268\nFCVTZU          W4, S2                                                 ; +0x90, 0xafd26c\nFCVTZU          W3, S1                                                 ; +0x94, 0xafd270\nFCVTZU          W2, S0                                                 ; +0x98, 0xafd274\nSTRB            W4, [X29,#0x30+var_F]                                  ; +0x9c, 0xafd278\nSTRB            W3, [X29,#0x30+var_E]                                  ; +0xa0, 0xafd27c\nSTRB            W2, [X29,#0x30+var_10]                                 ; +0xa4, 0xafd280\nLDR             X2, [X5]                                               ; +0xa8, 0xafd284\nLDR             X2, [X2,#0x3C0]                                        ; +0xac, 0xafd288\nBLR             X2                                                     ; +0xb0, 0xafd28c\nB               loc_AFD20C                                             ; +0xb4, 0xafd290\nLDR             X1, [X20,#0x2C8]                                       ; +0xb8, 0xafd294\nMOV             X0, X1                                                 ; +0xbc, 0xafd298\nLDR             X1, [X1]                                               ; +0xc0, 0xafd29c\nLDR             X1, [X1,#0x548]                                        ; +0xc4, 0xafd2a0\nBLR             X1                                                     ; +0xc8, 0xafd2a4\nMOV             X2, X0                                                 ; +0xcc, 0xafd2a8\nLDR             S3, =0x437F0000                                        ; +0xd0, 0xafd2ac\nLDR             X5, [X20,#0x3B0]                                       ; +0xd4, 0xafd2b0\nB               loc_AFD24C                                             ; +0xd8, 0xafd2b4\nBL              .__stack_chk_fail                                      ; +0xdc, 0xafd2b8", "xrefs": ["CreateParticlePopup::init @ 0xb02aa4", "CreateParticlePopup::init @ 0xb02b90", "<???> @ 0xdb910"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}