{"type": "func", "start": 11537024, "end": 11537740, "name": "CreateParticlePopup::colorSelectClosed", "pseudocode": "// \n// CreateParticlePopup::colorSelectClosed from 0xb00a80 to 0xb00d4c (716 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'CreateParticlePopup::colorSelectClosed @ 0xb00d54\n// > <???> @ 0x9dba0\n// > <???> @ 0x14b0330\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:20 +0000\n// \n\n__int64 __fastcall CreateParticlePopup::colorSelectClosed(cocos2d::CCArray **this, cocos2d::CCNode *a2)\n{\n  int v3; // w0\n  long double v4; // q0\n  unsigned __int8 v5; // w1\n  __int64 v7; // x0\n  void (__fastcall *v8)(__int64, __int16 *); // x4\n  long double v9; // q0\n  long double v10; // q0\n  long double v11; // q0\n  long double v12; // q0\n  __int64 v13; // x0\n  _QWORD *v14; // x21\n  _QWORD *v15; // x0\n  __int64 v16; // x1\n  __int64 v17; // x0\n  _QWORD *v18; // x20\n  _QWORD *v19; // x0\n  __int64 v20; // x1\n  __int16 v22; // [xsp+58h] [xbp+58h] BYREF\n  unsigned __int8 v23; // [xsp+5Ah] [xbp+5Ah]\n  __int16 v24; // [xsp+60h] [xbp+60h] BYREF\n  char v25; // [xsp+62h] [xbp+62h]\n\n  v3 = (*(__int64 (__fastcall **)(cocos2d::CCNode *))(*(_QWORD *)a2 + 64LL))(a2);\n  v5 = *((_BYTE *)a2 + 1114);\n  v22 = *((_WORD *)a2 + 556);\n  v23 = v5;\n  if ( v3 )\n  {\n    if ( v3 == 1 )\n    {\n      *(float *)&v4 = (float)(unsigned __int8)v22 / 255.0;\n      CreateParticlePopup::updateParticleValueForType((__int64)this, 0x1Au, nullptr, v4);\n      *(float *)&v11 = (float)HIBYTE(v22) / 255.0;\n      CreateParticlePopup::updateParticleValueForType((__int64)this, 0x1Cu, nullptr, v11);\n      *(float *)&v12 = (float)v23 / 255.0;\n      CreateParticlePopup::updateParticleValueForType((__int64)this, 0x1Eu, nullptr, v12);\n      CreateParticlePopup::updateInputNodeStringForType((__int64)this, 0x1Au);\n      CreateParticlePopup::updateInputNodeStringForType((__int64)this, 0x1Cu);\n      CreateParticlePopup::updateInputNodeStringForType((__int64)this, 0x1Eu);\n      CreateParticlePopup::updateSliderForType(this, 0x1Au);\n      CreateParticlePopup::updateSliderForType(this, 0x1Cu);\n      CreateParticlePopup::updateSliderForType(this, 0x1Eu);\n      (*(void (__fastcall **)(_QWORD, __int16 *))(*(_QWORD *)*(this + 118) + 960LL))(*(this + 118), &v22);\n      v13 = (__int64)*(this + 89);\n      v14 = (_QWORD *)(v13 + 708);\n      v15 = (_QWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 1352LL))(v13);\n      v16 = v15[1];\n      *v14 = *v15;\n      v14[1] = v16;\n      v17 = (__int64)*(this + 89);\n      v18 = (_QWORD *)(v17 + 724);\n      v19 = (_QWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 1384LL))(v17);\n      v20 = v19[1];\n      *v18 = *v19;\n      v18[1] = v20;\n    }\n    else if ( v3 == 2 )\n    {\n      *(float *)&v4 = (float)(unsigned __int8)v22 / 255.0;\n      CreateParticlePopup::updateParticleValueForType((__int64)this, 0x22u, nullptr, v4);\n      *(float *)&v9 = (float)HIBYTE(v22) / 255.0;\n      CreateParticlePopup::updateParticleValueForType((__int64)this, 0x24u, nullptr, v9);\n      *(float *)&v10 = (float)v23 / 255.0;\n      CreateParticlePopup::updateParticleValueForType((__int64)this, 0x26u, nullptr, v10);\n      CreateParticlePopup::updateInputNodeStringForType((__int64)this, 0x22u);\n      CreateParticlePopup::updateInputNodeStringForType((__int64)this, 0x24u);\n      CreateParticlePopup::updateInputNodeStringForType((__int64)this, 0x26u);\n      CreateParticlePopup::updateSliderForType(this, 0x22u);\n      CreateParticlePopup::updateSliderForType(this, 0x24u);\n      CreateParticlePopup::updateSliderForType(this, 0x26u);\n      (*(void (__fastcall **)(_QWORD, __int16 *))(*(_QWORD *)*(this + 119) + 960LL))(*(this + 119), &v22);\n    }\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD, __int16 *))(*(_QWORD *)*(this + 99) + 1216LL))(*(this + 99), &v22);\n    (*(void (__fastcall **)(_QWORD, __int16 *))(*(_QWORD *)*(this + 117) + 960LL))(*(this + 117), &v22);\n    v7 = (__int64)*(this + 123);\n    v8 = *(void (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v7 + 1072LL);\n    v25 = ~v23;\n    v24 = ~v22;\n    v8(v7, &v24);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; CreateParticlePopup::colorSelectClosed from 0xb00a80 to 0xb00d4c (716 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'CreateParticlePopup::colorSelectClosed @ 0xb00d54\n; > <???> @ 0x9dba0\n; > <???> @ 0x14b0330\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:20 +0000\n; \nSTP             X29, X30, [SP,#var_70]!                                ; +0x0, 0xb00a80\nMOV             X29, SP                                                ; +0x4, 0xb00a84\nSTP             D8, D9, [SP,#0x70+var_48]                              ; +0x8, 0xb00a88\nSTP             X19, X20, [SP,#0x70+var_60]                            ; +0xc, 0xb00a8c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0xb00a90\nSTR             X21, [SP,#0x70+var_50]                                 ; +0x14, 0xb00a94\nSTR             X1, [X29,#0x70+var_28]                                 ; +0x18, 0xb00a98\nMOV             X20, X0                                                ; +0x1c, 0xb00a9c\nMOV             X0, X1                                                 ; +0x20, 0xb00aa0\nADD             X21, X29, #0x70+var_18                                 ; +0x24, 0xb00aa4\nLDR             X2, [X1]                                               ; +0x28, 0xb00aa8\nLDR             X3, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x2c, 0xb00aac\nLDR             X2, [X2,#0x40]                                         ; +0x30, 0xb00ab0\nLDR             X3, [X3]                                               ; +0x34, 0xb00ab4\nSTR             X3, [X29,#0x70+var_8]                                  ; +0x38, 0xb00ab8\nBLR             X2                                                     ; +0x3c, 0xb00abc\nLDR             X1, [X29,#0x70+var_28]                                 ; +0x40, 0xb00ac0\nLDRH            W2, [X1,#0x458]                                        ; +0x44, 0xb00ac4\nLDRB            W1, [X1,#0x45A]                                        ; +0x48, 0xb00ac8\nSTRH            W2, [X29,#0x70+var_18]                                 ; +0x4c, 0xb00acc\nSTRB            W1, [X29,#0x70+var_16]                                 ; +0x50, 0xb00ad0\nCBZ             W0, loc_B00B10                                         ; +0x54, 0xb00ad4\nCMP             W0, #1                                                 ; +0x58, 0xb00ad8\nB.EQ            loc_B00C44                                             ; +0x5c, 0xb00adc\nCMP             W0, #2                                                 ; +0x60, 0xb00ae0\nB.EQ            loc_B00B80                                             ; +0x64, 0xb00ae4\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x68, 0xb00ae8\nLDR             X1, [X29,#0x70+var_8]                                  ; +0x6c, 0xb00aec\nLDR             X0, [X19]                                              ; +0x70, 0xb00af0\nCMP             X1, X0                                                 ; +0x74, 0xb00af4\nB.NE            loc_B00D48                                             ; +0x78, 0xb00af8\nLDP             X19, X20, [SP,#0x70+var_60]                            ; +0x7c, 0xb00afc\nLDP             D8, D9, [SP,#0x70+var_48]                              ; +0x80, 0xb00b00\nLDR             X21, [SP,#0x70+var_50]                                 ; +0x84, 0xb00b04\nLDP             X29, X30, [SP+0x70+var_70],#0x70                       ; +0x88, 0xb00b08\nRET                                                                    ; +0x8c, 0xb00b0c\nLDR             X2, [X20,#0x318]                                       ; +0x90, 0xb00b10\nMOV             X1, X21                                                ; +0x94, 0xb00b14\nMOV             X0, X2                                                 ; +0x98, 0xb00b18\nLDR             X2, [X2]                                               ; +0x9c, 0xb00b1c\nLDR             X2, [X2,#0x4C0]                                        ; +0xa0, 0xb00b20\nBLR             X2                                                     ; +0xa4, 0xb00b24\nLDR             X2, [X20,#0x3A8]                                       ; +0xa8, 0xb00b28\nMOV             X1, X21                                                ; +0xac, 0xb00b2c\nMOV             X0, X2                                                 ; +0xb0, 0xb00b30\nLDR             X2, [X2]                                               ; +0xb4, 0xb00b34\nLDR             X2, [X2,#0x3C0]                                        ; +0xb8, 0xb00b38\nBLR             X2                                                     ; +0xbc, 0xb00b3c\nLDR             X2, [X20,#0x3D8]                                       ; +0xc0, 0xb00b40\nADD             X1, X29, #0x70+var_10                                  ; +0xc4, 0xb00b44\nLDRB            W4, [X29,#0x70+var_18+1]                               ; +0xc8, 0xb00b48\nLDRB            W3, [X29,#0x70+var_16]                                 ; +0xcc, 0xb00b4c\nMOV             X0, X2                                                 ; +0xd0, 0xb00b50\nLDR             X5, [X2]                                               ; +0xd4, 0xb00b54\nMVN             W4, W4                                                 ; +0xd8, 0xb00b58\nLDRB            W2, [X29,#0x70+var_18]                                 ; +0xdc, 0xb00b5c\nMVN             W3, W3                                                 ; +0xe0, 0xb00b60\nSTRB            W4, [X29,#0x70+var_10+1]                               ; +0xe4, 0xb00b64\nLDR             X4, [X5,#0x430]                                        ; +0xe8, 0xb00b68\nMVN             W2, W2                                                 ; +0xec, 0xb00b6c\nSTRB            W3, [X29,#0x70+var_E]                                  ; +0xf0, 0xb00b70\nSTRB            W2, [X29,#0x70+var_10]                                 ; +0xf4, 0xb00b74\nBLR             X4                                                     ; +0xf8, 0xb00b78\nB               loc_B00AE8                                             ; +0xfc, 0xb00b7c\nLDRB            W4, [X29,#0x70+var_18+1]                               ; +0x100, 0xb00b80\nMOV             X0, X20                                                ; +0x104, 0xb00b84\nLDRB            W5, [X29,#0x70+var_18]                                 ; +0x108, 0xb00b88\nMOV             W1, #0x22 ; '\"'                                        ; +0x10c, 0xb00b8c\nLDRB            W3, [X29,#0x70+var_16]                                 ; +0x110, 0xb00b90\nMOV             X2, #0                                                 ; +0x114, 0xb00b94\nSCVTF           S9, W4                                                 ; +0x118, 0xb00b98\nSCVTF           S0, W5                                                 ; +0x11c, 0xb00b9c\nSCVTF           S8, W3                                                 ; +0x120, 0xb00ba0\nLDR             S1, =0x437F0000                                        ; +0x124, 0xb00ba4\nFDIV            S9, S9, S1                                             ; +0x128, 0xb00ba8\nFDIV            S0, S0, S1                                             ; +0x12c, 0xb00bac\nFDIV            S8, S8, S1                                             ; +0x130, 0xb00bb0\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x134, 0xb00bb4\nFMOV            S0, S9                                                 ; +0x138, 0xb00bb8\nMOV             X0, X20                                                ; +0x13c, 0xb00bbc\nMOV             W1, #0x24 ; '$'                                        ; +0x140, 0xb00bc0\nMOV             X2, #0                                                 ; +0x144, 0xb00bc4\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x148, 0xb00bc8\nFMOV            S0, S8                                                 ; +0x14c, 0xb00bcc\nMOV             X2, #0                                                 ; +0x150, 0xb00bd0\nMOV             X0, X20                                                ; +0x154, 0xb00bd4\nMOV             W1, #0x26 ; '&'                                        ; +0x158, 0xb00bd8\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x15c, 0xb00bdc\nMOV             X0, X20                                                ; +0x160, 0xb00be0\nMOV             W1, #0x22 ; '\"'                                        ; +0x164, 0xb00be4\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x168, 0xb00be8\nMOV             X0, X20                                                ; +0x16c, 0xb00bec\nMOV             W1, #0x24 ; '$'                                        ; +0x170, 0xb00bf0\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x174, 0xb00bf4\nMOV             X0, X20                                                ; +0x178, 0xb00bf8\nMOV             W1, #0x26 ; '&'                                        ; +0x17c, 0xb00bfc\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x180, 0xb00c00\nMOV             X0, X20                                                ; +0x184, 0xb00c04\nMOV             W1, #0x22 ; '\"'                                        ; +0x188, 0xb00c08\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x18c, 0xb00c0c\nMOV             X0, X20                                                ; +0x190, 0xb00c10\nMOV             W1, #0x24 ; '$'                                        ; +0x194, 0xb00c14\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x198, 0xb00c18\nMOV             X0, X20                                                ; +0x19c, 0xb00c1c\nMOV             W1, #0x26 ; '&'                                        ; +0x1a0, 0xb00c20\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x1a4, 0xb00c24\nLDR             X2, [X20,#0x3B8]                                       ; +0x1a8, 0xb00c28\nMOV             X1, X21                                                ; +0x1ac, 0xb00c2c\nMOV             X0, X2                                                 ; +0x1b0, 0xb00c30\nLDR             X2, [X2]                                               ; +0x1b4, 0xb00c34\nLDR             X2, [X2,#0x3C0]                                        ; +0x1b8, 0xb00c38\nBLR             X2                                                     ; +0x1bc, 0xb00c3c\nB               loc_B00AE8                                             ; +0x1c0, 0xb00c40\nLDRB            W4, [X29,#0x70+var_18+1]                               ; +0x1c4, 0xb00c44\nMOV             X0, X20                                                ; +0x1c8, 0xb00c48\nLDRB            W5, [X29,#0x70+var_18]                                 ; +0x1cc, 0xb00c4c\nMOV             W1, #0x1A                                              ; +0x1d0, 0xb00c50\nLDRB            W3, [X29,#0x70+var_16]                                 ; +0x1d4, 0xb00c54\nMOV             X2, #0                                                 ; +0x1d8, 0xb00c58\nSCVTF           S9, W4                                                 ; +0x1dc, 0xb00c5c\nSCVTF           S0, W5                                                 ; +0x1e0, 0xb00c60\nSCVTF           S8, W3                                                 ; +0x1e4, 0xb00c64\nLDR             S1, =0x437F0000                                        ; +0x1e8, 0xb00c68\nFDIV            S9, S9, S1                                             ; +0x1ec, 0xb00c6c\nFDIV            S0, S0, S1                                             ; +0x1f0, 0xb00c70\nFDIV            S8, S8, S1                                             ; +0x1f4, 0xb00c74\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x1f8, 0xb00c78\nFMOV            S0, S9                                                 ; +0x1fc, 0xb00c7c\nMOV             X0, X20                                                ; +0x200, 0xb00c80\nMOV             W1, #0x1C                                              ; +0x204, 0xb00c84\nMOV             X2, #0                                                 ; +0x208, 0xb00c88\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x20c, 0xb00c8c\nFMOV            S0, S8                                                 ; +0x210, 0xb00c90\nMOV             X2, #0                                                 ; +0x214, 0xb00c94\nMOV             X0, X20                                                ; +0x218, 0xb00c98\nMOV             W1, #0x1E                                              ; +0x21c, 0xb00c9c\nBL              _ZN19CreateParticlePopup26updateParticleValueForTypeEf15gjParticleValuePN7cocos2d20CCParticleSystemQuadE; CreateParticlePopup::updateParticleValueForType(float,gjParticleValue,cocos2d::CCParticleSystemQuad *) ; +0x220, 0xb00ca0\nMOV             X0, X20                                                ; +0x224, 0xb00ca4\nMOV             W1, #0x1A                                              ; +0x228, 0xb00ca8\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x22c, 0xb00cac\nMOV             X0, X20                                                ; +0x230, 0xb00cb0\nMOV             W1, #0x1C                                              ; +0x234, 0xb00cb4\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x238, 0xb00cb8\nMOV             X0, X20                                                ; +0x23c, 0xb00cbc\nMOV             W1, #0x1E                                              ; +0x240, 0xb00cc0\nBL              _ZN19CreateParticlePopup28updateInputNodeStringForTypeE15gjParticleValue; CreateParticlePopup::updateInputNodeStringForType(gjParticleValue) ; +0x244, 0xb00cc4\nMOV             X0, X20                                                ; +0x248, 0xb00cc8\nMOV             W1, #0x1A                                              ; +0x24c, 0xb00ccc\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x250, 0xb00cd0\nMOV             X0, X20                                                ; +0x254, 0xb00cd4\nMOV             W1, #0x1C                                              ; +0x258, 0xb00cd8\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x25c, 0xb00cdc\nMOV             X0, X20                                                ; +0x260, 0xb00ce0\nMOV             W1, #0x1E                                              ; +0x264, 0xb00ce4\nBL              _ZN19CreateParticlePopup19updateSliderForTypeE15gjParticleValue; CreateParticlePopup::updateSliderForType(gjParticleValue) ; +0x268, 0xb00ce8\nLDR             X2, [X20,#0x3B0]                                       ; +0x26c, 0xb00cec\nMOV             X1, X21                                                ; +0x270, 0xb00cf0\nMOV             X0, X2                                                 ; +0x274, 0xb00cf4\nLDR             X2, [X2]                                               ; +0x278, 0xb00cf8\nLDR             X2, [X2,#0x3C0]                                        ; +0x27c, 0xb00cfc\nBLR             X2                                                     ; +0x280, 0xb00d00\nLDR             X21, [X20,#0x2C8]                                      ; +0x284, 0xb00d04\nMOV             X0, X21                                                ; +0x288, 0xb00d08\nLDR             X1, [X21]                                              ; +0x28c, 0xb00d0c\nADD             X21, X21, #0x2C4                                       ; +0x290, 0xb00d10\nLDR             X1, [X1,#0x548]                                        ; +0x294, 0xb00d14\nBLR             X1                                                     ; +0x298, 0xb00d18\nLDP             X0, X1, [X0]                                           ; +0x29c, 0xb00d1c\nSTP             X0, X1, [X21]                                          ; +0x2a0, 0xb00d20\nLDR             X20, [X20,#0x2C8]                                      ; +0x2a4, 0xb00d24\nMOV             X0, X20                                                ; +0x2a8, 0xb00d28\nLDR             X1, [X20]                                              ; +0x2ac, 0xb00d2c\nADD             X20, X20, #0x2D4                                       ; +0x2b0, 0xb00d30\nLDR             X1, [X1,#0x568]                                        ; +0x2b4, 0xb00d34\nBLR             X1                                                     ; +0x2b8, 0xb00d38\nLDP             X0, X1, [X0]                                           ; +0x2bc, 0xb00d3c\nSTP             X0, X1, [X20]                                          ; +0x2c0, 0xb00d40\nB               loc_B00AE8                                             ; +0x2c4, 0xb00d44\nBL              .__stack_chk_fail                                      ; +0x2c8, 0xb00d48", "xrefs": ["`non-virtual thunk to'CreateParticlePopup::colorSelectClosed @ 0xb00d54", "<???> @ 0x9dba0", "<???> @ 0x14b0330"], "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"}