{"type": "func", "start": 4299330640, "end": 4299330850, "name": "GJSmartBlockPreview::addCount", "pseudocode": "// \n// GJSmartBlockPreview::addCount from 0x100429450 to 0x100429522 (210 bytes)\n// \n// 1 xrefs:\n// > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x1004e9ccb\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 __fastcall GJSmartBlockPreview::addCount(GJSmartBlockPreview *a1, int a2)\n{\n  cocos2d::CCLabelBMFont *m_infoLabel; // r15\n  cocos2d::CCLabelBMFont *v3; // rax\n  cocos2d::CCLabelBMFont *v4; // r15\n  cocos2d::CCString *v5; // rax\n  const char *CString; // rax\n  char v7; // [rsp+0h] [rbp-30h]\n  float v8[10]; // [rsp+8h] [rbp-28h] BYREF\n\n  m_infoLabel = a1->m_infoLabel;\n  if ( !m_infoLabel )\n  {\n    v3 = cocos2d::CCLabelBMFont::create_3(\" \", \"bigFont.fnt\");\n    a1->m_infoLabel = v3;\n    ((void (__fastcall *)(GJSmartBlockPreview *, cocos2d::CCLabelBMFont *))a1->addChild)(a1, v3);\n    m_infoLabel = a1->m_infoLabel;\n  }\n  sub_10028CBE0(v8, 90.0, 90.0);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float *))m_infoLabel->setPosition)(m_infoLabel, v8);\n  v4 = a1->m_infoLabel;\n  v5 = (cocos2d::CCString *)sub_1007AB580(\"%i\", v7);\n  CString = cocos2d::CCString::getCString(v5);\n  ((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))v4->setString)(v4, CString);\n  cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_infoLabel, 20.0, 0.60000002, 0.0);\n}", "assembly": "; \n; GJSmartBlockPreview::addCount from 0x100429450 to 0x100429522 (210 bytes)\n; \n; 1 xrefs:\n; > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x1004e9ccb\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\npush    rbp                                                            ; +0x0, 0x100429450\nmov     rbp, rsp                                                       ; +0x1, 0x100429451\npush    r15                                                            ; +0x4, 0x100429454\npush    r14                                                            ; +0x6, 0x100429456\npush    r12                                                            ; +0x8, 0x100429458\npush    rbx                                                            ; +0xa, 0x10042945a\nsub     rsp, 10h                                                       ; +0xb, 0x10042945b\nmov     r14d, esi                                                      ; +0xf, 0x10042945f\nmov     rbx, rdi                                                       ; +0x12, 0x100429462\nmov     r15, [rdi+158h]                                                ; +0x15, 0x100429465\ntest    r15, r15                                                       ; +0x1c, 0x10042946c\njnz     short loc_1004294A1                                            ; +0x1f, 0x10042946f\nlea     rdi, asc_100823F54; \" \"                                        ; +0x21, 0x100429471\nlea     rsi, aBigfontFnt; \"bigFont.fnt\"                                ; +0x28, 0x100429478\ncall    cocos2d__CCLabelBMFont__create_3                               ; +0x2f, 0x10042947f\nmov     [rbx+158h], rax                                                ; +0x34, 0x100429484\nmov     rcx, [rbx]                                                     ; +0x3b, 0x10042948b\nmov     rdi, rbx                                                       ; +0x3e, 0x10042948e\nmov     rsi, rax                                                       ; +0x41, 0x100429491\ncall    qword ptr [rcx+1B8h]                                           ; +0x44, 0x100429494\nmov     r15, [rbx+158h]                                                ; +0x4a, 0x10042949a\nlea     r12, [rbp+var_28]                                              ; +0x51, 0x1004294a1\nmovss   xmm0, cs:dword_100815038                                       ; +0x55, 0x1004294a5\nmov     rdi, r12                                                       ; +0x5d, 0x1004294ad\nmovaps  xmm1, xmm0                                                     ; +0x60, 0x1004294b0\ncall    sub_10028CBE0                                                  ; +0x63, 0x1004294b3\nmov     rax, [r15]                                                     ; +0x68, 0x1004294b8\nmov     rdi, r15                                                       ; +0x6b, 0x1004294bb\nmov     rsi, r12                                                       ; +0x6e, 0x1004294be\ncall    qword ptr [rax+0B8h]                                           ; +0x71, 0x1004294c1\nmov     r15, [rbx+158h]                                                ; +0x77, 0x1004294c7\nlea     rdi, aI; \"%i\"                                                  ; +0x7e, 0x1004294ce\nmov     esi, r14d                                                      ; +0x85, 0x1004294d5\nxor     eax, eax                                                       ; +0x88, 0x1004294d8\ncall    sub_1007AB580                                                  ; +0x8a, 0x1004294da\nmov     rdi, rax                                                       ; +0x8f, 0x1004294df\ncall    cocos2d__CCString__getCString                                  ; +0x92, 0x1004294e2\nmov     rcx, [r15]                                                     ; +0x97, 0x1004294e7\nmov     rdi, r15                                                       ; +0x9a, 0x1004294ea\nmov     rsi, rax                                                       ; +0x9d, 0x1004294ed\ncall    qword ptr [rcx+390h]                                           ; +0xa0, 0x1004294f0\nmov     rdi, [rbx+158h]                                                ; +0xa6, 0x1004294f6\nmovss   xmm0, cs:dword_100814FF0                                       ; +0xad, 0x1004294fd\nmovss   xmm1, cs:dword_100814FB0                                       ; +0xb5, 0x100429505\nxorps   xmm2, xmm2                                                     ; +0xbd, 0x10042950d\ncall    cocos2d__CCLabelBMFont__limitLabelWidth                        ; +0xc0, 0x100429510\nadd     rsp, 10h                                                       ; +0xc5, 0x100429515\npop     rbx                                                            ; +0xc9, 0x100429519\npop     r12                                                            ; +0xca, 0x10042951a\npop     r14                                                            ; +0xcc, 0x10042951c\npop     r15                                                            ; +0xce, 0x10042951e\npop     rbp                                                            ; +0xd0, 0x100429520\nretn                                                                   ; +0xd1, 0x100429521", "xrefs": ["BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x1004e9ccb"], "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"}