{"type": "func", "start": 6442487472, "end": 6442487643, "name": "cocos2d::extension::CCControlPotentiometer::create", "pseudocode": "// \n// cocos2d::extension::CCControlPotentiometer::create from 0x180008eb0 to 0x180008f5b (171 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x180049960\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::extension::CCControlPotentiometer *__fastcall cocos2d::extension::CCControlPotentiometer::create(\n        const char *a1,\n        const char *a2,\n        const char *a3)\n{\n  struct cocos2d::extension::CCControlPotentiometer *result; // rax\n  cocos2d::CCObject *v7; // rsi\n  struct cocos2d::CCSprite *v8; // rdi\n  struct cocos2d::CCSprite *v9; // rbx\n  struct cocos2d::CCSprite *v10; // rax\n  struct cocos2d::CCProgressTimer *v11; // rax\n  cocos2d::extension::CCControlPotentiometer *v12; // [rsp+48h] [rbp+20h]\n\n  v12 = (cocos2d::extension::CCControlPotentiometer *)operator new(0x200u);\n  result = cocos2d::extension::CCControlPotentiometer::CCControlPotentiometer(v12);\n  v7 = result;\n  if ( result )\n  {\n    v8 = cocos2d::CCSprite::create(a1);\n    v9 = cocos2d::CCSprite::create(a3);\n    v10 = cocos2d::CCSprite::create(a2);\n    v11 = cocos2d::CCProgressTimer::create(v10);\n    if ( cocos2d::extension::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite(v7, v8, v11, v9) )\n    {\n      cocos2d::CCObject::autorelease(v7);\n      return v7;\n    }\n    else\n    {\n      (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1);\n      return nullptr;\n    }\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::extension::CCControlPotentiometer::create from 0x180008eb0 to 0x180008f5b (171 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x180049960\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180008eb0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180008eb5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x180008eba\npush    rdi                                                            ; +0xf, 0x180008ebf\nsub     rsp, 20h                                                       ; +0x10, 0x180008ec0\nmov     rbx, r8                                                        ; +0x14, 0x180008ec4\nmov     rbp, rdx                                                       ; +0x17, 0x180008ec7\nmov     rdi, rcx                                                       ; +0x1a, 0x180008eca\nmov     ecx, 200h; Size                                                ; +0x1d, 0x180008ecd\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x22, 0x180008ed2\nmov     [rsp+28h+arg_18], rax                                          ; +0x27, 0x180008ed7\nmov     rcx, rax; this                                                 ; +0x2c, 0x180008edc\ncall    ??0CCControlPotentiometer@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCControlPotentiometer::CCControlPotentiometer(void) ; +0x2f, 0x180008edf\nmov     rsi, rax                                                       ; +0x34, 0x180008ee4\ntest    rax, rax                                                       ; +0x37, 0x180008ee7\njz      short loc_180008F46                                            ; +0x3a, 0x180008eea\nmov     rcx, rdi                                                       ; +0x3c, 0x180008eec\ncall    cs:?create@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::create(char const *) ; +0x3f, 0x180008eef\nmov     rdi, rax                                                       ; +0x45, 0x180008ef5\nmov     rcx, rbx                                                       ; +0x48, 0x180008ef8\ncall    cs:?create@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::create(char const *) ; +0x4b, 0x180008efb\nmov     rbx, rax                                                       ; +0x51, 0x180008f01\nmov     rcx, rbp                                                       ; +0x54, 0x180008f04\ncall    cs:?create@CCSprite@cocos2d@@SAPEAV12@PEBD@Z; cocos2d::CCSprite::create(char const *) ; +0x57, 0x180008f07\nmov     rcx, rax                                                       ; +0x5d, 0x180008f0d\ncall    cs:?create@CCProgressTimer@cocos2d@@SAPEAV12@PEAVCCSprite@2@@Z; cocos2d::CCProgressTimer::create(cocos2d::CCSprite *) ; +0x60, 0x180008f10\nmov     r9, rbx; struct cocos2d::CCSprite *                            ; +0x66, 0x180008f16\nmov     r8, rax; struct cocos2d::CCProgressTimer *                     ; +0x69, 0x180008f19\nmov     rdx, rdi; struct cocos2d::CCSprite *                           ; +0x6c, 0x180008f1c\nmov     rcx, rsi; this                                                 ; +0x6f, 0x180008f1f\ncall    ?initWithTrackSprite_ProgressTimer_ThumbSprite@CCControlPotentiometer@extension@cocos2d@@QEAA_NPEAVCCSprite@3@PEAVCCProgressTimer@3@0@Z; cocos2d::extension::CCControlPotentiometer::initWithTrackSprite_ProgressTimer_ThumbSprite(cocos2d::CCSprite *,cocos2d::CCProgressTimer *,cocos2d::CCSprite *) ; +0x72, 0x180008f22\nmov     rcx, rsi                                                       ; +0x77, 0x180008f27\ntest    al, al                                                         ; +0x7a, 0x180008f2a\njz      short loc_180008F39                                            ; +0x7c, 0x180008f2c\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x7e, 0x180008f2e\nmov     rax, rsi                                                       ; +0x84, 0x180008f34\njmp     short loc_180008F46                                            ; +0x87, 0x180008f37\nmov     rax, [rsi]                                                     ; +0x89, 0x180008f39\nmov     edx, 1                                                         ; +0x8c, 0x180008f3c\ncall    qword ptr [rax+8]                                              ; +0x91, 0x180008f41\nxor     eax, eax                                                       ; +0x94, 0x180008f44\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x96, 0x180008f46\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x9b, 0x180008f4b\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xa0, 0x180008f50\nadd     rsp, 20h                                                       ; +0xa5, 0x180008f55\npop     rdi                                                            ; +0xa9, 0x180008f59\nretn                                                                   ; +0xaa, 0x180008f5a", "xrefs": ["<???> @ 0x18002fdf8", "<???> @ 0x180049960"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}