{"type": "func", "start": 6710860, "end": 6711376, "name": "CreateParticlePopup::colorSelectClosed", "pseudocode": "// \n// CreateParticlePopup::colorSelectClosed from 0x66664c to 0x666850 (516 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'CreateParticlePopup::colorSelectClosed @ 0x66685c\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:41 +0000\n// \n\nint __fastcall CreateParticlePopup::colorSelectClosed(cocos2d::CCArray **this, cocos2d::CCNode *a2)\n{\n  int result; // r0\n  int v5; // r3\n  int *v6; // r0\n  int v7; // r3\n  int (__fastcall *v8)(int *, __int16 *); // r4\n  int *v9; // r5\n  int v10; // r3\n  int *v11; // r0\n  int v12; // r1\n  int v13; // r2\n  int v14; // r3\n  int *v15; // r4\n  int v16; // r3\n  int *v17; // r0\n  int v18; // r1\n  int v19; // r2\n  int v20; // r3\n  int *v21; // t0\n  __int16 v22; // [sp+4h] [bp-Ch] BYREF\n  unsigned __int8 v23; // [sp+6h] [bp-Ah]\n  __int16 v24; // [sp+8h] [bp-8h] BYREF\n  char v25; // [sp+Ah] [bp-6h]\n\n  result = (*(int (__fastcall **)(cocos2d::CCNode *))(*(_DWORD *)a2 + 32))(a2);\n  v5 = *((_DWORD *)a2 + 190);\n  v22 = v5;\n  v23 = BYTE2(v5);\n  if ( result )\n  {\n    if ( result == 1 )\n    {\n      CreateParticlePopup::updateParticleValueForType(\n        (unsigned int)this,\n        (float)(unsigned __int8)v22 / 255.0,\n        26,\n        nullptr);\n      CreateParticlePopup::updateParticleValueForType((unsigned int)this, (float)HIBYTE(v22) / 255.0, 28, nullptr);\n      CreateParticlePopup::updateParticleValueForType((unsigned int)this, (float)v23 / 255.0, 30, nullptr);\n      CreateParticlePopup::updateInputNodeStringForType((int)this, 0x1Au);\n      CreateParticlePopup::updateInputNodeStringForType((int)this, 0x1Cu);\n      CreateParticlePopup::updateInputNodeStringForType((int)this, 0x1Eu);\n      CreateParticlePopup::updateSliderForType(this, 26);\n      CreateParticlePopup::updateSliderForType(this, 28);\n      CreateParticlePopup::updateSliderForType(this, 30);\n      (*(void (__fastcall **)(_DWORD, __int16 *))(*(_DWORD *)*(this + 167) + 480))(*(this + 167), &v22);\n      v9 = (int *)*(this + 136);\n      v10 = *v9;\n      v9 += 156;\n      v11 = (int *)(*(int (__fastcall **)(_DWORD))(v10 + 676))(*(this + 136));\n      v12 = v11[1];\n      v13 = v11[2];\n      v14 = v11[3];\n      *v9 = *v11;\n      v9[1] = v12;\n      v9[2] = v13;\n      v9[3] = v14;\n      v15 = (int *)*(this + 136);\n      v16 = *v15;\n      v17 = v15;\n      v15 += 160;\n      v21 = (int *)(*(int (__fastcall **)(int *))(v16 + 692))(v17);\n      result = *v21++;\n      v18 = *v21++;\n      v19 = *v21;\n      v20 = v21[1];\n      *v15 = result;\n      v15[1] = v18;\n      v15[2] = v19;\n      v15[3] = v20;\n    }\n    else if ( result == 2 )\n    {\n      CreateParticlePopup::updateParticleValueForType(\n        (unsigned int)this,\n        (float)(unsigned __int8)v22 / 255.0,\n        34,\n        nullptr);\n      CreateParticlePopup::updateParticleValueForType((unsigned int)this, (float)HIBYTE(v22) / 255.0, 36, nullptr);\n      CreateParticlePopup::updateParticleValueForType((unsigned int)this, (float)v23 / 255.0, 38, nullptr);\n      CreateParticlePopup::updateInputNodeStringForType((int)this, 0x22u);\n      CreateParticlePopup::updateInputNodeStringForType((int)this, 0x24u);\n      CreateParticlePopup::updateInputNodeStringForType((int)this, 0x26u);\n      CreateParticlePopup::updateSliderForType(this, 34);\n      CreateParticlePopup::updateSliderForType(this, 36);\n      CreateParticlePopup::updateSliderForType(this, 38);\n      return (*(int (__fastcall **)(_DWORD, __int16 *))(*(_DWORD *)*(this + 168) + 480))(*(this + 168), &v22);\n    }\n  }\n  else\n  {\n    (*(void (__fastcall **)(_DWORD, __int16 *))(*(_DWORD *)*(this + 147) + 608))(*(this + 147), &v22);\n    (*(void (__fastcall **)(_DWORD, __int16 *))(*(_DWORD *)*(this + 166) + 480))(*(this + 166), &v22);\n    v6 = (int *)*(this + 173);\n    v7 = *v6;\n    v24 = ~v22;\n    v8 = *(int (__fastcall **)(int *, __int16 *))(v7 + 536);\n    v25 = ~v23;\n    return v8(v6, &v24);\n  }\n  return result;\n}", "assembly": "; \n; CreateParticlePopup::colorSelectClosed from 0x66664c to 0x666850 (516 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'CreateParticlePopup::colorSelectClosed @ 0x66685c\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:41 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x66664c\nMOV             R4, R0                                                 ; +0x2, 0x66664e\nVPUSH           {D8}                                                   ; +0x4, 0x666650\nMOV             R0, R1                                                 ; +0x8, 0x666654\nLDR             R6, =(__stack_chk_guard_ptr - 0x66665E)                ; +0xa, 0x666656\nMOV             R5, R1                                                 ; +0xc, 0x666658\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x66665a\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x66665c\nSUB             SP, SP, #0x10                                          ; +0x12, 0x66665e\nLDR             R3, [R6]                                               ; +0x14, 0x666660\nSTR             R3, [SP,#0x10+var_4]                                   ; +0x16, 0x666662\nLDR             R3, [R1]                                               ; +0x18, 0x666664\nLDR             R3, [R3,#0x20]                                         ; +0x1a, 0x666666\nBLX             R3                                                     ; +0x1c, 0x666668\nLDR.W           R3, [R5,#0x2F8]                                        ; +0x1e, 0x66666a\nSTRH.W          R3, [SP,#0x10+var_C]                                   ; +0x22, 0x66666e\nLSRS            R3, R3, #0x10                                          ; +0x26, 0x666672\nSTRB.W          R3, [SP,#0x10+var_A]                                   ; +0x28, 0x666674\nCBNZ            R0, loc_6666C6                                         ; +0x2c, 0x666678\nLDR.W           R0, [R4,#0x24C]                                        ; +0x2e, 0x66667a\nADD             R5, SP, #0x10+var_C                                    ; +0x32, 0x66667e\nMOV             R1, R5                                                 ; +0x34, 0x666680\nLDR             R3, [R0]                                               ; +0x36, 0x666682\nLDR.W           R3, [R3,#0x260]                                        ; +0x38, 0x666684\nBLX             R3                                                     ; +0x3c, 0x666688\nLDR.W           R0, [R4,#0x298]                                        ; +0x3e, 0x66668a\nMOV             R1, R5                                                 ; +0x42, 0x66668e\nLDR             R3, [R0]                                               ; +0x44, 0x666690\nLDR.W           R3, [R3,#0x1E0]                                        ; +0x46, 0x666692\nBLX             R3                                                     ; +0x4a, 0x666696\nLDR.W           R0, [R4,#0x2B4]                                        ; +0x4c, 0x666698\nLDRB.W          R2, [SP,#0x10+var_C+1]                                 ; +0x50, 0x66669c\nLDRB.W          R1, [SP,#0x10+var_C]                                   ; +0x54, 0x6666a0\nLDR             R3, [R0]                                               ; +0x58, 0x6666a4\nMVNS            R2, R2                                                 ; +0x5a, 0x6666a6\nSTRB.W          R2, [SP,#0x10+var_8+1]                                 ; +0x5c, 0x6666a8\nMVNS            R1, R1                                                 ; +0x60, 0x6666ac\nSTRB.W          R1, [SP,#0x10+var_8]                                   ; +0x62, 0x6666ae\nLDR.W           R4, [R3,#0x218]                                        ; +0x66, 0x6666b2\nADD             R1, SP, #0x10+var_8                                    ; +0x6a, 0x6666b6\nLDRB.W          R3, [SP,#0x10+var_A]                                   ; +0x6c, 0x6666b8\nMVNS            R3, R3                                                 ; +0x70, 0x6666bc\nSTRB.W          R3, [SP,#0x10+var_6]                                   ; +0x72, 0x6666be\nBLX             R4                                                     ; +0x76, 0x6666c2\nB               loc_66683C                                             ; +0x78, 0x6666c4\nCMP             R0, #1                                                 ; +0x7a, 0x6666c6\nBNE             loc_66679A                                             ; +0x7c, 0x6666c8\nLDRB.W          R3, [SP,#0x10+var_C+1]                                 ; +0x7e, 0x6666ca\nADD             R5, SP, #0x10+var_s0                                   ; +0x82, 0x6666ce\nVLDR            S15, =255.0                                            ; +0x84, 0x6666d0\nMOV             R0, R4                                                 ; +0x88, 0x6666d4\nMOVS            R2, #0x1A                                              ; +0x8a, 0x6666d6\nVMOV            S17, R3                                                ; +0x8c, 0x6666d8\nLDRB.W          R3, [SP,#0x10+var_A]                                   ; +0x90, 0x6666dc\nVCVT.F32.S32    S17, S17                                               ; +0x94, 0x6666e0\nVMOV            S16, R3                                                ; +0x98, 0x6666e4\nLDRB.W          R3, [R5,#-0xC]!                                        ; +0x9c, 0x6666e8\nVMOV            S14, R3                                                ; +0xa0, 0x6666ec\nMOVS            R3, #0                                                 ; +0xa4, 0x6666f0\nVCVT.F32.S32    S14, S14                                               ; +0xa6, 0x6666f2\nVCVT.F32.S32    S16, S16                                               ; +0xaa, 0x6666f6\nVDIV.F32        S17, S17, S15                                          ; +0xae, 0x6666fa\nVDIV.F32        S16, S16, S15                                          ; +0xb2, 0x6666fe\nVDIV.F32        S15, S14, S15                                          ; +0xb6, 0x666702\nVMOV            R1, S15                                                ; +0xba, 0x666706\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0xbe, 0x66670a\nMOV             R0, R4                                                 ; +0xc2, 0x66670e\nVMOV            R1, S17                                                ; +0xc4, 0x666710\nMOVS            R2, #0x1C                                              ; +0xc8, 0x666714\nMOVS            R3, #0                                                 ; +0xca, 0x666716\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0xcc, 0x666718\nMOVS            R2, #0x1E                                              ; +0xd0, 0x66671c\nMOVS            R3, #0                                                 ; +0xd2, 0x66671e\nMOV             R0, R4                                                 ; +0xd4, 0x666720\nVMOV            R1, S16                                                ; +0xd6, 0x666722\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0xda, 0x666726\nMOV             R0, R4                                                 ; +0xde, 0x66672a\nMOVS            R1, #0x1A                                              ; +0xe0, 0x66672c\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0xe2, 0x66672e\nMOV             R0, R4                                                 ; +0xe6, 0x666732\nMOVS            R1, #0x1C                                              ; +0xe8, 0x666734\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0xea, 0x666736\nMOV             R0, R4                                                 ; +0xee, 0x66673a\nMOVS            R1, #0x1E                                              ; +0xf0, 0x66673c\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0xf2, 0x66673e\nMOV             R0, R4                                                 ; +0xf6, 0x666742\nMOVS            R1, #0x1A                                              ; +0xf8, 0x666744\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0xfa, 0x666746\nMOV             R0, R4                                                 ; +0xfe, 0x66674a\nMOVS            R1, #0x1C                                              ; +0x100, 0x66674c\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x102, 0x66674e\nMOV             R0, R4                                                 ; +0x106, 0x666752\nMOVS            R1, #0x1E                                              ; +0x108, 0x666754\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x10a, 0x666756\nLDR.W           R0, [R4,#0x29C]                                        ; +0x10e, 0x66675a\nMOV             R1, R5                                                 ; +0x112, 0x66675e\nLDR             R3, [R0]                                               ; +0x114, 0x666760\nLDR.W           R3, [R3,#0x1E0]                                        ; +0x116, 0x666762\nBLX             R3                                                     ; +0x11a, 0x666766\nLDR.W           R5, [R4,#0x220]                                        ; +0x11c, 0x666768\nLDR             R3, [R5]                                               ; +0x120, 0x66676c\nMOV             R0, R5                                                 ; +0x122, 0x66676e\nADD.W           R5, R5, #0x270                                         ; +0x124, 0x666770\nLDR.W           R3, [R3,#0x2A4]                                        ; +0x128, 0x666774\nBLX             R3                                                     ; +0x12c, 0x666778\nLDM             R0, {R0-R3}                                            ; +0x12e, 0x66677a\nSTM.W           R5, {R0-R3}                                            ; +0x130, 0x66677c\nLDR.W           R4, [R4,#0x220]                                        ; +0x134, 0x666780\nLDR             R3, [R4]                                               ; +0x138, 0x666784\nMOV             R0, R4                                                 ; +0x13a, 0x666786\nADD.W           R4, R4, #0x280                                         ; +0x13c, 0x666788\nLDR.W           R3, [R3,#0x2B4]                                        ; +0x140, 0x66678c\nBLX             R3                                                     ; +0x144, 0x666790\nLDM             R0, {R0-R3}                                            ; +0x146, 0x666792\nSTM.W           R4, {R0-R3}                                            ; +0x148, 0x666794\nB               loc_66683C                                             ; +0x14c, 0x666798\nCMP             R0, #2                                                 ; +0x14e, 0x66679a\nBNE             loc_66683C                                             ; +0x150, 0x66679c\nLDRB.W          R3, [SP,#0x10+var_C+1]                                 ; +0x152, 0x66679e\nADD             R5, SP, #0x10+var_s0                                   ; +0x156, 0x6667a2\nVLDR            S15, =255.0                                            ; +0x158, 0x6667a4\nMOV             R0, R4                                                 ; +0x15c, 0x6667a8\nMOVS            R2, #0x22 ; '\"'                                        ; +0x15e, 0x6667aa\nVMOV            S17, R3                                                ; +0x160, 0x6667ac\nLDRB.W          R3, [SP,#0x10+var_A]                                   ; +0x164, 0x6667b0\nVCVT.F32.S32    S17, S17                                               ; +0x168, 0x6667b4\nVMOV            S16, R3                                                ; +0x16c, 0x6667b8\nLDRB.W          R3, [R5,#-0xC]!                                        ; +0x170, 0x6667bc\nVMOV            S14, R3                                                ; +0x174, 0x6667c0\nMOVS            R3, #0                                                 ; +0x178, 0x6667c4\nVCVT.F32.S32    S14, S14                                               ; +0x17a, 0x6667c6\nVCVT.F32.S32    S16, S16                                               ; +0x17e, 0x6667ca\nVDIV.F32        S17, S17, S15                                          ; +0x182, 0x6667ce\nVDIV.F32        S16, S16, S15                                          ; +0x186, 0x6667d2\nVDIV.F32        S15, S14, S15                                          ; +0x18a, 0x6667d6\nVMOV            R1, S15                                                ; +0x18e, 0x6667da\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x192, 0x6667de\nMOV             R0, R4                                                 ; +0x196, 0x6667e2\nVMOV            R1, S17                                                ; +0x198, 0x6667e4\nMOVS            R2, #0x24 ; '$'                                        ; +0x19c, 0x6667e8\nMOVS            R3, #0                                                 ; +0x19e, 0x6667ea\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x1a0, 0x6667ec\nMOVS            R3, #0                                                 ; +0x1a4, 0x6667f0\nMOVS            R2, #0x26 ; '&'                                        ; +0x1a6, 0x6667f2\nMOV             R0, R4                                                 ; +0x1a8, 0x6667f4\nVMOV            R1, S16                                                ; +0x1aa, 0x6667f6\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x1ae, 0x6667fa\nMOV             R0, R4                                                 ; +0x1b2, 0x6667fe\nMOVS            R1, #0x22 ; '\"'                                        ; +0x1b4, 0x666800\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x1b6, 0x666802\nMOV             R0, R4                                                 ; +0x1ba, 0x666806\nMOVS            R1, #0x24 ; '$'                                        ; +0x1bc, 0x666808\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x1be, 0x66680a\nMOV             R0, R4                                                 ; +0x1c2, 0x66680e\nMOVS            R1, #0x26 ; '&'                                        ; +0x1c4, 0x666810\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x1c6, 0x666812\nMOV             R0, R4                                                 ; +0x1ca, 0x666816\nMOVS            R1, #0x22 ; '\"'                                        ; +0x1cc, 0x666818\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x1ce, 0x66681a\nMOV             R0, R4                                                 ; +0x1d2, 0x66681e\nMOVS            R1, #0x24 ; '$'                                        ; +0x1d4, 0x666820\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x1d6, 0x666822\nMOV             R0, R4                                                 ; +0x1da, 0x666826\nMOVS            R1, #0x26 ; '&'                                        ; +0x1dc, 0x666828\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x1de, 0x66682a\nLDR.W           R0, [R4,#0x2A0]                                        ; +0x1e2, 0x66682e\nMOV             R1, R5                                                 ; +0x1e6, 0x666832\nLDR             R3, [R0]                                               ; +0x1e8, 0x666834\nLDR.W           R3, [R3,#0x1E0]                                        ; +0x1ea, 0x666836\nBLX             R3                                                     ; +0x1ee, 0x66683a\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x1f0, 0x66683c\nLDR             R3, [R6]                                               ; +0x1f2, 0x66683e\nCMP             R2, R3                                                 ; +0x1f4, 0x666840\nBEQ             loc_666848                                             ; +0x1f6, 0x666842\nBLX             __stack_chk_fail                                       ; +0x1f8, 0x666844\nADD             SP, SP, #0x10                                          ; +0x1fc, 0x666848\nVPOP            {D8}                                                   ; +0x1fe, 0x66684a\nPOP             {R4-R6,PC}                                             ; +0x202, 0x66684e", "xrefs": ["`non-virtual thunk to'CreateParticlePopup::colorSelectClosed @ 0x66685c"], "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"}