{"type": "func", "start": 6879112, "end": 6879724, "name": "CCCountdown::init", "pseudocode": "// \n// CCCountdown::init from 0x68f788 to 0x68f9ec (612 bytes)\n// \n// 3 xrefs:\n// > CCCountdown::create @ 0x68fbec\n// > <???> @ 0x5bd38\n// > <???> @ 0x14149a0\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:34 +0000\n// \n\n__int64 __fastcall CCCountdown::init(cocos2d::CCProgressTimer **this)\n{\n  unsigned __int8 v2; // w0\n  const char *v3; // x1\n  unsigned int v4; // w22\n  cocos2d::CCProgressTimer *v5; // x0\n  cocos2d::CCSprite *v6; // x1\n  __int64 v7; // x24\n  void (__fastcall *v8)(__int64, __int64 *); // x25\n  __int64 v9; // x0\n  __int64 v10; // x0\n  void (__fastcall *v11)(__int64, __int64 *); // x2\n  __int64 v12; // x2\n  __int64 v13; // x24\n  cocos2d::CCProgressTimer *v14; // x1\n  void (__fastcall *v15)(__int64, __int64 *); // x25\n  __int64 v16; // x0\n  __int64 v17; // x24\n  void (__fastcall *v18)(__int64, __int64 *); // x25\n  __int64 v19; // x24\n  void (__fastcall *v20)(__int64, __int64 *); // x25\n  __int64 v21; // x26\n  float v23; // [xsp+60h] [xbp+60h]\n  float v24; // [xsp+60h] [xbp+60h]\n  _BYTE v25[8]; // [xsp+78h] [xbp+78h] BYREF\n  __int64 v26; // [xsp+80h] [xbp+80h] BYREF\n\n  v2 = cocos2d::CCSprite::initWithFile((cocos2d::CCSprite *)this, \"timer_outerCircle.png\");\n  v4 = v2;\n  if ( v2 )\n  {\n    v5 = (cocos2d::CCProgressTimer *)cocos2d::CCSprite::create((cocos2d::CCSprite *)\"timer_innerCircle.png\", v3);\n    *(this + 75) = (cocos2d::CCProgressTimer *)cocos2d::CCProgressTimer::create(v5, v6);\n    cocos2d::CCProgressTimer::setType();\n    (*((void (__fastcall **)(cocos2d::CCProgressTimer **, _QWORD, __int64))*this + 58))(\n      this,\n      *(this + 75),\n      0xFFFFFFFFLL);\n    v7 = (__int64)*(this + 75);\n    v8 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v7 + 184LL);\n    v23 = *(float *)(*((__int64 (__fastcall **)(cocos2d::CCProgressTimer **))*this + 41))(this) * 0.5;\n    v9 = (*((__int64 (__fastcall **)(cocos2d::CCProgressTimer **))*this + 41))(this);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, v23, *(float *)(v9 + 4) * 0.5);\n    v8(v7, &v26);\n    cocos2d::CCProgressTimer::setPercentage(*(this + 75), 100.0);\n    v10 = *((_QWORD *)*(this + 75) + 44);\n    v11 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v10 + 960LL);\n    LOWORD(v26) = 10240;\n    BYTE2(v26) = 70;\n    v11(v10, &v26);\n    cocos2d::CCProgressTimer::updateColor(*(this + 75));\n    v12 = (__int64)*(this + 75);\n    *(_BYTE *)(v12 + 392) = 1;\n    v13 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)\"0\", \"levelFont.fnt\", (const char *)v12);\n    v14 = *this;\n    *(this + 77) = (cocos2d::CCProgressTimer *)v13;\n    v15 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v13 + 184LL);\n    v24 = *(float *)(*((__int64 (__fastcall **)(cocos2d::CCProgressTimer **))v14 + 41))(this) * 0.5;\n    v16 = (*((__int64 (__fastcall **)(cocos2d::CCProgressTimer **))*this + 41))(this);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, v24, *(float *)(v16 + 4) * 0.5);\n    v15(v13, &v26);\n    v17 = (__int64)*(this + 77);\n    v18 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v17 + 296LL);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v26, 0.5, 0.5);\n    v18(v17, &v26);\n    v19 = (__int64)*(this + 77);\n    v20 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v19 + 184LL);\n    v21 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v19 + 192LL))(v19);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, 0.0, -3.0);\n    cocos2d::CCPoint::operator+(&v26, v21, v25);\n    v20(v19, &v26);\n    (*((void (__fastcall **)(cocos2d::CCProgressTimer **, _QWORD, __int64))*this + 58))(this, *(this + 77), 1);\n  }\n  return v4;\n}", "assembly": "; \n; CCCountdown::init from 0x68f788 to 0x68f9ec (612 bytes)\n; \n; 3 xrefs:\n; > CCCountdown::create @ 0x68fbec\n; > <???> @ 0x5bd38\n; > <???> @ 0x14149a0\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:34 +0000\n; \nSTP             X29, X30, [SP,#var_90]!                                ; +0x0, 0x68f788\nADRP            X1, #aTimerOutercirc@PAGE; \"timer_outerCircle.png\"     ; +0x4, 0x68f78c\nMOV             X29, SP                                                ; +0x8, 0x68f790\nSTP             X19, X20, [SP,#0x90+var_80]                            ; +0xc, 0x68f794\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x68f798\nADD             X1, X1, #aTimerOutercirc@PAGEOFF; \"timer_outerCircle.png\" ; +0x14, 0x68f79c\nSTP             X21, X22, [SP,#0x90+var_70]                            ; +0x18, 0x68f7a0\nSTP             X23, X24, [SP,#0x90+var_60]                            ; +0x1c, 0x68f7a4\nLDR             X2, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x68f7a8\nMOV             X19, X0                                                ; +0x24, 0x68f7ac\nSTP             X25, X26, [SP,#0x90+var_50]                            ; +0x28, 0x68f7b0\nSTR             D8, [SP,#0x90+var_40]                                  ; +0x2c, 0x68f7b4\nLDR             X2, [X2]                                               ; +0x30, 0x68f7b8\nSTR             X2, [X29,#0x90+var_8]                                  ; +0x34, 0x68f7bc\nBL              _ZN7cocos2d8CCSprite12initWithFileEPKc; cocos2d::CCSprite::initWithFile(char const*) ; +0x38, 0x68f7c0\nUXTB            W0, W0                                                 ; +0x3c, 0x68f7c4\nMOV             W22, W0                                                ; +0x40, 0x68f7c8\nCBZ             W0, loc_68F9B4                                         ; +0x44, 0x68f7cc\nADRP            X0, #aTimerInnercirc@PAGE; \"timer_innerCircle.png\"     ; +0x48, 0x68f7d0\nADD             X21, X29, #0x90+var_10                                 ; +0x4c, 0x68f7d4\nFMOV            S8, #0.5                                               ; +0x50, 0x68f7d8\nADD             X0, X0, #aTimerInnercirc@PAGEOFF; \"timer_innerCircle.png\" ; +0x54, 0x68f7dc\nADD             X23, X29, #0x90+var_18                                 ; +0x58, 0x68f7e0\nBL              _ZN7cocos2d8CCSprite6createEPKc; cocos2d::CCSprite::create(char const*) ; +0x5c, 0x68f7e4\nBL              _ZN7cocos2d15CCProgressTimer6createEPNS_8CCSpriteE; cocos2d::CCProgressTimer::create(cocos2d::CCSprite *) ; +0x60, 0x68f7e8\nSTR             X0, [X19,#0x258]                                       ; +0x64, 0x68f7ec\nMOV             W1, #0                                                 ; +0x68, 0x68f7f0\nBL              _ZN7cocos2d15CCProgressTimer7setTypeENS_19CCProgressTimerTypeE; cocos2d::CCProgressTimer::setType(cocos2d::CCProgressTimerType) ; +0x6c, 0x68f7f4\nLDR             X3, [X19]                                              ; +0x70, 0x68f7f8\nMOV             W2, #0xFFFFFFFF                                        ; +0x74, 0x68f7fc\nLDR             X1, [X19,#0x258]                                       ; +0x78, 0x68f800\nMOV             X0, X19                                                ; +0x7c, 0x68f804\nLDR             X3, [X3,#0x1D0]                                        ; +0x80, 0x68f808\nBLR             X3                                                     ; +0x84, 0x68f80c\nLDR             X24, [X19,#0x258]                                      ; +0x88, 0x68f810\nLDR             X1, [X19]                                              ; +0x8c, 0x68f814\nMOV             X0, X19                                                ; +0x90, 0x68f818\nLDR             X2, [X24]                                              ; +0x94, 0x68f81c\nLDR             X1, [X1,#0x148]                                        ; +0x98, 0x68f820\nLDR             X25, [X2,#0xB8]                                        ; +0x9c, 0x68f824\nBLR             X1                                                     ; +0xa0, 0x68f828\nLDR             X1, [X19]                                              ; +0xa4, 0x68f82c\nLDR             S0, [X0]                                               ; +0xa8, 0x68f830\nMOV             X0, X19                                                ; +0xac, 0x68f834\nFMUL            S0, S0, S8                                             ; +0xb0, 0x68f838\nLDR             X1, [X1,#0x148]                                        ; +0xb4, 0x68f83c\nSTR             Q0, [X29,#0x90+var_30]                                 ; +0xb8, 0x68f840\nBLR             X1                                                     ; +0xbc, 0x68f844\nLDR             S1, [X0,#4]                                            ; +0xc0, 0x68f848\nMOV             X0, X21; this                                          ; +0xc4, 0x68f84c\nLDR             Q0, [X29,#0x90+var_30]; float                          ; +0xc8, 0x68f850\nFMUL            S1, S1, S8; float                                      ; +0xcc, 0x68f854\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xd0, 0x68f858\nMOV             X0, X24                                                ; +0xd4, 0x68f85c\nMOV             X1, X21                                                ; +0xd8, 0x68f860\nBLR             X25                                                    ; +0xdc, 0x68f864\nLDR             S0, flt_68F9EC; float                                  ; +0xe0, 0x68f868\nLDR             X0, [X19,#0x258]; this                                 ; +0xe4, 0x68f86c\nBL              _ZN7cocos2d15CCProgressTimer13setPercentageEf; cocos2d::CCProgressTimer::setPercentage(float) ; +0xe8, 0x68f870\nLDR             X0, [X19,#0x258]                                       ; +0xec, 0x68f874\nMOV             W3, #0x28 ; '('                                        ; +0xf0, 0x68f878\nMOV             X1, X21                                                ; +0xf4, 0x68f87c\nLDR             X2, [X0,#0x160]                                        ; +0xf8, 0x68f880\nMOV             X0, X2                                                 ; +0xfc, 0x68f884\nLDR             X2, [X2]                                               ; +0x100, 0x68f888\nLDR             X2, [X2,#0x3C0]                                        ; +0x104, 0x68f88c\nSTRB            W3, [X29,#0x90+var_F]                                  ; +0x108, 0x68f890\nMOV             W3, #0x46 ; 'F'                                        ; +0x10c, 0x68f894\nSTRB            WZR, [X29,#0x90+var_10]                                ; +0x110, 0x68f898\nSTRB            W3, [X29,#0x90+var_E]                                  ; +0x114, 0x68f89c\nBLR             X2                                                     ; +0x118, 0x68f8a0\nLDR             X0, [X19,#0x258]; this                                 ; +0x11c, 0x68f8a4\nBL              _ZN7cocos2d15CCProgressTimer11updateColorEv; cocos2d::CCProgressTimer::updateColor(void) ; +0x120, 0x68f8a8\nLDR             X2, [X19,#0x258]; char *                               ; +0x124, 0x68f8ac\nADRP            X1, #aLevelfontFnt@PAGE; \"levelFont.fnt\"               ; +0x128, 0x68f8b0\nADRP            X0, #(aAssertionFaile_0+0x48)@PAGE; \"0\"                ; +0x12c, 0x68f8b4\nMOV             W3, #1                                                 ; +0x130, 0x68f8b8\nADD             X1, X1, #aLevelfontFnt@PAGEOFF; \"levelFont.fnt\"        ; +0x134, 0x68f8bc\nADD             X0, X0, #(aAssertionFaile_0+0x48)@PAGEOFF; this        ; +0x138, 0x68f8c0\nSTRB            W3, [X2,#0x188]                                        ; +0x13c, 0x68f8c4\nBL              _ZN7cocos2d13CCLabelBMFont6createEPKcS2_; cocos2d::CCLabelBMFont::create(char const*,char const*) ; +0x140, 0x68f8c8\nMOV             X24, X0                                                ; +0x144, 0x68f8cc\nLDR             X1, [X19]                                              ; +0x148, 0x68f8d0\nMOV             X0, X19                                                ; +0x14c, 0x68f8d4\nSTR             X24, [X19,#0x268]                                      ; +0x150, 0x68f8d8\nLDR             X2, [X24]                                              ; +0x154, 0x68f8dc\nLDR             X1, [X1,#0x148]                                        ; +0x158, 0x68f8e0\nLDR             X25, [X2,#0xB8]                                        ; +0x15c, 0x68f8e4\nBLR             X1                                                     ; +0x160, 0x68f8e8\nLDR             X1, [X19]                                              ; +0x164, 0x68f8ec\nLDR             S0, [X0]                                               ; +0x168, 0x68f8f0\nMOV             X0, X19                                                ; +0x16c, 0x68f8f4\nFMUL            S0, S0, S8                                             ; +0x170, 0x68f8f8\nLDR             X1, [X1,#0x148]                                        ; +0x174, 0x68f8fc\nSTR             Q0, [X29,#0x90+var_30]                                 ; +0x178, 0x68f900\nBLR             X1                                                     ; +0x17c, 0x68f904\nLDR             S1, [X0,#4]                                            ; +0x180, 0x68f908\nMOV             X0, X21; this                                          ; +0x184, 0x68f90c\nLDR             Q0, [X29,#0x90+var_30]; float                          ; +0x188, 0x68f910\nFMUL            S1, S1, S8; float                                      ; +0x18c, 0x68f914\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x190, 0x68f918\nMOV             X0, X24                                                ; +0x194, 0x68f91c\nMOV             X1, X21                                                ; +0x198, 0x68f920\nBLR             X25                                                    ; +0x19c, 0x68f924\nLDR             X24, [X19,#0x268]                                      ; +0x1a0, 0x68f928\nFMOV            S0, S8; float                                          ; +0x1a4, 0x68f92c\nMOV             X0, X21; this                                          ; +0x1a8, 0x68f930\nFMOV            S1, S8; float                                          ; +0x1ac, 0x68f934\nLDR             X1, [X24]                                              ; +0x1b0, 0x68f938\nLDR             X25, [X1,#0x128]                                       ; +0x1b4, 0x68f93c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1b8, 0x68f940\nMOV             X0, X24                                                ; +0x1bc, 0x68f944\nMOV             X1, X21                                                ; +0x1c0, 0x68f948\nBLR             X25                                                    ; +0x1c4, 0x68f94c\nLDR             X24, [X19,#0x268]                                      ; +0x1c8, 0x68f950\nMOV             X0, X24                                                ; +0x1cc, 0x68f954\nLDR             X1, [X24]                                              ; +0x1d0, 0x68f958\nLDR             X2, [X1,#0xC0]                                         ; +0x1d4, 0x68f95c\nLDR             X25, [X1,#0xB8]                                        ; +0x1d8, 0x68f960\nBLR             X2                                                     ; +0x1dc, 0x68f964\nMOV             X26, X0                                                ; +0x1e0, 0x68f968\nFMOV            S0, WZR; float                                         ; +0x1e4, 0x68f96c\nMOV             X0, X23; this                                          ; +0x1e8, 0x68f970\nFMOV            S1, #-3.0; float                                       ; +0x1ec, 0x68f974\nSTR             X23, [X29,#0x90+var_30]                                ; +0x1f0, 0x68f978\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1f4, 0x68f97c\nLDR             X1, [X29,#0x90+var_30]                                 ; +0x1f8, 0x68f980\nMOV             X8, X21                                                ; +0x1fc, 0x68f984\nMOV             X0, X26                                                ; +0x200, 0x68f988\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x204, 0x68f98c\nMOV             X0, X24                                                ; +0x208, 0x68f990\nMOV             X1, X21                                                ; +0x20c, 0x68f994\nBLR             X25                                                    ; +0x210, 0x68f998\nLDR             X3, [X19]                                              ; +0x214, 0x68f99c\nMOV             X0, X19                                                ; +0x218, 0x68f9a0\nLDR             X1, [X19,#0x268]                                       ; +0x21c, 0x68f9a4\nMOV             W2, #1                                                 ; +0x220, 0x68f9a8\nLDR             X3, [X3,#0x1D0]                                        ; +0x224, 0x68f9ac\nBLR             X3                                                     ; +0x228, 0x68f9b0\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x22c, 0x68f9b4\nMOV             W0, W22                                                ; +0x230, 0x68f9b8\nLDR             X2, [X29,#0x90+var_8]                                  ; +0x234, 0x68f9bc\nLDR             X1, [X20]                                              ; +0x238, 0x68f9c0\nCMP             X2, X1                                                 ; +0x23c, 0x68f9c4\nB.NE            loc_68F9E8                                             ; +0x240, 0x68f9c8\nLDP             X19, X20, [SP,#0x90+var_80]                            ; +0x244, 0x68f9cc\nLDP             X21, X22, [SP,#0x90+var_70]                            ; +0x248, 0x68f9d0\nLDP             X23, X24, [SP,#0x90+var_60]                            ; +0x24c, 0x68f9d4\nLDP             X25, X26, [SP,#0x90+var_50]                            ; +0x250, 0x68f9d8\nLDR             D8, [SP,#0x90+var_40]                                  ; +0x254, 0x68f9dc\nLDP             X29, X30, [SP+0x90+var_90],#0x90                       ; +0x258, 0x68f9e0\nRET                                                                    ; +0x25c, 0x68f9e4\nBL              .__stack_chk_fail                                      ; +0x260, 0x68f9e8", "xrefs": ["CCCountdown::create @ 0x68fbec", "<???> @ 0x5bd38", "<???> @ 0x14149a0"], "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"}