{"type": "func", "start": 4300285744, "end": 4300285872, "name": "CCCounterLabel::init", "pseudocode": "// \n// CCCounterLabel::init from 0x100512730 to 0x1005127b0 (128 bytes)\n// \n// 0 xrefs:\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:31:37 +0000\n// \n\n__int64 __fastcall CCCounterLabel::init(_DWORD *a1, int a2, __int64 a3, int a4)\n{\n  __int64 v4; // rax\n  __int64 result; // rax\n  unsigned int v8; // ebx\n  _QWORD v9[6]; // [rsp+0h] [rbp-30h] BYREF\n\n  v9[0] = v4;\n  sub_1002782D0(v9, &qword_100BE5400);\n  result = cocos2d::CCLabelBMFont::initWithString(a1, \" \", a3, 0, v9, -1.0);\n  if ( (_BYTE)result )\n  {\n    a1[135] = a4;\n    a1[130] = a2;\n    a1[131] = a2;\n    v8 = result;\n    CCCounterLabel::updateString(a1);\n    return v8;\n  }\n  return result;\n}", "assembly": "; \n; CCCounterLabel::init from 0x100512730 to 0x1005127b0 (128 bytes)\n; \n; 0 xrefs:\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:31:37 +0000\n; \npush    rbp                                                            ; +0x0, 0x100512730\nmov     rbp, rsp                                                       ; +0x1, 0x100512731\npush    r15                                                            ; +0x4, 0x100512734\npush    r14                                                            ; +0x6, 0x100512736\npush    r13                                                            ; +0x8, 0x100512738\npush    r12                                                            ; +0xa, 0x10051273a\npush    rbx                                                            ; +0xc, 0x10051273c\npush    rax                                                            ; +0xd, 0x10051273d\nmov     r15d, ecx                                                      ; +0xe, 0x10051273e\nmov     r12, rdx                                                       ; +0x11, 0x100512741\nmov     r14d, esi                                                      ; +0x14, 0x100512744\nmov     rbx, rdi                                                       ; +0x17, 0x100512747\nlea     rsi, qword_100BE5400                                           ; +0x1a, 0x10051274a\nlea     r13, [rbp+var_30]                                              ; +0x21, 0x100512751\nmov     rdi, r13                                                       ; +0x25, 0x100512755\ncall    sub_1002782D0                                                  ; +0x28, 0x100512758\nlea     rsi, asc_100A41844; \" \"                                        ; +0x2d, 0x10051275d\nmovss   xmm0, cs:dword_100A035E0                                       ; +0x34, 0x100512764\nmov     rdi, rbx                                                       ; +0x3c, 0x10051276c\nmov     rdx, r12                                                       ; +0x3f, 0x10051276f\nxor     ecx, ecx                                                       ; +0x42, 0x100512772\nmov     r8, r13                                                        ; +0x44, 0x100512774\ncall    cocos2d__CCLabelBMFont__initWithString                         ; +0x47, 0x100512777\ntest    al, al                                                         ; +0x4c, 0x10051277c\njz      short loc_1005127A1                                            ; +0x4e, 0x10051277e\nmov     [rbx+21Ch], r15d                                               ; +0x50, 0x100512780\nmov     [rbx+208h], r14d                                               ; +0x57, 0x100512787\nmov     [rbx+20Ch], r14d                                               ; +0x5e, 0x10051278e\nmov     rdi, rbx                                                       ; +0x65, 0x100512795\nmov     ebx, eax                                                       ; +0x68, 0x100512798\ncall    CCCounterLabel__updateString                                   ; +0x6a, 0x10051279a\nmov     eax, ebx                                                       ; +0x6f, 0x10051279f\nadd     rsp, 8                                                         ; +0x71, 0x1005127a1\npop     rbx                                                            ; +0x75, 0x1005127a5\npop     r12                                                            ; +0x76, 0x1005127a6\npop     r13                                                            ; +0x78, 0x1005127a8\npop     r14                                                            ; +0x7a, 0x1005127aa\npop     r15                                                            ; +0x7c, 0x1005127ac\npop     rbp                                                            ; +0x7e, 0x1005127ae\nretn                                                                   ; +0x7f, 0x1005127af", "xrefs": [], "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"}