{"type": "func", "start": 6442747968, "end": 6442748145, "name": "cocos2d::CCLabelBMFont::getLetterPosXRight", "pseudocode": "// \n// cocos2d::CCLabelBMFont::getLetterPosXRight from 0x180048840 to 0x1800488f1 (177 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1944\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\nfloat __fastcall cocos2d::CCLabelBMFont::getLetterPosXRight(\n        cocos2d::CCLabelBMFont *this,\n        struct cocos2d::CCSprite *a2,\n        float a3,\n        char a4)\n{\n  float v7; // xmm8_4\n  float *v8; // rax\n  float m_fScaleX; // xmm7_4\n  float v10; // xmm6_4\n\n  v7 = *(float *)((__int64 (__fastcall *)(struct cocos2d::CCSprite *))a2->getContentSize)(a2);\n  if ( !a4 && v7 <= 0.0 )\n    v7 = a3 * 1.5;\n  v8 = (float *)((__int64 (__fastcall *)(struct cocos2d::CCSprite *))a2->getAnchorPoint)(a2);\n  m_fScaleX = this->m_fScaleX;\n  v10 = *v8;\n  return (float)((float)(m_fScaleX * v7) * v10)\n       + (float)(m_fScaleX * *(float *)((__int64 (__fastcall *)(struct cocos2d::CCSprite *))a2->getPosition_0)(a2));\n}", "assembly": "; \n; cocos2d::CCLabelBMFont::getLetterPosXRight from 0x180048840 to 0x1800488f1 (177 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1944\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, 0x180048840\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180048845\npush    rdi                                                            ; +0xa, 0x18004884a\nsub     rsp, 50h                                                       ; +0xb, 0x18004884b\nmov     rax, [rdx]                                                     ; +0xf, 0x18004884f\nmov     rsi, rcx                                                       ; +0x12, 0x180048852\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x15, 0x180048855\nmov     rcx, rdx                                                       ; +0x1a, 0x18004885a\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x1d, 0x18004885d\nmovzx   ebx, r9b                                                       ; +0x22, 0x180048862\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x26, 0x180048866\nmovaps  xmm6, xmm2                                                     ; +0x2c, 0x18004886c\nmov     rdi, rdx                                                       ; +0x2f, 0x18004886f\ncall    qword ptr [rax+130h]                                           ; +0x32, 0x180048872\nmovss   xmm8, dword ptr [rax]                                          ; +0x38, 0x180048878\ntest    bl, bl                                                         ; +0x3d, 0x18004887d\njnz     short loc_180048897                                            ; +0x3f, 0x18004887f\nxorps   xmm0, xmm0                                                     ; +0x41, 0x180048881\ncomiss  xmm0, xmm8                                                     ; +0x44, 0x180048884\njb      short loc_180048897                                            ; +0x48, 0x180048888\nmovaps  xmm8, xmm6                                                     ; +0x4a, 0x18004888a\nmulss   xmm8, cs:dword_1800EC8C4                                       ; +0x4e, 0x18004888e\nmov     rax, [rdi]                                                     ; +0x57, 0x180048897\nmov     rcx, rdi                                                       ; +0x5a, 0x18004889a\ncall    qword ptr [rax+118h]                                           ; +0x5d, 0x18004889d\nmovss   xmm7, dword ptr [rsi+40h]                                      ; +0x63, 0x1800488a3\nmov     rcx, rdi                                                       ; +0x68, 0x1800488a8\nmovss   xmm6, dword ptr [rax]                                          ; +0x6b, 0x1800488ab\nmov     rax, [rdi]                                                     ; +0x6f, 0x1800488af\ncall    qword ptr [rax+0C8h]                                           ; +0x72, 0x1800488b2\nmovss   xmm1, dword ptr [rsi+40h]                                      ; +0x78, 0x1800488b8\nmov     rbx, [rsp+58h+arg_0]                                           ; +0x7d, 0x1800488bd\nmov     rsi, [rsp+58h+arg_8]                                           ; +0x82, 0x1800488c2\nmulss   xmm1, dword ptr [rax]                                          ; +0x87, 0x1800488c7\nmulss   xmm7, xmm8                                                     ; +0x8b, 0x1800488cb\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0x90, 0x1800488d0\nmulss   xmm7, xmm6                                                     ; +0x96, 0x1800488d6\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x9a, 0x1800488da\naddss   xmm7, xmm1                                                     ; +0x9f, 0x1800488df\nmovaps  xmm0, xmm7                                                     ; +0xa3, 0x1800488e3\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0xa6, 0x1800488e6\nadd     rsp, 50h                                                       ; +0xab, 0x1800488eb\npop     rdi                                                            ; +0xaf, 0x1800488ef\nretn                                                                   ; +0xb0, 0x1800488f0", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b1944"], "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"}