{"type": "func", "start": 6442491968, "end": 6442492686, "name": "cocos2d::extension::CCControlSlider::initWithSprites", "pseudocode": "// \n// cocos2d::extension::CCControlSlider::initWithSprites from 0x18000a040 to 0x18000a30e (718 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x180028508\n// > <???> @ 0x1800302ec\n// > <???> @ 0x1800302fc\n// > <???> @ 0x180032408\n// > <???> @ 0x18004ba2c\n// \n// This function is hookable on this platform (idp: pc, 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 12:15:37 +0000\n// \n\nchar __fastcall cocos2d::extension::CCControlSlider::initWithSprites(\n        cocos2d::extension::CCControlSlider *this,\n        struct cocos2d::CCSprite *a2,\n        struct cocos2d::CCSprite *a3,\n        struct cocos2d::CCSprite *a4)\n{\n  __int64 v8; // rdx\n  cocos2d::CCObject *v9; // rcx\n  cocos2d::CCObject *v10; // rcx\n  cocos2d::CCObject *v11; // rcx\n  __int64 v12; // rbx\n  __int64 v13; // rax\n  __int64 v14; // rbx\n  __int64 v15; // rax\n  __int64 *v16; // rdi\n  __int64 v17; // rbx\n  __int64 v18; // rax\n  float *v19; // rbx\n  __int64 *v20; // rsi\n  __int64 v21; // rdi\n  __int64 v22; // rax\n  __int64 v23; // rax\n  __int64 *v24; // rdi\n  __int64 v25; // rbx\n  __int64 v26; // rax\n  __int64 *v27; // rdi\n  __int64 v28; // rbx\n  __int64 v29; // rax\n  __int64 v30; // rax\n  __int64 *v31; // rdi\n  __int64 v32; // rbx\n  __int64 v33; // rax\n  __int64 v34; // rax\n  __int64 v35; // rax\n  _BYTE v37[16]; // [rsp+20h] [rbp-48h] BYREF\n  _BYTE v38[8]; // [rsp+30h] [rbp-38h] BYREF\n  float v39; // [rsp+38h] [rbp-30h]\n  float v40; // [rsp+3Ch] [rbp-2Ch]\n  _BYTE v41[16]; // [rsp+40h] [rbp-28h] BYREF\n\n  if ( !cocos2d::extension::CCControl::init(this) )\n    return 0;\n  (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, _QWORD))(*(_QWORD *)this + 432LL))(this, 0);\n  LOBYTE(v8) = 1;\n  (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, __int64))(*(_QWORD *)this + 920LL))(this, v8);\n  if ( *((struct cocos2d::CCSprite **)this + 64) != a2 )\n  {\n    if ( a2 )\n      cocos2d::CCObject::retain(a2);\n    v9 = *((cocos2d::CCObject **)this + 64);\n    if ( v9 )\n      cocos2d::CCObject::release(v9);\n    *((_QWORD *)this + 64) = a2;\n  }\n  if ( *((struct cocos2d::CCSprite **)this + 63) != a3 )\n  {\n    if ( a3 )\n      cocos2d::CCObject::retain(a3);\n    v10 = *((cocos2d::CCObject **)this + 63);\n    if ( v10 )\n      cocos2d::CCObject::release(v10);\n    *((_QWORD *)this + 63) = a3;\n  }\n  if ( *((struct cocos2d::CCSprite **)this + 62) != a4 )\n  {\n    if ( a4 )\n      cocos2d::CCObject::retain(a4);\n    v11 = *((cocos2d::CCObject **)this + 62);\n    if ( v11 )\n      cocos2d::CCObject::release(v11);\n    *((_QWORD *)this + 62) = a4;\n  }\n  v12 = cocos2d::CCNode::boundingBox(a4, v37);\n  v13 = cocos2d::CCNode::boundingBox(a2, v41);\n  cocos2d::extension::CCControlUtils::CCRectUnion(v38, v13, v12);\n  v14 = *(_QWORD *)this;\n  v15 = cocos2d::CCSize::CCSize((cocos2d::CCSize *)v37, v39, v40);\n  (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, __int64))(v14 + 312))(this, v15);\n  v16 = *((__int64 **)this + 64);\n  v17 = *v16;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 0.5, 0.5);\n  (*(void (__fastcall **)(__int64 *, __int64))(v17 + 288))(v16, v18);\n  v19 = (float *)(*(__int64 (__fastcall **)(cocos2d::extension::CCControlSlider *))(*(_QWORD *)this + 320LL))(this);\n  v20 = *((__int64 **)this + 64);\n  v21 = *v20;\n  v22 = (*(__int64 (__fastcall **)(cocos2d::extension::CCControlSlider *))(*(_QWORD *)this + 320LL))(this);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, *v19 * 0.5, *(float *)(v22 + 4) * 0.5);\n  (*(void (__fastcall **)(__int64 *, __int64))(v21 + 184))(v20, v23);\n  (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, _QWORD))(*(_QWORD *)this + 464LL))(\n    this,\n    *((_QWORD *)this + 64));\n  v24 = *((__int64 **)this + 63);\n  v25 = *v24;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 0.0, 0.5);\n  (*(void (__fastcall **)(__int64 *, __int64))(v25 + 288))(v24, v26);\n  v27 = *((__int64 **)this + 63);\n  v28 = *v27;\n  v29 = (*(__int64 (__fastcall **)(cocos2d::extension::CCControlSlider *))(*(_QWORD *)this + 320LL))(this);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 0.0, *(float *)(v29 + 4) * 0.5);\n  (*(void (__fastcall **)(__int64 *, __int64))(v28 + 184))(v27, v30);\n  (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, _QWORD))(*(_QWORD *)this + 464LL))(\n    this,\n    *((_QWORD *)this + 63));\n  v31 = *((__int64 **)this + 62);\n  v32 = *v31;\n  v33 = (*(__int64 (__fastcall **)(cocos2d::extension::CCControlSlider *))(*(_QWORD *)this + 320LL))(this);\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v37, 0.0, *(float *)(v33 + 4) * 0.5);\n  (*(void (__fastcall **)(__int64 *, __int64))(v32 + 184))(v31, v34);\n  (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *, _QWORD))(*(_QWORD *)this + 464LL))(\n    this,\n    *((_QWORD *)this + 62));\n  v35 = *(_QWORD *)this;\n  *((_DWORD *)this + 119) = 0;\n  *((_DWORD *)this + 120) = 1065353216;\n  (*(void (__fastcall **)(cocos2d::extension::CCControlSlider *))(v35 + 1128))(this);\n  return 1;\n}", "assembly": "; \n; cocos2d::extension::CCControlSlider::initWithSprites from 0x18000a040 to 0x18000a30e (718 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x180028508\n; > <???> @ 0x1800302ec\n; > <???> @ 0x1800302fc\n; > <???> @ 0x180032408\n; > <???> @ 0x18004ba2c\n; \n; This function is hookable on this platform (idp: pc, 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 12:15:37 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18000a040\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18000a045\nmov     [rsp+arg_10], rdi                                              ; +0xa, 0x18000a04a\npush    r14                                                            ; +0xf, 0x18000a04f\nsub     rsp, 60h                                                       ; +0x11, 0x18000a051\nmov     rdi, r9                                                        ; +0x15, 0x18000a055\nmov     rbx, r8                                                        ; +0x18, 0x18000a058\nmov     rsi, rdx                                                       ; +0x1b, 0x18000a05b\nmov     r14, rcx                                                       ; +0x1e, 0x18000a05e\ncall    ?init@CCControl@extension@cocos2d@@UEAA_NXZ; cocos2d::extension::CCControl::init(void) ; +0x21, 0x18000a061\ntest    al, al                                                         ; +0x26, 0x18000a066\njz      loc_18000A2F3                                                  ; +0x28, 0x18000a068\nmov     rax, [r14]                                                     ; +0x2e, 0x18000a06e\nxor     edx, edx                                                       ; +0x31, 0x18000a071\nmov     rcx, r14                                                       ; +0x33, 0x18000a073\nmovaps  [rsp+68h+var_18], xmm6                                         ; +0x36, 0x18000a076\ncall    qword ptr [rax+1B0h]                                           ; +0x3b, 0x18000a07b\nmov     rax, [r14]                                                     ; +0x41, 0x18000a081\nmov     dl, 1                                                          ; +0x44, 0x18000a084\nmov     rcx, r14                                                       ; +0x46, 0x18000a086\ncall    qword ptr [rax+398h]                                           ; +0x49, 0x18000a089\ncmp     [r14+200h], rsi                                                ; +0x4f, 0x18000a08f\njz      short loc_18000A0BF                                            ; +0x56, 0x18000a096\ntest    rsi, rsi                                                       ; +0x58, 0x18000a098\njz      short loc_18000A0A6                                            ; +0x5b, 0x18000a09b\nmov     rcx, rsi                                                       ; +0x5d, 0x18000a09d\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x60, 0x18000a0a0\nmov     rcx, [r14+200h]                                                ; +0x66, 0x18000a0a6\ntest    rcx, rcx                                                       ; +0x6d, 0x18000a0ad\njz      short loc_18000A0B8                                            ; +0x70, 0x18000a0b0\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x72, 0x18000a0b2\nmov     [r14+200h], rsi                                                ; +0x78, 0x18000a0b8\ncmp     [r14+1F8h], rbx                                                ; +0x7f, 0x18000a0bf\njz      short loc_18000A0EF                                            ; +0x86, 0x18000a0c6\ntest    rbx, rbx                                                       ; +0x88, 0x18000a0c8\njz      short loc_18000A0D6                                            ; +0x8b, 0x18000a0cb\nmov     rcx, rbx                                                       ; +0x8d, 0x18000a0cd\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x90, 0x18000a0d0\nmov     rcx, [r14+1F8h]                                                ; +0x96, 0x18000a0d6\ntest    rcx, rcx                                                       ; +0x9d, 0x18000a0dd\njz      short loc_18000A0E8                                            ; +0xa0, 0x18000a0e0\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xa2, 0x18000a0e2\nmov     [r14+1F8h], rbx                                                ; +0xa8, 0x18000a0e8\ncmp     [r14+1F0h], rdi                                                ; +0xaf, 0x18000a0ef\njz      short loc_18000A11F                                            ; +0xb6, 0x18000a0f6\ntest    rdi, rdi                                                       ; +0xb8, 0x18000a0f8\njz      short loc_18000A106                                            ; +0xbb, 0x18000a0fb\nmov     rcx, rdi                                                       ; +0xbd, 0x18000a0fd\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0xc0, 0x18000a100\nmov     rcx, [r14+1F0h]                                                ; +0xc6, 0x18000a106\ntest    rcx, rcx                                                       ; +0xcd, 0x18000a10d\njz      short loc_18000A118                                            ; +0xd0, 0x18000a110\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xd2, 0x18000a112\nmov     [r14+1F0h], rdi                                                ; +0xd8, 0x18000a118\nlea     rdx, [rsp+68h+var_48]                                          ; +0xdf, 0x18000a11f\nmov     rcx, rdi                                                       ; +0xe4, 0x18000a124\ncall    cs:?boundingBox@CCNode@cocos2d@@QEAA?AVCCRect@2@XZ; cocos2d::CCNode::boundingBox(void) ; +0xe7, 0x18000a127\nlea     rdx, [rsp+68h+var_28]                                          ; +0xed, 0x18000a12d\nmov     rcx, rsi                                                       ; +0xf2, 0x18000a132\nmov     rbx, rax                                                       ; +0xf5, 0x18000a135\ncall    cs:?boundingBox@CCNode@cocos2d@@QEAA?AVCCRect@2@XZ; cocos2d::CCNode::boundingBox(void) ; +0xf8, 0x18000a138\nmov     r8, rbx                                                        ; +0xfe, 0x18000a13e\nlea     rcx, [rsp+68h+var_38]                                          ; +0x101, 0x18000a141\nmov     rdx, rax                                                       ; +0x106, 0x18000a146\ncall    ?CCRectUnion@CCControlUtils@extension@cocos2d@@SA?AVCCRect@3@AEBV43@0@Z; cocos2d::extension::CCControlUtils::CCRectUnion(cocos2d::CCRect const &,cocos2d::CCRect const &) ; +0x109, 0x18000a149\nmovss   xmm2, [rsp+68h+var_2C]                                         ; +0x10e, 0x18000a14e\nlea     rcx, [rsp+68h+var_48]                                          ; +0x114, 0x18000a154\nmovss   xmm1, [rsp+68h+var_30]                                         ; +0x119, 0x18000a159\nmov     rbx, [r14]                                                     ; +0x11f, 0x18000a15f\ncall    cs:??0CCSize@cocos2d@@QEAA@MM@Z; cocos2d::CCSize::CCSize(float,float) ; +0x122, 0x18000a162\nmov     rdx, rax                                                       ; +0x128, 0x18000a168\nmov     rcx, r14                                                       ; +0x12b, 0x18000a16b\ncall    qword ptr [rbx+138h]                                           ; +0x12e, 0x18000a16e\nmov     rdi, [r14+200h]                                                ; +0x134, 0x18000a174\nlea     rcx, [rsp+68h+var_48]                                          ; +0x13b, 0x18000a17b\nmovss   xmm6, cs:dword_18002BBD8                                       ; +0x140, 0x18000a180\nmovaps  xmm2, xmm6                                                     ; +0x148, 0x18000a188\nmovaps  xmm1, xmm6                                                     ; +0x14b, 0x18000a18b\nmov     rbx, [rdi]                                                     ; +0x14e, 0x18000a18e\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x151, 0x18000a191\nmov     rdx, rax                                                       ; +0x157, 0x18000a197\nmov     rcx, rdi                                                       ; +0x15a, 0x18000a19a\ncall    qword ptr [rbx+120h]                                           ; +0x15d, 0x18000a19d\nmov     rax, [r14]                                                     ; +0x163, 0x18000a1a3\nmov     rcx, r14                                                       ; +0x166, 0x18000a1a6\ncall    qword ptr [rax+140h]                                           ; +0x169, 0x18000a1a9\nmov     rcx, [r14]                                                     ; +0x16f, 0x18000a1af\nmov     rbx, rax                                                       ; +0x172, 0x18000a1b2\nmov     rsi, [r14+200h]                                                ; +0x175, 0x18000a1b5\nmov     rdx, [rcx+140h]                                                ; +0x17c, 0x18000a1bc\nmov     rcx, r14                                                       ; +0x183, 0x18000a1c3\nmov     rdi, [rsi]                                                     ; +0x186, 0x18000a1c6\ncall    rdx                                                            ; +0x189, 0x18000a1c9\nmovss   xmm1, dword ptr [rbx]                                          ; +0x18b, 0x18000a1cb\nlea     rcx, [rsp+68h+var_48]                                          ; +0x18f, 0x18000a1cf\nmulss   xmm1, xmm6                                                     ; +0x194, 0x18000a1d4\nmovss   xmm2, dword ptr [rax+4]                                        ; +0x198, 0x18000a1d8\nmulss   xmm2, xmm6                                                     ; +0x19d, 0x18000a1dd\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1a1, 0x18000a1e1\nmov     rdx, rax                                                       ; +0x1a7, 0x18000a1e7\nmov     rcx, rsi                                                       ; +0x1aa, 0x18000a1ea\ncall    qword ptr [rdi+0B8h]                                           ; +0x1ad, 0x18000a1ed\nmov     rax, [r14]                                                     ; +0x1b3, 0x18000a1f3\nmov     rcx, r14                                                       ; +0x1b6, 0x18000a1f6\nmov     rdx, [r14+200h]                                                ; +0x1b9, 0x18000a1f9\ncall    qword ptr [rax+1D0h]                                           ; +0x1c0, 0x18000a200\nmov     rdi, [r14+1F8h]                                                ; +0x1c6, 0x18000a206\nlea     rcx, [rsp+68h+var_48]                                          ; +0x1cd, 0x18000a20d\nmovaps  xmm2, xmm6                                                     ; +0x1d2, 0x18000a212\nxorps   xmm1, xmm1                                                     ; +0x1d5, 0x18000a215\nmov     rbx, [rdi]                                                     ; +0x1d8, 0x18000a218\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1db, 0x18000a21b\nmov     rdx, rax                                                       ; +0x1e1, 0x18000a221\nmov     rcx, rdi                                                       ; +0x1e4, 0x18000a224\ncall    qword ptr [rbx+120h]                                           ; +0x1e7, 0x18000a227\nmov     rdi, [r14+1F8h]                                                ; +0x1ed, 0x18000a22d\nmov     rcx, r14                                                       ; +0x1f4, 0x18000a234\nmov     rax, [r14]                                                     ; +0x1f7, 0x18000a237\nmov     rbx, [rdi]                                                     ; +0x1fa, 0x18000a23a\ncall    qword ptr [rax+140h]                                           ; +0x1fd, 0x18000a23d\nxorps   xmm1, xmm1                                                     ; +0x203, 0x18000a243\nlea     rcx, [rsp+68h+var_48]                                          ; +0x206, 0x18000a246\nmovss   xmm2, dword ptr [rax+4]                                        ; +0x20b, 0x18000a24b\nmulss   xmm2, xmm6                                                     ; +0x210, 0x18000a250\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x214, 0x18000a254\nmov     rdx, rax                                                       ; +0x21a, 0x18000a25a\nmov     rcx, rdi                                                       ; +0x21d, 0x18000a25d\ncall    qword ptr [rbx+0B8h]                                           ; +0x220, 0x18000a260\nmov     rax, [r14]                                                     ; +0x226, 0x18000a266\nmov     rcx, r14                                                       ; +0x229, 0x18000a269\nmov     rdx, [r14+1F8h]                                                ; +0x22c, 0x18000a26c\ncall    qword ptr [rax+1D0h]                                           ; +0x233, 0x18000a273\nmov     rdi, [r14+1F0h]                                                ; +0x239, 0x18000a279\nmov     rax, [r14]                                                     ; +0x240, 0x18000a280\nmov     rbx, [rdi]                                                     ; +0x243, 0x18000a283\nmov     rcx, r14                                                       ; +0x246, 0x18000a286\ncall    qword ptr [rax+140h]                                           ; +0x249, 0x18000a289\nxorps   xmm1, xmm1                                                     ; +0x24f, 0x18000a28f\nlea     rcx, [rsp+68h+var_48]                                          ; +0x252, 0x18000a292\nmovss   xmm2, dword ptr [rax+4]                                        ; +0x257, 0x18000a297\nmulss   xmm2, xmm6                                                     ; +0x25c, 0x18000a29c\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x260, 0x18000a2a0\nmov     rdx, rax                                                       ; +0x266, 0x18000a2a6\nmov     rcx, rdi                                                       ; +0x269, 0x18000a2a9\ncall    qword ptr [rbx+0B8h]                                           ; +0x26c, 0x18000a2ac\nmov     rax, [r14]                                                     ; +0x272, 0x18000a2b2\nmov     rcx, r14                                                       ; +0x275, 0x18000a2b5\nmov     rdx, [r14+1F0h]                                                ; +0x278, 0x18000a2b8\ncall    qword ptr [rax+1D0h]                                           ; +0x27f, 0x18000a2bf\nmov     rax, [r14]                                                     ; +0x285, 0x18000a2c5\nxorps   xmm1, xmm1                                                     ; +0x288, 0x18000a2c8\nmov     rcx, r14                                                       ; +0x28b, 0x18000a2cb\nmov     dword ptr [r14+1DCh], 0                                        ; +0x28e, 0x18000a2ce\nmov     dword ptr [r14+1E0h], 3F800000h                                ; +0x299, 0x18000a2d9\ncall    qword ptr [rax+468h]                                           ; +0x2a4, 0x18000a2e4\nmovaps  xmm6, [rsp+68h+var_18]                                         ; +0x2aa, 0x18000a2ea\nmov     al, 1                                                          ; +0x2af, 0x18000a2ef\njmp     short loc_18000A2F5                                            ; +0x2b1, 0x18000a2f1\nxor     al, al                                                         ; +0x2b3, 0x18000a2f3\nmov     rbx, [rsp+68h+arg_0]                                           ; +0x2b5, 0x18000a2f5\nmov     rsi, [rsp+68h+arg_8]                                           ; +0x2ba, 0x18000a2fa\nmov     rdi, [rsp+68h+arg_10]                                          ; +0x2bf, 0x18000a2ff\nadd     rsp, 60h                                                       ; +0x2c7, 0x18000a307\npop     r14                                                            ; +0x2cb, 0x18000a30b\nretn                                                                   ; +0x2cd, 0x18000a30d", "xrefs": ["<???> @ 0x180028508", "<???> @ 0x1800302ec", "<???> @ 0x1800302fc", "<???> @ 0x180032408", "<???> @ 0x18004ba2c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}