// // cocos2d::CCProgressTimer::initWithSprite from 0x1006dbc00 to 0x1006dbd89 (393 bytes) // // 1 xrefs: // > cocos2d::CCProgressTimer::create @ 0x1006dbbb6 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:35:43 +0000 // char __fastcall cocos2d::CCProgressTimer::initWithSprite(__int64 a1, __int64 a2) { __int64 v2; // rax int v4; // eax _DWORD *v5; // rdi __int64 v6; // rax void *v7; // rdi __int64 v8; // rax __int64 v9; // rax float v11[8]; // [rsp+0h] [rbp-20h] BYREF *(_QWORD *)v11 = v2; if ( *(float *)(a1 + 344) != 0.0 ) { *(_DWORD *)(a1 + 344) = cocos2d::clampf((__m128)0LL, 0.0, (__m128)0x42C80000u).u32[0]; v4 = *(_DWORD *)(a1 + 340); if ( v4 == 1 ) { cocos2d::CCProgressTimer::updateBar(a1); } else if ( !v4 ) { cocos2d::CCProgressTimer::updateRadial(a1); } } *(_QWORD *)(a1 + 368) = 0; *(_DWORD *)(a1 + 360) = 0; sub_100278250(v11, 0.5, 0.5); cocos2d::CCNode::setAnchorPoint(a1, (__int64)v11); *(_DWORD *)(a1 + 340) = 0; *(_BYTE *)(a1 + 392) = 0; sub_100278250(v11, 0.5, 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)a1 + 1032LL))(a1, v11); sub_100278250(v11, 1.0, 1.0); sub_100278300((_QWORD *)(a1 + 384), v11); v5 = *(_DWORD **)(a1 + 352); if ( v5 != (_DWORD *)a2 ) { if ( a2 ) { cocos2d::CCObject::retain(a2); v5 = *(_DWORD **)(a1 + 352); } if ( v5 ) cocos2d::CCObject::release(v5); *(_QWORD *)(a1 + 352) = a2; v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 328LL))(a2); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 320LL))(a1, v6); v7 = *(void **)(a1 + 368); if ( v7 ) { free(v7); *(_QWORD *)(a1 + 368) = 0; *(_DWORD *)(a1 + 360) = 0; } } v8 = cocos2d::CCShaderCache::sharedShaderCache(); v9 = cocos2d::CCShaderCache::programForKey(v8, "ShaderPositionTextureColor"); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 664LL))(a1, v9); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source