{"type": "func", "start": 6442824048, "end": 6442824223, "name": "cocos2d::CCMenuItemFont::initWithString", "pseudocode": "// \n// cocos2d::CCMenuItemFont::initWithString from 0x18005b170 to 0x18005b21f (175 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCMenuItemFont::create @ 0x18005a48c\n// > cocos2d::CCMenuItemFont::create @ 0x18005a4fc\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b2d9c\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::CCMenuItemFont::initWithString(__int64 a1, const char *a2, __int64 a3, __int64 a4)\n{\n  const char *v5; // rbx\n  void **v6; // rdx\n  void **v10; // rcx\n  int v11; // eax\n  struct cocos2d::CCLabelTTF *v12; // rax\n\n  v5 = (const char *)(a1 + 408);\n  v6 = &qword_1801A2B80;\n  if ( (void **)(a1 + 408) != &qword_1801A2B80 )\n  {\n    v10 = (void **)(a1 + 408);\n    if ( *(&Size + 1) > 0xF )\n      v6 = (void **)qword_1801A2B80;\n    sub_180010050(v10, v6, Size);\n  }\n  v11 = dword_1801A2B78;\n  *(_DWORD *)(a1 + 400) = dword_1801A2B78;\n  if ( *((_QWORD *)v5 + 3) > 0xFu )\n    v5 = *(const char **)v5;\n  v12 = cocos2d::CCLabelTTF::create(a2, v5, (float)v11);\n  cocos2d::CCMenuItemLabel::initWithLabel((__int64 *)a1, (__int64)v12, a3, a4);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCMenuItemFont::initWithString from 0x18005b170 to 0x18005b21f (175 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCMenuItemFont::create @ 0x18005a48c\n; > cocos2d::CCMenuItemFont::create @ 0x18005a4fc\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b2d9c\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, 0x18005b170\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18005b175\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18005b17a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x18005b17f\npush    r14                                                            ; +0x14, 0x18005b184\nsub     rsp, 20h                                                       ; +0x16, 0x18005b186\nmov     r14, rdx                                                       ; +0x1a, 0x18005b18a\nlea     rbx, [rcx+198h]                                                ; +0x1d, 0x18005b18d\nlea     rdx, qword_1801A2B80                                           ; +0x24, 0x18005b194\nmov     rsi, r9                                                        ; +0x2b, 0x18005b19b\nmov     rbp, r8                                                        ; +0x2e, 0x18005b19e\nmov     rdi, rcx                                                       ; +0x31, 0x18005b1a1\ncmp     rbx, rdx                                                       ; +0x34, 0x18005b1a4\njz      short loc_18005B1C8                                            ; +0x37, 0x18005b1a7\ncmp     qword ptr cs:Size+8, 0Fh                                       ; +0x39, 0x18005b1a9\nmov     rcx, rbx; void *                                               ; +0x41, 0x18005b1b1\nmov     r8, qword ptr cs:Size; Size                                    ; +0x44, 0x18005b1b4\ncmova   rdx, cs:qword_1801A2B80; Src                                   ; +0x4b, 0x18005b1bb\ncall    sub_180010050                                                  ; +0x53, 0x18005b1c3\nmov     eax, cs:dword_1801A2B78                                        ; +0x58, 0x18005b1c8\nmov     [rdi+190h], eax                                                ; +0x5e, 0x18005b1ce\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x64, 0x18005b1d4\njbe     short loc_18005B1DE                                            ; +0x69, 0x18005b1d9\nmov     rbx, [rbx]                                                     ; +0x6b, 0x18005b1db\nxorps   xmm2, xmm2                                                     ; +0x6e, 0x18005b1de\nmov     rdx, rbx; char *                                               ; +0x71, 0x18005b1e1\ncvtsi2ss xmm2, rax; float                                              ; +0x74, 0x18005b1e4\nmov     rcx, r14; char *                                               ; +0x79, 0x18005b1e9\ncall    ?create@CCLabelTTF@cocos2d@@SAPEAV12@PEBD0M@Z; cocos2d::CCLabelTTF::create(char const *,char const *,float) ; +0x7c, 0x18005b1ec\nmov     r9, rsi                                                        ; +0x81, 0x18005b1f1\nmov     r8, rbp                                                        ; +0x84, 0x18005b1f4\nmov     rdx, rax                                                       ; +0x87, 0x18005b1f7\nmov     rcx, rdi                                                       ; +0x8a, 0x18005b1fa\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 *)) ; +0x8d, 0x18005b1fd\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x92, 0x18005b202\nmov     al, 1                                                          ; +0x97, 0x18005b207\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x99, 0x18005b209\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x9e, 0x18005b20e\nmov     rdi, [rsp+28h+arg_18]                                          ; +0xa3, 0x18005b213\nadd     rsp, 20h                                                       ; +0xa8, 0x18005b218\npop     r14                                                            ; +0xac, 0x18005b21c\nretn                                                                   ; +0xae, 0x18005b21e", "xrefs": ["cocos2d::CCMenuItemFont::create @ 0x18005a48c", "cocos2d::CCMenuItemFont::create @ 0x18005a4fc", "<???> @ 0x1801438a8", "<???> @ 0x1801b2d9c"], "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"}