{"type": "func", "start": 4300281312, "end": 4300281579, "name": "CCCounterLabel::create", "pseudocode": "// \n// CCCounterLabel::create from 0x1005115e0 to 0x1005116eb (267 bytes)\n// \n// 1 xrefs:\n// > GJShopLayer::init @ 0x100323b9f\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\nCCCounterLabel *__fastcall CCCounterLabel::create(int a1, const char *a2, FormatterType a3)\n{\n  __int64 v3; // rax\n  cocos2d::CCPoint v4; // xmm1_8\n  char *v6; // rbx\n  __int64 v8[6]; // [rsp+0h] [rbp-30h] BYREF\n\n  v8[0] = v3;\n  v6 = (char *)operator new(0x220u);\n  cocos2d::CCLabelBMFont::CCLabelBMFont(v6);\n  *(_QWORD *)v6 = off_10095DBD8;\n  *((_QWORD *)v6 + 40) = off_10095E030;\n  *((_QWORD *)v6 + 45) = off_10095E060;\n  *((_QWORD *)v6 + 46) = off_10095E080;\n  *(_QWORD *)(v6 + 516) = 0;\n  *(_QWORD *)(v6 + 521) = 0;\n  *((_DWORD *)v6 + 133) = 10;\n  v6[536] = 0;\n  *((_DWORD *)v6 + 135) = 0;\n  sub_10028CC60(v8, &dbl_1009A2760);\n  if ( cocos2d::CCLabelBMFont::initWithString((cocos2d::CCLabelBMFont *)v6, \" \", a2, -1.0, kCCTextAlignmentLeft, v4) )\n  {\n    *((_DWORD *)v6 + 135) = a3;\n    *((_DWORD *)v6 + 130) = a1;\n    *((_DWORD *)v6 + 131) = a1;\n    CCCounterLabel::updateString((CCCounterLabel *)v6);\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v6);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v6 + 16LL))(v6);\n    return nullptr;\n  }\n  return (CCCounterLabel *)v6;\n}", "assembly": "; \n; CCCounterLabel::create from 0x1005115e0 to 0x1005116eb (267 bytes)\n; \n; 1 xrefs:\n; > GJShopLayer::init @ 0x100323b9f\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, 0x1005115e0\nmov     rbp, rsp                                                       ; +0x1, 0x1005115e1\npush    r15                                                            ; +0x4, 0x1005115e4\npush    r14                                                            ; +0x6, 0x1005115e6\npush    r13                                                            ; +0x8, 0x1005115e8\npush    r12                                                            ; +0xa, 0x1005115ea\npush    rbx                                                            ; +0xc, 0x1005115ec\npush    rax                                                            ; +0xd, 0x1005115ed\nmov     r15d, edx                                                      ; +0xe, 0x1005115ee\nmov     r12, rsi                                                       ; +0x11, 0x1005115f1\nmov     r14d, edi                                                      ; +0x14, 0x1005115f4\nmov     edi, 220h; __sz                                                ; +0x17, 0x1005115f7\ncall    __Znwm; operator new(ulong)                                    ; +0x1c, 0x1005115fc\nmov     rbx, rax                                                       ; +0x21, 0x100511601\nmov     rdi, rax                                                       ; +0x24, 0x100511604\ncall    cocos2d__CCLabelBMFont__CCLabelBMFont                          ; +0x27, 0x100511607\nlea     rax, off_10095DBD8                                             ; +0x2c, 0x10051160c\nmov     [rbx], rax                                                     ; +0x33, 0x100511613\nlea     rax, off_10095E030                                             ; +0x36, 0x100511616\nmov     [rbx+140h], rax                                                ; +0x3d, 0x10051161d\nlea     rax, off_10095E060                                             ; +0x44, 0x100511624\nmov     [rbx+168h], rax                                                ; +0x4b, 0x10051162b\nlea     rax, off_10095E080                                             ; +0x52, 0x100511632\nmov     [rbx+170h], rax                                                ; +0x59, 0x100511639\nmov     qword ptr [rbx+204h], 0                                        ; +0x60, 0x100511640\nmov     qword ptr [rbx+209h], 0                                        ; +0x6b, 0x10051164b\nmov     dword ptr [rbx+214h], 0Ah                                      ; +0x76, 0x100511656\nmov     byte ptr [rbx+218h], 0                                         ; +0x80, 0x100511660\nmov     dword ptr [rbx+21Ch], 0                                        ; +0x87, 0x100511667\nlea     rsi, dbl_1009A2760                                             ; +0x91, 0x100511671\nlea     r13, [rbp+var_30]                                              ; +0x98, 0x100511678\nmov     rdi, r13                                                       ; +0x9c, 0x10051167c\ncall    sub_10028CC60                                                  ; +0x9f, 0x10051167f\nlea     rsi, asc_100823F54; \" \"                                        ; +0xa4, 0x100511684\nmovss   xmm0, cs:dword_100815094                                       ; +0xab, 0x10051168b\nmov     rdi, rbx                                                       ; +0xb3, 0x100511693\nmov     rdx, r12                                                       ; +0xb6, 0x100511696\nxor     ecx, ecx                                                       ; +0xb9, 0x100511699\nmov     r8, r13                                                        ; +0xbb, 0x10051169b\ncall    cocos2d__CCLabelBMFont__initWithString                         ; +0xbe, 0x10051169e\ntest    al, al                                                         ; +0xc3, 0x1005116a3\njz      short loc_1005116CE                                            ; +0xc5, 0x1005116a5\nmov     [rbx+21Ch], r15d                                               ; +0xc7, 0x1005116a7\nmov     [rbx+208h], r14d                                               ; +0xce, 0x1005116ae\nmov     [rbx+20Ch], r14d                                               ; +0xd5, 0x1005116b5\nmov     rdi, rbx                                                       ; +0xdc, 0x1005116bc\ncall    CCCounterLabel__updateString                                   ; +0xdf, 0x1005116bf\nmov     rdi, rbx                                                       ; +0xe4, 0x1005116c4\ncall    cocos2d__CCObject__autorelease                                 ; +0xe7, 0x1005116c7\njmp     short loc_1005116D9                                            ; +0xec, 0x1005116cc\nmov     rax, [rbx]                                                     ; +0xee, 0x1005116ce\nmov     rdi, rbx                                                       ; +0xf1, 0x1005116d1\ncall    qword ptr [rax+10h]                                            ; +0xf4, 0x1005116d4\nxor     ebx, ebx                                                       ; +0xf7, 0x1005116d7\nmov     rax, rbx                                                       ; +0xf9, 0x1005116d9\nadd     rsp, 8                                                         ; +0xfc, 0x1005116dc\npop     rbx                                                            ; +0x100, 0x1005116e0\npop     r12                                                            ; +0x101, 0x1005116e1\npop     r13                                                            ; +0x103, 0x1005116e3\npop     r14                                                            ; +0x105, 0x1005116e5\npop     r15                                                            ; +0x107, 0x1005116e7\npop     rbp                                                            ; +0x109, 0x1005116e9\nretn                                                                   ; +0x10a, 0x1005116ea", "xrefs": ["GJShopLayer::init @ 0x100323b9f"], "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"}