// // GJBaseGameLayer::updateShaderLayer from 0x10028cd60 to 0x10028d59c (2108 bytes) // // 6 xrefs: // > PlayLayer::resetLevel @ 0x10014bc94 // > GJBaseGameLayer::update @ 0x10029b0c4 // > GJBaseGameLayer::update @ 0x10029b33c // > GJBaseGameLayer::resetLevelVariables @ 0x10029f220 // > sub_1003F823C @ 0x1003f8a6c // > LevelEditorLayer::onPlaytest @ 0x100404b40 // // 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 11:02:01 +0000 // __int64 __fastcall GJBaseGameLayer::updateShaderLayer(__int64 a1, float a2) { __int64 v3; // x8 int v5; // w1 int v6; // w0 int v7; // w1 int v8; // w0 __int64 v9; // x8 __int64 v10; // x0 __int64 v11; // x8 char v12; // w9 __int64 v13; // x20 int v14; // w1 int v15; // w21 char v16; // w8 __int64 v17; // x0 float v18; // s9 float v19; // s10 unsigned __int8 *v20; // x0 int v21; // w20 __int64 v22; // x0 __int64 v23; // x2 __int64 v24; // x21 signed int v25; // w22 __int64 v26; // x1 __int64 v27; // x0 __int64 v28; // x2 char v29; // w8 char v30; // w26 bool v31; // zf __int64 v32; // x8 __int64 v33; // x21 __int64 v34; // x0 __int64 v35; // x20 __int64 v36; // x27 __int64 v37; // x21 __int64 v38; // x0 unsigned int *v39; // x9 __int64 v40; // x8 __int64 *v41; // x20 unsigned __int64 v42; // x21 __int64 v43; // x1 char v44; // w8 char v45; // w24 __int64 v46; // x8 __int64 v47; // x0 __int64 v48; // x20 __int64 v49; // x21 unsigned int *v50; // x9 __int64 v51; // x8 _QWORD *v52; // x20 unsigned __int64 v53; // x21 __int64 v54; // x0 void (*v55)(void); // x8 __int64 *v56; // x25 _BOOL4 v57; // w20 __int64 *v58; // x24 __int64 v59; // x0 __int64 v60; // x1 _QWORD *v62; // x8 __int64 *v64; // x8 __int64 v65; // x23 __int64 v66; // x1 __int64 v67; // x1 __int64 v69; // x2 __int64 v70; // x0 int v71; // w23 __int64 v72; // x0 int v73; // w10 int v74; // w26 __int64 v75; // x8 __int64 v76; // x9 __int64 v77; // x28 __int64 v78; // x21 __int64 v79; // x0 __int64 v80; // x0 __int64 v81; // x22 __int64 v82; // x0 __int64 v83; // x0 __int64 v84; // x23 __int64 v85; // x0 int v86; // w20 __int64 v87; // x25 __int64 v88; // x27 __int64 v89; // x8 __int64 v90; // x23 unsigned int *v91; // x9 __int64 v92; // x8 _QWORD *v93; // x21 unsigned __int64 v94; // x22 __int64 v95; // x24 __int64 v96; // x0 __int64 v97; // x2 __int64 v98; // x0 __int64 v99; // x1 __int64 v100; // x20 _BOOL8 v101; // x1 __int64 v102; // x20 _BOOL8 v103; // x1 unsigned int v105; // [xsp+4h] [xbp-8Ch] __int64 v106; // [xsp+8h] [xbp-88h] int v107; // [xsp+14h] [xbp-7Ch] __int64 v108; // [xsp+18h] [xbp-78h] BYREF v3 = *(_QWORD *)(a1 + 12416); if ( !v3 ) goto LABEL_139; v5 = *(_DWORD *)(v3 + 988); if ( v5 < 1 ) { v6 = 0xFFFFFF; } else { v6 = sub_10000F5A4(*(_QWORD *)(a1 + 2152), v5); v3 = *(_QWORD *)(a1 + 12416); } *(_WORD *)(v3 + 992) = v6; *(_BYTE *)(v3 + 994) = BYTE2(v6); v7 = *(_DWORD *)(*(_QWORD *)(a1 + 12416) + 528LL); if ( v7 < 1 ) { v10 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3944) + 944LL))(*(_QWORD *)(a1 + 3944)); v11 = *(_QWORD *)(a1 + 12416); v12 = *(_BYTE *)(v10 + 2); *(_WORD *)(v11 + 520) = *(_WORD *)v10; *(_BYTE *)(v11 + 522) = v12; } else { v8 = sub_10000F5A4(*(_QWORD *)(a1 + 2152), v7); v9 = *(_QWORD *)(a1 + 12416); *(_BYTE *)(v9 + 522) = BYTE2(v8); *(_WORD *)(v9 + 520) = v8; } v13 = *(_QWORD *)(a1 + 12416); if ( *(_BYTE *)(v13 + 836) == 1 && *(_DWORD *)(v13 + 840) ) { GJBaseGameLayer::positionForShaderTarget(&v108, a1); sub_10002630C((_QWORD *)(*(_QWORD *)(a1 + 12416) + 844LL), (double *)&v108); v13 = *(_QWORD *)(a1 + 12416); } if ( *(_BYTE *)(v13 + 936) == 1 && *(_DWORD *)(v13 + 940) ) { GJBaseGameLayer::positionForShaderTarget(&v108, a1); v13 = *(_QWORD *)(a1 + 12416); *(_DWORD *)(v13 + 948) = v108; } if ( *(_BYTE *)(v13 + 937) == 1 && *(_DWORD *)(v13 + 944) ) { GJBaseGameLayer::positionForShaderTarget(&v108, a1); v13 = *(_QWORD *)(a1 + 12416); *(_DWORD *)(v13 + 952) = HIDWORD(v108); } if ( *(_DWORD *)(v13 + 584) ) { GJBaseGameLayer::positionForShaderTarget(&v108, a1); sub_10030E23C(v13, &v108); v13 = *(_QWORD *)(a1 + 12416); } if ( *(_DWORD *)(v13 + 664) ) { GJBaseGameLayer::positionForShaderTarget(&v108, a1); sub_10030E788(v13, &v108); v13 = *(_QWORD *)(a1 + 12416); } if ( *(_DWORD *)(v13 + 796) ) { GJBaseGameLayer::positionForShaderTarget(&v108, a1); sub_10002630C((_QWORD *)(*(_QWORD *)(a1 + 12416) + 812LL), (double *)&v108); v13 = *(_QWORD *)(a1 + 12416); } if ( *(_DWORD *)(v13 + 904) ) { GJBaseGameLayer::positionForShaderTarget(&v108, a1); sub_10002630C((_QWORD *)(*(_QWORD *)(a1 + 12416) + 912LL), (double *)&v108); v13 = *(_QWORD *)(a1 + 12416); } v14 = *(_DWORD *)(v13 + 800); if ( v14 < 1 ) { v16 = 0; v15 = 0; } else { v15 = sub_10000F5A4(*(_QWORD *)(a1 + 2152), v14); v16 = sub_10000F6A8(*(_QWORD *)(a1 + 2152), *(_DWORD *)(*(_QWORD *)(a1 + 12416) + 800LL)); v13 = *(_QWORD *)(a1 + 12416); } *(_WORD *)(v13 + 806) = v15; *(_BYTE *)(v13 + 808) = BYTE2(v15); v17 = *(_QWORD *)(a1 + 12416); *(_BYTE *)(v17 + 805) = v16; v18 = 0.0; if ( *(_DWORD *)(v17 + 884) ) { GJBaseGameLayer::speedForShaderTarget(&v108, a1); v19 = *(float *)&v108; v17 = *(_QWORD *)(a1 + 12416); } else { v19 = 0.0; } if ( *(_DWORD *)(v17 + 888) ) { GJBaseGameLayer::speedForShaderTarget(&v108, a1); v18 = *((float *)&v108 + 1); v17 = *(_QWORD *)(a1 + 12416); } sub_1003102E8(v17, v19, a2 * 60.0); sub_10031031C(*(_QWORD *)(a1 + 12416), v18, a2 * 60.0); (*(void (__fastcall **)(_QWORD, float))(**(_QWORD **)(a1 + 12416) + 40LL))(*(_QWORD *)(a1 + 12416), a2); ShaderLayer::performCalculations(*(_QWORD *)(a1 + 12416)); v20 = *(unsigned __int8 **)(a1 + 12416); v21 = v20[1078]; v22 = (*(__int64 (__fastcall **)(unsigned __int8 *))(*(_QWORD *)v20 + 512LL))(v20); if ( v21 == 1 ) { v23 = *(_QWORD *)(a1 + 12416); if ( v22 && *(_BYTE *)(v23 + 1076) != 1 ) goto LABEL_138; v24 = *(unsigned int *)(v23 + 1068); v25 = *(_DWORD *)(v23 + 1072); v26 = *(_QWORD *)(a1 + 3896); if ( (int)v24 > 1 ) { v27 = GJBaseGameLayer::reparentObject(v22, v26, a1); v28 = *(_QWORD *)(a1 + 12416); } else { v27 = GJBaseGameLayer::reparentObject(v22, v26, v23); v28 = a1; } v56 = (__int64 *)(a1 + 3896); v57 = (int)v24 > 1; v58 = (__int64 *)(a1 + 3904); v59 = GJBaseGameLayer::reparentObject(v27, *(_QWORD *)(a1 + 3904), v28); v60 = *(_QWORD *)(a1 + 3976); if ( v60 ) { if ( v25 > 1 && (_DWORD)v24 == 2 ) v62 = (_QWORD *)(a1 + 3904); else v62 = (_QWORD *)(a1 + 3896); v59 = GJBaseGameLayer::reparentObject(v59, v60, *v62); } if ( v25 < 13 && (int)v24 > 1 ) { v64 = (__int64 *)(a1 + 3912); } else { v65 = *v56; if ( (int)v24 > 1 || (v64 = (__int64 *)(a1 + 3904), v25 >= 13) ) { if ( (int)v24 < 2 == (int)v24 < 14 || (v64 = (__int64 *)(a1 + 3904), v25 < 13) ) { LABEL_86: v66 = *(_QWORD *)(a1 + 3960); if ( v66 ) v59 = GJBaseGameLayer::reparentObject(v59, v66, v65); v67 = *(_QWORD *)(a1 + 3968); if ( v67 ) v59 = GJBaseGameLayer::reparentObject(v59, v67, v65); if ( v25 < 14 && (int)v24 > 1 ) { v58 = (__int64 *)(a1 + 3912); } else { v69 = *v56; if ( ((int)v24 > 1 || v25 >= 14) && ((int)v24 < 2 == (int)v24 < 15 || v25 < 14) ) { LABEL_100: v70 = GJBaseGameLayer::reparentObject(v59, *(_QWORD *)(a1 + 13312), v69); v71 = GJBaseGameLayer::minZOrderForShaderZ(v70, v24); v72 = GJBaseGameLayer::maxZOrderForShaderZ(a1, v25); if ( (*(_BYTE *)(*(_QWORD *)(a1 + 12416) + 1077LL) & (v25 == 8)) != 0 ) v73 = 60; else v73 = v72; v107 = v73; if ( (((_DWORD)v24 == 8) & *(_BYTE *)(*(_QWORD *)(a1 + 12416) + 1077LL)) != 0 ) v74 = 40; else v74 = v71; v75 = 3928; v76 = 3920; if ( (int)v24 >= 2 ) v76 = 3928; v106 = *(_QWORD *)(a1 + v76); if ( (int)v24 >= 2 ) v75 = 3936; v77 = *(_QWORD *)(a1 + v75); v78 = sub_1002E736C(v72); v79 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3920) + 488LL))(*(_QWORD *)(a1 + 3920)); if ( v79 ) { v80 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3920) + 488LL))(*(_QWORD *)(a1 + 3920)); v79 = sub_1002E7570(v78, v80); } v81 = sub_1002E736C(v79); v82 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3928) + 488LL))(*(_QWORD *)(a1 + 3928)); if ( v82 ) { v83 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3928) + 488LL))(*(_QWORD *)(a1 + 3928)); v82 = sub_1002E7570(v81, v83); } v105 = v57; v84 = sub_1002E736C(v82); if ( (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3936) + 488LL))(*(_QWORD *)(a1 + 3936)) ) { v85 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3936) + 488LL))(*(_QWORD *)(a1 + 3936)); sub_1002E7570(v84, v85); } v86 = 0; do { v87 = v81; v88 = v84; if ( v86 == 1 ) v89 = v81; else v89 = v84; v90 = v78; if ( !v86 ) v89 = v78; if ( v89 ) { v91 = *(unsigned int **)(v89 + 56); v92 = *v91; if ( (_DWORD)v92 ) { v93 = *((_QWORD **)v91 + 2); v94 = (unsigned __int64)&v93[v92 - 1]; do { v95 = *v93; if ( !*v93 ) break; v96 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v95 + 104LL))(*v93); if ( (int)v96 >= v74 ) v97 = (int)v96 <= v107 ? v106 : v77; else v97 = *(_QWORD *)(a1 + 3920); GJBaseGameLayer::reparentObject(v96, v95, v97); ++v93; } while ( (unsigned __int64)v93 <= v94 ); } } ++v86; v78 = v90; v81 = v87; v84 = v88; } while ( v86 != 3 ); v98 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 12416) + 512LL))(*(_QWORD *)(a1 + 12416)); v99 = *(_QWORD *)(a1 + 12416); if ( !v98 ) { (*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)a1 + 464LL))(a1, v99, v105); goto LABEL_138; } if ( (*(unsigned int (__fastcall **)(_QWORD))(*(_QWORD *)v99 + 104LL))(*(_QWORD *)(a1 + 12416)) != v105 ) { v55 = *(void (**)(void))(**(_QWORD **)(a1 + 12416) + 88LL); LABEL_136: v55(); goto LABEL_138; } goto LABEL_138; } } v69 = *v58; goto LABEL_100; } } } v65 = *v64; goto LABEL_86; } if ( v22 ) { v29 = 1; do { v30 = v29; v31 = (v29 & 1) == 0; if ( (v29 & 1) != 0 ) v32 = 3904; else v32 = 3912; if ( v31 ) v33 = 3936; else v33 = 3928; v34 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + v32) + 488LL))(*(_QWORD *)(a1 + v32)); if ( v34 ) { v35 = v34; v36 = *(_QWORD *)(a1 + v33); v37 = sub_1002E736C(v34); v38 = sub_1002E7570(v37, v35); if ( v37 ) { v39 = *(unsigned int **)(v37 + 56); v40 = *v39; if ( (_DWORD)v40 ) { v41 = *((__int64 **)v39 + 2); v42 = (unsigned __int64)&v41[v40 - 1]; do { v43 = *v41; if ( !*v41 ) break; if ( v43 != v36 ) v38 = GJBaseGameLayer::reparentObject(v38, v43, *(_QWORD *)(a1 + 3896)); ++v41; } while ( (unsigned __int64)v41 <= v42 ); } } } v29 = 0; } while ( (v30 & 1) != 0 ); v44 = 1; do { v45 = v44; if ( (v44 & 1) != 0 ) v46 = 3928; else v46 = 3936; v47 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + v46) + 488LL))(*(_QWORD *)(a1 + v46)); if ( v47 ) { v48 = v47; v49 = sub_1002E736C(v47); v47 = sub_1002E7570(v49, v48); if ( v49 ) { v50 = *(unsigned int **)(v49 + 56); v51 = *v50; if ( (_DWORD)v51 ) { v52 = *((_QWORD **)v50 + 2); v53 = (unsigned __int64)&v52[v51 - 1]; do { if ( !*v52 ) break; v47 = GJBaseGameLayer::reparentObject(v47, *v52++, *(_QWORD *)(a1 + 3920)); } while ( (unsigned __int64)v52 <= v53 ); } } } v44 = 0; } while ( (v45 & 1) != 0 ); v54 = GJBaseGameLayer::reparentObject(v47, *(_QWORD *)(a1 + 3896), a1); GJBaseGameLayer::reparentObject(v54, *(_QWORD *)(a1 + 3904), a1); v55 = *(void (**)(void))(**(_QWORD **)(a1 + 12416) + 528LL); goto LABEL_136; } LABEL_138: *(_BYTE *)(*(_QWORD *)(a1 + 12416) + 1076LL) = 0; LABEL_139: v100 = *(_QWORD *)(a1 + 3904); v101 = (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v100 + 496LL))(v100) > 1 || (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3928) + 496LL))(*(_QWORD *)(a1 + 3928)) != 0; (*(void (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)v100 + 344LL))(v100, v101); v102 = *(_QWORD *)(a1 + 3912); v103 = (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v102 + 496LL))(v102) > 1 || (*(unsigned int (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3936) + 496LL))(*(_QWORD *)(a1 + 3936)) != 0; return (*(__int64 (__fastcall **)(__int64, _BOOL8))(*(_QWORD *)v102 + 344LL))(v102, v103); }
GD Web Decomp Icon

GD Web Decomp

Raw Source