{"type": "func", "start": 6442518848, "end": 6442519045, "name": "cocos2d::extension::CCEditBox::create", "pseudocode": "// \n// cocos2d::extension::CCEditBox::create from 0x180010940 to 0x180010a05 (197 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x18004a170\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::CCEditBox *__fastcall cocos2d::extension::CCEditBox::create(\n        const struct cocos2d::CCSize *a1,\n        struct cocos2d::extension::CCScale9Sprite *a2,\n        struct cocos2d::extension::CCScale9Sprite *a3,\n        struct cocos2d::extension::CCScale9Sprite *a4)\n{\n  cocos2d::extension::CCEditBox *v8; // rax\n  cocos2d::CCObject *v9; // rbx\n  cocos2d::extension::CCEditBox *v11; // [rsp+20h] [rbp-18h]\n\n  v11 = (cocos2d::extension::CCEditBox *)operator new(0x300u);\n  v8 = cocos2d::extension::CCEditBox::CCEditBox(v11);\n  v9 = v8;\n  if ( v8 )\n  {\n    if ( cocos2d::extension::CCEditBox::initWithSizeAndBackgroundSprite(v8, a1, a2) )\n    {\n      if ( a3 )\n        (*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::extension::CCScale9Sprite *, __int64))(*(_QWORD *)v9 + 1296LL))(\n          v9,\n          a3,\n          2);\n      if ( a4 )\n        (*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::extension::CCScale9Sprite *, __int64))(*(_QWORD *)v9 + 1296LL))(\n          v9,\n          a4,\n          4);\n      cocos2d::CCObject::autorelease(v9);\n    }\n    else\n    {\n      (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v9 + 8LL))(v9, 1);\n      return nullptr;\n    }\n  }\n  return v9;\n}", "assembly": "; \n; cocos2d::extension::CCEditBox::create from 0x180010940 to 0x180010a05 (197 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x18004a170\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, 0x180010940\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180010945\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18001094a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x18001094f\npush    r14                                                            ; +0x14, 0x180010954\nsub     rsp, 30h                                                       ; +0x16, 0x180010956\nmov     rdi, r9                                                        ; +0x1a, 0x18001095a\nmov     rsi, r8                                                        ; +0x1d, 0x18001095d\nmov     rbp, rdx                                                       ; +0x20, 0x180010960\nmov     r14, rcx                                                       ; +0x23, 0x180010963\nmov     ecx, 300h; Size                                                ; +0x26, 0x180010966\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2b, 0x18001096b\nmov     [rsp+38h+var_18], rax                                          ; +0x30, 0x180010970\nmov     rcx, rax; this                                                 ; +0x35, 0x180010975\ncall    ??0CCEditBox@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCEditBox::CCEditBox(void) ; +0x38, 0x180010978\nmov     rbx, rax                                                       ; +0x3d, 0x18001097d\ntest    rax, rax                                                       ; +0x40, 0x180010980\njz      short loc_1800109E7                                            ; +0x43, 0x180010983\nmov     r8, rbp; struct cocos2d::extension::CCScale9Sprite *           ; +0x45, 0x180010985\nmov     rdx, r14; struct cocos2d::CCSize *                             ; +0x48, 0x180010988\nmov     rcx, rax; this                                                 ; +0x4b, 0x18001098b\ncall    ?initWithSizeAndBackgroundSprite@CCEditBox@extension@cocos2d@@QEAA_NAEBVCCSize@3@PEAVCCScale9Sprite@23@@Z; cocos2d::extension::CCEditBox::initWithSizeAndBackgroundSprite(cocos2d::CCSize const &,cocos2d::extension::CCScale9Sprite *) ; +0x4e, 0x18001098e\ntest    al, al                                                         ; +0x53, 0x180010993\njz      short loc_1800109D7                                            ; +0x55, 0x180010995\ntest    rsi, rsi                                                       ; +0x57, 0x180010997\njz      short loc_1800109B1                                            ; +0x5a, 0x18001099a\nmov     rax, [rbx]                                                     ; +0x5c, 0x18001099c\nmov     r8d, 2                                                         ; +0x5f, 0x18001099f\nmov     rdx, rsi                                                       ; +0x65, 0x1800109a5\nmov     rcx, rbx                                                       ; +0x68, 0x1800109a8\ncall    qword ptr [rax+510h]                                           ; +0x6b, 0x1800109ab\ntest    rdi, rdi                                                       ; +0x71, 0x1800109b1\njz      short loc_1800109CC                                            ; +0x74, 0x1800109b4\nmov     r9, [rbx]                                                      ; +0x76, 0x1800109b6\nmov     r8d, 4                                                         ; +0x79, 0x1800109b9\nmov     rdx, rdi                                                       ; +0x7f, 0x1800109bf\nmov     rcx, rbx                                                       ; +0x82, 0x1800109c2\ncall    qword ptr [r9+510h]                                            ; +0x85, 0x1800109c5\nmov     rcx, rbx                                                       ; +0x8c, 0x1800109cc\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x8f, 0x1800109cf\njmp     short loc_1800109E7                                            ; +0x95, 0x1800109d5\nmov     rax, [rbx]                                                     ; +0x97, 0x1800109d7\nmov     edx, 1                                                         ; +0x9a, 0x1800109da\nmov     rcx, rbx                                                       ; +0x9f, 0x1800109df\ncall    qword ptr [rax+8]                                              ; +0xa2, 0x1800109e2\nxor     ebx, ebx                                                       ; +0xa5, 0x1800109e5\nmov     rax, rbx                                                       ; +0xa7, 0x1800109e7\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xaa, 0x1800109ea\nmov     rbp, [rsp+38h+arg_8]                                           ; +0xaf, 0x1800109ef\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xb4, 0x1800109f4\nmov     rdi, [rsp+38h+arg_18]                                          ; +0xb9, 0x1800109f9\nadd     rsp, 30h                                                       ; +0xbe, 0x1800109fe\npop     r14                                                            ; +0xc2, 0x180010a02\nretn                                                                   ; +0xc4, 0x180010a04", "xrefs": ["<???> @ 0x18002fdf8", "<???> @ 0x18004a170"], "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"}