// // sub_10087B920 from 0x10087b920 to 0x10087bb31 (529 bytes) // // 0 xrefs: // // 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:36:55 +0000 // char *__fastcall sub_10087B920( __int64 a1, __int64 a2, __int64 a3, __int64 a4, unsigned int a5, __int64 a6, double a7, unsigned int *a8) { char *v9; // r12 char *v10; // rbx char *v11; // rbx __int64 v12; // r15 void *v13; // r15 float *v14; // rax float *v15; // rax double v16; // xmm0_8 unsigned __int64 v18; // [rsp+8h] [rbp-58h] BYREF __int64 v19; // [rsp+10h] [rbp-50h] __int64 v20; // [rsp+18h] [rbp-48h] __int64 v21; // [rsp+20h] [rbp-40h] double v22; // [rsp+2Ch] [rbp-34h] BYREF unsigned int v23; // [rsp+34h] [rbp-2Ch] v23 = a5; v20 = a4; v21 = a3; v9 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_checkOn_001.png", a7); v10 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)"GJ_checkOff_001.png", a7); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v9 + 160LL))(v9, 0.80000001); (*(void (__fastcall **)(char *, float))(*(_QWORD *)v10 + 160LL))(v10, 0.80000001); v19 = a1; v11 = CCMenuItemToggler::create((__int64)v9, (__int64)v10, a1, v21, v20); CCMenuItemToggler::toggle((__int64)v11, v23); (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)a6 + 456LL))(a6, v11); cocos2d::CCNode::convertToNodeSpace(&v22, a6, a8); (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v11 + 184LL))(v11, &v22); CCMenuItemToggler::setSizeMult((__int64)v11, 1.5); if ( (*(_BYTE *)a2 & 1) != 0 ) v12 = *(_QWORD *)(a2 + 16); else v12 = a2 + 1; v13 = cocos2d::CCLabelBMFont::create_3(v12, (__int64)"bigFont.fnt"); (*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(v19 + 576) + 456LL))(*(_QWORD *)(v19 + 576), v13); sub_100278250((float *)&v22, 0.0, 0.5); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v13 + 296LL))(v13, &v22); v14 = (float *)(*(__int64 (__fastcall **)(char *))(*(_QWORD *)v9 + 328LL))(v9); sub_100278250((float *)&v18, (float)((float)(0.5 * *v14) * 0.80000001) + 8.0, 0.0); sub_100278350(&v22, (unsigned __int64 *)a8, &v18); (*(void (__fastcall **)(void *, double *))(*(_QWORD *)v13 + 184LL))(v13, &v22); if ( *(float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v13 + 328LL))(v13) > 120.0 ) { v15 = (float *)(*(__int64 (__fastcall **)(void *))(*(_QWORD *)v13 + 328LL))(v13); (*(void (__fastcall **)(void *, float))(*(_QWORD *)v13 + 160LL))(v13, 120.0 / *v15); } v16 = (*(double (__fastcall **)(void *))(*(_QWORD *)v13 + 168LL))(v13); if ( *(float *)&v16 <= 0.34999999 ) (*(void (__fastcall **)(void *))(*(_QWORD *)v13 + 168LL))(v13); (*(void (__fastcall **)(void *))(*(_QWORD *)v13 + 160LL))(v13); return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source