{"type": "func", "start": 6702000, "end": 6702184, "name": "CreateParticlePopup::onSelectColor", "pseudocode": "// \n// CreateParticlePopup::onSelectColor from 0x6643b0 to 0x664468 (184 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:55:39 +0000\n// \n\nint __fastcall CreateParticlePopup::onSelectColor(CreateParticlePopup *this, cocos2d::CCObject *a2)\n{\n  int v4; // r0\n  int v5; // r0\n  unsigned int v6; // r3\n  int (*v7)(void); // r3\n  float *v8; // r0\n  int *v9; // r5\n  void (__fastcall *v10)(int *, int); // r7\n  int v11; // r0\n  int v12; // r3\n  ColorAction *v14; // [sp+4h] [bp-8h]\n\n  v14 = a2;\n  v4 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);\n  switch ( v4 )\n  {\n    case 0:\n      v5 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 147) + 600))(*((_DWORD *)this + 147));\n      LOBYTE(v6) = *(_BYTE *)(v5 + 2);\n      LOWORD(v14) = *(_WORD *)v5;\nLABEL_8:\n      BYTE2(v14) = v6;\n      break;\n    case 1:\n      v7 = *(int (**)(void))(**((_DWORD **)this + 136) + 676);\nLABEL_7:\n      v8 = (float *)v7();\n      v6 = (unsigned int)(float)(v8[2] * 255.0);\n      BYTE1(v14) = (unsigned int)(float)(v8[1] * 255.0);\n      LOBYTE(v14) = (unsigned int)(float)(*v8 * 255.0);\n      goto LABEL_8;\n    case 2:\n      v7 = *(int (**)(void))(**((_DWORD **)this + 136) + 692);\n      goto LABEL_7;\n  }\n  v9 = ColorSelectPopup::create(v14);\n  v10 = *(void (__fastcall **)(int *, int))(*v9 + 36);\n  v11 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);\n  v10(v9, v11);\n  v12 = *v9;\n  v9[191] = (int)this + 520;\n  return (*(int (__fastcall **)(int *))(v12 + 656))(v9);\n}", "assembly": "; \n; CreateParticlePopup::onSelectColor from 0x6643b0 to 0x664468 (184 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:55:39 +0000\n; \nPUSH            {R0-R2,R4-R7,LR}                                       ; +0x0, 0x6643b0\nMOV             R4, R0                                                 ; +0x2, 0x6643b2\nLDR             R3, [R1]                                               ; +0x4, 0x6643b4\nMOV             R0, R1                                                 ; +0x6, 0x6643b6\nMOV             R6, R1                                                 ; +0x8, 0x6643b8\nLDR             R3, [R3,#0x20]                                         ; +0xa, 0x6643ba\nBLX             R3                                                     ; +0xc, 0x6643bc\nCBNZ            R0, loc_6643D6                                         ; +0xe, 0x6643be\nLDR.W           R0, [R4,#0x24C]                                        ; +0x10, 0x6643c0\nLDR             R3, [R0]                                               ; +0x14, 0x6643c4\nLDR.W           R3, [R3,#0x258]                                        ; +0x16, 0x6643c6\nBLX             R3                                                     ; +0x1a, 0x6643ca\nLDRH            R2, [R0]                                               ; +0x1c, 0x6643cc\nLDRB            R3, [R0,#2]                                            ; +0x1e, 0x6643ce\nSTRH.W          R2, [SP,#0xC+var_8]                                    ; +0x20, 0x6643d0\nB               loc_664432                                             ; +0x24, 0x6643d4\nCMP             R0, #1                                                 ; +0x26, 0x6643d6\nBNE             loc_6643E6                                             ; +0x28, 0x6643d8\nLDR.W           R0, [R4,#0x220]                                        ; +0x2a, 0x6643da\nLDR             R3, [R0]                                               ; +0x2e, 0x6643de\nLDR.W           R3, [R3,#0x2A4]                                        ; +0x30, 0x6643e0\nB               loc_6643F4                                             ; +0x34, 0x6643e4\nCMP             R0, #2                                                 ; +0x36, 0x6643e6\nBNE             loc_664436                                             ; +0x38, 0x6643e8\nLDR.W           R0, [R4,#0x220]                                        ; +0x3a, 0x6643ea\nLDR             R3, [R0]                                               ; +0x3e, 0x6643ee\nLDR.W           R3, [R3,#0x2B4]                                        ; +0x40, 0x6643f0\nBLX             R3                                                     ; +0x44, 0x6643f4\nVLDR            S14, =255.0                                            ; +0x46, 0x6643f6\nVLDR            S15, [R0,#4]                                           ; +0x4a, 0x6643fa\nVMUL.F32        S15, S15, S14                                          ; +0x4e, 0x6643fe\nVCVT.U32.F32    S15, S15                                               ; +0x52, 0x664402\nVMOV            R2, S15                                                ; +0x56, 0x664406\nVLDR            S15, [R0,#8]                                           ; +0x5a, 0x66440a\nVMUL.F32        S15, S15, S14                                          ; +0x5e, 0x66440e\nVCVT.U32.F32    S15, S15                                               ; +0x62, 0x664412\nVMOV            R3, S15                                                ; +0x66, 0x664416\nVLDR            S15, [R0]                                              ; +0x6a, 0x66441a\nSTRB.W          R2, [SP,#0xC+var_8+1]                                  ; +0x6e, 0x66441e\nVMUL.F32        S15, S15, S14                                          ; +0x72, 0x664422\nVCVT.U32.F32    S15, S15                                               ; +0x76, 0x664426\nVMOV            R1, S15                                                ; +0x7a, 0x66442a\nSTRB.W          R1, [SP,#0xC+var_8]                                    ; +0x7e, 0x66442e\nSTRB.W          R3, [SP,#0xC+var_8+2]                                  ; +0x82, 0x664432\nLDR             R0, [SP,#0xC+var_8]                                    ; +0x86, 0x664436\nADD.W           R4, R4, #0x208                                         ; +0x88, 0x664438\nBL              _ZN16ColorSelectPopup6createEN7cocos2d10_ccColor3BE; ColorSelectPopup::create(cocos2d::_ccColor3B) ; +0x8c, 0x66443c\nLDR             R3, [R0]                                               ; +0x90, 0x664440\nMOV             R5, R0                                                 ; +0x92, 0x664442\nMOV             R0, R6                                                 ; +0x94, 0x664444\nLDR             R7, [R3,#0x24]                                         ; +0x96, 0x664446\nLDR             R3, [R6]                                               ; +0x98, 0x664448\nLDR             R3, [R3,#0x20]                                         ; +0x9a, 0x66444a\nBLX             R3                                                     ; +0x9c, 0x66444c\nMOV             R1, R0                                                 ; +0x9e, 0x66444e\nMOV             R0, R5                                                 ; +0xa0, 0x664450\nBLX             R7                                                     ; +0xa2, 0x664452\nLDR             R3, [R5]                                               ; +0xa4, 0x664454\nSTR.W           R4, [R5,#0x2FC]                                        ; +0xa6, 0x664456\nMOV             R0, R5                                                 ; +0xaa, 0x66445a\nLDR.W           R3, [R3,#0x290]                                        ; +0xac, 0x66445c\nADD             SP, SP, #0xC                                           ; +0xb0, 0x664460\nPOP.W           {R4-R7,LR}                                             ; +0xb2, 0x664462\nBX              R3                                                     ; +0xb6, 0x664466", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}