{"type": "func", "start": 6881208, "end": 6881392, "name": "CCCounterLabel::init", "pseudocode": "// \n// CCCounterLabel::init from 0x68ffb8 to 0x690070 (184 bytes)\n// \n// 2 xrefs:\n// > CCCounterLabel::create @ 0x6900f4\n// > <???> @ 0xd1380\n// \n// This function is hookable on this platform (idp: arm, 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:50:35 +0000\n// \n\n__int64 __fastcall CCCounterLabel::init(CCCounterLabel *a1, int a2, cocos2d *a3, int a4)\n{\n  unsigned __int8 v7; // w0\n  unsigned int v8; // w21\n  _BYTE v11[8]; // [xsp+50h] [xbp+50h] BYREF\n\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, (const cocos2d::CCPoint *)&unk_155A798);\n  v7 = cocos2d::CCLabelBMFont::initWithString((int)a1, (int)&byte_11E1A70, a3);\n  v8 = v7;\n  if ( v7 )\n  {\n    *((_DWORD *)a1 + 135) = a4;\n    *((_DWORD *)a1 + 130) = a2;\n    CCCounterLabel::fastUpdateCounter(a1);\n  }\n  return v8;\n}", "assembly": "; \n; CCCounterLabel::init from 0x68ffb8 to 0x690070 (184 bytes)\n; \n; 2 xrefs:\n; > CCCounterLabel::create @ 0x6900f4\n; > <???> @ 0xd1380\n; \n; This function is hookable on this platform (idp: arm, 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:50:35 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x68ffb8\nMOV             X29, SP                                                ; +0x4, 0x68ffbc\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x68ffc0\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x68ffc4\nSTR             X23, [SP,#0x60+var_30]                                 ; +0x10, 0x68ffc8\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x14, 0x68ffcc\nADD             X4, X29, #0x60+var_10                                  ; +0x18, 0x68ffd0\nMOV             W22, W1                                                ; +0x1c, 0x68ffd4\nLDR             X5, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x68ffd8\nADRP            X1, #unk_155A798@PAGE                                  ; +0x24, 0x68ffdc\nMOV             W23, W3                                                ; +0x28, 0x68ffe0\nMOV             X20, X0                                                ; +0x2c, 0x68ffe4\nADD             X1, X1, #unk_155A798@PAGEOFF; cocos2d::CCPoint *       ; +0x30, 0x68ffe8\nMOV             X0, X4; this                                           ; +0x34, 0x68ffec\nLDR             X3, [X5]                                               ; +0x38, 0x68fff0\nSTR             X4, [X29,#0x60+var_20]                                 ; +0x3c, 0x68fff4\nSTR             X2, [X29,#0x60+var_18]                                 ; +0x40, 0x68fff8\nSTR             X3, [X29,#0x60+var_8]                                  ; +0x44, 0x68fffc\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x48, 0x690000\nADRP            X1, #byte_11E1A70@PAGE                                 ; +0x4c, 0x690004\nLDR             X2, [X29,#0x60+var_18]; this                           ; +0x50, 0x690008\nLDR             X4, [X29,#0x60+var_20]                                 ; +0x54, 0x69000c\nMOV             X0, X20; int                                           ; +0x58, 0x690010\nADD             X1, X1, #byte_11E1A70@PAGEOFF; int                     ; +0x5c, 0x690014\nMOV             W3, #0                                                 ; +0x60, 0x690018\nFMOV            S0, #-1.0                                              ; +0x64, 0x69001c\nBL              _ZN7cocos2d13CCLabelBMFont14initWithStringEPKcS2_fNS_15CCTextAlignmentENS_7CCPointE; cocos2d::CCLabelBMFont::initWithString(char const*,char const*,float,cocos2d::CCTextAlignment,cocos2d::CCPoint) ; +0x68, 0x690020\nUXTB            W0, W0                                                 ; +0x6c, 0x690024\nMOV             W21, W0                                                ; +0x70, 0x690028\nCBZ             W0, loc_690040                                         ; +0x74, 0x69002c\nSTR             W23, [X20,#0x21C]                                      ; +0x78, 0x690030\nMOV             X0, X20; this                                          ; +0x7c, 0x690034\nSTR             W22, [X20,#0x208]                                      ; +0x80, 0x690038\nBL              _ZN14CCCounterLabel17fastUpdateCounterEv; CCCounterLabel::fastUpdateCounter(void) ; +0x84, 0x69003c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x88, 0x690040\nMOV             W0, W21                                                ; +0x8c, 0x690044\nLDR             X2, [X29,#0x60+var_8]                                  ; +0x90, 0x690048\nLDR             X1, [X19]                                              ; +0x94, 0x69004c\nCMP             X2, X1                                                 ; +0x98, 0x690050\nB.NE            loc_69006C                                             ; +0x9c, 0x690054\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0xa0, 0x690058\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0xa4, 0x69005c\nLDR             X23, [SP,#0x60+var_30]                                 ; +0xa8, 0x690060\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0xac, 0x690064\nRET                                                                    ; +0xb0, 0x690068\nBL              .__stack_chk_fail                                      ; +0xb4, 0x69006c", "xrefs": ["CCCounterLabel::create @ 0x6900f4", "<???> @ 0xd1380"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}