{"type": "func", "start": 6442739184, "end": 6442739300, "name": "cocos2d::CCLabelAtlas::initWithString", "pseudocode": "// \n// cocos2d::CCLabelAtlas::initWithString from 0x1800465f0 to 0x180046664 (116 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1764\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::CCLabelAtlas::initWithString(\n        cocos2d::CCLabelAtlas *this,\n        const char *a2,\n        struct cocos2d::CCTexture2D *a3,\n        unsigned int a4,\n        unsigned int a5,\n        unsigned int a6)\n{\n  __int64 v8; // rax\n\n  v8 = -1;\n  do\n    ++v8;\n  while ( a2[v8] );\n  if ( !cocos2d::CCAtlasNode::initWithTexture(this, a3, a4, a5, v8) )\n    return 0;\n  this->m_uMapStartChar = a6;\n  ((void (__fastcall *)(cocos2d::CCLabelProtocol *, const char *))this->setString)(&this->cocos2d::CCLabelProtocol, a2);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCLabelAtlas::initWithString from 0x1800465f0 to 0x180046664 (116 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1764\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, 0x1800465f0\npush    rdi                                                            ; +0x5, 0x1800465f5\nsub     rsp, 30h                                                       ; +0x6, 0x1800465f6\nmov     r10d, r9d                                                      ; +0xa, 0x1800465fa\nmov     r11, r8                                                        ; +0xd, 0x1800465fd\nmov     rbx, rdx                                                       ; +0x10, 0x180046600\nmov     rdi, rcx                                                       ; +0x13, 0x180046603\nmov     rax, 0FFFFFFFFFFFFFFFFh                                        ; +0x16, 0x180046606\nnop     dword ptr [rax]                                                ; +0x1d, 0x18004660d\ninc     rax                                                            ; +0x20, 0x180046610\ncmp     byte ptr [rdx+rax], 0                                          ; +0x23, 0x180046613\njnz     short loc_180046610                                            ; +0x27, 0x180046617\nmov     r9d, [rsp+38h+arg_20]; unsigned int                            ; +0x29, 0x180046619\nmov     r8d, r10d; unsigned int                                        ; +0x2e, 0x18004661e\nmov     rdx, r11; struct cocos2d::CCTexture2D *                        ; +0x31, 0x180046621\nmov     [rsp+38h+var_18], eax; unsigned int                            ; +0x34, 0x180046624\ncall    ?initWithTexture@CCAtlasNode@cocos2d@@QEAA_NPEAVCCTexture2D@2@III@Z; cocos2d::CCAtlasNode::initWithTexture(cocos2d::CCTexture2D *,uint,uint,uint) ; +0x38, 0x180046628\ntest    al, al                                                         ; +0x3d, 0x18004662d\njz      short loc_180046657                                            ; +0x3f, 0x18004662f\nmov     eax, [rsp+38h+arg_28]                                          ; +0x41, 0x180046631\nlea     rcx, [rdi+198h]                                                ; +0x45, 0x180046635\nmov     [rdi+1C0h], eax                                                ; +0x4c, 0x18004663c\nmov     rdx, rbx                                                       ; +0x52, 0x180046642\nmov     rax, [rcx]                                                     ; +0x55, 0x180046645\ncall    qword ptr [rax]                                                ; +0x58, 0x180046648\nmov     al, 1                                                          ; +0x5a, 0x18004664a\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x5c, 0x18004664c\nadd     rsp, 30h                                                       ; +0x61, 0x180046651\npop     rdi                                                            ; +0x65, 0x180046655\nretn                                                                   ; +0x66, 0x180046656\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x67, 0x180046657\nxor     al, al                                                         ; +0x6c, 0x18004665c\nadd     rsp, 30h                                                       ; +0x6e, 0x18004665e\npop     rdi                                                            ; +0x72, 0x180046662\nretn                                                                   ; +0x73, 0x180046663", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b1764"], "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"}