{"type": "func", "start": 6442486288, "end": 6442486624, "name": "cocos2d::extension::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite", "pseudocode": "// \n// cocos2d::extension::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite from 0x180008a10 to 0x180008b60 (336 bytes)\n// \n// 5 xrefs:\n// > cocos2d::extension::CCControlPotentiometer::create @ 0x1800089d2\n// > <???> @ 0x180030154\n// > <???> @ 0x180030164\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b8a0\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::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite(\n        cocos2d::extension::CCControlPotentiometer *this,\n        struct cocos2d::CCSprite *a2,\n        struct cocos2d::CCProgressTimer *a3,\n        struct cocos2d::CCSprite *a4)\n{\n  __int64 v8; // rdx\n  cocos2d::CCObject *v9; // rcx\n  cocos2d::CCObject *v10; // rcx\n  __int64 v11; // rbx\n  __int64 v12; // rax\n  __int64 v13; // rbx\n  __int64 v14; // rax\n\n  if ( !cocos2d::extension::CCControl::init(this) )\n    return 0;\n  LOBYTE(v8) = 1;\n  (*(void (__fastcall **)(cocos2d::extension::CCControlPotentiometer *, __int64))(*(_QWORD *)this + 920LL))(this, v8);\n  if ( *((struct cocos2d::CCProgressTimer **)this + 60) != a3 )\n  {\n    if ( a3 )\n      cocos2d::CCObject::retain(a3);\n    v9 = *((cocos2d::CCObject **)this + 60);\n    if ( v9 )\n      cocos2d::CCObject::release(v9);\n    *((_QWORD *)this + 60) = a3;\n  }\n  if ( *((struct cocos2d::CCSprite **)this + 59) != a4 )\n  {\n    if ( a4 )\n      cocos2d::CCObject::retain(a4);\n    v10 = *((cocos2d::CCObject **)this + 59);\n    if ( v10 )\n      cocos2d::CCObject::release(v10);\n    *((_QWORD *)this + 59) = a4;\n  }\n  v11 = *(_QWORD *)a4;\n  v12 = (*(__int64 (__fastcall **)(struct cocos2d::CCProgressTimer *))(*(_QWORD *)a3 + 200LL))(a3);\n  (*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v11 + 184))(a4, v12);\n  (*(void (__fastcall **)(cocos2d::extension::CCControlPotentiometer *, struct cocos2d::CCSprite *, __int64))(*(_QWORD *)this + 456LL))(\n    this,\n    a4,\n    2);\n  (*(void (__fastcall **)(cocos2d::extension::CCControlPotentiometer *, struct cocos2d::CCProgressTimer *, __int64))(*(_QWORD *)this + 456LL))(\n    this,\n    a3,\n    1);\n  (*(void (__fastcall **)(cocos2d::extension::CCControlPotentiometer *, struct cocos2d::CCSprite *))(*(_QWORD *)this + 464LL))(\n    this,\n    a2);\n  v13 = *(_QWORD *)this;\n  v14 = (*(__int64 (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)a2 + 320LL))(a2);\n  (*(void (__fastcall **)(cocos2d::extension::CCControlPotentiometer *, __int64))(v13 + 312))(this, v14);\n  *((_DWORD *)this + 125) = 0;\n  *((_DWORD *)this + 126) = 1065353216;\n  cocos2d::extension::CCControlPotentiometer::setValue(this, 0.0);\n  return 1;\n}", "assembly": "; \n; cocos2d::extension::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite from 0x180008a10 to 0x180008b60 (336 bytes)\n; \n; 5 xrefs:\n; > cocos2d::extension::CCControlPotentiometer::create @ 0x1800089d2\n; > <???> @ 0x180030154\n; > <???> @ 0x180030164\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b8a0\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_8], rsi                                               ; +0x0, 0x180008a10\nmov     [rsp+arg_10], rdi                                              ; +0x5, 0x180008a15\nmov     [rsp+arg_18], r14                                              ; +0xa, 0x180008a1a\npush    r15                                                            ; +0xf, 0x180008a1f\nsub     rsp, 20h                                                       ; +0x11, 0x180008a21\nmov     rsi, r9                                                        ; +0x15, 0x180008a25\nmov     r14, r8                                                        ; +0x18, 0x180008a28\nmov     r15, rdx                                                       ; +0x1b, 0x180008a2b\nmov     rdi, rcx                                                       ; +0x1e, 0x180008a2e\ncall    ?init@CCControl@extension@cocos2d@@UEAA_NXZ; cocos2d::extension::CCControl::init(void) ; +0x21, 0x180008a31\ntest    al, al                                                         ; +0x26, 0x180008a36\njz      loc_180008B48                                                  ; +0x28, 0x180008a38\nmov     rax, [rdi]                                                     ; +0x2e, 0x180008a3e\nmov     dl, 1                                                          ; +0x31, 0x180008a41\nmov     rcx, rdi                                                       ; +0x33, 0x180008a43\nmov     [rsp+28h+arg_0], rbx                                           ; +0x36, 0x180008a46\ncall    qword ptr [rax+398h]                                           ; +0x3b, 0x180008a4b\ncmp     [rdi+1E0h], r14                                                ; +0x41, 0x180008a51\njz      short loc_180008A81                                            ; +0x48, 0x180008a58\ntest    r14, r14                                                       ; +0x4a, 0x180008a5a\njz      short loc_180008A68                                            ; +0x4d, 0x180008a5d\nmov     rcx, r14                                                       ; +0x4f, 0x180008a5f\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x52, 0x180008a62\nmov     rcx, [rdi+1E0h]                                                ; +0x58, 0x180008a68\ntest    rcx, rcx                                                       ; +0x5f, 0x180008a6f\njz      short loc_180008A7A                                            ; +0x62, 0x180008a72\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x64, 0x180008a74\nmov     [rdi+1E0h], r14                                                ; +0x6a, 0x180008a7a\ncmp     [rdi+1D8h], rsi                                                ; +0x71, 0x180008a81\njz      short loc_180008AB1                                            ; +0x78, 0x180008a88\ntest    rsi, rsi                                                       ; +0x7a, 0x180008a8a\njz      short loc_180008A98                                            ; +0x7d, 0x180008a8d\nmov     rcx, rsi                                                       ; +0x7f, 0x180008a8f\ncall    cs:?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x82, 0x180008a92\nmov     rcx, [rdi+1D8h]                                                ; +0x88, 0x180008a98\ntest    rcx, rcx                                                       ; +0x8f, 0x180008a9f\njz      short loc_180008AAA                                            ; +0x92, 0x180008aa2\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x94, 0x180008aa4\nmov     [rdi+1D8h], rsi                                                ; +0x9a, 0x180008aaa\nmov     rax, [r14]                                                     ; +0xa1, 0x180008ab1\nmov     rcx, r14                                                       ; +0xa4, 0x180008ab4\nmov     rbx, [rsi]                                                     ; +0xa7, 0x180008ab7\ncall    qword ptr [rax+0C8h]                                           ; +0xaa, 0x180008aba\nmov     rdx, rax                                                       ; +0xb0, 0x180008ac0\nmov     rcx, rsi                                                       ; +0xb3, 0x180008ac3\ncall    qword ptr [rbx+0B8h]                                           ; +0xb6, 0x180008ac6\nmov     rax, [rdi]                                                     ; +0xbc, 0x180008acc\nmov     r8d, 2                                                         ; +0xbf, 0x180008acf\nmov     rdx, rsi                                                       ; +0xc5, 0x180008ad5\nmov     rcx, rdi                                                       ; +0xc8, 0x180008ad8\ncall    qword ptr [rax+1C8h]                                           ; +0xcb, 0x180008adb\nmov     rax, [rdi]                                                     ; +0xd1, 0x180008ae1\nmov     r8d, 1                                                         ; +0xd4, 0x180008ae4\nmov     rdx, r14                                                       ; +0xda, 0x180008aea\nmov     rcx, rdi                                                       ; +0xdd, 0x180008aed\ncall    qword ptr [rax+1C8h]                                           ; +0xe0, 0x180008af0\nmov     rax, [rdi]                                                     ; +0xe6, 0x180008af6\nmov     rdx, r15                                                       ; +0xe9, 0x180008af9\nmov     rcx, rdi                                                       ; +0xec, 0x180008afc\ncall    qword ptr [rax+1D0h]                                           ; +0xef, 0x180008aff\nmov     rax, [r15]                                                     ; +0xf5, 0x180008b05\nmov     rcx, r15                                                       ; +0xf8, 0x180008b08\nmov     rbx, [rdi]                                                     ; +0xfb, 0x180008b0b\ncall    qword ptr [rax+140h]                                           ; +0xfe, 0x180008b0e\nmov     rdx, rax                                                       ; +0x104, 0x180008b14\nmov     rcx, rdi                                                       ; +0x107, 0x180008b17\ncall    qword ptr [rbx+138h]                                           ; +0x10a, 0x180008b1a\nxorps   xmm1, xmm1; float                                              ; +0x110, 0x180008b20\nmov     dword ptr [rdi+1F4h], 0                                        ; +0x113, 0x180008b23\nmov     rcx, rdi; this                                                 ; +0x11d, 0x180008b2d\nmov     dword ptr [rdi+1F8h], 3F800000h                                ; +0x120, 0x180008b30\ncall    ?setValue@CCControlPotentiometer@extension@cocos2d@@QEAAXM@Z; cocos2d::extension::CCControlPotentiometer::setValue(float) ; +0x12a, 0x180008b3a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x12f, 0x180008b3f\nmov     al, 1                                                          ; +0x134, 0x180008b44\njmp     short loc_180008B4A                                            ; +0x136, 0x180008b46\nxor     al, al                                                         ; +0x138, 0x180008b48\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x13a, 0x180008b4a\nmov     rdi, [rsp+28h+arg_10]                                          ; +0x13f, 0x180008b4f\nmov     r14, [rsp+28h+arg_18]                                          ; +0x144, 0x180008b54\nadd     rsp, 20h                                                       ; +0x149, 0x180008b59\npop     r15                                                            ; +0x14d, 0x180008b5d\nretn                                                                   ; +0x14f, 0x180008b5f", "xrefs": ["cocos2d::extension::CCControlPotentiometer::create @ 0x1800089d2", "<???> @ 0x180030154", "<???> @ 0x180030164", "<???> @ 0x180032408", "<???> @ 0x18004b8a0"], "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"}