{"type": "func", "start": 6443144768, "end": 6443145031, "name": "cocos2d::CCTexture2D::initWithString", "pseudocode": "// \n// cocos2d::CCTexture2D::initWithString from 0x1800a9640 to 0x1800a9747 (263 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c1f20\n// > <???> @ 0x1801c1f2c\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:22:17 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nchar __fastcall cocos2d::CCTexture2D::initWithString(cocos2d::CCTexture2D *this, const char *a2, char *a3, float a4)\n{\n  float *v7; // rdi\n  cocos2d::CCImage *v8; // rax\n  unsigned __int16 *v9; // rbx\n  char result; // al\n  unsigned int v11; // esi\n  unsigned int v12; // edi\n  cocos2d::CCInteger *v13; // rax\n  unsigned int Value; // eax\n  char inited; // di\n  float v16; // [rsp+40h] [rbp-28h] BYREF\n  cocos2d::CCImage *v17; // [rsp+48h] [rbp-20h]\n\n  v7 = kmVec2Fill(&v16, 0.0, 0.0);\n  v8 = (cocos2d::CCImage *)sub_1800E4AC0(0x50u);\n  v17 = v8;\n  if ( v8 )\n    v9 = (unsigned __int16 *)cocos2d::CCImage::CCImage(v8);\n  else\n    v9 = nullptr;\n  if ( !v9 )\n    return 0;\n  result = cocos2d::CCImage::initWithString((__int64)v9, a2, (int)*v7, (int)v7[1], 19, a3, (int)a4);\n  if ( result )\n  {\n    v11 = v9[28];\n    v12 = v9[29];\n    v13 = cocos2d::CCConfiguration::sharedConfiguration();\n    Value = cocos2d::CCInteger::getValue(v13);\n    if ( v11 > Value || v12 > Value )\n    {\n      cocos2d::CCObject::release((cocos2d::CCObject *)v9);\n      return 0;\n    }\n    else\n    {\n      inited = cocos2d::CCTexture2D::initPremultipliedATextureWithImage(this, (struct cocos2d::CCImage *)v9, v11, v12);\n      cocos2d::CCObject::release((cocos2d::CCObject *)v9);\n      return inited;\n    }\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCTexture2D::initWithString from 0x1800a9640 to 0x1800a9747 (263 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c1f20\n; > <???> @ 0x1801c1f2c\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:22:17 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800a9640\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800a9645\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800a964a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x1800a964f\npush    r14                                                            ; +0x14, 0x1800a9654\nsub     rsp, 60h                                                       ; +0x16, 0x1800a9656\nmovaps  [rsp+68h+var_18], xmm6                                         ; +0x1a, 0x1800a965a\nmovaps  xmm6, xmm3                                                     ; +0x1f, 0x1800a965f\nmov     rsi, r8                                                        ; +0x22, 0x1800a9662\nmov     rbp, rdx                                                       ; +0x25, 0x1800a9665\nmov     r14, rcx                                                       ; +0x28, 0x1800a9668\nxorps   xmm2, xmm2                                                     ; +0x2b, 0x1800a966b\nxorps   xmm1, xmm1                                                     ; +0x2e, 0x1800a966e\nlea     rcx, [rsp+68h+var_28]                                          ; +0x31, 0x1800a9671\ncall    kmVec2Fill                                                     ; +0x36, 0x1800a9676\nmov     rdi, rax                                                       ; +0x3b, 0x1800a967b\nmov     ecx, 50h ; 'P'; Size                                           ; +0x3e, 0x1800a967e\ncall    sub_1800E4AC0                                                  ; +0x43, 0x1800a9683\nmov     [rsp+68h+var_20], rax                                          ; +0x48, 0x1800a9688\ntest    rax, rax                                                       ; +0x4d, 0x1800a968d\njz      short loc_1800A969F                                            ; +0x50, 0x1800a9690\nmov     rcx, rax; this                                                 ; +0x52, 0x1800a9692\ncall    ??0CCImage@cocos2d@@QEAA@XZ; cocos2d::CCImage::CCImage(void)   ; +0x55, 0x1800a9695\nmov     rbx, rax                                                       ; +0x5a, 0x1800a969a\njmp     short loc_1800A96A1                                            ; +0x5d, 0x1800a969d\nxor     ebx, ebx                                                       ; +0x5f, 0x1800a969f\ntest    rbx, rbx                                                       ; +0x61, 0x1800a96a1\njz      short loc_1800A9725                                            ; +0x64, 0x1800a96a4\ncvttss2si eax, xmm6                                                    ; +0x66, 0x1800a96a6\ncvttss2si r9d, dword ptr [rdi+4]                                       ; +0x6a, 0x1800a96aa\ncvttss2si r8d, dword ptr [rdi]                                         ; +0x70, 0x1800a96b0\nmov     [rsp+68h+var_38], eax                                          ; +0x75, 0x1800a96b5\nmov     [rsp+68h+var_40], rsi                                          ; +0x79, 0x1800a96b9\nmov     [rsp+68h+var_48], 13h                                          ; +0x7e, 0x1800a96be\nmov     rdx, rbp                                                       ; +0x86, 0x1800a96c6\nmov     rcx, rbx                                                       ; +0x89, 0x1800a96c9\ncall    ?initWithString@CCImage@cocos2d@@QEAA_NPEBDHHW4ETextAlign@12@0H@Z; cocos2d::CCImage::initWithString(char const *,int,int,cocos2d::CCImage::ETextAlign,char const *,int) ; +0x8c, 0x1800a96cc\ntest    al, al                                                         ; +0x91, 0x1800a96d1\njz      short loc_1800A9727                                            ; +0x93, 0x1800a96d3\nmovzx   esi, word ptr [rbx+38h]                                        ; +0x95, 0x1800a96d5\nmovzx   edi, word ptr [rbx+3Ah]                                        ; +0x99, 0x1800a96d9\ncall    ?sharedConfiguration@CCConfiguration@cocos2d@@SAPEAV12@XZ; cocos2d::CCConfiguration::sharedConfiguration(void) ; +0x9d, 0x1800a96dd\nmov     rcx, rax; this                                                 ; +0xa2, 0x1800a96e2\ncall    ?getValue@CCInteger@cocos2d@@QEBAHXZ; cocos2d::CCInteger::getValue(void) ; +0xa5, 0x1800a96e5\ncmp     esi, eax                                                       ; +0xaa, 0x1800a96ea\nja      short loc_1800A9714                                            ; +0xac, 0x1800a96ec\ncmp     edi, eax                                                       ; +0xae, 0x1800a96ee\nja      short loc_1800A9714                                            ; +0xb0, 0x1800a96f0\nmov     r9d, edi; unsigned int                                         ; +0xb2, 0x1800a96f2\nmov     r8d, esi; unsigned int                                         ; +0xb5, 0x1800a96f5\nmov     rdx, rbx; struct cocos2d::CCImage *                            ; +0xb8, 0x1800a96f8\nmov     rcx, r14; this                                                 ; +0xbb, 0x1800a96fb\ncall    ?initPremultipliedATextureWithImage@CCTexture2D@cocos2d@@AEAA_NPEAVCCImage@2@II@Z; cocos2d::CCTexture2D::initPremultipliedATextureWithImage(cocos2d::CCImage *,uint,uint) ; +0xbe, 0x1800a96fe\nmovzx   edi, al                                                        ; +0xc3, 0x1800a9703\nmov     rcx, rbx; this                                                 ; +0xc6, 0x1800a9706\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xc9, 0x1800a9709\nmovzx   eax, dil                                                       ; +0xce, 0x1800a970e\njmp     short loc_1800A9727                                            ; +0xd2, 0x1800a9712\nxor     dil, dil                                                       ; +0xd4, 0x1800a9714\nmov     rcx, rbx; this                                                 ; +0xd7, 0x1800a9717\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xda, 0x1800a971a\nmovzx   eax, dil                                                       ; +0xdf, 0x1800a971f\njmp     short loc_1800A9727                                            ; +0xe3, 0x1800a9723\nxor     al, al                                                         ; +0xe5, 0x1800a9725\nlea     r11, [rsp+68h+var_8]                                           ; +0xe7, 0x1800a9727\nmov     rbx, [r11+10h]                                                 ; +0xec, 0x1800a972c\nmov     rbp, [r11+18h]                                                 ; +0xf0, 0x1800a9730\nmov     rsi, [r11+20h]                                                 ; +0xf4, 0x1800a9734\nmov     rdi, [r11+28h]                                                 ; +0xf8, 0x1800a9738\nmovaps  xmm6, [rsp+68h+var_18]                                         ; +0xfc, 0x1800a973c\nmov     rsp, r11                                                       ; +0x101, 0x1800a9741\npop     r14                                                            ; +0x104, 0x1800a9744\nretn                                                                   ; +0x106, 0x1800a9746", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801c1f20", "<???> @ 0x1801c1f2c"], "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"}