{"type": "func", "start": 4299251904, "end": 4299252114, "name": "GJSmartBlockPreview::addCount", "pseudocode": "// \n// GJSmartBlockPreview::addCount from 0x1004160c0 to 0x100416192 (210 bytes)\n// \n// 1 xrefs:\n// > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x1004e478b\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 12:30:11 +0000\n// \n\n__int64 __fastcall GJSmartBlockPreview::addCount(_QWORD *a1)\n{\n  __int64 v1; // r15\n  __int64 v2; // rax\n  __int64 v3; // r15\n  __int64 v4; // rax\n  __int64 CString; // rax\n  char v7; // [rsp+0h] [rbp-30h]\n  float v8[10]; // [rsp+8h] [rbp-28h] BYREF\n\n  v1 = a1[43];\n  if ( !v1 )\n  {\n    v2 = cocos2d::CCLabelBMFont::create_3(\" \", \"bigFont.fnt\");\n    a1[43] = v2;\n    (*(void (__fastcall **)(_QWORD *, __int64))(*a1 + 456LL))(a1, v2);\n    v1 = a1[43];\n  }\n  sub_100278250(v8, 90.0, 90.0);\n  (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v1 + 184LL))(v1, v8);\n  v3 = a1[43];\n  v4 = sub_10088E820(\"%i\", v7);\n  CString = cocos2d::CCString::getCString(v4);\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 928LL))(v3, CString);\n  return cocos2d::CCLabelBMFont::limitLabelWidth(a1[43], 20.0, 0.60000002, 0.0);\n}", "assembly": "; \n; GJSmartBlockPreview::addCount from 0x1004160c0 to 0x100416192 (210 bytes)\n; \n; 1 xrefs:\n; > BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x1004e478b\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 12:30:11 +0000\n; \npush    rbp                                                            ; +0x0, 0x1004160c0\nmov     rbp, rsp                                                       ; +0x1, 0x1004160c1\npush    r15                                                            ; +0x4, 0x1004160c4\npush    r14                                                            ; +0x6, 0x1004160c6\npush    r12                                                            ; +0x8, 0x1004160c8\npush    rbx                                                            ; +0xa, 0x1004160ca\nsub     rsp, 10h                                                       ; +0xb, 0x1004160cb\nmov     r14d, esi                                                      ; +0xf, 0x1004160cf\nmov     rbx, rdi                                                       ; +0x12, 0x1004160d2\nmov     r15, [rdi+158h]                                                ; +0x15, 0x1004160d5\ntest    r15, r15                                                       ; +0x1c, 0x1004160dc\njnz     short loc_100416111                                            ; +0x1f, 0x1004160df\nlea     rdi, asc_100A41844; \" \"                                        ; +0x21, 0x1004160e1\nlea     rsi, aBigfontFnt; \"bigFont.fnt\"                                ; +0x28, 0x1004160e8\ncall    cocos2d__CCLabelBMFont__create_3                               ; +0x2f, 0x1004160ef\nmov     [rbx+158h], rax                                                ; +0x34, 0x1004160f4\nmov     rcx, [rbx]                                                     ; +0x3b, 0x1004160fb\nmov     rdi, rbx                                                       ; +0x3e, 0x1004160fe\nmov     rsi, rax                                                       ; +0x41, 0x100416101\ncall    qword ptr [rcx+1C8h]                                           ; +0x44, 0x100416104\nmov     r15, [rbx+158h]                                                ; +0x4a, 0x10041610a\nlea     r12, [rbp+var_28]                                              ; +0x51, 0x100416111\nmovss   xmm0, cs:flt_100A035A4                                         ; +0x55, 0x100416115\nmov     rdi, r12                                                       ; +0x5d, 0x10041611d\nmovaps  xmm1, xmm0                                                     ; +0x60, 0x100416120\ncall    sub_100278250                                                  ; +0x63, 0x100416123\nmov     rax, [r15]                                                     ; +0x68, 0x100416128\nmov     rdi, r15                                                       ; +0x6b, 0x10041612b\nmov     rsi, r12                                                       ; +0x6e, 0x10041612e\ncall    qword ptr [rax+0B8h]                                           ; +0x71, 0x100416131\nmov     r15, [rbx+158h]                                                ; +0x77, 0x100416137\nlea     rdi, aI_14; \"%i\"                                               ; +0x7e, 0x10041613e\nmov     esi, r14d                                                      ; +0x85, 0x100416145\nxor     eax, eax                                                       ; +0x88, 0x100416148\ncall    sub_10088E820                                                  ; +0x8a, 0x10041614a\nmov     rdi, rax                                                       ; +0x8f, 0x10041614f\ncall    cocos2d__CCString__getCString                                  ; +0x92, 0x100416152\nmov     rcx, [r15]                                                     ; +0x97, 0x100416157\nmov     rdi, r15                                                       ; +0x9a, 0x10041615a\nmov     rsi, rax                                                       ; +0x9d, 0x10041615d\ncall    qword ptr [rcx+3A0h]                                           ; +0xa0, 0x100416160\nmov     rdi, [rbx+158h]                                                ; +0xa6, 0x100416166\nmovss   xmm0, cs:dword_100A0359C                                       ; +0xad, 0x10041616d\nmovss   xmm1, cs:dword_100A037D4                                       ; +0xb5, 0x100416175\nxorps   xmm2, xmm2                                                     ; +0xbd, 0x10041617d\ncall    cocos2d__CCLabelBMFont__limitLabelWidth                        ; +0xc0, 0x100416180\nadd     rsp, 10h                                                       ; +0xc5, 0x100416185\npop     rbx                                                            ; +0xc9, 0x100416189\npop     r12                                                            ; +0xca, 0x10041618a\npop     r14                                                            ; +0xcc, 0x10041618c\npop     r15                                                            ; +0xce, 0x10041618e\npop     rbp                                                            ; +0xd0, 0x100416190\nretn                                                                   ; +0xd1, 0x100416191", "xrefs": ["BrowseSmartTemplateLayer::addPrefabMenuItem @ 0x1004e478b"], "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"}