{"type": "func", "start": 11518968, "end": 11519252, "name": "CreateParticlePopup::onSelectColor", "pseudocode": "// \n// CreateParticlePopup::onSelectColor from 0xafc3f8 to 0xafc514 (284 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x86b60\n// > CreateParticlePopup::init @ 0xb02010\n// > CreateParticlePopup::init @ 0xb029e8\n// > CreateParticlePopup::init @ 0xb02ad4\n// > <???> @ 0x1543898\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::onSelectColor(CreateParticlePopup *this, cocos2d::CCObject *a2)\n{\n  int v4; // w0\n  _QWORD *v5; // x19\n  cocos2d::CCObject *v6; // x0\n  __int64 (__fastcall *v7)(cocos2d::CCObject *); // x1\n  void (__fastcall *v8)(_QWORD *, _QWORD); // x20\n  unsigned int v9; // w0\n  __int64 v11; // x0\n  __int64 (*v12)(void); // x1\n  float *v13; // x0\n  ColorAction *v14; // [xsp+38h] [xbp+38h]\n\n  v4 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);\n  switch ( v4 )\n  {\n    case 0:\n      v11 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 99) + 1200LL))(*((_QWORD *)this + 99));\n      LOWORD(v14) = *(_WORD *)v11;\n      BYTE2(v14) = *(_BYTE *)(v11 + 2);\n      break;\n    case 1:\n      v12 = *(__int64 (**)(void))(**((_QWORD **)this + 89) + 1352LL);\n      goto LABEL_7;\n    case 2:\n      v12 = *(__int64 (**)(void))(**((_QWORD **)this + 89) + 1384LL);\nLABEL_7:\n      v13 = (float *)v12();\n      BYTE1(v14) = (unsigned int)(float)(v13[1] * 255.0);\n      BYTE2(v14) = (unsigned int)(float)(v13[2] * 255.0);\n      LOBYTE(v14) = (unsigned int)(float)(*v13 * 255.0);\n      break;\n  }\n  v5 = (_QWORD *)ColorSelectPopup::create(v14);\n  v6 = a2;\n  v7 = *(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL);\n  v8 = *(void (__fastcall **)(_QWORD *, _QWORD))(*v5 + 72LL);\n  v9 = v7(v6);\n  v8(v5, v9);\n  v5[140] = (char *)this + 664;\n  return (*(__int64 (__fastcall **)(_QWORD *))(*v5 + 1312LL))(v5);\n}", "assembly": "; \n; CreateParticlePopup::onSelectColor from 0xafc3f8 to 0xafc514 (284 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x86b60\n; > CreateParticlePopup::init @ 0xb02010\n; > CreateParticlePopup::init @ 0xb029e8\n; > CreateParticlePopup::init @ 0xb02ad4\n; > <???> @ 0x1543898\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_40]!                                ; +0x0, 0xafc3f8\nMOV             X29, SP                                                ; +0x4, 0xafc3fc\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xafc400\nSTR             X21, [SP,#0x40+var_20]                                 ; +0xc, 0xafc404\nMOV             X20, X1                                                ; +0x10, 0xafc408\nMOV             X21, X0                                                ; +0x14, 0xafc40c\nMOV             X0, X1                                                 ; +0x18, 0xafc410\nLDR             X1, [X1]                                               ; +0x1c, 0xafc414\nLDR             X1, [X1,#0x40]                                         ; +0x20, 0xafc418\nBLR             X1                                                     ; +0x24, 0xafc41c\nCBZ             W0, loc_AFC48C                                         ; +0x28, 0xafc420\nCMP             W0, #1                                                 ; +0x2c, 0xafc424\nB.EQ            loc_AFC500                                             ; +0x30, 0xafc428\nCMP             W0, #2                                                 ; +0x34, 0xafc42c\nB.EQ            loc_AFC4B4                                             ; +0x38, 0xafc430\nLDR             X0, [X29,#0x40+var_8]                                  ; +0x3c, 0xafc434\nADD             X21, X21, #0x298                                       ; +0x40, 0xafc438\nBL              _ZN16ColorSelectPopup6createEN7cocos2d10_ccColor3BE; ColorSelectPopup::create(cocos2d::_ccColor3B) ; +0x44, 0xafc43c\nMOV             X19, X0                                                ; +0x48, 0xafc440\nLDR             X1, [X20]                                              ; +0x4c, 0xafc444\nMOV             X0, X20                                                ; +0x50, 0xafc448\nLDR             X2, [X19]                                              ; +0x54, 0xafc44c\nLDR             X1, [X1,#0x40]                                         ; +0x58, 0xafc450\nLDR             X20, [X2,#0x48]                                        ; +0x5c, 0xafc454\nBLR             X1                                                     ; +0x60, 0xafc458\nMOV             W1, W0                                                 ; +0x64, 0xafc45c\nMOV             X0, X19                                                ; +0x68, 0xafc460\nBLR             X20                                                    ; +0x6c, 0xafc464\nSTR             X21, [X19,#0x460]                                      ; +0x70, 0xafc468\nLDR             X1, [X19]                                              ; +0x74, 0xafc46c\nMOV             X0, X19                                                ; +0x78, 0xafc470\nLDR             X1, [X1,#0x520]                                        ; +0x7c, 0xafc474\nBLR             X1                                                     ; +0x80, 0xafc478\nLDR             X21, [SP,#0x40+var_20]                                 ; +0x84, 0xafc47c\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x88, 0xafc480\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x8c, 0xafc484\nRET                                                                    ; +0x90, 0xafc488\nLDR             X1, [X21,#0x318]                                       ; +0x94, 0xafc48c\nMOV             X0, X1                                                 ; +0x98, 0xafc490\nLDR             X1, [X1]                                               ; +0x9c, 0xafc494\nLDR             X1, [X1,#0x4B0]                                        ; +0xa0, 0xafc498\nBLR             X1                                                     ; +0xa4, 0xafc49c\nLDRH            W1, [X0]                                               ; +0xa8, 0xafc4a0\nLDRB            W0, [X0,#2]                                            ; +0xac, 0xafc4a4\nSTRH            W1, [X29,#0x40+var_8]                                  ; +0xb0, 0xafc4a8\nSTRB            W0, [X29,#0x40+var_8+2]                                ; +0xb4, 0xafc4ac\nB               loc_AFC434                                             ; +0xb8, 0xafc4b0\nLDR             X1, [X21,#0x2C8]                                       ; +0xbc, 0xafc4b4\nMOV             X0, X1                                                 ; +0xc0, 0xafc4b8\nLDR             X1, [X1]                                               ; +0xc4, 0xafc4bc\nLDR             X1, [X1,#0x568]                                        ; +0xc8, 0xafc4c0\nBLR             X1                                                     ; +0xcc, 0xafc4c4\nLDR             S3, =0x437F0000                                        ; +0xd0, 0xafc4c8\nLDR             S2, [X0,#4]                                            ; +0xd4, 0xafc4cc\nLDR             S1, [X0,#8]                                            ; +0xd8, 0xafc4d0\nLDR             S0, [X0]                                               ; +0xdc, 0xafc4d4\nFMUL            S2, S2, S3                                             ; +0xe0, 0xafc4d8\nFMUL            S1, S1, S3                                             ; +0xe4, 0xafc4dc\nFMUL            S0, S0, S3                                             ; +0xe8, 0xafc4e0\nFCVTZU          W2, S2                                                 ; +0xec, 0xafc4e4\nFCVTZU          W1, S1                                                 ; +0xf0, 0xafc4e8\nFCVTZU          W0, S0                                                 ; +0xf4, 0xafc4ec\nSTRB            W2, [X29,#0x40+var_8+1]                                ; +0xf8, 0xafc4f0\nSTRB            W1, [X29,#0x40+var_8+2]                                ; +0xfc, 0xafc4f4\nSTRB            W0, [X29,#0x40+var_8]                                  ; +0x100, 0xafc4f8\nB               loc_AFC434                                             ; +0x104, 0xafc4fc\nLDR             X1, [X21,#0x2C8]                                       ; +0x108, 0xafc500\nMOV             X0, X1                                                 ; +0x10c, 0xafc504\nLDR             X1, [X1]                                               ; +0x110, 0xafc508\nLDR             X1, [X1,#0x548]                                        ; +0x114, 0xafc50c\nB               loc_AFC4C4                                             ; +0x118, 0xafc510", "xrefs": ["<???> @ 0x86b60", "CreateParticlePopup::init @ 0xb02010", "CreateParticlePopup::init @ 0xb029e8", "CreateParticlePopup::init @ 0xb02ad4", "<???> @ 0x1543898"], "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"}