{"type": "func", "start": 6442517280, "end": 6442517480, "name": "cocos2d::extension::CCEditBox::create", "pseudocode": "// \n// cocos2d::extension::CCEditBox::create from 0x180010320 to 0x1800103e8 (200 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180032408\n// > <???> @ 0x18004c050\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:39 +0000\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 *)sub_18001F040(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 + 1312LL))(\n          v9,\n          a3,\n          2);\n      if ( a4 )\n        (*(void (__fastcall **)(cocos2d::CCObject *, struct cocos2d::extension::CCScale9Sprite *, __int64))(*(_QWORD *)v9 + 1312LL))(\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 0x180010320 to 0x1800103e8 (200 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180032408\n; > <???> @ 0x18004c050\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:39 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180010320\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180010325\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18001032a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x18001032f\npush    r14                                                            ; +0x14, 0x180010334\nsub     rsp, 30h                                                       ; +0x16, 0x180010336\nmov     rdi, r9                                                        ; +0x1a, 0x18001033a\nmov     rsi, r8                                                        ; +0x1d, 0x18001033d\nmov     rbp, rdx                                                       ; +0x20, 0x180010340\nmov     r14, rcx                                                       ; +0x23, 0x180010343\nmov     ecx, 300h; Size                                                ; +0x26, 0x180010346\ncall    sub_18001F040                                                  ; +0x2b, 0x18001034b\nmov     [rsp+38h+var_18], rax                                          ; +0x30, 0x180010350\nmov     rcx, rax; this                                                 ; +0x35, 0x180010355\ncall    ??0CCEditBox@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCEditBox::CCEditBox(void) ; +0x38, 0x180010358\nmov     rbx, rax                                                       ; +0x3d, 0x18001035d\ntest    rax, rax                                                       ; +0x40, 0x180010360\njz      short loc_1800103CA                                            ; +0x43, 0x180010363\nmov     r8, rbp; struct cocos2d::extension::CCScale9Sprite *           ; +0x45, 0x180010365\nmov     rdx, r14; struct cocos2d::CCSize *                             ; +0x48, 0x180010368\nmov     rcx, rax; this                                                 ; +0x4b, 0x18001036b\ncall    ?initWithSizeAndBackgroundSprite@CCEditBox@extension@cocos2d@@QEAA_NAEBVCCSize@3@PEAVCCScale9Sprite@23@@Z; cocos2d::extension::CCEditBox::initWithSizeAndBackgroundSprite(cocos2d::CCSize const &,cocos2d::extension::CCScale9Sprite *) ; +0x4e, 0x18001036e\ntest    al, al                                                         ; +0x53, 0x180010373\njz      short loc_1800103BA                                            ; +0x55, 0x180010375\ntest    rsi, rsi                                                       ; +0x57, 0x180010377\njz      short loc_180010391                                            ; +0x5a, 0x18001037a\nmov     rax, [rbx]                                                     ; +0x5c, 0x18001037c\nmov     r8d, 2                                                         ; +0x5f, 0x18001037f\nmov     rdx, rsi                                                       ; +0x65, 0x180010385\nmov     rcx, rbx                                                       ; +0x68, 0x180010388\ncall    qword ptr [rax+520h]                                           ; +0x6b, 0x18001038b\ntest    rdi, rdi                                                       ; +0x71, 0x180010391\njz      short loc_1800103AF                                            ; +0x74, 0x180010394\nmov     rcx, [rbx]                                                     ; +0x76, 0x180010396\nmov     r9, [rcx+520h]                                                 ; +0x79, 0x180010399\nmov     r8d, 4                                                         ; +0x80, 0x1800103a0\nmov     rdx, rdi                                                       ; +0x86, 0x1800103a6\nmov     rcx, rbx                                                       ; +0x89, 0x1800103a9\ncall    r9                                                             ; +0x8c, 0x1800103ac\nmov     rcx, rbx                                                       ; +0x8f, 0x1800103af\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x92, 0x1800103b2\njmp     short loc_1800103CA                                            ; +0x98, 0x1800103b8\nmov     rax, [rbx]                                                     ; +0x9a, 0x1800103ba\nmov     edx, 1                                                         ; +0x9d, 0x1800103bd\nmov     rcx, rbx                                                       ; +0xa2, 0x1800103c2\ncall    qword ptr [rax+8]                                              ; +0xa5, 0x1800103c5\nxor     ebx, ebx                                                       ; +0xa8, 0x1800103c8\nmov     rax, rbx                                                       ; +0xaa, 0x1800103ca\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xad, 0x1800103cd\nmov     rbp, [rsp+38h+arg_8]                                           ; +0xb2, 0x1800103d2\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xb7, 0x1800103d7\nmov     rdi, [rsp+38h+arg_18]                                          ; +0xbc, 0x1800103dc\nadd     rsp, 30h                                                       ; +0xc1, 0x1800103e1\npop     r14                                                            ; +0xc5, 0x1800103e5\nretn                                                                   ; +0xc7, 0x1800103e7", "xrefs": ["<???> @ 0x180032408", "<???> @ 0x18004c050"], "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"}