{"type": "func", "start": 6443142352, "end": 6443142453, "name": "cocos2d::CCTexture2D::getContentSize", "pseudocode": "// \n// cocos2d::CCTexture2D::getContentSize from 0x1800a8cd0 to 0x1800a8d35 (101 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0x18010b450\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c1ea8\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:16 +0000\n// \n\nfloat *__fastcall cocos2d::CCTexture2D::getContentSize(__int64 a1, float *a2)\n{\n  float v4; // xmm6_4\n  cocos2d::CCDirector *v5; // rax\n  cocos2d::CCDirector *v6; // rax\n  float ContentScaleFactor; // xmm0_4\n\n  cocos2d::CCSize::CCSize((cocos2d::CCSize *)a2);\n  v4 = *(float *)(a1 + 84);\n  v5 = cocos2d::CCDirector::sharedDirector();\n  *a2 = v4 / cocos2d::CCDirector::getContentScaleFactor(v5);\n  v6 = cocos2d::CCDirector::sharedDirector();\n  ContentScaleFactor = cocos2d::CCDirector::getContentScaleFactor(v6);\n  a2[1] = *(float *)(a1 + 88) / ContentScaleFactor;\n  return a2;\n}", "assembly": "; \n; cocos2d::CCTexture2D::getContentSize from 0x1800a8cd0 to 0x1800a8d35 (101 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0x18010b450\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c1ea8\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:16 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800a8cd0\npush    rdi                                                            ; +0x5, 0x1800a8cd5\nsub     rsp, 30h                                                       ; +0x6, 0x1800a8cd6\nmov     rbx, rcx                                                       ; +0xa, 0x1800a8cda\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0xd, 0x1800a8cdd\nmov     rcx, rdx; this                                                 ; +0x12, 0x1800a8ce2\nmov     rdi, rdx                                                       ; +0x15, 0x1800a8ce5\ncall    ??0CCSize@cocos2d@@QEAA@XZ; cocos2d::CCSize::CCSize(void)      ; +0x18, 0x1800a8ce8\nmovss   xmm6, dword ptr [rbx+54h]                                      ; +0x1d, 0x1800a8ced\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x22, 0x1800a8cf2\nmov     rcx, rax; this                                                 ; +0x27, 0x1800a8cf7\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x2a, 0x1800a8cfa\ndivss   xmm6, xmm0                                                     ; +0x2f, 0x1800a8cff\nmovss   dword ptr [rdi], xmm6                                          ; +0x33, 0x1800a8d03\ncall    ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x37, 0x1800a8d07\nmov     rcx, rax; this                                                 ; +0x3c, 0x1800a8d0c\ncall    ?getContentScaleFactor@CCDirector@cocos2d@@QEAAMXZ; cocos2d::CCDirector::getContentScaleFactor(void) ; +0x3f, 0x1800a8d0f\nmovss   xmm1, dword ptr [rbx+58h]                                      ; +0x44, 0x1800a8d14\nmov     rax, rdi                                                       ; +0x49, 0x1800a8d19\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x4c, 0x1800a8d1c\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x51, 0x1800a8d21\ndivss   xmm1, xmm0                                                     ; +0x56, 0x1800a8d26\nmovss   dword ptr [rdi+4], xmm1                                        ; +0x5a, 0x1800a8d2a\nadd     rsp, 30h                                                       ; +0x5f, 0x1800a8d2f\npop     rdi                                                            ; +0x63, 0x1800a8d33\nretn                                                                   ; +0x64, 0x1800a8d34", "xrefs": ["<???> @ 0x18010b450", "<???> @ 0x18014cf68", "<???> @ 0x1801c1ea8"], "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"}