{"type": "func", "start": 5720156, "end": 5720224, "name": "CCCounterLabel::enableCounter", "pseudocode": "// \n// CCCounterLabel::enableCounter from 0x57485c to 0x5748a0 (68 bytes)\n// \n// 2 xrefs:\n// > CCCounterLabel::setTargetCount @ 0x57492c\n// > <???> @ 0x5f8e0\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\nvoid CCCounterLabel::enableCounter(CCCounterLabel *a1)\n{\n  _BOOL4 m_dontSchedule; // w2\n  cocos2d::SEL_SCHEDULE v2; // 0:x1.16\n\n  if ( !a1->m_counterEnabled )\n  {\n    m_dontSchedule = a1->m_dontSchedule;\n    a1->m_counterEnabled = 1;\n    if ( !m_dontSchedule )\n    {\n      v2.adj = 0;\n      v2.ptr = (void (__cdecl *)(float))CCCounterLabel::updateCounter;\n      cocos2d::CCNode::schedule(a1, v2);\n    }\n  }\n}", "assembly": "; \n; CCCounterLabel::enableCounter from 0x57485c to 0x5748a0 (68 bytes)\n; \n; 2 xrefs:\n; > CCCounterLabel::setTargetCount @ 0x57492c\n; > <???> @ 0x5f8e0\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,#-0x10+var_s0]!                          ; +0x0, 0x57485c\nMOV             X29, SP                                                ; +0x4, 0x574860\nLDRB            W2, [X0,#0x1F0]                                        ; +0x8, 0x574864\nCBNZ            W2, loc_57487C                                         ; +0xc, 0x574868\nLDRB            W2, [X0,#0x1F8]                                        ; +0x10, 0x57486c\nMOV             W3, #1                                                 ; +0x14, 0x574870\nSTRB            W3, [X0,#0x1F0]                                        ; +0x18, 0x574874\nCBZ             W2, loc_574884                                         ; +0x1c, 0x574878\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x20, 0x57487c\nRET                                                                    ; +0x24, 0x574880\nADRP            X1, #_ZN14CCCounterLabel13updateCounterEf_ptr@PAGE     ; +0x28, 0x574884\nMOV             X2, #0                                                 ; +0x2c, 0x574888\nLDR             S0, =0x3D088889                                        ; +0x30, 0x57488c\nLDR             X1, [X1,#_ZN14CCCounterLabel13updateCounterEf_ptr@PAGEOFF]; CCCounterLabel::updateCounter(float) ... ; +0x34, 0x574890\nBL              _ZN7cocos2d6CCNode8scheduleEMNS_8CCObjectEFvfEf; cocos2d::CCNode::schedule(void (cocos2d::CCObject::*)(float),float) ; +0x38, 0x574894\nLDP             X29, X30, [SP+var_s0],#0x10                            ; +0x3c, 0x574898\nRET                                                                    ; +0x40, 0x57489c", "xrefs": ["CCCounterLabel::setTargetCount @ 0x57492c", "<???> @ 0x5f8e0"], "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"}