{"type": "func", "start": 3037600, "end": 3037694, "name": "CCCounterLabel::init", "pseudocode": "// \n// CCCounterLabel::init from 0x2e59a0 to 0x2e59fe (94 bytes)\n// \n// 1 xrefs:\n// > CCCounterLabel::create @ 0x2e5a72\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  _BOOL4 v8; // r6\n  cocos2d::CCPoint v10; // [sp+4h] [bp-18h]\n  cocos2d::CCPoint v11; // [sp+Ch] [bp-10h] BYREF\n\n  cocos2d::CCPoint::CCPoint(&v11, &stru_AC5250);\n  LODWORD(v10.x) = &v11;\n  v8 = cocos2d::CCLabelBMFont::initWithString(a1, \" \", a3, -1.0, kCCTextAlignmentLeft, v10);\n  if ( v8 )\n  {\n    a1->m_formatterType = a4;\n    a1->m_targetCount = a2;\n    CCCounterLabel::fastUpdateCounter(a1);\n  }\n  return v8;\n}", "assembly": "; \n; CCCounterLabel::init from 0x2e59a0 to 0x2e59fe (94 bytes)\n; \n; 1 xrefs:\n; > CCCounterLabel::create @ 0x2e5a72\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.W          {R4-R9,LR}                                             ; +0x0, 0x2e59a0\nSUB             SP, SP, #0x1C; int                                     ; +0x4, 0x2e59a4\nLDR             R4, =(__stack_chk_guard_ptr - 0x2E59B2)                ; +0x6, 0x2e59a6\nADD             R6, SP, #0x1C+var_10                                   ; +0x8, 0x2e59a8\nMOV             R7, R1                                                 ; +0xa, 0x2e59aa\nMOV             R8, R3                                                 ; +0xc, 0x2e59ac\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x2e59ae\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x2e59b0\nLDR             R1, =(stru_AC5250 - 0x2E59BE)                          ; +0x12, 0x2e59b2\nMOV             R5, R0                                                 ; +0x14, 0x2e59b4\nMOV             R0, R6; this                                           ; +0x16, 0x2e59b6\nLDR             R3, [R4]                                               ; +0x18, 0x2e59b8\nADD             R1, PC; stru_AC5250 ; cocos2d::CCPoint *               ; +0x1a, 0x2e59ba\nMOV             R9, R2                                                 ; +0x1c, 0x2e59bc\nSTR             R3, [SP,#0x1C+var_8]                                   ; +0x1e, 0x2e59be\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x20, 0x2e59c0\nLDR             R1, =(asc_943A02 - 0x2E59D2); \" \"                      ; +0x24, 0x2e59c4\nMOVS            R3, #0                                                 ; +0x26, 0x2e59c6\nMOV             R0, R5; int                                            ; +0x28, 0x2e59c8\nSTMEA.W         SP, {R3,R6}                                            ; +0x2a, 0x2e59ca\nADD             R1, PC; \" \"                                            ; +0x2e, 0x2e59ce\nMOV             R2, R9; this                                           ; +0x30, 0x2e59d0\nLDR             R3, =0xBF800000; int                                   ; +0x32, 0x2e59d2\nBL              _ZN7cocos2d13CCLabelBMFont14initWithStringEPKcS2_fNS_15CCTextAlignmentENS_7CCPointE; cocos2d::CCLabelBMFont::initWithString(char const*,char const*,float,cocos2d::CCTextAlignment,cocos2d::CCPoint) ; +0x34, 0x2e59d4\nMOV             R6, R0                                                 ; +0x38, 0x2e59d8\nCBZ             R0, loc_2E59EA                                         ; +0x3a, 0x2e59da\nSTR.W           R8, [R5,#0x184]                                        ; +0x3c, 0x2e59dc\nMOV             R0, R5; this                                           ; +0x40, 0x2e59e0\nSTR.W           R7, [R5,#0x170]                                        ; +0x42, 0x2e59e2\nBL              _ZN14CCCounterLabel17fastUpdateCounterEv; CCCounterLabel::fastUpdateCounter(void) ; +0x46, 0x2e59e6\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x4a, 0x2e59ea\nMOV             R0, R6                                                 ; +0x4c, 0x2e59ec\nLDR             R3, [R4]                                               ; +0x4e, 0x2e59ee\nCMP             R2, R3                                                 ; +0x50, 0x2e59f0\nBEQ             loc_2E59F8                                             ; +0x52, 0x2e59f2\nBLX             __stack_chk_fail                                       ; +0x54, 0x2e59f4\nADD             SP, SP, #0x1C                                          ; +0x58, 0x2e59f8\nPOP.W           {R4-R9,PC}                                             ; +0x5a, 0x2e59fa", "xrefs": ["CCCounterLabel::create @ 0x2e5a72"], "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"}