{"type": "func", "start": 3954424, "end": 3954518, "name": "CCCounterLabel::init", "pseudocode": "// \n// CCCounterLabel::init from 0x3c56f8 to 0x3c5756 (94 bytes)\n// \n// 1 xrefs:\n// > CCCounterLabel::create @ 0x3c57ca\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:46:34 +0000\n// \n\nint __fastcall CCCounterLabel::init(CCCounterLabel *a1, int a2, cocos2d *a3, int a4)\n{\n  const char *v8; // r1\n  int v9; // r6\n  _BYTE v11[8]; // [sp+Ch] [bp-10h] BYREF\n\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v11, (const cocos2d::CCPoint *)&unk_D2A3F4);\n  v9 = cocos2d::CCLabelBMFont::initWithString((int)a1, (int)\" \", a3, -1082130432, 0, (int)v11);\n  if ( v9 )\n  {\n    *((_DWORD *)a1 + 101) = a4;\n    *((_DWORD *)a1 + 96) = a2;\n    CCCounterLabel::fastUpdateCounter(a1, v8);\n  }\n  return v9;\n}", "assembly": "; \n; CCCounterLabel::init from 0x3c56f8 to 0x3c5756 (94 bytes)\n; \n; 1 xrefs:\n; > CCCounterLabel::create @ 0x3c57ca\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:46:34 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x3c56f8\nSUB             SP, SP, #0x1C; int                                     ; +0x4, 0x3c56fc\nLDR             R4, =(__stack_chk_guard_ptr - 0x3C570A)                ; +0x6, 0x3c56fe\nADD             R6, SP, #0x1C+var_10                                   ; +0x8, 0x3c5700\nMOV             R7, R1                                                 ; +0xa, 0x3c5702\nMOV             R8, R3                                                 ; +0xc, 0x3c5704\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x3c5706\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x3c5708\nLDR             R1, =(unk_D2A3F4 - 0x3C5716)                           ; +0x12, 0x3c570a\nMOV             R5, R0                                                 ; +0x14, 0x3c570c\nMOV             R0, R6; this                                           ; +0x16, 0x3c570e\nLDR             R3, [R4]                                               ; +0x18, 0x3c5710\nADD             R1, PC; unk_D2A3F4 ; cocos2d::CCPoint *                ; +0x1a, 0x3c5712\nMOV             R9, R2                                                 ; +0x1c, 0x3c5714\nSTR             R3, [SP,#0x1C+var_8]                                   ; +0x1e, 0x3c5716\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x20, 0x3c5718\nLDR             R1, =(asc_B7533B - 0x3C572A); \" \"                      ; +0x24, 0x3c571c\nMOVS            R3, #0                                                 ; +0x26, 0x3c571e\nMOV             R0, R5; int                                            ; +0x28, 0x3c5720\nSTMEA.W         SP, {R3,R6}                                            ; +0x2a, 0x3c5722\nADD             R1, PC; \" \"                                            ; +0x2e, 0x3c5726\nMOV             R2, R9; this                                           ; +0x30, 0x3c5728\nLDR             R3, =0xBF800000; int                                   ; +0x32, 0x3c572a\nBL              _ZN7cocos2d13CCLabelBMFont14initWithStringEPKcS2_fNS_15CCTextAlignmentENS_7CCPointE; cocos2d::CCLabelBMFont::initWithString(char const*,char const*,float,cocos2d::CCTextAlignment,cocos2d::CCPoint) ; +0x34, 0x3c572c\nMOV             R6, R0                                                 ; +0x38, 0x3c5730\nCBZ             R0, loc_3C5742                                         ; +0x3a, 0x3c5732\nSTR.W           R8, [R5,#0x194]                                        ; +0x3c, 0x3c5734\nMOV             R0, R5; this                                           ; +0x40, 0x3c5738\nSTR.W           R7, [R5,#0x180]                                        ; +0x42, 0x3c573a\nBL              _ZN14CCCounterLabel17fastUpdateCounterEv; CCCounterLabel::fastUpdateCounter(void) ; +0x46, 0x3c573e\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x4a, 0x3c5742\nMOV             R0, R6                                                 ; +0x4c, 0x3c5744\nLDR             R3, [R4]                                               ; +0x4e, 0x3c5746\nCMP             R2, R3                                                 ; +0x50, 0x3c5748\nBEQ             loc_3C5750                                             ; +0x52, 0x3c574a\nBLX             __stack_chk_fail                                       ; +0x54, 0x3c574c\nADD             SP, SP, #0x1C                                          ; +0x58, 0x3c5750\nPOP.W           {R4-R9,PC}                                             ; +0x5a, 0x3c5752", "xrefs": ["CCCounterLabel::create @ 0x3c57ca"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}