// // GJBaseGameLayer::positionUIObjects from 0x1000f8900 to 0x1000f8dfe (1278 bytes) // // 1 xrefs: // > GJBaseGameLayer::updateSpecialGroupData @ 0x1000f36e1 // // 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:21:17 +0000 // unsigned int *__fastcall GJBaseGameLayer::positionUIObjects(float *a1, __int64 a2) { float *v2; // r12 __int64 v3; // rax float *v4; // rdi unsigned int *result; // rax __int64 v6; // rcx unsigned int **v7; // r15 unsigned __int64 v8; // rcx int v9; // eax __int64 v10; // r14 __int64 v11; // r13 __int64 v12; // rax __int64 v13; // rax __int64 v14; // r14 __int64 v15; // r13 __int64 v16; // r14 unsigned int *v17; // rbx __int64 v18; // rcx unsigned int *v19; // rbx unsigned __int64 v20; // rcx float *v21; // r14 int v22; // ecx int v23; // esi int v24; // eax float v25; // xmm2_4 float v26; // xmm2_4 float v27; // xmm2_4 float v28; // xmm0_4 float v29; // xmm0_4 float v30; // xmm0_4 unsigned int *v31; // rax float **v32; // rbx unsigned __int64 v33; // r12 float *v34; // r14 char v35[8]; // [rsp+0h] [rbp-C0h] BYREF char v36[8]; // [rsp+8h] [rbp-B8h] BYREF char v37[8]; // [rsp+10h] [rbp-B0h] BYREF unsigned int *v38; // [rsp+18h] [rbp-A8h] unsigned __int64 v39; // [rsp+20h] [rbp-A0h] float *v40; // [rsp+28h] [rbp-98h] unsigned int **v41; // [rsp+30h] [rbp-90h] __int64 v42; // [rsp+38h] [rbp-88h] float v43; // [rsp+40h] [rbp-80h] BYREF float v44; // [rsp+44h] [rbp-7Ch] char v45[8]; // [rsp+48h] [rbp-78h] BYREF float *v46; // [rsp+50h] [rbp-70h] unsigned __int64 v47; // [rsp+58h] [rbp-68h] float v48; // [rsp+60h] [rbp-60h] BYREF float v49; // [rsp+64h] [rbp-5Ch] unsigned int *v50; // [rsp+68h] [rbp-58h] _DWORD v51[2]; // [rsp+70h] [rbp-50h] BYREF float v52; // [rsp+78h] [rbp-48h] float v53; // [rsp+7Ch] [rbp-44h] __int64 v54; // [rsp+80h] [rbp-40h] float v55; // [rsp+88h] [rbp-38h] BYREF float v56; // [rsp+8Ch] [rbp-34h] float v57; // [rsp+90h] [rbp-30h] float v58; // [rsp+94h] [rbp-2Ch] v2 = a1; v3 = cocos2d::CCDirector::sharedDirector(a1, a2); cocos2d::CCDirector::getWinSize(&v55, v3); v4 = (float *)v35; sub_100278250(v35, v55 * 0.5, v56 * 0.5); v53 = v55 * 0.5; v52 = 0.5 * v56; v42 = sub_1007FE900(v35); result = *((unsigned int **)v2 + 410); if ( result ) { result = *((unsigned int **)result + 7); v6 = *result; if ( *result ) { v57 = v53 / 240.0; v58 = v52 / 160.0; v7 = *((unsigned int ***)result + 2); v8 = (unsigned __int64)&v7[v6 - 1]; v47 = v8; v46 = v2; while ( 1 ) { result = *v7; if ( !*v7 ) return result; v50 = *v7; if ( result[257] != 3613 ) goto LABEL_5; v9 = v50[366]; v10 = 9999; if ( v9 < 9999 ) v10 = (unsigned int)v9; if ( (int)v10 <= 0 ) v10 = 0; v54 = *(_QWORD *)(*((_QWORD *)v2 + 452) + 8 * v10); if ( !v54 ) { v11 = sub_1007FE900(v4); cocos2d::CCDictionary::setObject_1(*((_QWORD *)v2 + 449), v11, v10); v12 = *((_QWORD *)v2 + 452); v54 = v11; *(_QWORD *)(v12 + 8 * v10) = v11; } v13 = cocos2d::CCDictionary::objectForKey_1(*((_QWORD *)v2 + 461)); if ( !v13 ) break; v14 = v13; if ( !(unsigned int)sub_1007FEF90(v13) ) break; v15 = sub_1007FEFE0(v14, 0); v4 = v2; result = (unsigned int *)GJBaseGameLayer::tryGetMainObject(v2); if ( !v15 ) goto LABEL_20; v16 = v42; v17 = result; sub_1007FF190(v42); v4 = (float *)v16; sub_1007FEBF0(v16, v15); result = v17; v8 = v47; if ( !v17 ) goto LABEL_5; LABEL_21: if ( v16 ) { v40 = (float *)v15; v41 = v7; v4 = &v43; (*(void (__fastcall **)(float *, unsigned int *))(*(_QWORD *)result + 1816LL))(&v43, result); result = *(unsigned int **)(v16 + 56); v18 = *result; v19 = v50; if ( *result ) { result = *((unsigned int **)result + 2); v20 = (unsigned __int64)&result[2 * v18 - 2]; v39 = v20; while ( 1 ) { v21 = *(float **)result; if ( !*(_QWORD *)result ) goto LABEL_4; if ( !*((_BYTE *)v21 + 1345) ) break; LABEL_26: result += 2; if ( (unsigned __int64)result > v20 ) goto LABEL_4; } v38 = result; GJBaseGameLayer::addUIObject(v2, v21); (*(void (__fastcall **)(float *, float *))(*(_QWORD *)v21 + 1816LL))(&v48, v21); sub_1002782D0(v51, &v48); v22 = (v43 <= v48) + 3; if ( v19[460] >= 2 ) v22 = v19[460]; v23 = v19[461]; v24 = v23; if ( !v23 ) v24 = (v44 <= v49) + 7; if ( v23 == 5 ) v24 = (v44 <= v49) + 7; switch ( v22 ) { case 4: v27 = v48 - (float)(v43 + 240.0); if ( *((_BYTE *)v19 + 1848) ) v27 = v27 * v57; v26 = v27 + v55; break; case 3: v26 = v48 - (float)(v43 + -240.0); if ( *((_BYTE *)v19 + 1848) ) v26 = v26 * v57; break; case 2: v25 = v48 - v43; if ( *((_BYTE *)v19 + 1848) ) v25 = v25 * v57; v26 = v25 + v53; break; default: LABEL_47: switch ( v24 ) { case 8: v30 = v49 - (float)(v44 + 160.0); if ( *((_BYTE *)v19 + 1849) ) v30 = v30 * v58; v29 = v30 + v56; break; case 7: v29 = v49 - (float)(v44 + -160.0); if ( *((_BYTE *)v19 + 1849) ) v29 = v29 * v58; break; case 6: v28 = v49 - v44; if ( *((_BYTE *)v19 + 1849) ) v28 = v28 * v58; v29 = v28 + v52; break; default: LABEL_59: sub_1002782D0(v45, v51); v4 = v21; (*(void (__fastcall **)(float *, char *))(*(_QWORD *)v21 + 1368LL))(v21, v45); if ( v54 && v21 == v40 ) { v4 = (float *)v45; sub_100278370(v45, v51, &v48); v31 = *(unsigned int **)(v54 + 56); if ( *v31 ) { v32 = *((float ***)v31 + 2); v33 = (unsigned __int64)&v32[*v31 - 1]; do { v34 = *v32; if ( !*v32 ) break; if ( !*((_BYTE *)v34 + 1345) ) { GJBaseGameLayer::addUIObject(v46, *v32); (*(void (__fastcall **)(char *, float *))(*(_QWORD *)v34 + 1816LL))(v37, v34); sub_100278350(v36, v37, v45); v4 = v34; (*(void (__fastcall **)(float *, char *))(*(_QWORD *)v34 + 1368LL))(v34, v36); } ++v32; } while ( (unsigned __int64)v32 <= v33 ); } v2 = v46; } v19 = v50; result = v38; v20 = v39; goto LABEL_26; } *(float *)&v51[1] = v29; goto LABEL_59; } *(float *)v51 = v26; goto LABEL_47; } LABEL_4: v7 = v41; v8 = v47; } LABEL_5: if ( (unsigned __int64)++v7 > v8 ) return result; } v4 = v2; result = (unsigned int *)GJBaseGameLayer::tryGetMainObject(v2); LABEL_20: v15 = 0; v16 = v54; v8 = v47; if ( !result ) goto LABEL_5; goto LABEL_21; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source