// // ButtonSprite::updateSpriteBGSize from 0x100067be4 to 0x100067fac (968 bytes) // // 3 xrefs: // > ButtonSprite::init @ 0x100067bb8 // > ButtonSprite::updateBGImage @ 0x1000687c8 // > sub_1000687DC @ 0x100068800 // // 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 10:57:57 +0000 // void *__fastcall ButtonSprite::updateSpriteBGSize(__int64 a1) { float v2; // s8 float v3; // s8 float v4; // s9 float v5; // s8 __n128 v6; // q0 float v7; // s10 float v8; // s11 float v9; // s10 float v10; // s0 __int64 v11; // x0 double *v12; // x1 float v13; // s1 __int64 v14; // x20 float v15; // s8 __int64 v16; // x0 __int64 v17; // x20 float v18; // s8 float v19; // s8 float v20; // s10 __int64 v21; // x20 float v22; // s8 __int64 v23; // x0 void *result; // x0 __int64 v25; // x20 __int64 v26; // x0 float v27; // s8 __int64 v28; // x0 float v29[2]; // [xsp+0h] [xbp-60h] BYREF float v30[4]; // [xsp+8h] [xbp-58h] BYREF float v31[4]; // [xsp+18h] [xbp-48h] BYREF __int64 v32; // [xsp+28h] [xbp-38h] BYREF if ( *(_BYTE *)(a1 + 620) == 1 ) { v2 = *(float *)(a1 + 600); } else { v3 = *(float *)(a1 + 604); v4 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 632) + 328LL))(*(_QWORD *)(a1 + 632)); if ( v3 >= (float)(v4 * (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 632) + 168LL))(*(_QWORD *)(a1 + 632))) ) { v2 = *(float *)(a1 + 604); } else { v5 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 632) + 328LL))(*(_QWORD *)(a1 + 632)); v2 = v5 * (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 632) + 168LL))(*(_QWORD *)(a1 + 632)); } } sub_100026430(&v32); if ( *(_QWORD *)(a1 + 648) ) { sub_1000262CC(v31, 0.0, 0.0, 40.0, 40.0); v7 = v31[3]; v8 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 632) + 328LL))(*(_QWORD *)(a1 + 632)) + 4); if ( v7 >= (float)((float)(v8 * (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 632) + 168LL))(*(_QWORD *)(a1 + 632))) + 8.0) ) { sub_1000262CC(v30, 0.0, 0.0, 40.0, 40.0); v10 = v30[3]; } else { v9 = *(float *)((*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 632) + 328LL))(*(_QWORD *)(a1 + 632)) + 4); v10 = (float)(v9 * (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 632) + 168LL))(*(_QWORD *)(a1 + 632))) + 8.0; } v13 = *(float *)(a1 + 612); if ( v13 == 0.0 ) v13 = v10; v14 = *(_QWORD *)(a1 + 648); sub_1000262C4(v31, v2 + 8.0, v13); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v14 + 320LL))(v14, v31); v15 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 648) + 328LL))(*(_QWORD *)(a1 + 648)); v16 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 648) + 328LL))(*(_QWORD *)(a1 + 648)); sub_1000262C4(v31, v15, *(float *)(v16 + 4)); v12 = (double *)v31; goto LABEL_15; } v11 = *(_QWORD *)(a1 + 640); if ( v11 ) { v12 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v11 + 328LL))(v11); LABEL_15: v6.n128_f64[0] = sub_100026450(&v32, v12); } (*(void (__fastcall **)(__int64, __int64 *, __n128))(*(_QWORD *)a1 + 320LL))(a1, &v32, v6); v17 = *(_QWORD *)(a1 + 632); v18 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1) * 0.5; sub_1000262BC(v30, 0.0, 2.0); v19 = (float)(v18 + v30[0]) + *(float *)(a1 + 664); v20 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1) + 4) * 0.5; sub_1000262BC(v29, 0.0, 2.0); sub_1000262BC(v31, v19, (float)(v20 + v29[1]) + *(float *)(a1 + 668)); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v17 + 184LL))(v17, v31); v21 = *(_QWORD *)(a1 + 648); if ( v21 || (v21 = *(_QWORD *)(a1 + 640)) != 0 ) { v22 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1) * 0.5; v23 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1); sub_1000262BC(v31, v22, *(float *)(v23 + 4) * 0.5); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v21 + 184LL))(v21, v31); } result = (void *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1); if ( result ) { result = (void *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1); if ( result ) { result = __dynamic_cast( result, (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode, (const struct __class_type_info *)&`typeinfo for'CCMenuItemSpriteExtra, 0); if ( result ) { v25 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1); v26 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v25 + 320LL))(v25, v26); v27 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1) * 0.5; v28 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1); sub_1000262BC(v31, v27, *(float *)(v28 + 4) * 0.5); return (void *)(*(__int64 (__fastcall **)(__int64, float *))(*(_QWORD *)a1 + 184LL))(a1, v31); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source