{"type": "func", "start": 3037712, "end": 3037850, "name": "CCCounterLabel::create", "pseudocode": "// \n// CCCounterLabel::create from 0x2e5a10 to 0x2e5a9a (138 bytes)\n// \n// 1 xrefs:\n// > GJShopLayer::init @ 0x4e370a\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 *CCCounterLabel::create(int a1, const char *a2, FormatterType a3)\n{\n  CCCounterLabel *v6; // r4\n  CCCounterLabel_vtbl *v7; // r3\n  int *v8; // r0\n\n  v6 = (CCCounterLabel *)operator new(0x188u);\n  cocos2d::CCLabelBMFont::CCLabelBMFont(v6);\n  v6->cocos2d::CCLabelBMFont::cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable = (CCCounterLabel_vtbl *)&off_A3CD48;\n  v6->cocos2d::CCLabelBMFont::cocos2d::CCSpriteBatchNode::cocos2d::CCTextureProtocol::cocos2d::CCBlendProtocol::__vftable = (cocos2d::CCTextureProtocol_vtbl *)&off_A3CF74;\n  v6->cocos2d::CCLabelBMFont::cocos2d::CCLabelProtocol::__vftable = (cocos2d::CCLabelProtocol_vtbl *)&off_A3CF8C;\n  v6->cocos2d::CCLabelBMFont::cocos2d::CCRGBAProtocol::__vftable = (cocos2d::CCRGBAProtocol_vtbl *)&off_A3CF9C;\n  v6->m_stepCount = 10;\n  v6->m_stepSize = 0;\n  v6->m_targetCount = 0;\n  v6->m_currentCount = 0;\n  v6->m_counterEnabled = 0;\n  v6->m_dontSchedule = 0;\n  v6->m_formatterType = Integer;\n  if ( CCCounterLabel::init(v6, a1, a2, a3) )\n  {\n    cocos2d::CCObject::autorelease(v6);\n  }\n  else\n  {\n    v7 = v6->cocos2d::CCLabelBMFont::cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    v8 = (int *)v6;\n    v6 = nullptr;\n    v7->~CCCounterLabel_0((CCCounterLabel *)v8);\n  }\n  return v6;\n}", "assembly": "; \n; CCCounterLabel::create from 0x2e5a10 to 0x2e5a9a (138 bytes)\n; \n; 1 xrefs:\n; > GJShopLayer::init @ 0x4e370a\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            {R3-R7,LR}                                             ; +0x0, 0x2e5a10\nMOV             R7, R0                                                 ; +0x2, 0x2e5a12\nMOV.W           R0, #0x188; unsigned int                               ; +0x4, 0x2e5a14\nMOV             R6, R1                                                 ; +0x8, 0x2e5a18\nMOV             R5, R2                                                 ; +0xa, 0x2e5a1a\nBL              _Znwj; operator new(uint)                              ; +0xc, 0x2e5a1c\nMOV             R4, R0                                                 ; +0x10, 0x2e5a20\nBL              _ZN7cocos2d13CCLabelBMFontC2Ev; cocos2d::CCLabelBMFont::CCLabelBMFont(void) ; +0x12, 0x2e5a22\nLDR             R3, =(_ZTV14CCCounterLabel_ptr - 0x2E5A30)             ; +0x16, 0x2e5a26\nMOV             R0, R4                                                 ; +0x18, 0x2e5a28\nMOV             R1, R7                                                 ; +0x1a, 0x2e5a2a\nADD             R3, PC; _ZTV14CCCounterLabel_ptr                       ; +0x1c, 0x2e5a2c\nLDR             R3, [R3]; `vtable for'CCCounterLabel ...               ; +0x1e, 0x2e5a2e\nADD.W           R2, R3, #8                                             ; +0x20, 0x2e5a30\nSTR             R2, [R4]                                               ; +0x24, 0x2e5a34\nADD.W           R2, R3, #0x234                                         ; +0x26, 0x2e5a36\nSTR.W           R2, [R4,#0x108]                                        ; +0x2a, 0x2e5a3a\nADD.W           R2, R3, #0x24C                                         ; +0x2e, 0x2e5a3e\nADD.W           R3, R3, #0x25C                                         ; +0x32, 0x2e5a42\nSTR.W           R2, [R4,#0x120]                                        ; +0x36, 0x2e5a46\nMOVS            R2, #0xA                                               ; +0x3a, 0x2e5a4a\nSTR.W           R3, [R4,#0x124]                                        ; +0x3c, 0x2e5a4c\nMOVS            R3, #0                                                 ; +0x40, 0x2e5a50\nSTR.W           R2, [R4,#0x17C]                                        ; +0x42, 0x2e5a52\nMOV             R2, R6                                                 ; +0x46, 0x2e5a56\nSTR.W           R3, [R4,#0x16C]                                        ; +0x48, 0x2e5a58\nSTR.W           R3, [R4,#0x170]                                        ; +0x4c, 0x2e5a5c\nSTR.W           R3, [R4,#0x174]                                        ; +0x50, 0x2e5a60\nSTRB.W          R3, [R4,#0x178]                                        ; +0x54, 0x2e5a64\nSTRB.W          R3, [R4,#0x180]                                        ; +0x58, 0x2e5a68\nSTR.W           R3, [R4,#0x184]                                        ; +0x5c, 0x2e5a6c\nMOV             R3, R5                                                 ; +0x60, 0x2e5a70\nBL              _ZN14CCCounterLabel4initEiPKc13FormatterType; CCCounterLabel::init(int,char const*,FormatterType) ; +0x62, 0x2e5a72\nMOV             R5, R0                                                 ; +0x66, 0x2e5a76\nCBZ             R0, loc_2E5A8C                                         ; +0x68, 0x2e5a78\nMOV             R0, R4; this                                           ; +0x6a, 0x2e5a7a\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x6c, 0x2e5a7c\nB               loc_2E5A96                                             ; +0x70, 0x2e5a80\nMOV             R0, R4; p                                              ; +0x72, 0x2e5a82\nBL              _ZdlPv; operator delete(void *)                        ; +0x74, 0x2e5a84\nBL              __cxa_end_cleanup                                      ; +0x78, 0x2e5a88\nLDR             R3, [R4]                                               ; +0x7c, 0x2e5a8c\nMOV             R0, R4                                                 ; +0x7e, 0x2e5a8e\nMOV             R4, R5                                                 ; +0x80, 0x2e5a90\nLDR             R3, [R3,#8]                                            ; +0x82, 0x2e5a92\nBLX             R3                                                     ; +0x84, 0x2e5a94\nMOV             R0, R4                                                 ; +0x86, 0x2e5a96\nPOP             {R3-R7,PC}                                             ; +0x88, 0x2e5a98", "xrefs": ["GJShopLayer::init @ 0x4e370a"], "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"}