{"type": "func", "start": 4300285456, "end": 4300285723, "name": "CCCounterLabel::create", "pseudocode": "// \n// CCCounterLabel::create from 0x100512610 to 0x10051271b (267 bytes)\n// \n// 1 xrefs:\n// > GJShopLayer::init @ 0x10030f1f1\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_QWORD *__fastcall CCCounterLabel::create(int a1, __int64 a2, int a3)\n{\n  __int64 v3; // rax\n  _QWORD *v5; // rbx\n  _QWORD v7[6]; // [rsp+0h] [rbp-30h] BYREF\n\n  v7[0] = v3;\n  v5 = operator new(0x220u);\n  cocos2d::CCLabelBMFont::CCLabelBMFont(v5);\n  *v5 = off_100B6A6E0;\n  v5[40] = off_100B6AB48;\n  v5[45] = off_100B6AB78;\n  v5[46] = off_100B6AB98;\n  *(_QWORD *)((char *)v5 + 516) = 0;\n  *(_QWORD *)((char *)v5 + 521) = 0;\n  *((_DWORD *)v5 + 133) = 10;\n  *((_BYTE *)v5 + 536) = 0;\n  *((_DWORD *)v5 + 135) = 0;\n  sub_1002782D0(v7, &qword_100BE5400);\n  if ( (unsigned __int8)cocos2d::CCLabelBMFont::initWithString(v5, \" \", a2, 0, v7, -1.0) )\n  {\n    *((_DWORD *)v5 + 135) = a3;\n    *((_DWORD *)v5 + 130) = a1;\n    *((_DWORD *)v5 + 131) = a1;\n    CCCounterLabel::updateString(v5);\n    cocos2d::CCObject::autorelease((__int64)v5);\n  }\n  else\n  {\n    (*(void (__fastcall **)(_QWORD *))(*v5 + 16LL))(v5);\n    return nullptr;\n  }\n  return v5;\n}", "assembly": "; \n; CCCounterLabel::create from 0x100512610 to 0x10051271b (267 bytes)\n; \n; 1 xrefs:\n; > GJShopLayer::init @ 0x10030f1f1\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, 0x100512610\nmov     rbp, rsp                                                       ; +0x1, 0x100512611\npush    r15                                                            ; +0x4, 0x100512614\npush    r14                                                            ; +0x6, 0x100512616\npush    r13                                                            ; +0x8, 0x100512618\npush    r12                                                            ; +0xa, 0x10051261a\npush    rbx                                                            ; +0xc, 0x10051261c\npush    rax                                                            ; +0xd, 0x10051261d\nmov     r15d, edx                                                      ; +0xe, 0x10051261e\nmov     r12, rsi                                                       ; +0x11, 0x100512621\nmov     r14d, edi                                                      ; +0x14, 0x100512624\nmov     edi, 220h; __sz                                                ; +0x17, 0x100512627\ncall    __Znwm; operator new(ulong)                                    ; +0x1c, 0x10051262c\nmov     rbx, rax                                                       ; +0x21, 0x100512631\nmov     rdi, rax                                                       ; +0x24, 0x100512634\ncall    cocos2d__CCLabelBMFont__CCLabelBMFont                          ; +0x27, 0x100512637\nlea     rax, off_100B6A6E0                                             ; +0x2c, 0x10051263c\nmov     [rbx], rax                                                     ; +0x33, 0x100512643\nlea     rax, off_100B6AB48                                             ; +0x36, 0x100512646\nmov     [rbx+140h], rax                                                ; +0x3d, 0x10051264d\nlea     rax, off_100B6AB78                                             ; +0x44, 0x100512654\nmov     [rbx+168h], rax                                                ; +0x4b, 0x10051265b\nlea     rax, off_100B6AB98                                             ; +0x52, 0x100512662\nmov     [rbx+170h], rax                                                ; +0x59, 0x100512669\nmov     qword ptr [rbx+204h], 0                                        ; +0x60, 0x100512670\nmov     qword ptr [rbx+209h], 0                                        ; +0x6b, 0x10051267b\nmov     dword ptr [rbx+214h], 0Ah                                      ; +0x76, 0x100512686\nmov     byte ptr [rbx+218h], 0                                         ; +0x80, 0x100512690\nmov     dword ptr [rbx+21Ch], 0                                        ; +0x87, 0x100512697\nlea     rsi, qword_100BE5400                                           ; +0x91, 0x1005126a1\nlea     r13, [rbp+var_30]                                              ; +0x98, 0x1005126a8\nmov     rdi, r13                                                       ; +0x9c, 0x1005126ac\ncall    sub_1002782D0                                                  ; +0x9f, 0x1005126af\nlea     rsi, asc_100A41844; \" \"                                        ; +0xa4, 0x1005126b4\nmovss   xmm0, cs:dword_100A035E0                                       ; +0xab, 0x1005126bb\nmov     rdi, rbx                                                       ; +0xb3, 0x1005126c3\nmov     rdx, r12                                                       ; +0xb6, 0x1005126c6\nxor     ecx, ecx                                                       ; +0xb9, 0x1005126c9\nmov     r8, r13                                                        ; +0xbb, 0x1005126cb\ncall    cocos2d__CCLabelBMFont__initWithString                         ; +0xbe, 0x1005126ce\ntest    al, al                                                         ; +0xc3, 0x1005126d3\njz      short loc_1005126FE                                            ; +0xc5, 0x1005126d5\nmov     [rbx+21Ch], r15d                                               ; +0xc7, 0x1005126d7\nmov     [rbx+208h], r14d                                               ; +0xce, 0x1005126de\nmov     [rbx+20Ch], r14d                                               ; +0xd5, 0x1005126e5\nmov     rdi, rbx                                                       ; +0xdc, 0x1005126ec\ncall    CCCounterLabel__updateString                                   ; +0xdf, 0x1005126ef\nmov     rdi, rbx                                                       ; +0xe4, 0x1005126f4\ncall    cocos2d__CCObject__autorelease                                 ; +0xe7, 0x1005126f7\njmp     short loc_100512709                                            ; +0xec, 0x1005126fc\nmov     rax, [rbx]                                                     ; +0xee, 0x1005126fe\nmov     rdi, rbx                                                       ; +0xf1, 0x100512701\ncall    qword ptr [rax+10h]                                            ; +0xf4, 0x100512704\nxor     ebx, ebx                                                       ; +0xf7, 0x100512707\nmov     rax, rbx                                                       ; +0xf9, 0x100512709\nadd     rsp, 8                                                         ; +0xfc, 0x10051270c\npop     rbx                                                            ; +0x100, 0x100512710\npop     r12                                                            ; +0x101, 0x100512711\npop     r13                                                            ; +0x103, 0x100512713\npop     r14                                                            ; +0x105, 0x100512715\npop     r15                                                            ; +0x107, 0x100512717\npop     rbp                                                            ; +0x109, 0x100512719\nretn                                                                   ; +0x10a, 0x10051271a", "xrefs": ["GJShopLayer::init @ 0x10030f1f1"], "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"}