{"type": "func", "start": 6442517488, "end": 6442517826, "name": "cocos2d::extension::CCEditBox::initWithSizeAndBackgroundSprite", "pseudocode": "// \n// cocos2d::extension::CCEditBox::initWithSizeAndBackgroundSprite from 0x1800103f0 to 0x180010542 (338 bytes)\n// \n// 3 xrefs:\n// > cocos2d::extension::CCEditBox::create @ 0x18001036e\n// > <???> @ 0x180032408\n// > <???> @ 0x18004c05c\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\nchar __fastcall cocos2d::extension::CCEditBox::initWithSizeAndBackgroundSprite(\n        cocos2d::CCDictionary **this,\n        const struct cocos2d::CCSize *a2,\n        struct cocos2d::extension::CCScale9Sprite *a3)\n{\n  struct cocos2d::CCLabelTTF *v6; // rax\n  __int64 v7; // rax\n  cocos2d::CCDictionary *v8; // rbx\n  __int64 v9; // rax\n  cocos2d::CCDictionary *v10; // rbx\n  __int64 v11; // rax\n  struct cocos2d::CCObject *v12; // rsi\n  struct cocos2d::CCObject *v13; // rbx\n  cocos2d::extension::CCEditBoxImplWin *v15; // [rsp+30h] [rbp+8h] BYREF\n\n  v6 = cocos2d::CCLabelTTF::create(byte_180025968, \"Arial\", 30.0);\n  if ( !(*((unsigned __int8 (__fastcall **)(cocos2d::CCDictionary **, struct cocos2d::CCLabelTTF *, struct cocos2d::extension::CCScale9Sprite *))*this\n         + 148))(\n          this,\n          v6,\n          a3) )\n    return 0;\n  v15 = (cocos2d::extension::CCEditBoxImplWin *)sub_18001F040(0x90u);\n  v7 = cocos2d::extension::CCEditBoxImplWin::CCEditBoxImplWin(v15, (struct cocos2d::extension::CCEditBox *)this);\n  *(this + 72) = (cocos2d::CCDictionary *)v7;\n  (*(void (__fastcall **)(__int64, const struct cocos2d::CCSize *))(*(_QWORD *)v7 + 8LL))(v7, a2);\n  (*((void (__fastcall **)(cocos2d::CCDictionary **, _QWORD))*this + 144))(this, 0);\n  v8 = *this;\n  v9 = cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v15, a2);\n  (*((void (__fastcall **)(cocos2d::CCDictionary **, __int64))v8 + 142))(this, v9);\n  v10 = *this;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v15, 0.0, 0.0);\n  (*((void (__fastcall **)(cocos2d::CCDictionary **, __int64))v10 + 23))(this, v11);\n  v12 = (struct cocos2d::CCObject *)cocos2d::extension::CCInvocation::create(\n                                      (__int64)this,\n                                      (__int64)cocos2d::extension::CCEditBox::touchDownAction,\n                                      32);\n  v13 = cocos2d::CCDictionary::objectForKey(*(this + 56), 32);\n  if ( !v13 )\n  {\n    v13 = cocos2d::CCArray::createWithCapacity(1u);\n    cocos2d::CCDictionary::setObject(*(this + 56), v13, 32);\n  }\n  cocos2d::CCArray::addObject(v13, v12);\n  return 1;\n}", "assembly": "; \n; cocos2d::extension::CCEditBox::initWithSizeAndBackgroundSprite from 0x1800103f0 to 0x180010542 (338 bytes)\n; \n; 3 xrefs:\n; > cocos2d::extension::CCEditBox::create @ 0x18001036e\n; > <???> @ 0x180032408\n; > <???> @ 0x18004c05c\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_8], rbx                                               ; +0x0, 0x1800103f0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800103f5\npush    rdi                                                            ; +0xa, 0x1800103fa\nsub     rsp, 20h                                                       ; +0xb, 0x1800103fb\nmov     rbx, r8                                                        ; +0xf, 0x1800103ff\nmov     rsi, rdx                                                       ; +0x12, 0x180010402\nmov     rdi, rcx                                                       ; +0x15, 0x180010405\nmovss   xmm2, cs:dword_18002BC68                                       ; +0x18, 0x180010408\nlea     rdx, aArial; \"Arial\"                                           ; +0x20, 0x180010410\nlea     rcx, byte_180025968                                            ; +0x27, 0x180010417\ncall    cs:?create@CCLabelTTF@cocos2d@@SAPEAV12@PEBD0M@Z; cocos2d::CCLabelTTF::create(char const *,char const *,float) ; +0x2e, 0x18001041e\nmov     r9, [rdi]                                                      ; +0x34, 0x180010424\nmov     r8, rbx                                                        ; +0x37, 0x180010427\nmov     rdx, rax                                                       ; +0x3a, 0x18001042a\nmov     rcx, rdi                                                       ; +0x3d, 0x18001042d\ncall    qword ptr [r9+4A0h]                                            ; +0x40, 0x180010430\ntest    al, al                                                         ; +0x47, 0x180010437\njz      loc_180010530                                                  ; +0x49, 0x180010439\nmov     ecx, 90h; Size                                                 ; +0x4f, 0x18001043f\ncall    sub_18001F040                                                  ; +0x54, 0x180010444\nmov     [rsp+28h+arg_0], rax                                           ; +0x59, 0x180010449\nmov     rdx, rdi; struct cocos2d::extension::CCEditBox *               ; +0x5e, 0x18001044e\nmov     rcx, rax; this                                                 ; +0x61, 0x180010451\ncall    ??0CCEditBoxImplWin@extension@cocos2d@@QEAA@PEAVCCEditBox@12@@Z; cocos2d::extension::CCEditBoxImplWin::CCEditBoxImplWin(cocos2d::extension::CCEditBox *) ; +0x64, 0x180010454\nnop                                                                    ; +0x69, 0x180010459\nmov     [rdi+240h], rax                                                ; +0x6a, 0x18001045a\nmov     rcx, [rax]                                                     ; +0x71, 0x180010461\nmov     r8, [rcx+8]                                                    ; +0x74, 0x180010464\nmov     rdx, rsi                                                       ; +0x78, 0x180010468\nmov     rcx, rax                                                       ; +0x7b, 0x18001046b\ncall    r8                                                             ; +0x7e, 0x18001046e\nmov     rax, [rdi]                                                     ; +0x81, 0x180010471\nxor     edx, edx                                                       ; +0x84, 0x180010474\nmov     rcx, rdi                                                       ; +0x86, 0x180010476\ncall    qword ptr [rax+480h]                                           ; +0x89, 0x180010479\nmov     rbx, [rdi]                                                     ; +0x8f, 0x18001047f\nmov     rdx, rsi                                                       ; +0x92, 0x180010482\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x95, 0x180010485\ncall    cs:??0CCSize@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCSize::CCSize(cocos2d::CCSize const &) ; +0x9a, 0x18001048a\nmov     rdx, rax                                                       ; +0xa0, 0x180010490\nmov     rcx, rdi                                                       ; +0xa3, 0x180010493\ncall    qword ptr [rbx+470h]                                           ; +0xa6, 0x180010496\nmov     rbx, [rdi]                                                     ; +0xac, 0x18001049c\nxorps   xmm2, xmm2                                                     ; +0xaf, 0x18001049f\nxorps   xmm1, xmm1                                                     ; +0xb2, 0x1800104a2\nlea     rcx, [rsp+28h+arg_0]                                           ; +0xb5, 0x1800104a5\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xba, 0x1800104aa\nmov     rdx, rax                                                       ; +0xc0, 0x1800104b0\nmov     rcx, rdi                                                       ; +0xc3, 0x1800104b3\ncall    qword ptr [rbx+0B8h]                                           ; +0xc6, 0x1800104b6\nmov     r8d, 20h ; ' '                                                 ; +0xcc, 0x1800104bc\nlea     rdx, ?touchDownAction@CCEditBox@extension@cocos2d@@QEAAXPEAVCCObject@3@I@Z; cocos2d::extension::CCEditBox::touchDownAction(cocos2d::CCObject *,uint) ; +0xd2, 0x1800104c2\nmov     rcx, rdi                                                       ; +0xd9, 0x1800104c9\ncall    ?create@CCInvocation@extension@cocos2d@@SAPEAV123@PEAVCCObject@3@P843@EAAX0I@ZI@Z; cocos2d::extension::CCInvocation::create(cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *,uint),uint) ; +0xdc, 0x1800104cc\nmov     rsi, rax                                                       ; +0xe1, 0x1800104d1\nmov     edx, 20h ; ' '                                                 ; +0xe4, 0x1800104d4\nmov     rcx, [rdi+1C0h]                                                ; +0xe9, 0x1800104d9\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0xf0, 0x1800104e0\nmov     rbx, rax                                                       ; +0xf6, 0x1800104e6\ntest    rax, rax                                                       ; +0xf9, 0x1800104e9\njnz     short loc_180010512                                            ; +0xfc, 0x1800104ec\nmov     ecx, 1                                                         ; +0xfe, 0x1800104ee\ncall    cs:?createWithCapacity@CCArray@cocos2d@@SAPEAV12@I@Z; cocos2d::CCArray::createWithCapacity(uint) ; +0x103, 0x1800104f3\nmov     rbx, rax                                                       ; +0x109, 0x1800104f9\nmov     r8d, 20h ; ' '                                                 ; +0x10c, 0x1800104fc\nmov     rdx, rax                                                       ; +0x112, 0x180010502\nmov     rcx, [rdi+1C0h]                                                ; +0x115, 0x180010505\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x11c, 0x18001050c\nmov     rdx, rsi                                                       ; +0x122, 0x180010512\nmov     rcx, rbx                                                       ; +0x125, 0x180010515\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x128, 0x180010518\nmov     al, 1                                                          ; +0x12e, 0x18001051e\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x130, 0x180010520\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x135, 0x180010525\nadd     rsp, 20h                                                       ; +0x13a, 0x18001052a\npop     rdi                                                            ; +0x13e, 0x18001052e\nretn                                                                   ; +0x13f, 0x18001052f\nxor     al, al                                                         ; +0x140, 0x180010530\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x142, 0x180010532\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x147, 0x180010537\nadd     rsp, 20h                                                       ; +0x14c, 0x18001053c\npop     rdi                                                            ; +0x150, 0x180010540\nretn                                                                   ; +0x151, 0x180010541", "xrefs": ["cocos2d::extension::CCEditBox::create @ 0x18001036e", "<???> @ 0x180032408", "<???> @ 0x18004c05c"], "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"}