{"type": "func", "start": 5369441712, "end": 5369442311, "name": "StatsCell::loadFromObject", "pseudocode": "// \n// StatsCell::loadFromObject from 0x1400b2db0 to 0x1400b3007 (599 bytes)\n// \n// 2 xrefs:\n// > CustomListView::loadCell @ 0x1400ab819\n// > <???> @ 0x1406c7aac\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\nvoid StatsCell::loadFromObject(StatsCell *a1, StatsObject *a2)\n{\n  StatsObject *v3; // rbx\n  _BOOL8 v4; // rdx\n  int m_value; // edi\n  StatsCell *v6; // rcx\n  const char *TitleFromKey; // rax\n  struct cocos2d::CCLabelBMFont *v8; // rsi\n  cocos2d::CCString *v9; // rax\n  const char *CString; // rax\n  struct cocos2d::CCLabelBMFont *v11; // rdi\n  cocos2d::CCLabelBMFont_vtbl *v12; // rbx\n  const cocos2d::CCPoint *v13; // rax\n  cocos2d::CCLabelBMFont_vtbl *v14; // rbx\n  const cocos2d::CCPoint *v15; // rax\n  cocos2d::CCLabelBMFont_vtbl *v16; // rbx\n  const cocos2d::CCPoint *v17; // rax\n  cocos2d::CCLabelBMFont_vtbl *v18; // rbx\n  const cocos2d::CCPoint *v19; // rax\n  cocos2d::CCPoint v20; // [rsp+50h] [rbp+8h] BYREF\n\n  v3 = a2;\n  LOBYTE(a2) = -1;\n  a1->m_backgroundLayer->setOpacity(&a1->m_backgroundLayer->cocos2d::CCRGBAProtocol, (GLubyte)a2);\n  LOBYTE(v4) = 1;\n  a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, v4);\n  m_value = v3->m_value;\n  TitleFromKey = StatsCell::getTitleFromKey(v6, v3->m_key);\n  v8 = cocos2d::CCLabelBMFont::create(TitleFromKey, \"goldFont.fnt\");\n  a1->m_mainLayer->addChild_1(a1->m_mainLayer, v8);\n  if ( v8->getContentSize(v8)->width > 200.0 )\n  {\n    fminf(1.0, 200.0 / v8->getContentSize(v8)->width);\n    ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v8->setScale_0)(v8);\n  }\n  v9 = cocos2d::CCString::createWithFormat(\"%i\", m_value);\n  CString = cocos2d::CCString::getCString(v9);\n  v11 = cocos2d::CCLabelBMFont::create(CString, \"goldFont.fnt\");\n  a1->m_mainLayer->addChild_1(a1->m_mainLayer, v11);\n  if ( v11->getContentSize(v11)->width > 100.0 )\n  {\n    fminf(1.0, 100.0 / v11->getContentSize(v11)->width);\n    ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v11->setScale_0)(v11);\n  }\n  v8->getScale(v8);\n  ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v8->setScale_0)(v8);\n  v11->getScale(v11);\n  ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v11->setScale_0)(v11);\n  v12 = v8->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  cocos2d::CCPoint::CCPoint(&v20, 0.0, 0.5);\n  v12->setAnchorPoint(v8, v13);\n  v14 = v11->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  cocos2d::CCPoint::CCPoint(&v20, 1.0, 0.5);\n  v14->setAnchorPoint(v11, v15);\n  v16 = v8->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  cocos2d::CCPoint::CCPoint(&v20, 20.0, (float)(a1->m_height * 0.5) - 1.0);\n  v16->setPosition_0(v8, v17);\n  v18 = v11->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n  cocos2d::CCPoint::CCPoint(&v20, 330.0, (float)(a1->m_height * 0.5) - 1.0);\n  v18->setPosition_0(v11, v19);\n}", "assembly": "; \n; StatsCell::loadFromObject from 0x1400b2db0 to 0x1400b3007 (599 bytes)\n; \n; 2 xrefs:\n; > CustomListView::loadCell @ 0x1400ab819\n; > <???> @ 0x1406c7aac\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_8], rbx                                               ; +0x0, 0x1400b2db0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1400b2db5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1400b2dba\npush    rdi                                                            ; +0xf, 0x1400b2dbf\nsub     rsp, 40h                                                       ; +0x10, 0x1400b2dc0\nmov     rbp, rcx                                                       ; +0x14, 0x1400b2dc4\nmovaps  [rsp+48h+var_18], xmm6                                         ; +0x17, 0x1400b2dc7\nmov     rcx, [rcx+218h]                                                ; +0x1c, 0x1400b2dcc\nmov     rbx, rdx                                                       ; +0x23, 0x1400b2dd3\nadd     rcx, 198h                                                      ; +0x26, 0x1400b2dd6\nmovaps  [rsp+48h+var_28], xmm7                                         ; +0x2d, 0x1400b2ddd\nmov     dl, 0FFh                                                       ; +0x32, 0x1400b2de2\nmov     rax, [rcx]                                                     ; +0x34, 0x1400b2de4\ncall    qword ptr [rax+28h]                                            ; +0x37, 0x1400b2de7\nmov     rcx, [rbp+220h]                                                ; +0x3a, 0x1400b2dea\nmov     dl, 1                                                          ; +0x41, 0x1400b2df1\nmov     rax, [rcx]                                                     ; +0x43, 0x1400b2df3\ncall    qword ptr [rax+230h]                                           ; +0x46, 0x1400b2df6\nmov     rdx, [rbx+38h]                                                 ; +0x4c, 0x1400b2dfc\nmov     edi, [rbx+40h]                                                 ; +0x50, 0x1400b2e00\ncall    StatsCell__getTitleFromKey                                     ; +0x53, 0x1400b2e03\nmov     rcx, rax                                                       ; +0x58, 0x1400b2e08\nlea     rdx, aGoldfontFnt; \"goldFont.fnt\"                              ; +0x5b, 0x1400b2e0b\ncall    cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0x62, 0x1400b2e12\nmov     rcx, [rbp+220h]                                                ; +0x68, 0x1400b2e18\nmov     rdx, rax                                                       ; +0x6f, 0x1400b2e1f\nmov     rsi, rax                                                       ; +0x72, 0x1400b2e22\nmov     r8, [rcx]                                                      ; +0x75, 0x1400b2e25\ncall    qword ptr [r8+1C0h]                                            ; +0x78, 0x1400b2e28\nmov     rdx, [rsi]                                                     ; +0x7f, 0x1400b2e2f\nmov     rcx, rsi                                                       ; +0x82, 0x1400b2e32\ncall    qword ptr [rdx+130h]                                           ; +0x85, 0x1400b2e35\nmovss   xmm6, cs:dword_1406233D0                                       ; +0x8b, 0x1400b2e3b\nmovss   xmm7, cs:flt_140622C24                                         ; +0x93, 0x1400b2e43\nmovss   xmm0, dword ptr [rax]                                          ; +0x9b, 0x1400b2e4b\ncomiss  xmm0, xmm6                                                     ; +0x9f, 0x1400b2e4f\njbe     short loc_1400B2E77                                            ; +0xa2, 0x1400b2e52\nmov     rax, [rsi]                                                     ; +0xa4, 0x1400b2e54\nmov     rcx, rsi                                                       ; +0xa7, 0x1400b2e57\ncall    qword ptr [rax+130h]                                           ; +0xaa, 0x1400b2e5a\nmovaps  xmm1, xmm7                                                     ; +0xb0, 0x1400b2e60\nmov     rcx, rsi                                                       ; +0xb3, 0x1400b2e63\ndivss   xmm6, dword ptr [rax]                                          ; +0xb6, 0x1400b2e66\nmov     rax, [rsi]                                                     ; +0xba, 0x1400b2e6a\nminss   xmm1, xmm6                                                     ; +0xbd, 0x1400b2e6d\ncall    qword ptr [rax+0A0h]                                           ; +0xc1, 0x1400b2e71\nmov     edx, edi                                                       ; +0xc7, 0x1400b2e77\nlea     rcx, aI_11; \"%i\"                                               ; +0xc9, 0x1400b2e79\ncall    cs:?createWithFormat@CCString@cocos2d@@SAPEAV12@PEBDZZ; cocos2d::CCString::createWithFormat(char const *,...) ; +0xd0, 0x1400b2e80\nmov     rcx, rax                                                       ; +0xd6, 0x1400b2e86\ncall    cs:?getCString@CCString@cocos2d@@QEBAPEBDXZ; cocos2d::CCString::getCString(void) ; +0xd9, 0x1400b2e89\nmov     rcx, rax                                                       ; +0xdf, 0x1400b2e8f\nlea     rdx, aGoldfontFnt; \"goldFont.fnt\"                              ; +0xe2, 0x1400b2e92\ncall    cs:?create@CCLabelBMFont@cocos2d@@SAPEAV12@PEBD0@Z; cocos2d::CCLabelBMFont::create(char const *,char const *) ; +0xe9, 0x1400b2e99\nmov     rcx, [rbp+220h]                                                ; +0xef, 0x1400b2e9f\nmov     rdx, rax                                                       ; +0xf6, 0x1400b2ea6\nmov     rdi, rax                                                       ; +0xf9, 0x1400b2ea9\nmov     r8, [rcx]                                                      ; +0xfc, 0x1400b2eac\ncall    qword ptr [r8+1C0h]                                            ; +0xff, 0x1400b2eaf\nmov     rdx, [rdi]                                                     ; +0x106, 0x1400b2eb6\nmov     rcx, rdi                                                       ; +0x109, 0x1400b2eb9\ncall    qword ptr [rdx+130h]                                           ; +0x10c, 0x1400b2ebc\nmovss   xmm6, cs:dword_1406232BC                                       ; +0x112, 0x1400b2ec2\nmovss   xmm0, dword ptr [rax]                                          ; +0x11a, 0x1400b2eca\ncomiss  xmm0, xmm6                                                     ; +0x11e, 0x1400b2ece\njbe     short loc_1400B2EF6                                            ; +0x121, 0x1400b2ed1\nmov     rax, [rdi]                                                     ; +0x123, 0x1400b2ed3\nmov     rcx, rdi                                                       ; +0x126, 0x1400b2ed6\ncall    qword ptr [rax+130h]                                           ; +0x129, 0x1400b2ed9\nmovaps  xmm1, xmm7                                                     ; +0x12f, 0x1400b2edf\nmov     rcx, rdi                                                       ; +0x132, 0x1400b2ee2\ndivss   xmm6, dword ptr [rax]                                          ; +0x135, 0x1400b2ee5\nmov     rax, [rdi]                                                     ; +0x139, 0x1400b2ee9\nminss   xmm1, xmm6                                                     ; +0x13c, 0x1400b2eec\ncall    qword ptr [rax+0A0h]                                           ; +0x140, 0x1400b2ef0\nmov     rax, [rsi]                                                     ; +0x146, 0x1400b2ef6\nmov     rcx, rsi                                                       ; +0x149, 0x1400b2ef9\ncall    qword ptr [rax+0A8h]                                           ; +0x14c, 0x1400b2efc\nmov     rax, [rsi]                                                     ; +0x152, 0x1400b2f02\nmov     rcx, rsi                                                       ; +0x155, 0x1400b2f05\nminss   xmm0, cs:dword_140622B74                                       ; +0x158, 0x1400b2f08\nmovaps  xmm1, xmm0                                                     ; +0x160, 0x1400b2f10\ncall    qword ptr [rax+0A0h]                                           ; +0x163, 0x1400b2f13\nmov     rax, [rdi]                                                     ; +0x169, 0x1400b2f19\nmov     rcx, rdi                                                       ; +0x16c, 0x1400b2f1c\ncall    qword ptr [rax+0A8h]                                           ; +0x16f, 0x1400b2f1f\nmov     rax, [rdi]                                                     ; +0x175, 0x1400b2f25\nmov     rcx, rdi                                                       ; +0x178, 0x1400b2f28\nminss   xmm0, cs:dword_140622B74                                       ; +0x17b, 0x1400b2f2b\nmovaps  xmm1, xmm0                                                     ; +0x183, 0x1400b2f33\ncall    qword ptr [rax+0A0h]                                           ; +0x186, 0x1400b2f36\nmovss   xmm6, cs:dword_140622B08                                       ; +0x18c, 0x1400b2f3c\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x194, 0x1400b2f44\nmov     rbx, [rsi]                                                     ; +0x199, 0x1400b2f49\nmovaps  xmm2, xmm6                                                     ; +0x19c, 0x1400b2f4c\nxorps   xmm1, xmm1                                                     ; +0x19f, 0x1400b2f4f\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1a2, 0x1400b2f52\nmov     rdx, rax                                                       ; +0x1a8, 0x1400b2f58\nmov     rcx, rsi                                                       ; +0x1ab, 0x1400b2f5b\ncall    qword ptr [rbx+110h]                                           ; +0x1ae, 0x1400b2f5e\nmov     rbx, [rdi]                                                     ; +0x1b4, 0x1400b2f64\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x1b7, 0x1400b2f67\nmovaps  xmm2, xmm6                                                     ; +0x1bc, 0x1400b2f6c\nmovaps  xmm1, xmm7                                                     ; +0x1bf, 0x1400b2f6f\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1c2, 0x1400b2f72\nmov     rdx, rax                                                       ; +0x1c8, 0x1400b2f78\nmov     rcx, rdi                                                       ; +0x1cb, 0x1400b2f7b\ncall    qword ptr [rbx+110h]                                           ; +0x1ce, 0x1400b2f7e\nmovss   xmm2, dword ptr [rbp+214h]                                     ; +0x1d4, 0x1400b2f84\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x1dc, 0x1400b2f8c\nmovss   xmm1, cs:dword_140623120                                       ; +0x1e1, 0x1400b2f91\nmov     rbx, [rsi]                                                     ; +0x1e9, 0x1400b2f99\nmulss   xmm2, xmm6                                                     ; +0x1ec, 0x1400b2f9c\nsubss   xmm2, xmm7                                                     ; +0x1f0, 0x1400b2fa0\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x1f4, 0x1400b2fa4\nmov     rdx, rax                                                       ; +0x1fa, 0x1400b2faa\nmov     rcx, rsi                                                       ; +0x1fd, 0x1400b2fad\ncall    qword ptr [rbx+0B8h]                                           ; +0x200, 0x1400b2fb0\nmovss   xmm2, dword ptr [rbp+214h]                                     ; +0x206, 0x1400b2fb6\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x20e, 0x1400b2fbe\nmovss   xmm1, cs:dword_140623454                                       ; +0x213, 0x1400b2fc3\nmov     rbx, [rdi]                                                     ; +0x21b, 0x1400b2fcb\nmulss   xmm2, xmm6                                                     ; +0x21e, 0x1400b2fce\nsubss   xmm2, xmm7                                                     ; +0x222, 0x1400b2fd2\ncall    cs:??0CCPoint@cocos2d@@QEAA@MM@Z; cocos2d::CCPoint::CCPoint(float,float) ; +0x226, 0x1400b2fd6\nmov     rdx, rax                                                       ; +0x22c, 0x1400b2fdc\nmov     rcx, rdi                                                       ; +0x22f, 0x1400b2fdf\ncall    qword ptr [rbx+0B8h]                                           ; +0x232, 0x1400b2fe2\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x238, 0x1400b2fe8\nmov     rbp, [rsp+48h+arg_10]                                          ; +0x23d, 0x1400b2fed\nmov     rsi, [rsp+48h+arg_18]                                          ; +0x242, 0x1400b2ff2\nmovaps  xmm6, [rsp+48h+var_18]                                         ; +0x247, 0x1400b2ff7\nmovaps  xmm7, [rsp+48h+var_28]                                         ; +0x24c, 0x1400b2ffc\nadd     rsp, 40h                                                       ; +0x251, 0x1400b3001\npop     rdi                                                            ; +0x255, 0x1400b3005\nretn                                                                   ; +0x256, 0x1400b3006", "xrefs": ["CustomListView::loadCell @ 0x1400ab819", "<???> @ 0x1406c7aac"], "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"}