// // sub_C98588 from 0xc98588 to 0xc98834 (684 bytes) // // 2 xrefs: // > DeathHistogram::setSurvival @ 0xc99dc4 // > DeathHistogram::setSurvival @ 0xc9a790 // // This function is hookable on this platform (idp: arm, 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 13:05:54 +0000 // __int64 __fastcall sub_C98588(__int64 a1, float a2, float a3) { float v5; // s9 float v7; // s8 __int64 v8; // x21 float v9; // s10 float v10; // s1 float v11; // s1 const char *v12; // x2 __int64 v13; // x20 float v14; // s13 void (__fastcall *v15)(__int64, _BYTE *); // x21 _BYTE v17[8]; // [xsp+88h] [xbp+88h] BYREF _BYTE v18[8]; // [xsp+90h] [xbp+90h] BYREF _DWORD v19[4]; // [xsp+98h] [xbp+98h] BYREF _DWORD v20[4]; // [xsp+A8h] [xbp+A8h] BYREF v5 = a3 - 4.0; v19[0] = 0; v19[1] = 0; v19[2] = 0; v20[0] = 0; v20[2] = 0; v19[3] = 1.0; v20[1] = 1.0; v20[3] = 1.0; v7 = 35.0; v8 = cocos2d::CCDrawNode::create(_stack_chk_guard); if ( v5 > 35.0 ) { v9 = 35.0; do { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, a2, v9); v10 = v9 + 3.0; if ( v5 < (float)(v9 + 3.0) ) v10 = v5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, a2, v10); cocos2d::CCDrawNode::drawSegment(v8, v18, v17, v19, 1.5); v9 = v9 + 6.0; } while ( v5 > v9 ); do { cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, a2, v7); v11 = v7 + 3.0; if ( v5 < (float)(v7 + 3.0) ) v11 = v5; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v17, a2, v11); cocos2d::CCDrawNode::drawSegment(v8, v18, v17, v20, 0.5); v7 = v7 + 6.0; } while ( v5 > v7 ); } (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 456LL))(a1, v8); v13 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"You", "bigFont.fnt", v12); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v13 + 160LL))(v13, 0.32); v14 = a3 + 4.0; v15 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v13 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, a2, v14); v15(v13, v18); (*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v13, 5); (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 328LL))(v13); return COERCE_UNSIGNED_INT( v14 - (float)((float)(*(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v13 + 328LL))(v13) + 4) * 0.32) * 0.5)); }
GD Web Decomp Icon

GD Web Decomp

Raw Source