{"type": "func", "start": 6442823872, "end": 6442824043, "name": "cocos2d::CCMenuItemAtlasFont::initWithString", "pseudocode": "// \n// cocos2d::CCMenuItemAtlasFont::initWithString from 0x18005b0c0 to 0x18005b16b (171 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCMenuItemAtlasFont::create @ 0x18005a41f\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2d90\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\nchar __fastcall cocos2d::CCMenuItemAtlasFont::initWithString(\n        __int64 *a1,\n        const char *a2,\n        const char *a3,\n        unsigned 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 *)operator new(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 0x18005b0c0 to 0x18005b16b (171 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCMenuItemAtlasFont::create @ 0x18005a41f\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2d90\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, 0x18005b0c0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18005b0c5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18005b0ca\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x18005b0cf\npush    r14                                                            ; +0x14, 0x18005b0d4\nsub     rsp, 40h                                                       ; +0x16, 0x18005b0d6\nmov     edi, r9d                                                       ; +0x1a, 0x18005b0da\nmov     rsi, r8                                                        ; +0x1d, 0x18005b0dd\nmov     rbp, rdx                                                       ; +0x20, 0x18005b0e0\nmov     r14, rcx                                                       ; +0x23, 0x18005b0e3\nmov     ecx, 1C8h; Size                                                ; +0x26, 0x18005b0e6\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2b, 0x18005b0eb\nmov     [rsp+48h+var_18], rax                                          ; +0x30, 0x18005b0f0\ntest    rax, rax                                                       ; +0x35, 0x18005b0f5\njz      short loc_18005B107                                            ; +0x38, 0x18005b0f8\nmov     rcx, rax; this                                                 ; +0x3a, 0x18005b0fa\ncall    ??0CCLabelAtlas@cocos2d@@QEAA@XZ; cocos2d::CCLabelAtlas::CCLabelAtlas(void) ; +0x3d, 0x18005b0fd\nmov     rbx, rax                                                       ; +0x42, 0x18005b102\njmp     short loc_18005B109                                            ; +0x45, 0x18005b105\nxor     ebx, ebx                                                       ; +0x47, 0x18005b107\nmovsx   eax, [rsp+48h+arg_28]                                          ; +0x49, 0x18005b109\nmov     [rsp+48h+var_20], eax; unsigned int                            ; +0x4e, 0x18005b10e\nmov     eax, [rsp+48h+arg_20]                                          ; +0x52, 0x18005b112\nmov     [rsp+48h+var_28], eax; unsigned int                            ; +0x56, 0x18005b116\nmov     r9d, edi; unsigned int                                         ; +0x5a, 0x18005b11a\nmov     r8, rsi; char *                                                ; +0x5d, 0x18005b11d\nmov     rdx, rbp; char *                                               ; +0x60, 0x18005b120\nmov     rcx, rbx; this                                                 ; +0x63, 0x18005b123\ncall    ?initWithString@CCLabelAtlas@cocos2d@@QEAA_NPEBD0III@Z; cocos2d::CCLabelAtlas::initWithString(char const *,char const *,uint,uint,uint) ; +0x66, 0x18005b126\nmov     rcx, rbx; this                                                 ; +0x6b, 0x18005b12b\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x6e, 0x18005b12e\nmov     r9, [rsp+48h+arg_38]                                           ; +0x73, 0x18005b133\nmov     r8, [rsp+48h+arg_30]                                           ; +0x7b, 0x18005b13b\nmov     rdx, rbx                                                       ; +0x83, 0x18005b143\nmov     rcx, r14                                                       ; +0x86, 0x18005b146\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, 0x18005b149\nmov     al, 1                                                          ; +0x8e, 0x18005b14e\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x90, 0x18005b150\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x95, 0x18005b155\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x9a, 0x18005b15a\nmov     rdi, [rsp+48h+arg_18]                                          ; +0x9f, 0x18005b15f\nadd     rsp, 40h                                                       ; +0xa4, 0x18005b164\npop     r14                                                            ; +0xa8, 0x18005b168\nretn                                                                   ; +0xaa, 0x18005b16a", "xrefs": ["cocos2d::CCMenuItemAtlasFont::create @ 0x18005a41f", "<???> @ 0x1801438a8", "<???> @ 0x1801b2d90"], "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"}