{"type": "func", "start": 5369229824, "end": 5369230116, "name": "EmoteSprite::fitToHeight", "pseudocode": "// \n// EmoteSprite::fitToHeight from 0x14007f200 to 0x14007f324 (292 bytes)\n// \n// 23 xrefs:\n// > MultilineBitmapFont::initWithFont @ 0x1400794fb\n// > EmoteSprite::attachToLabel @ 0x1400803ac\n// > ThreadViewPopup::init @ 0x1400d9fab\n// > ThreadViewPopup::layoutTitleRow @ 0x1400e31dc\n// > NewThreadPopup::init @ 0x1400f0428\n// > NewThreadPopup::refreshIconSlot @ 0x1400f0a0d\n// > InvitesPopup::buildRows @ 0x1400f8047\n// > ThreadDescPopup::buildUI @ 0x1400fd195\n// > ThreadDescPopup::refreshIconSlot @ 0x1400fd88d\n// > ThreadRequestPopup::init @ 0x1400feeb9\n// > EmotePickerPopup::addCell @ 0x140124011\n// > GJThreadCell::loadFromThread @ 0x140159ac9\n// > GJNotificationCell::loadFromNotification @ 0x14015b85e\n// > EditLevelLayer::init @ 0x140178fb9\n// > EditorSoundConfigCell::loadFromConfig @ 0x1401909f6\n// > EditorSoundConfigInfoLayer::init @ 0x14019295a\n// > SoundPackDescPopup::init @ 0x140199a8e\n// > SoundPackDescPopup::refreshIconSlot @ 0x140199f66\n// > SetTextPopup::init @ 0x1403a7b19\n// > ShareCommentLayer::init @ 0x14062f08c\n// > <???> @ 0x14088ade4\n// > <???> @ 0x14088adf4\n// > <???> @ 0x140911ed0\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:25:54 +0000\n// \n\n__int64 __fastcall EmoteSprite::fitToHeight(_QWORD *a1, float a2, float a3)\n{\n  __int64 result; // rax\n  float v5; // xmm0_4\n  __int64 v6; // rax\n  float v7; // xmm8_4\n  float v8; // xmm6_4\n  double v9; // xmm0_8\n  float v10; // xmm7_4\n  double v11; // xmm0_8\n  __int64 v12; // rax\n  __int64 v13; // rbx\n  __int64 v14; // rax\n  char v15; // [rsp+60h] [rbp+8h] BYREF\n  char v16; // [rsp+78h] [rbp+20h] BYREF\n\n  result = (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 320LL))(a1);\n  v5 = *(float *)(result + 4);\n  if ( v5 > 0.0 )\n  {\n    if ( a3 > 0.0 )\n      fminf(a2 / v5, (float)(a2 * a3) / *(float *)(*(__int64 (__fastcall **)(_QWORD *))(*a1 + 320LL))(a1));\n    (*(void (__fastcall **)(_QWORD *))(*a1 + 160LL))(a1);\n    v6 = a1[75];\n    v7 = *(float *)(v6 + 16);\n    if ( *(_BYTE *)(v6 + 40) )\n      v7 = -v7;\n    v8 = *(float *)(v6 + 20);\n    v9 = (*(double (__fastcall **)(_QWORD *))(*a1 + 168LL))(a1);\n    v10 = *(float *)&v9 * v8;\n    v11 = (*(double (__fastcall **)(_QWORD *))(*a1 + 168LL))(a1);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v16, *(float *)&v11 * v7, v10);\n    v13 = v12;\n    v14 = (*(__int64 (__fastcall **)(_QWORD *))(*a1 + 200LL))(a1);\n    cocos2d::CCPoint::operator+(v14, &v15, v13);\n    return (*(__int64 (__fastcall **)(_QWORD *, char *))(*a1 + 184LL))(a1, &v15);\n  }\n  return result;\n}", "assembly": "; \n; EmoteSprite::fitToHeight from 0x14007f200 to 0x14007f324 (292 bytes)\n; \n; 23 xrefs:\n; > MultilineBitmapFont::initWithFont @ 0x1400794fb\n; > EmoteSprite::attachToLabel @ 0x1400803ac\n; > ThreadViewPopup::init @ 0x1400d9fab\n; > ThreadViewPopup::layoutTitleRow @ 0x1400e31dc\n; > NewThreadPopup::init @ 0x1400f0428\n; > NewThreadPopup::refreshIconSlot @ 0x1400f0a0d\n; > InvitesPopup::buildRows @ 0x1400f8047\n; > ThreadDescPopup::buildUI @ 0x1400fd195\n; > ThreadDescPopup::refreshIconSlot @ 0x1400fd88d\n; > ThreadRequestPopup::init @ 0x1400feeb9\n; > EmotePickerPopup::addCell @ 0x140124011\n; > GJThreadCell::loadFromThread @ 0x140159ac9\n; > GJNotificationCell::loadFromNotification @ 0x14015b85e\n; > EditLevelLayer::init @ 0x140178fb9\n; > EditorSoundConfigCell::loadFromConfig @ 0x1401909f6\n; > EditorSoundConfigInfoLayer::init @ 0x14019295a\n; > SoundPackDescPopup::init @ 0x140199a8e\n; > SoundPackDescPopup::refreshIconSlot @ 0x140199f66\n; > SetTextPopup::init @ 0x1403a7b19\n; > ShareCommentLayer::init @ 0x14062f08c\n; > <???> @ 0x14088ade4\n; > <???> @ 0x14088adf4\n; > <???> @ 0x140911ed0\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:25:54 +0000\n; \npush    rdi                                                            ; +0x0, 0x14007f200\nsub     rsp, 50h                                                       ; +0x2, 0x14007f202\nmov     rax, [rcx]                                                     ; +0x6, 0x14007f206\nmov     rdi, rcx                                                       ; +0x9, 0x14007f209\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0xc, 0x14007f20c\nmovaps  xmm7, xmm1                                                     ; +0x11, 0x14007f211\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0x14, 0x14007f214\nmovaps  xmm8, xmm2                                                     ; +0x1a, 0x14007f21a\ncall    qword ptr [rax+140h]                                           ; +0x1e, 0x14007f21e\nxorps   xmm1, xmm1                                                     ; +0x24, 0x14007f224\nmovss   xmm0, dword ptr [rax+4]                                        ; +0x27, 0x14007f227\ncomiss  xmm1, xmm0                                                     ; +0x2c, 0x14007f22c\njnb     loc_14007F313                                                  ; +0x2f, 0x14007f22f\ncomiss  xmm8, xmm1                                                     ; +0x35, 0x14007f235\nmov     [rsp+58h+arg_8], rbx                                           ; +0x39, 0x14007f239\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x3e, 0x14007f23e\nmovaps  xmm6, xmm7                                                     ; +0x43, 0x14007f243\ndivss   xmm6, xmm0                                                     ; +0x46, 0x14007f246\njbe     short loc_14007F265                                            ; +0x4a, 0x14007f24a\nmov     rax, [rdi]                                                     ; +0x4c, 0x14007f24c\nmov     rcx, rdi                                                       ; +0x4f, 0x14007f24f\ncall    qword ptr [rax+140h]                                           ; +0x52, 0x14007f252\nmulss   xmm7, xmm8                                                     ; +0x58, 0x14007f258\ndivss   xmm7, dword ptr [rax]                                          ; +0x5d, 0x14007f25d\nminss   xmm6, xmm7                                                     ; +0x61, 0x14007f261\nmov     rax, [rdi+258h]                                                ; +0x65, 0x14007f265\nmov     rcx, rdi                                                       ; +0x6c, 0x14007f26c\nmulss   xmm6, dword ptr [rax+0Ch]                                      ; +0x6f, 0x14007f26f\nmov     rax, [rdi]                                                     ; +0x74, 0x14007f274\nmovaps  xmm1, xmm6                                                     ; +0x77, 0x14007f277\ncall    qword ptr [rax+0A0h]                                           ; +0x7a, 0x14007f27a\nmov     rax, [rdi+258h]                                                ; +0x80, 0x14007f280\ncmp     byte ptr [rax+28h], 0                                          ; +0x87, 0x14007f287\nmovss   xmm8, dword ptr [rax+10h]                                      ; +0x8b, 0x14007f28b\njz      short loc_14007F29B                                            ; +0x91, 0x14007f291\nxorps   xmm8, cs:xmmword_140836CC0                                     ; +0x93, 0x14007f293\nmovss   xmm6, dword ptr [rax+14h]                                      ; +0x9b, 0x14007f29b\nmov     rcx, rdi                                                       ; +0xa0, 0x14007f2a0\nmov     rax, [rdi]                                                     ; +0xa3, 0x14007f2a3\ncall    qword ptr [rax+0A8h]                                           ; +0xa6, 0x14007f2a6\nmov     rax, [rdi]                                                     ; +0xac, 0x14007f2ac\nmov     rcx, rdi                                                       ; +0xaf, 0x14007f2af\nmovaps  xmm7, xmm0                                                     ; +0xb2, 0x14007f2b2\nmulss   xmm7, xmm6                                                     ; +0xb5, 0x14007f2b5\ncall    qword ptr [rax+0A8h]                                           ; +0xb9, 0x14007f2b9\nmulss   xmm0, xmm8                                                     ; +0xbf, 0x14007f2bf\nmovaps  xmm2, xmm7                                                     ; +0xc4, 0x14007f2c4\nlea     rcx, [rsp+58h+arg_18]                                          ; +0xc7, 0x14007f2c7\nmovaps  xmm1, xmm0                                                     ; +0xcc, 0x14007f2cc\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0xcf, 0x14007f2cf\nmov     rcx, [rdi]                                                     ; +0xd5, 0x14007f2d5\nmov     rbx, rax                                                       ; +0xd8, 0x14007f2d8\nmov     rdx, [rcx+0C8h]                                                ; +0xdb, 0x14007f2db\nmov     rcx, rdi                                                       ; +0xe2, 0x14007f2e2\ncall    rdx                                                            ; +0xe5, 0x14007f2e5\nmov     r8, rbx                                                        ; +0xe7, 0x14007f2e7\nlea     rdx, [rsp+58h+arg_0]                                           ; +0xea, 0x14007f2ea\nmov     rcx, rax                                                       ; +0xef, 0x14007f2ef\ncall    cs:??HCCPoint@cocos2d@@QEBA?AV01@AEBV01@@Z; cocos2d::CCPoint::operator+(cocos2d::CCPoint const &) ; +0xf2, 0x14007f2f2\nmov     rax, [rdi]                                                     ; +0xf8, 0x14007f2f8\nlea     rdx, [rsp+58h+arg_0]                                           ; +0xfb, 0x14007f2fb\nmov     rcx, rdi                                                       ; +0x100, 0x14007f300\ncall    qword ptr [rax+0B8h]                                           ; +0x103, 0x14007f303\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0x109, 0x14007f309\nmov     rbx, [rsp+58h+arg_8]                                           ; +0x10e, 0x14007f30e\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0x113, 0x14007f313\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0x118, 0x14007f318\nadd     rsp, 50h                                                       ; +0x11e, 0x14007f31e\npop     rdi                                                            ; +0x122, 0x14007f322\nretn                                                                   ; +0x123, 0x14007f323", "xrefs": ["MultilineBitmapFont::initWithFont @ 0x1400794fb", "EmoteSprite::attachToLabel @ 0x1400803ac", "ThreadViewPopup::init @ 0x1400d9fab", "ThreadViewPopup::layoutTitleRow @ 0x1400e31dc", "NewThreadPopup::init @ 0x1400f0428", "NewThreadPopup::refreshIconSlot @ 0x1400f0a0d", "InvitesPopup::buildRows @ 0x1400f8047", "ThreadDescPopup::buildUI @ 0x1400fd195", "ThreadDescPopup::refreshIconSlot @ 0x1400fd88d", "ThreadRequestPopup::init @ 0x1400feeb9", "EmotePickerPopup::addCell @ 0x140124011", "GJThreadCell::loadFromThread @ 0x140159ac9", "GJNotificationCell::loadFromNotification @ 0x14015b85e", "EditLevelLayer::init @ 0x140178fb9", "EditorSoundConfigCell::loadFromConfig @ 0x1401909f6", "EditorSoundConfigInfoLayer::init @ 0x14019295a", "SoundPackDescPopup::init @ 0x140199a8e", "SoundPackDescPopup::refreshIconSlot @ 0x140199f66", "SetTextPopup::init @ 0x1403a7b19", "ShareCommentLayer::init @ 0x14062f08c", "<???> @ 0x14088ade4", "<???> @ 0x14088adf4", "<???> @ 0x140911ed0"], "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"}