{"type": "func", "start": 5369196160, "end": 5369196735, "name": "TextArea::create", "pseudocode": "// \n// TextArea::create from 0x140076e80 to 0x1400770bf (575 bytes)\n// \n// 48 xrefs:\n// > FLAlertLayer::init @ 0x140051e10\n// > FLAlertLayer::init @ 0x140051f2e\n// > AccountLayer::customSetup @ 0x14007d86d\n// > AccountHelpLayer::customSetup @ 0x14007f746\n// > AchievementBar::init @ 0x14008192f\n// > CreateGuidelinesLayer::init @ 0x140099edb\n// > CreateGuidelinesLayer::init @ 0x14009a051\n// > AchievementCell::loadFromDict @ 0x1400adae3\n// > CommentCell::loadFromComment @ 0x1400b70c4\n// > NCSInfoLayer::init @ 0x1400c6742\n// > DialogLayer::displayDialogObject @ 0x1400d3ce0\n// > EditLevelLayer::init @ 0x1400d5df1\n// > EndLevelLayer::customSetup @ 0x140133774\n// > EndLevelLayer::customSetup @ 0x140133b69\n// > GauntletLayer::init @ 0x1401f66d0\n// > GauntletSelectLayer::init @ 0x1401f954c\n// > ItemInfoPopup::init @ 0x14027d110\n// > UpdateAccountSettingsPopup::init @ 0x140294b92\n// > UploadActionPopup::init @ 0x14029550d\n// > FriendRequestPopup::loadFromGJFriendRequest @ 0x140296538\n// > GJMessagePopup::loadFromGJMessage @ 0x140297fdb\n// > GJWriteMessagePopup::init @ 0x140299b09\n// > GJWriteMessagePopup::init @ 0x140299ebd\n// > TOSPopup::init @ 0x14029e2db\n// > PurchaseItemPopup::init @ 0x1402af362\n// > InfoLayer::init @ 0x1402bb769\n// > LeaderboardsLayer::init @ 0x1402c2419\n// > LevelBrowserLayer::init @ 0x1402c9609\n// > LevelBrowserLayer::loadPage @ 0x1402cb388\n// > LevelBrowserLayer::loadPage @ 0x1402cb4a1\n// > LevelBrowserLayer::loadPage @ 0x1402cb5af\n// > LevelBrowserLayer::loadPage @ 0x1402cb7e4\n// > LevelLeaderboard::init @ 0x140301622\n// > LevelListLayer::init @ 0x140304f64\n// > ShareListLayer::init @ 0x140309e3e\n// > ShareListLayer::init @ 0x14030a216\n// > UploadListPopup::init @ 0x14030b4fc\n// > LoadingLayer::init @ 0x14032ea0d\n// > LoadingLayer::loadAssets @ 0x14032f265\n// > SecretLayer5::init @ 0x1403f4e6c\n// > ShareCommentLayer::init @ 0x14048df12\n// > ShareLevelLayer::init @ 0x14048f1e4\n// > ShareLevelLayer::init @ 0x14048f5f4\n// > ShareLevelLayer::init @ 0x14048f72e\n// > UploadPopup::init @ 0x140490956\n// > ShareLevelSettingsLayer::init @ 0x140491a5c\n// > TutorialLayer::loadPage @ 0x1404cc7cf\n// > <???> @ 0x1406c64ec\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=6\nchar *__fastcall TextArea::create(\n        __int64 a1,\n        _BYTE *a2,\n        float a3,\n        float a4,\n        const struct cocos2d::CCPoint *a5,\n        int a6,\n        char a7)\n{\n  char *v9; // rdi\n  __int64 v10; // rbp\n  __int64 v11; // rax\n  __int64 v12; // rbx\n  size_t v13; // r8\n  __int64 v14; // rax\n  cocos2d::CCPoint v16; // [rsp+30h] [rbp-B8h] BYREF\n  char v17[32]; // [rsp+38h] [rbp-B0h] BYREF\n  char v18[32]; // [rsp+58h] [rbp-90h] BYREF\n  __int64 v19; // [rsp+78h] [rbp-70h]\n\n  v19 = a1;\n  v9 = (char *)operator new(0x2D8u);\n  cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v9);\n  *(_QWORD *)v9 = &TextArea::`vftable';\n  *((_QWORD *)v9 + 40) = &TextArea::`vftable';\n  *((_QWORD *)v9 + 43) = &TextArea::`vftable';\n  v9[600] = 0;\n  *((_QWORD *)v9 + 76) = 0;\n  *((_QWORD *)v9 + 77) = 0;\n  *((_OWORD *)v9 + 39) = 0;\n  *((_QWORD *)v9 + 80) = 0;\n  *((_QWORD *)v9 + 81) = 15;\n  v9[624] = 0;\n  *((_DWORD *)v9 + 164) = 0;\n  v9[660] = 0;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9 + 83);\n  v9[672] = 0;\n  *((_QWORD *)v9 + 85) = 0;\n  *((_DWORD *)v9 + 172) = 0;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v9 + 692));\n  *((_QWORD *)v9 + 88) = 0;\n  *((_QWORD *)v9 + 89) = 0;\n  *((_DWORD *)v9 + 180) = 0;\n  v10 = sub_14003BDB0((__int64)v17, a1);\n  cocos2d::CCPoint::CCPoint(&v16, a5);\n  v12 = v11;\n  if ( cocos2d::CCSprite::init((cocos2d::CCSprite *)v9) )\n  {\n    *((float *)v9 + 154) = a4;\n    cocos2d::CCPoint::operator=(v9 + 664, v12);\n    v13 = -1;\n    do\n      ++v13;\n    while ( a2[v13] );\n    sub_14003CCE0((void **)v9 + 78, a2, v13);\n    *((float *)v9 + 169) = a3;\n    *((_DWORD *)v9 + 164) = a6;\n    v9[600] = a7;\n    v14 = sub_14003BDB0((__int64)v18, v10);\n    TextArea::setString(v9, v14);\n    sub_14003A830(v10);\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v9);\n  }\n  else\n  {\n    sub_14003A830(v10);\n    (*(void (__fastcall **)(char *, __int64))(*(_QWORD *)v9 + 8LL))(v9, 1);\n    v9 = nullptr;\n  }\n  sub_14003A830(a1);\n  return v9;\n}", "assembly": "; \n; TextArea::create from 0x140076e80 to 0x1400770bf (575 bytes)\n; \n; 48 xrefs:\n; > FLAlertLayer::init @ 0x140051e10\n; > FLAlertLayer::init @ 0x140051f2e\n; > AccountLayer::customSetup @ 0x14007d86d\n; > AccountHelpLayer::customSetup @ 0x14007f746\n; > AchievementBar::init @ 0x14008192f\n; > CreateGuidelinesLayer::init @ 0x140099edb\n; > CreateGuidelinesLayer::init @ 0x14009a051\n; > AchievementCell::loadFromDict @ 0x1400adae3\n; > CommentCell::loadFromComment @ 0x1400b70c4\n; > NCSInfoLayer::init @ 0x1400c6742\n; > DialogLayer::displayDialogObject @ 0x1400d3ce0\n; > EditLevelLayer::init @ 0x1400d5df1\n; > EndLevelLayer::customSetup @ 0x140133774\n; > EndLevelLayer::customSetup @ 0x140133b69\n; > GauntletLayer::init @ 0x1401f66d0\n; > GauntletSelectLayer::init @ 0x1401f954c\n; > ItemInfoPopup::init @ 0x14027d110\n; > UpdateAccountSettingsPopup::init @ 0x140294b92\n; > UploadActionPopup::init @ 0x14029550d\n; > FriendRequestPopup::loadFromGJFriendRequest @ 0x140296538\n; > GJMessagePopup::loadFromGJMessage @ 0x140297fdb\n; > GJWriteMessagePopup::init @ 0x140299b09\n; > GJWriteMessagePopup::init @ 0x140299ebd\n; > TOSPopup::init @ 0x14029e2db\n; > PurchaseItemPopup::init @ 0x1402af362\n; > InfoLayer::init @ 0x1402bb769\n; > LeaderboardsLayer::init @ 0x1402c2419\n; > LevelBrowserLayer::init @ 0x1402c9609\n; > LevelBrowserLayer::loadPage @ 0x1402cb388\n; > LevelBrowserLayer::loadPage @ 0x1402cb4a1\n; > LevelBrowserLayer::loadPage @ 0x1402cb5af\n; > LevelBrowserLayer::loadPage @ 0x1402cb7e4\n; > LevelLeaderboard::init @ 0x140301622\n; > LevelListLayer::init @ 0x140304f64\n; > ShareListLayer::init @ 0x140309e3e\n; > ShareListLayer::init @ 0x14030a216\n; > UploadListPopup::init @ 0x14030b4fc\n; > LoadingLayer::init @ 0x14032ea0d\n; > LoadingLayer::loadAssets @ 0x14032f265\n; > SecretLayer5::init @ 0x1403f4e6c\n; > ShareCommentLayer::init @ 0x14048df12\n; > ShareLevelLayer::init @ 0x14048f1e4\n; > ShareLevelLayer::init @ 0x14048f5f4\n; > ShareLevelLayer::init @ 0x14048f72e\n; > UploadPopup::init @ 0x140490956\n; > ShareLevelSettingsLayer::init @ 0x140491a5c\n; > TutorialLayer::loadPage @ 0x1404cc7cf\n; > <???> @ 0x1406c64ec\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     rax, rsp                                                       ; +0x0, 0x140076e80\nmov     [rax+18h], rbx                                                 ; +0x3, 0x140076e83\npush    rbp                                                            ; +0x7, 0x140076e87\npush    rsi                                                            ; +0x8, 0x140076e88\npush    rdi                                                            ; +0x9, 0x140076e89\npush    r12                                                            ; +0xa, 0x140076e8a\npush    r13                                                            ; +0xc, 0x140076e8c\npush    r14                                                            ; +0xe, 0x140076e8e\npush    r15                                                            ; +0x10, 0x140076e90\nsub     rsp, 0B0h                                                      ; +0x12, 0x140076e92\nmovaps  xmmword ptr [rax-48h], xmm6                                    ; +0x19, 0x140076e99\nmovaps  xmmword ptr [rax-58h], xmm7                                    ; +0x1d, 0x140076e9d\nmov     rax, cs:__security_cookie                                      ; +0x21, 0x140076ea1\nxor     rax, rsp                                                       ; +0x28, 0x140076ea8\nmov     [rsp+0E8h+var_68], rax                                         ; +0x2b, 0x140076eab\nmovaps  xmm6, xmm3                                                     ; +0x33, 0x140076eb3\nmovaps  xmm7, xmm2                                                     ; +0x36, 0x140076eb6\nmov     rsi, rdx                                                       ; +0x39, 0x140076eb9\nmov     r14, rcx                                                       ; +0x3c, 0x140076ebc\nmov     [rsp+0E8h+var_70], rcx                                         ; +0x3f, 0x140076ebf\nmov     rbx, [rsp+0E8h+arg_20]                                         ; +0x44, 0x140076ec4\nmov     ecx, 2D8h; Size                                                ; +0x4c, 0x140076ecc\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x51, 0x140076ed1\nmov     rdi, rax                                                       ; +0x56, 0x140076ed6\nmov     [rsp+0E8h+var_C8], rax                                         ; +0x59, 0x140076ed9\nmov     rcx, rax                                                       ; +0x5e, 0x140076ede\ncall    cs:??0CCSprite@cocos2d@@QEAA@XZ; cocos2d::CCSprite::CCSprite(void) ; +0x61, 0x140076ee1\nnop                                                                    ; +0x67, 0x140076ee7\nlea     rax, ??_7TextArea@@6B@; const TextArea::`vftable'              ; +0x68, 0x140076ee8\nmov     [rdi], rax                                                     ; +0x6f, 0x140076eef\nlea     rax, ??_7TextArea@@6B@_0; const TextArea::`vftable'            ; +0x72, 0x140076ef2\nmov     [rdi+140h], rax                                                ; +0x79, 0x140076ef9\nlea     rax, ??_7TextArea@@6B@_1; const TextArea::`vftable'            ; +0x80, 0x140076f00\nmov     [rdi+158h], rax                                                ; +0x87, 0x140076f07\nmov     byte ptr [rdi+258h], 0                                         ; +0x8e, 0x140076f0e\nxor     r13d, r13d                                                     ; +0x95, 0x140076f15\nmov     [rdi+260h], r13                                                ; +0x98, 0x140076f18\nmov     [rdi+268h], r13                                                ; +0x9f, 0x140076f1f\nxorps   xmm0, xmm0                                                     ; +0xa6, 0x140076f26\nmovups  xmmword ptr [rdi+270h], xmm0                                   ; +0xa9, 0x140076f29\nmov     [rdi+280h], r13                                                ; +0xb0, 0x140076f30\nmov     qword ptr [rdi+288h], 0Fh                                      ; +0xb7, 0x140076f37\nmov     [rdi+270h], r13b                                               ; +0xc2, 0x140076f42\nmov     [rdi+290h], r13d                                               ; +0xc9, 0x140076f49\nmov     [rdi+294h], r13b                                               ; +0xd0, 0x140076f50\nlea     rcx, [rdi+298h]                                                ; +0xd7, 0x140076f57\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0xde, 0x140076f5e\nmov     [rdi+2A0h], r13b                                               ; +0xe4, 0x140076f64\nmov     [rdi+2A8h], r13                                                ; +0xeb, 0x140076f6b\nmov     [rdi+2B0h], r13d                                               ; +0xf2, 0x140076f72\nlea     rcx, [rdi+2B4h]                                                ; +0xf9, 0x140076f79\ncall    cs:??0CCPoint@cocos2d@@QEAA@XZ; cocos2d::CCPoint::CCPoint(void) ; +0x100, 0x140076f80\nmov     [rdi+2C0h], r13                                                ; +0x106, 0x140076f86\nmov     [rdi+2C8h], r13                                                ; +0x10d, 0x140076f8d\nmov     [rdi+2D0h], r13d                                               ; +0x114, 0x140076f94\nlea     rax, [rsp+0E8h+var_B0]                                         ; +0x11b, 0x140076f9b\nmov     [rsp+0E8h+var_C8], rax                                         ; +0x120, 0x140076fa0\nmov     rdx, r14                                                       ; +0x125, 0x140076fa5\nlea     rcx, [rsp+0E8h+var_B0]                                         ; +0x128, 0x140076fa8\ncall    sub_14003BDB0                                                  ; +0x12d, 0x140076fad\nmov     rbp, rax                                                       ; +0x132, 0x140076fb2\nmov     [rsp+0E8h+var_C0], rax                                         ; +0x135, 0x140076fb5\nmov     rdx, rbx                                                       ; +0x13a, 0x140076fba\nlea     rcx, [rsp+0E8h+var_B8]                                         ; +0x13d, 0x140076fbd\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x142, 0x140076fc2\nmov     rbx, rax                                                       ; +0x148, 0x140076fc8\nmov     rcx, rdi                                                       ; +0x14b, 0x140076fcb\ncall    cs:__imp_?init@CCSprite@cocos2d@@UEAA_NXZ; cocos2d::CCSprite::init(void) ; +0x14e, 0x140076fce\ntest    al, al                                                         ; +0x154, 0x140076fd4\njnz     short loc_140076FF5                                            ; +0x156, 0x140076fd6\nmov     rcx, rbp                                                       ; +0x158, 0x140076fd8\ncall    sub_14003A830                                                  ; +0x15b, 0x140076fdb\nmov     rax, [rdi]                                                     ; +0x160, 0x140076fe0\nlea     edx, [r13+1]                                                   ; +0x163, 0x140076fe3\nmov     rcx, rdi                                                       ; +0x167, 0x140076fe7\ncall    qword ptr [rax+8]                                              ; +0x16a, 0x140076fea\nmov     edi, r13d                                                      ; +0x16d, 0x140076fed\njmp     loc_14007707F                                                  ; +0x170, 0x140076ff0\nmovss   dword ptr [rdi+268h], xmm6                                     ; +0x175, 0x140076ff5\nmov     rdx, rbx                                                       ; +0x17d, 0x140076ffd\nlea     rcx, [rdi+298h]                                                ; +0x180, 0x140077000\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x187, 0x140077007\nmov     r8, 0FFFFFFFFFFFFFFFFh                                         ; +0x18d, 0x14007700d\ninc     r8; Size                                                       ; +0x194, 0x140077014\ncmp     byte ptr [rsi+r8], 0                                           ; +0x197, 0x140077017\njnz     short loc_140077014                                            ; +0x19c, 0x14007701c\nmov     rdx, rsi; Src                                                  ; +0x19e, 0x14007701e\nlea     rcx, [rdi+270h]; void *                                        ; +0x1a1, 0x140077021\ncall    sub_14003CCE0                                                  ; +0x1a8, 0x140077028\nmovss   dword ptr [rdi+2A4h], xmm7                                     ; +0x1ad, 0x14007702d\nmovss   xmm0, [rsp+0E8h+arg_28]                                        ; +0x1b5, 0x140077035\nmovss   dword ptr [rdi+290h], xmm0                                     ; +0x1be, 0x14007703e\nmovzx   eax, [rsp+0E8h+arg_30]                                         ; +0x1c6, 0x140077046\nmov     [rdi+258h], al                                                 ; +0x1ce, 0x14007704e\nmov     rdx, rbp                                                       ; +0x1d4, 0x140077054\nlea     rcx, [rsp+0E8h+var_90]                                         ; +0x1d7, 0x140077057\ncall    sub_14003BDB0                                                  ; +0x1dc, 0x14007705c\nmov     rdx, rax                                                       ; +0x1e1, 0x140077061\nmov     rcx, rdi                                                       ; +0x1e4, 0x140077064\ncall    TextArea__setString                                            ; +0x1e7, 0x140077067\nnop                                                                    ; +0x1ec, 0x14007706c\nmov     rcx, rbp                                                       ; +0x1ed, 0x14007706d\ncall    sub_14003A830                                                  ; +0x1f0, 0x140077070\nmov     rcx, rdi                                                       ; +0x1f5, 0x140077075\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x1f8, 0x140077078\nnop                                                                    ; +0x1fe, 0x14007707e\nmov     rcx, r14                                                       ; +0x1ff, 0x14007707f\ncall    sub_14003A830                                                  ; +0x202, 0x140077082\nmov     rax, rdi                                                       ; +0x207, 0x140077087\nmov     rcx, [rsp+0E8h+var_68]                                         ; +0x20a, 0x14007708a\nxor     rcx, rsp; StackCookie                                          ; +0x212, 0x140077092\ncall    __security_check_cookie                                        ; +0x215, 0x140077095\nlea     r11, [rsp+0E8h+var_38]                                         ; +0x21a, 0x14007709a\nmov     rbx, [r11+50h]                                                 ; +0x222, 0x1400770a2\nmovaps  xmm6, xmmword ptr [r11-10h]                                    ; +0x226, 0x1400770a6\nmovaps  xmm7, xmmword ptr [r11-20h]                                    ; +0x22b, 0x1400770ab\nmov     rsp, r11                                                       ; +0x230, 0x1400770b0\npop     r15                                                            ; +0x233, 0x1400770b3\npop     r14                                                            ; +0x235, 0x1400770b5\npop     r13                                                            ; +0x237, 0x1400770b7\npop     r12                                                            ; +0x239, 0x1400770b9\npop     rdi                                                            ; +0x23b, 0x1400770bb\npop     rsi                                                            ; +0x23c, 0x1400770bc\npop     rbp                                                            ; +0x23d, 0x1400770bd\nretn                                                                   ; +0x23e, 0x1400770be", "xrefs": ["FLAlertLayer::init @ 0x140051e10", "FLAlertLayer::init @ 0x140051f2e", "AccountLayer::customSetup @ 0x14007d86d", "AccountHelpLayer::customSetup @ 0x14007f746", "AchievementBar::init @ 0x14008192f", "CreateGuidelinesLayer::init @ 0x140099edb", "CreateGuidelinesLayer::init @ 0x14009a051", "AchievementCell::loadFromDict @ 0x1400adae3", "CommentCell::loadFromComment @ 0x1400b70c4", "NCSInfoLayer::init @ 0x1400c6742", "DialogLayer::displayDialogObject @ 0x1400d3ce0", "EditLevelLayer::init @ 0x1400d5df1", "EndLevelLayer::customSetup @ 0x140133774", "EndLevelLayer::customSetup @ 0x140133b69", "GauntletLayer::init @ 0x1401f66d0", "GauntletSelectLayer::init @ 0x1401f954c", "ItemInfoPopup::init @ 0x14027d110", "UpdateAccountSettingsPopup::init @ 0x140294b92", "UploadActionPopup::init @ 0x14029550d", "FriendRequestPopup::loadFromGJFriendRequest @ 0x140296538", "GJMessagePopup::loadFromGJMessage @ 0x140297fdb", "GJWriteMessagePopup::init @ 0x140299b09", "GJWriteMessagePopup::init @ 0x140299ebd", "TOSPopup::init @ 0x14029e2db", "PurchaseItemPopup::init @ 0x1402af362", "InfoLayer::init @ 0x1402bb769", "LeaderboardsLayer::init @ 0x1402c2419", "LevelBrowserLayer::init @ 0x1402c9609", "LevelBrowserLayer::loadPage @ 0x1402cb388", "LevelBrowserLayer::loadPage @ 0x1402cb4a1", "LevelBrowserLayer::loadPage @ 0x1402cb5af", "LevelBrowserLayer::loadPage @ 0x1402cb7e4", "LevelLeaderboard::init @ 0x140301622", "LevelListLayer::init @ 0x140304f64", "ShareListLayer::init @ 0x140309e3e", "ShareListLayer::init @ 0x14030a216", "UploadListPopup::init @ 0x14030b4fc", "LoadingLayer::init @ 0x14032ea0d", "LoadingLayer::loadAssets @ 0x14032f265", "SecretLayer5::init @ 0x1403f4e6c", "ShareCommentLayer::init @ 0x14048df12", "ShareLevelLayer::init @ 0x14048f1e4", "ShareLevelLayer::init @ 0x14048f5f4", "ShareLevelLayer::init @ 0x14048f72e", "UploadPopup::init @ 0x140490956", "ShareLevelSettingsLayer::init @ 0x140491a5c", "TutorialLayer::loadPage @ 0x1404cc7cf", "<???> @ 0x1406c64ec"], "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"}