{"type": "func", "start": 6442517920, "end": 6442517984, "name": "cocos2d::CCString::initWithFormat", "pseudocode": "// \n// cocos2d::CCString::initWithFormat from 0x1800105a0 to 0x1800105e0 (64 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801ae134\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\nbool cocos2d::CCString::initWithFormat(cocos2d::CCString *this, const char *a2, ...)\n{\n  std::string *p_m_sString; // rax\n  va_list va; // [rsp+40h] [rbp+18h] BYREF\n\n  va_start(va, a2);\n  p_m_sString = &this->m_sString;\n  this->m_sString.m_data.m_size = 0;\n  if ( this->m_sString.m_data.m_capacity > 0xF )\n    p_m_sString = (std::string *)p_m_sString->m_data.m_bigStorage;\n  p_m_sString->m_data.m_smallStorage._Elems[0] = 0;\n  return cocos2d::CCString::initWithFormatAndValist(this, a2, va);\n}", "assembly": "; \n; cocos2d::CCString::initWithFormat from 0x1800105a0 to 0x1800105e0 (64 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801ae134\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_8], rdx                                               ; +0x0, 0x1800105a0\nmov     qword ptr [rsp+arg_10], r8                                     ; +0x5, 0x1800105a5\nmov     [rsp+arg_18], r9                                               ; +0xa, 0x1800105aa\nsub     rsp, 28h                                                       ; +0xf, 0x1800105af\nlea     rax, [rcx+38h]                                                 ; +0x13, 0x1800105b3\nmov     qword ptr [rax+10h], 0                                         ; +0x17, 0x1800105b7\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x1f, 0x1800105bf\njbe     short loc_1800105C9                                            ; +0x24, 0x1800105c4\nmov     rax, [rax]                                                     ; +0x26, 0x1800105c6\nmov     byte ptr [rax], 0                                              ; +0x29, 0x1800105c9\nlea     r8, [rsp+28h+arg_10]; char *                                   ; +0x2c, 0x1800105cc\nmov     rdx, [rsp+28h+arg_8]; char *                                   ; +0x31, 0x1800105d1\ncall    ?initWithFormatAndValist@CCString@cocos2d@@AEAA_NPEBDPEAD@Z; cocos2d::CCString::initWithFormatAndValist(char const *,char *) ; +0x36, 0x1800105d6\nadd     rsp, 28h                                                       ; +0x3b, 0x1800105db\nretn                                                                   ; +0x3f, 0x1800105df", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801ae134"], "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"}