{"type": "func", "start": 5720900, "end": 5721084, "name": "CCCounterLabel::init", "pseudocode": "// \n// CCCounterLabel::init from 0x574b44 to 0x574bfc (184 bytes)\n// \n// 2 xrefs:\n// > CCCounterLabel::create @ 0x574c80\n// > <???> @ 0x9ef58\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 CCCounterLabel::init(CCCounterLabel *a1, int a2, const char *a3, FormatterType a4)\n{\n  bool v7; // w21\n  cocos2d::CCPoint v10; // [xsp+50h] [xbp+50h] BYREF\n  cocos2d::CCPoint v11; // 0:s1.4,4:s2.4\n\n  cocos2d::CCPoint::CCPoint(&v10, &stru_1241530);\n  v7 = cocos2d::CCLabelBMFont::initWithString(a1, \" \", a3, -1.0, kCCTextAlignmentLeft, v11);\n  if ( v7 )\n  {\n    a1->m_formatterType = a4;\n    a1->m_targetCount = a2;\n    CCCounterLabel::fastUpdateCounter(a1);\n  }\n  return v7;\n}", "assembly": "; \n; CCCounterLabel::init from 0x574b44 to 0x574bfc (184 bytes)\n; \n; 2 xrefs:\n; > CCCounterLabel::create @ 0x574c80\n; > <???> @ 0x9ef58\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\nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x574b44\nMOV             X29, SP                                                ; +0x4, 0x574b48\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x574b4c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x574b50\nADD             X4, X29, #0x60+var_10                                  ; +0x10, 0x574b54\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x14, 0x574b58\nSTR             X23, [SP,#0x60+var_30]                                 ; +0x18, 0x574b5c\nMOV             W22, W1                                                ; +0x1c, 0x574b60\nLDR             X5, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x574b64\nADRP            X1, #stru_1241530@PAGE                                 ; +0x24, 0x574b68\nMOV             W23, W3                                                ; +0x28, 0x574b6c\nMOV             X20, X0                                                ; +0x2c, 0x574b70\nADD             X1, X1, #stru_1241530@PAGEOFF; cocos2d::CCPoint *      ; +0x30, 0x574b74\nMOV             X0, X4; this                                           ; +0x34, 0x574b78\nLDR             X3, [X5]                                               ; +0x38, 0x574b7c\nSTR             X4, [X29,#0x60+var_20]                                 ; +0x3c, 0x574b80\nSTR             X2, [X29,#0x60+var_18]                                 ; +0x40, 0x574b84\nSTR             X3, [X29,#0x60+var_8]                                  ; +0x44, 0x574b88\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x48, 0x574b8c\nADRP            X1, #(aWarning_0+8)@PAGE; \" \"                          ; +0x4c, 0x574b90\nLDR             X2, [X29,#0x60+var_18]; this                           ; +0x50, 0x574b94\nLDR             X4, [X29,#0x60+var_20]                                 ; +0x54, 0x574b98\nMOV             X0, X20; int                                           ; +0x58, 0x574b9c\nADD             X1, X1, #(aWarning_0+8)@PAGEOFF; int                   ; +0x5c, 0x574ba0\nMOV             W3, #0                                                 ; +0x60, 0x574ba4\nFMOV            S0, #-1.0                                              ; +0x64, 0x574ba8\nBL              _ZN7cocos2d13CCLabelBMFont14initWithStringEPKcS2_fNS_15CCTextAlignmentENS_7CCPointE; cocos2d::CCLabelBMFont::initWithString(char const*,char const*,float,cocos2d::CCTextAlignment,cocos2d::CCPoint) ; +0x68, 0x574bac\nUXTB            W0, W0                                                 ; +0x6c, 0x574bb0\nMOV             W21, W0                                                ; +0x70, 0x574bb4\nCBZ             W0, loc_574BCC                                         ; +0x74, 0x574bb8\nSTR             W23, [X20,#0x1FC]                                      ; +0x78, 0x574bbc\nMOV             X0, X20; this                                          ; +0x7c, 0x574bc0\nSTR             W22, [X20,#0x1E8]                                      ; +0x80, 0x574bc4\nBL              _ZN14CCCounterLabel17fastUpdateCounterEv; CCCounterLabel::fastUpdateCounter(void) ; +0x84, 0x574bc8\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x88, 0x574bcc\nMOV             W0, W21                                                ; +0x8c, 0x574bd0\nLDR             X2, [X29,#0x60+var_8]                                  ; +0x90, 0x574bd4\nLDR             X1, [X19]                                              ; +0x94, 0x574bd8\nCMP             X2, X1                                                 ; +0x98, 0x574bdc\nB.NE            loc_574BF8                                             ; +0x9c, 0x574be0\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0xa0, 0x574be4\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0xa4, 0x574be8\nLDR             X23, [SP,#0x60+var_30]                                 ; +0xa8, 0x574bec\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0xac, 0x574bf0\nRET                                                                    ; +0xb0, 0x574bf4\nBL              .__stack_chk_fail                                      ; +0xb4, 0x574bf8", "xrefs": ["CCCounterLabel::create @ 0x574c80", "<???> @ 0x9ef58"], "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"}