{"type": "func", "start": 6442747792, "end": 6442747967, "name": "cocos2d::CCLabelBMFont::getLetterPosXLeft", "pseudocode": "// \n// cocos2d::CCLabelBMFont::getLetterPosXLeft from 0x180048790 to 0x18004883f (175 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b1938\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::getLetterPosXLeft(\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->getPosition_0)(a2);\n  m_fScaleX = this->m_fScaleX;\n  v10 = *v8;\n  return (float)(m_fScaleX * v10)\n       - (float)((float)(v7 * m_fScaleX)\n               * *(float *)((__int64 (__fastcall *)(struct cocos2d::CCSprite *))a2->getAnchorPoint)(a2));\n}", "assembly": "; \n; cocos2d::CCLabelBMFont::getLetterPosXLeft from 0x180048790 to 0x18004883f (175 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b1938\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, 0x180048790\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180048795\npush    rdi                                                            ; +0xa, 0x18004879a\nsub     rsp, 50h                                                       ; +0xb, 0x18004879b\nmov     rax, [rdx]                                                     ; +0xf, 0x18004879f\nmov     rsi, rcx                                                       ; +0x12, 0x1800487a2\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x15, 0x1800487a5\nmov     rcx, rdx                                                       ; +0x1a, 0x1800487aa\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x1d, 0x1800487ad\nmovzx   ebx, r9b                                                       ; +0x22, 0x1800487b2\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x26, 0x1800487b6\nmovaps  xmm6, xmm2                                                     ; +0x2c, 0x1800487bc\nmov     rdi, rdx                                                       ; +0x2f, 0x1800487bf\ncall    qword ptr [rax+130h]                                           ; +0x32, 0x1800487c2\nmovss   xmm8, dword ptr [rax]                                          ; +0x38, 0x1800487c8\ntest    bl, bl                                                         ; +0x3d, 0x1800487cd\njz      short loc_1800487E7                                            ; +0x3f, 0x1800487cf\nxorps   xmm0, xmm0                                                     ; +0x41, 0x1800487d1\ncomiss  xmm0, xmm8                                                     ; +0x44, 0x1800487d4\njb      short loc_1800487E7                                            ; +0x48, 0x1800487d8\nmovaps  xmm8, xmm6                                                     ; +0x4a, 0x1800487da\nmulss   xmm8, cs:dword_1800EC8C4                                       ; +0x4e, 0x1800487de\nmov     rax, [rdi]                                                     ; +0x57, 0x1800487e7\nmov     rcx, rdi                                                       ; +0x5a, 0x1800487ea\ncall    qword ptr [rax+0C8h]                                           ; +0x5d, 0x1800487ed\nmovss   xmm7, dword ptr [rsi+40h]                                      ; +0x63, 0x1800487f3\nmov     rcx, rdi                                                       ; +0x68, 0x1800487f8\nmovss   xmm6, dword ptr [rax]                                          ; +0x6b, 0x1800487fb\nmov     rax, [rdi]                                                     ; +0x6f, 0x1800487ff\ncall    qword ptr [rax+118h]                                           ; +0x72, 0x180048802\nmulss   xmm8, dword ptr [rsi+40h]                                      ; +0x78, 0x180048808\nmov     rbx, [rsp+58h+arg_0]                                           ; +0x7e, 0x18004880e\nmov     rsi, [rsp+58h+arg_8]                                           ; +0x83, 0x180048813\nmulss   xmm7, xmm6                                                     ; +0x88, 0x180048818\nmulss   xmm8, dword ptr [rax]                                          ; +0x8c, 0x18004881c\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x91, 0x180048821\nsubss   xmm7, xmm8                                                     ; +0x96, 0x180048826\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0x9b, 0x18004882b\nmovaps  xmm0, xmm7                                                     ; +0xa1, 0x180048831\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0xa4, 0x180048834\nadd     rsp, 50h                                                       ; +0xa9, 0x180048839\npop     rdi                                                            ; +0xad, 0x18004883d\nretn                                                                   ; +0xae, 0x18004883e", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b1938"], "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"}