{"type": "func", "start": 6442832064, "end": 6442832235, "name": "cocos2d::CCMenuItemAtlasFont::initWithString", "pseudocode": "// \n// cocos2d::CCMenuItemAtlasFont::initWithString from 0x18005d0c0 to 0x18005d16b (171 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCMenuItemAtlasFont::create @ 0x18005c41f\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd048\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 11:21:49 +0000\n// \n\nchar __fastcall cocos2d::CCMenuItemAtlasFont::initWithString(\n        __int64 *a1,\n        const char *a2,\n        const char *a3,\n        int a4,\n        unsigned int a5,\n        char a6,\n        __int64 a7,\n        __int64 a8)\n{\n  cocos2d::CCLabelAtlas *v12; // rax\n  cocos2d::CCLabelAtlas *v13; // rbx\n\n  v12 = (cocos2d::CCLabelAtlas *)sub_1800E4AC0(0x1C8u);\n  if ( v12 )\n    v13 = cocos2d::CCLabelAtlas::CCLabelAtlas(v12);\n  else\n    v13 = nullptr;\n  cocos2d::CCLabelAtlas::initWithString(v13, a2, a3, a4, a5, a6);\n  cocos2d::CCObject::autorelease(v13);\n  cocos2d::CCMenuItemLabel::initWithLabel(a1, (__int64)v13, a7, a8);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCMenuItemAtlasFont::initWithString from 0x18005d0c0 to 0x18005d16b (171 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCMenuItemAtlasFont::create @ 0x18005c41f\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd048\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 11:21:49 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18005d0c0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18005d0c5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18005d0ca\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x18005d0cf\npush    r14                                                            ; +0x14, 0x18005d0d4\nsub     rsp, 40h                                                       ; +0x16, 0x18005d0d6\nmov     edi, r9d                                                       ; +0x1a, 0x18005d0da\nmov     rsi, r8                                                        ; +0x1d, 0x18005d0dd\nmov     rbp, rdx                                                       ; +0x20, 0x18005d0e0\nmov     r14, rcx                                                       ; +0x23, 0x18005d0e3\nmov     ecx, 1C8h; Size                                                ; +0x26, 0x18005d0e6\ncall    sub_1800E4AC0                                                  ; +0x2b, 0x18005d0eb\nmov     [rsp+48h+var_18], rax                                          ; +0x30, 0x18005d0f0\ntest    rax, rax                                                       ; +0x35, 0x18005d0f5\njz      short loc_18005D107                                            ; +0x38, 0x18005d0f8\nmov     rcx, rax; this                                                 ; +0x3a, 0x18005d0fa\ncall    ??0CCLabelAtlas@cocos2d@@QEAA@XZ; cocos2d::CCLabelAtlas::CCLabelAtlas(void) ; +0x3d, 0x18005d0fd\nmov     rbx, rax                                                       ; +0x42, 0x18005d102\njmp     short loc_18005D109                                            ; +0x45, 0x18005d105\nxor     ebx, ebx                                                       ; +0x47, 0x18005d107\nmovsx   eax, [rsp+48h+arg_28]                                          ; +0x49, 0x18005d109\nmov     [rsp+48h+var_20], eax; unsigned int                            ; +0x4e, 0x18005d10e\nmov     eax, [rsp+48h+arg_20]                                          ; +0x52, 0x18005d112\nmov     [rsp+48h+var_28], eax; unsigned int                            ; +0x56, 0x18005d116\nmov     r9d, edi; unsigned int                                         ; +0x5a, 0x18005d11a\nmov     r8, rsi; char *                                                ; +0x5d, 0x18005d11d\nmov     rdx, rbp; Str                                                  ; +0x60, 0x18005d120\nmov     rcx, rbx; this                                                 ; +0x63, 0x18005d123\ncall    ?initWithString@CCLabelAtlas@cocos2d@@QEAA_NPEBD0III@Z; cocos2d::CCLabelAtlas::initWithString(char const *,char const *,uint,uint,uint) ; +0x66, 0x18005d126\nmov     rcx, rbx; this                                                 ; +0x6b, 0x18005d12b\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x6e, 0x18005d12e\nmov     r9, [rsp+48h+arg_38]                                           ; +0x73, 0x18005d133\nmov     r8, [rsp+48h+arg_30]                                           ; +0x7b, 0x18005d13b\nmov     rdx, rbx                                                       ; +0x83, 0x18005d143\nmov     rcx, r14                                                       ; +0x86, 0x18005d146\ncall    ?initWithLabel@CCMenuItemLabel@cocos2d@@QEAA_NPEAVCCNode@2@PEAVCCObject@2@P842@EAAX1@Z@Z; cocos2d::CCMenuItemLabel::initWithLabel(cocos2d::CCNode *,cocos2d::CCObject *,void (cocos2d::CCObject::*)(cocos2d::CCObject *)) ; +0x89, 0x18005d149\nmov     al, 1                                                          ; +0x8e, 0x18005d14e\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x90, 0x18005d150\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x95, 0x18005d155\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x9a, 0x18005d15a\nmov     rdi, [rsp+48h+arg_18]                                          ; +0x9f, 0x18005d15f\nadd     rsp, 40h                                                       ; +0xa4, 0x18005d164\npop     r14                                                            ; +0xa8, 0x18005d168\nretn                                                                   ; +0xaa, 0x18005d16a", "xrefs": ["cocos2d::CCMenuItemAtlasFont::create @ 0x18005c41f", "<???> @ 0x18014cf68", "<???> @ 0x1801bd048"], "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"}