{"type": "func", "start": 6442832240, "end": 6442832415, "name": "cocos2d::CCMenuItemFont::initWithString", "pseudocode": "// \n// cocos2d::CCMenuItemFont::initWithString from 0x18005d170 to 0x18005d21f (175 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCMenuItemFont::create @ 0x18005c48c\n// > cocos2d::CCMenuItemFont::create @ 0x18005c4fc\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd054\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::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_1801B2400;\n  if ( (void **)(a1 + 408) != &qword_1801B2400 )\n  {\n    v10 = (void **)(a1 + 408);\n    if ( *(&Size + 1) > 0xF )\n      v6 = (void **)qword_1801B2400;\n    sub_1800101E0(v10, v6, Size);\n  }\n  v11 = dword_1801ACB74;\n  *(_DWORD *)(a1 + 400) = dword_1801ACB74;\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 0x18005d170 to 0x18005d21f (175 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCMenuItemFont::create @ 0x18005c48c\n; > cocos2d::CCMenuItemFont::create @ 0x18005c4fc\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd054\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, 0x18005d170\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18005d175\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18005d17a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x18005d17f\npush    r14                                                            ; +0x14, 0x18005d184\nsub     rsp, 20h                                                       ; +0x16, 0x18005d186\nmov     r14, rdx                                                       ; +0x1a, 0x18005d18a\nlea     rbx, [rcx+198h]                                                ; +0x1d, 0x18005d18d\nlea     rdx, qword_1801B2400                                           ; +0x24, 0x18005d194\nmov     rsi, r9                                                        ; +0x2b, 0x18005d19b\nmov     rbp, r8                                                        ; +0x2e, 0x18005d19e\nmov     rdi, rcx                                                       ; +0x31, 0x18005d1a1\ncmp     rbx, rdx                                                       ; +0x34, 0x18005d1a4\njz      short loc_18005D1C8                                            ; +0x37, 0x18005d1a7\ncmp     qword ptr cs:Size+8, 0Fh                                       ; +0x39, 0x18005d1a9\nmov     rcx, rbx; void *                                               ; +0x41, 0x18005d1b1\nmov     r8, qword ptr cs:Size; Size                                    ; +0x44, 0x18005d1b4\ncmova   rdx, cs:qword_1801B2400; Src                                   ; +0x4b, 0x18005d1bb\ncall    sub_1800101E0                                                  ; +0x53, 0x18005d1c3\nmov     eax, cs:dword_1801ACB74                                        ; +0x58, 0x18005d1c8\nmov     [rdi+190h], eax                                                ; +0x5e, 0x18005d1ce\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x64, 0x18005d1d4\njbe     short loc_18005D1DE                                            ; +0x69, 0x18005d1d9\nmov     rbx, [rbx]                                                     ; +0x6b, 0x18005d1db\nxorps   xmm2, xmm2                                                     ; +0x6e, 0x18005d1de\nmov     rdx, rbx; char *                                               ; +0x71, 0x18005d1e1\ncvtsi2ss xmm2, rax; float                                              ; +0x74, 0x18005d1e4\nmov     rcx, r14; char *                                               ; +0x79, 0x18005d1e9\ncall    ?create@CCLabelTTF@cocos2d@@SAPEAV12@PEBD0M@Z; cocos2d::CCLabelTTF::create(char const *,char const *,float) ; +0x7c, 0x18005d1ec\nmov     r9, rsi                                                        ; +0x81, 0x18005d1f1\nmov     r8, rbp                                                        ; +0x84, 0x18005d1f4\nmov     rdx, rax                                                       ; +0x87, 0x18005d1f7\nmov     rcx, rdi                                                       ; +0x8a, 0x18005d1fa\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, 0x18005d1fd\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x92, 0x18005d202\nmov     al, 1                                                          ; +0x97, 0x18005d207\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x99, 0x18005d209\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x9e, 0x18005d20e\nmov     rdi, [rsp+28h+arg_18]                                          ; +0xa3, 0x18005d213\nadd     rsp, 20h                                                       ; +0xa8, 0x18005d218\npop     r14                                                            ; +0xac, 0x18005d21c\nretn                                                                   ; +0xae, 0x18005d21e", "xrefs": ["cocos2d::CCMenuItemFont::create @ 0x18005c48c", "cocos2d::CCMenuItemFont::create @ 0x18005c4fc", "<???> @ 0x18014cf68", "<???> @ 0x1801bd054"], "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"}