{"type": "func", "start": 4300281600, "end": 4300281728, "name": "CCCounterLabel::init", "pseudocode": "// \n// CCCounterLabel::init from 0x100511700 to 0x100511780 (128 bytes)\n// \n// 0 xrefs:\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\nbool __fastcall CCCounterLabel::init(CCCounterLabel *a1, int a2, const char *a3, FormatterType a4)\n{\n  __int64 v4; // rax\n  cocos2d::CCPoint v5; // xmm1_8\n  bool result; // al\n  bool v9; // bl\n  _QWORD v10[6]; // [rsp+0h] [rbp-30h] BYREF\n\n  v10[0] = v4;\n  sub_10028CC60(v10, &dbl_1009A2760);\n  result = cocos2d::CCLabelBMFont::initWithString(a1, \" \", a3, -1.0, kCCTextAlignmentLeft, v5);\n  if ( result )\n  {\n    a1->m_formatterType = a4;\n    a1->m_targetCount = a2;\n    a1->m_currentCount = a2;\n    v9 = result;\n    CCCounterLabel::updateString(a1);\n    return v9;\n  }\n  return result;\n}", "assembly": "; \n; CCCounterLabel::init from 0x100511700 to 0x100511780 (128 bytes)\n; \n; 0 xrefs:\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, 0x100511700\nmov     rbp, rsp                                                       ; +0x1, 0x100511701\npush    r15                                                            ; +0x4, 0x100511704\npush    r14                                                            ; +0x6, 0x100511706\npush    r13                                                            ; +0x8, 0x100511708\npush    r12                                                            ; +0xa, 0x10051170a\npush    rbx                                                            ; +0xc, 0x10051170c\npush    rax                                                            ; +0xd, 0x10051170d\nmov     r15d, ecx                                                      ; +0xe, 0x10051170e\nmov     r12, rdx                                                       ; +0x11, 0x100511711\nmov     r14d, esi                                                      ; +0x14, 0x100511714\nmov     rbx, rdi                                                       ; +0x17, 0x100511717\nlea     rsi, dbl_1009A2760                                             ; +0x1a, 0x10051171a\nlea     r13, [rbp+var_30]                                              ; +0x21, 0x100511721\nmov     rdi, r13                                                       ; +0x25, 0x100511725\ncall    sub_10028CC60                                                  ; +0x28, 0x100511728\nlea     rsi, asc_100823F54; \" \"                                        ; +0x2d, 0x10051172d\nmovss   xmm0, cs:dword_100815094                                       ; +0x34, 0x100511734\nmov     rdi, rbx                                                       ; +0x3c, 0x10051173c\nmov     rdx, r12                                                       ; +0x3f, 0x10051173f\nxor     ecx, ecx                                                       ; +0x42, 0x100511742\nmov     r8, r13                                                        ; +0x44, 0x100511744\ncall    cocos2d__CCLabelBMFont__initWithString                         ; +0x47, 0x100511747\ntest    al, al                                                         ; +0x4c, 0x10051174c\njz      short loc_100511771                                            ; +0x4e, 0x10051174e\nmov     [rbx+21Ch], r15d                                               ; +0x50, 0x100511750\nmov     [rbx+208h], r14d                                               ; +0x57, 0x100511757\nmov     [rbx+20Ch], r14d                                               ; +0x5e, 0x10051175e\nmov     rdi, rbx                                                       ; +0x65, 0x100511765\nmov     ebx, eax                                                       ; +0x68, 0x100511768\ncall    CCCounterLabel__updateString                                   ; +0x6a, 0x10051176a\nmov     eax, ebx                                                       ; +0x6f, 0x10051176f\nadd     rsp, 8                                                         ; +0x71, 0x100511771\npop     rbx                                                            ; +0x75, 0x100511775\npop     r12                                                            ; +0x76, 0x100511776\npop     r13                                                            ; +0x78, 0x100511778\npop     r14                                                            ; +0x7a, 0x10051177a\npop     r15                                                            ; +0x7c, 0x10051177c\npop     rbp                                                            ; +0x7e, 0x10051177e\nretn                                                                   ; +0x7f, 0x10051177f", "xrefs": [], "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"}