// // GJBaseGameLayer::processAreaEffects from 0x10011ed80 to 0x10011f9b0 (3120 bytes) // // 5 xrefs: // > GJBaseGameLayer::processAreaActions @ 0x1001218ea // > GJBaseGameLayer::processAreaActions @ 0x100121907 // > GJBaseGameLayer::processAreaActions @ 0x100121921 // > GJBaseGameLayer::processAreaVisualActions @ 0x100121ddf // > GJBaseGameLayer::processAreaVisualActions @ 0x100121e03 // // 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:24:38 +0000 // void __fastcall GJBaseGameLayer::processAreaEffects(__int64 a1, __int64 *a2, __int64 a3, int a4, float a5) { __int64 v5; // r15 unsigned __int64 v6; // r8 _QWORD *v7; // rbx unsigned __int64 v8; // r10 unsigned __int64 v9; // rdi __int64 **v10; // rax __int64 *v11; // r9 unsigned __int64 v12; // r8 unsigned __int64 v13; // rax __int64 v14; // rax __int64 v15; // rdi __int64 v16; // rax unsigned __int64 v17; // rdx __int64 v18; // rdx __int64 v19; // rcx bool v20; // zf __int64 v21; // r12 __int64 v22; // rcx __int64 v23; // r13 int v24; // ebx float *v25; // rdi __int64 MainObject; // rax __int64 v27; // rbx __int64 v28; // rax _QWORD *v29; // rax __int64 v30; // rbx __int64 v31; // rsi __int64 v32; // r14 __int64 LastPosition; // rax __int64 v34; // rax float v35; // xmm0_4 float v36; // xmm1_4 __int64 v37; // rbx __m128 v38; // xmm1 __m128 v39; // xmm0 __m128i v40; // xmm2 float v41; // xmm6_4 float v42; // xmm3_4 float v43; // xmm7_4 float v44; // xmm1_4 float v45; // xmm1_4 float v46; // xmm2_4 float v47; // xmm7_4 float v48; // xmm4_4 float v49; // xmm3_4 float v50; // xmm3_4 float v51; // xmm6_4 float v52; // xmm2_4 float v53; // xmm6_4 __int64 v54; // r14 float v55; // xmm3_4 float v56; // xmm2_4 int v57; // eax char v58; // cl char v59; // dl int v60; // ecx char v61; // dl float v62; // xmm1_4 int v63; // ecx __m128 v64; // xmm1 int v65; // r13d __int64 v66; // r14 __int64 v67; // rbx __int64 v68; // rdi __int64 v69; // rax __int64 v70; // rsi __int64 v71; // r14 __int64 v72; // rbx _BYTE v73[8]; // [rsp+8h] [rbp-C8h] BYREF _BYTE v74[8]; // [rsp+10h] [rbp-C0h] BYREF __int64 v75; // [rsp+18h] [rbp-B8h] __int64 v76; // [rsp+20h] [rbp-B0h] __int64 v77; // [rsp+28h] [rbp-A8h] __int64 v78; // [rsp+30h] [rbp-A0h] _QWORD *v79; // [rsp+38h] [rbp-98h] _QWORD *v80; // [rsp+40h] [rbp-90h] float v81; // [rsp+48h] [rbp-88h] unsigned int v82; // [rsp+4Ch] [rbp-84h] __int64 v83; // [rsp+50h] [rbp-80h] float v84; // [rsp+58h] [rbp-78h] BYREF __int64 v85; // [rsp+60h] [rbp-70h] __int64 v86; // [rsp+68h] [rbp-68h] float v87[3]; // [rsp+70h] [rbp-60h] int v88; // [rsp+7Ch] [rbp-54h] __int64 v89; // [rsp+80h] [rbp-50h] int v90; // [rsp+8Ch] [rbp-44h] __int64 v91; // [rsp+90h] [rbp-40h] bool (__fastcall *v92)(__int64, __int64); // [rsp+98h] [rbp-38h] BYREF double v93[6]; // [rsp+A0h] [rbp-30h] BYREF v88 = a4; v81 = a5; v89 = a3; v5 = a1; v6 = *(_QWORD *)(a1 + 1608); if ( !v6 ) goto LABEL_31; v7 = (_QWORD *)(a1 + 1600); v8 = (0x101010101010101LL * ((((v6 - ((v6 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL) + (((v6 - ((v6 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL) + ((((v6 - ((v6 >> 1) & 0x5555555555555555LL)) & 0x3333333333333333LL) + (((v6 - ((v6 >> 1) & 0x5555555555555555LL)) >> 2) & 0x3333333333333333LL)) >> 4)) & 0xF0F0F0F0F0F0F0FLL)) >> 56; if ( v8 <= 1 ) { v9 = (int)v89 & (v6 - 1); v10 = *(__int64 ***)(*v7 + 8 * v9); if ( !v10 ) goto LABEL_31; goto LABEL_9; } v9 = (int)v89; if ( v6 <= (int)v89 ) { if ( !((v6 | (int)v89) >> 32) ) { v9 = (unsigned int)v89 % (unsigned int)v6; v10 = *(__int64 ***)(*v7 + 8 * v9); if ( !v10 ) goto LABEL_31; goto LABEL_9; } v9 = (int)v89 % v6; } v10 = *(__int64 ***)(*v7 + 8 * v9); if ( !v10 ) goto LABEL_31; LABEL_9: v11 = *v10; if ( !*v10 ) goto LABEL_31; if ( (unsigned int)v8 < 2 ) { v12 = v6 - 1; while ( 1 ) { v14 = v11[1]; if ( v14 == (int)v89 ) { if ( *((_DWORD *)v11 + 4) == (_DWORD)v89 ) goto LABEL_27; } else if ( (v12 & v14) != v9 ) { goto LABEL_31; } v11 = (__int64 *)*v11; if ( !v11 ) goto LABEL_31; } } while ( 1 ) { v13 = v11[1]; if ( v13 == (int)v89 ) break; if ( v13 < v6 ) goto LABEL_18; if ( (v6 | v13) >> 32 ) { v13 %= v6; LABEL_18: if ( v13 != v9 ) goto LABEL_31; goto LABEL_13; } if ( (unsigned int)v13 % (unsigned int)v6 != v9 ) goto LABEL_31; LABEL_13: v11 = (__int64 *)*v11; if ( !v11 ) goto LABEL_31; } if ( *((_DWORD *)v11 + 4) != (_DWORD)v89 ) goto LABEL_13; LABEL_27: v15 = *a2; v16 = a2[1]; _BitScanReverse64(&v17, 0xEEEEEEEEEEEEEEEFLL * ((v16 - *a2) >> 4)); v18 = (2 * ((unsigned int)v17 ^ 0x3F)) ^ 0x7ELL; v19 = 0; v20 = v16 == *a2; v92 = sub_1000E9E70; if ( !v20 ) v19 = v18; sub_10014B9C0(v15, v16, &v92, v19, 1); LODWORD(v92) = v89; sub_10001C120((__int64 *)(v5 + 1600), (int *)&v92); LABEL_31: v21 = *a2; v22 = a2[1]; if ( *a2 != v22 ) { v82 = v89 - 5; v76 = v5 + 992; v77 = v5 + 1204; v79 = (_QWORD *)(v5 + 3256); v80 = (_QWORD *)(v5 + 3264); v75 = v22; v78 = v5; while ( *(_BYTE *)(v21 + 196) ) { LABEL_36: v21 += 240; if ( v21 == v22 ) return; } v23 = *(_QWORD *)(v21 + 168); EnterEffectInstance::updateTransitions(v21, v5, v81); sub_1002782A0(&v92); sub_1002782A0(&v84); v24 = *(_DWORD *)(v23 + 1540); if ( !v24 ) v24 = *(_DWORD *)(v21 + 184); if ( v24 < 0 ) { if ( (unsigned int)v24 < 0xFFFFFFFE ) { v34 = cocos2d::CCDirector::sharedDirector(&v84, v5); cocos2d::CCDirector::getWinSize(v93, v34); _mm_storel_ps( v93, _mm_div_ps((__m128)*(unsigned __int64 *)&v93[0], _mm_moveldup_ps((__m128)*(unsigned int *)(v5 + 424)))); sub_1002782D0(v73, &qword_100BE1268); switch ( v24 ) { case -11: v35 = *(float *)v93; v36 = *((float *)v93 + 1); break; case -10: v35 = *(float *)v93; v36 = *((float *)v93 + 1) * 0.5; break; case -9: v35 = *(float *)v93; goto LABEL_57; case -8: v36 = *((float *)v93 + 1); v35 = *(float *)v93 * 0.5; break; case -7: v35 = *(float *)v93 * 0.5; goto LABEL_57; case -6: v36 = *((float *)v93 + 1); goto LABEL_61; case -5: v36 = *((float *)v93 + 1) * 0.5; LABEL_61: v35 = 0.0; break; case -4: v35 = 0.0; LABEL_57: v36 = 0.0; break; default: v35 = *(float *)v93 * 0.5; v36 = *((float *)v93 + 1) * 0.5; break; } sub_100278250(v74, v35, v36); sub_100278300(v73, v74); v37 = v76; sub_100278350(v74, v76, v73); sub_100278300(&v92, v74); sub_100278370(v74, v37, v77); v25 = &v84; sub_100278300(&v84, v74); v5 = v78; } else { if ( v24 != -2 || (v29 = v80, !*(_BYTE *)(v5 + 1010)) ) v29 = v79; v30 = *v29; v31 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*v29 + 192LL))(*v29); sub_100278300(&v92, v31); v32 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v30 + 192LL))(v30); LastPosition = GameObject::getLastPosition(v30); sub_100278370(v93, v32, LastPosition); v25 = &v84; sub_100278300(&v84, v93); } } else { v25 = (float *)v5; MainObject = GJBaseGameLayer::tryGetMainObject((_QWORD *)v5, v24); if ( MainObject ) { v27 = MainObject; v91 = v23; if ( v82 <= 0xFFFFFFFD && (unsigned __int8)GJBaseGameLayer::resetAreaObjectValues(v5, MainObject, 1) ) (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 1368LL))(v5, v27); (*(void (__fastcall **)(double *, __int64))(*(_QWORD *)v27 + 1360LL))(v93, v27); sub_100278300(&v92, v93); (*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v27 + 1360LL))(v73, v27); v28 = GameObject::getLastPosition(v27); sub_100278370(v93, v73, v28); v25 = &v84; sub_100278300(&v84, v93); v23 = v91; } } v38 = (__m128)*(unsigned int *)(v21 + 24); v39 = (__m128)*(unsigned int *)(v21 + 32); v38.f32[0] = (float)((float)(v38.f32[0] + *(float *)(v21 + 28)) + v39.f32[0]) + *(float *)(v21 + 36); *(_DWORD *)(v23 + 2060) = (int)v38.f32[0]; v40 = _mm_and_si128(_mm_loadl_epi64((const __m128i *)(v21 + 48)), (__m128i)xmmword_100A038A0); v41 = (float)(1.0 / fminf(*(float *)_mm_shuffle_epi32(v40, 245).i32, *(float *)v40.i32)) * _mm_cvtepi32_ps(_mm_cvttps_epi32(v38)).f32[0]; v42 = *(float *)&v92 - v41; v43 = 0.0; v44 = 0.0; if ( (float)(*(float *)&v92 - v41) > 0.0 ) { v45 = *(float *)(v5 + 13632); if ( v42 >= 10000000.0 ) { v44 = v45 * 10000000.0; v46 = *(float *)&v92 + v41; if ( (float)(*(float *)&v92 + v41) <= 0.0 ) goto LABEL_73; goto LABEL_68; } v44 = v45 * v42; } v46 = *(float *)&v92 + v41; if ( (float)(*(float *)&v92 + v41) <= 0.0 ) goto LABEL_73; LABEL_68: v47 = *(float *)(v5 + 13632); if ( v46 >= 10000000.0 ) v43 = v47 * 10000000.0; else v43 = v47 * v46; LABEL_73: v48 = *((float *)&v92 + 1) - v41; v49 = 0.0; if ( (float)(*((float *)&v92 + 1) - v41) > 0.0 ) { v50 = *(float *)(v5 + 13636); if ( v48 >= 10000000.0 ) { v49 = v50 * 10000000.0; v51 = v41 + *((float *)&v92 + 1); if ( v51 > 0.0 ) { LABEL_77: v52 = *(float *)(v5 + 13636); if ( v51 >= 10000000.0 ) v53 = v52 * 10000000.0; else v53 = v51 * v52; LABEL_82: v54 = (unsigned int)(int)v49; v55 = *(float *)(v5 + 13632) * 10000000.0; v56 = v52 * 10000000.0; v57 = *(_DWORD *)(v23 + 1968); v58 = *(_BYTE *)(v23 + 2012); if ( v57 != 2 ) { LODWORD(v91) = (int)v44; if ( v57 == 1 ) { v59 = *(_BYTE *)(v23 + 2020); v54 = 0; if ( v58 ) { v60 = v91; if ( v59 ) v60 = 0; LODWORD(v91) = v60; goto LABEL_91; } v63 = v91; if ( !v59 ) v63 = 0; LODWORD(v91) = v63; v53 = v56; } else if ( v58 ) { v54 = 0; v53 = v56; v43 = v55; LODWORD(v91) = 0; v62 = v84; if ( v84 == 0.0 ) goto LABEL_100; goto LABEL_99; } v62 = v84; if ( v84 == 0.0 ) goto LABEL_100; goto LABEL_99; } v61 = *(_BYTE *)(v23 + 2020); if ( !v58 ) { LODWORD(v91) = 0; if ( !v61 ) v54 = 0; LABEL_121: v43 = v55; v62 = v84; if ( v84 == 0.0 ) { LABEL_100: *(_DWORD *)(v21 + 192) += 2; *(float *)&v85 = v53; v87[0] = v43; if ( (_DWORD)v89 ) { if ( v57 ) { LABEL_102: *(_DWORD *)(v21 + 40) = v39.i32[0]; *(_DWORD *)(v21 + 44) = *(_DWORD *)(v21 + 36); v64 = v39; LABEL_106: _mm_storel_ps((double *)&v92, _mm_add_ps(_mm_insert_ps(v39, v64, 16), (__m128)(unsigned __int64)v92)); if ( *(_BYTE *)(v23 + 2020) == 1 ) *(_DWORD *)(v21 + 48) |= 0x80000000; v86 = v54; v65 = *(_DWORD *)(v21 + 200); if ( v65 <= 0 ) { v67 = *(unsigned int *)(v21 + 180); if ( (int)v67 >= 9999 ) v67 = 9999; if ( (int)v67 <= 0 ) v67 = 0; v66 = *(_QWORD *)(*(_QWORD *)(v5 + 3616) + 8 * v67); if ( !v66 ) { v66 = sub_1007FE900(v25); cocos2d::CCDictionary::setObject_1(*(_QWORD *)(v5 + 3592), v66, v67); *(_QWORD *)(*(_QWORD *)(v5 + 3616) + 8 * v67) = v66; } } else { v66 = sub_1007FEFE0(*(_QWORD *)(v5 + 3832), (unsigned int)(v65 - 1)); } v90 = (int)v87[0]; *(_QWORD *)v87 = (unsigned int)(int)*(float *)&v85; v85 = (unsigned int)v89; switch ( v89 ) { case 0LL: sub_1002782D0(v93, &v92); GJBaseGameLayer::processAreaMoveGroupAction( v5, v66, v21, (unsigned int)v93, v91, v90, v86, LODWORD(v87[0]), 0, 0, 0); break; case 1LL: sub_1002782D0(v93, &v92); GJBaseGameLayer::processAreaRotateGroupAction( v5, v66, v21, (unsigned int)v93, v91, v90, v86, LODWORD(v87[0]), 0, 0, v88); break; case 2LL: sub_1002782D0(v93, &v92); GJBaseGameLayer::processAreaTransformGroupAction( v5, v66, v21, (unsigned int)v93, v91, v90, v86, LODWORD(v87[0]), 0, 0, v88); break; case 3LL: sub_1002782D0(v93, &v92); GJBaseGameLayer::processAreaFadeGroupAction(v5, v66, v21, v93, 0); break; case 4LL: sub_1002782D0(v93, &v92); GJBaseGameLayer::processAreaTintGroupAction(v5, v66, v21, v93, 0); break; default: break; } v68 = v66; v69 = sub_1007FEF90(v66); if ( v65 > 0 ) { v83 = v69; v70 = *(unsigned int *)(v21 + 200); if ( (int)v70 <= 0 ) { v72 = *(unsigned int *)(v21 + 180); if ( (int)v72 >= 9999 ) v72 = 9999; if ( (int)v72 <= 0 ) v72 = 0; v71 = *(_QWORD *)(*(_QWORD *)(v5 + 3616) + 8 * v72); if ( !v71 ) { v71 = sub_1007FE900(v68); cocos2d::CCDictionary::setObject_1(*(_QWORD *)(v5 + 3592), v71, v72); *(_QWORD *)(*(_QWORD *)(v5 + 3616) + 8 * v72) = v71; } } else { v71 = sub_1007FEFE0(*(_QWORD *)(v5 + 3832), v70); } switch ( v85 ) { case 0LL: sub_1002782D0(v93, &v92); GJBaseGameLayer::processAreaMoveGroupAction( v5, v71, v21, (unsigned int)v93, v91, v90, v86, LODWORD(v87[0]), v83, 1, 0); break; case 1LL: sub_1002782D0(v93, &v92); GJBaseGameLayer::processAreaRotateGroupAction( v5, v71, v21, (unsigned int)v93, v91, v90, v86, LODWORD(v87[0]), v83, 1, v88); break; case 2LL: sub_1002782D0(v93, &v92); GJBaseGameLayer::processAreaTransformGroupAction( v5, v71, v21, (unsigned int)v93, v91, v90, v86, LODWORD(v87[0]), v83, 1, v88); break; case 3LL: sub_1002782D0(v93, &v92); GJBaseGameLayer::processAreaFadeGroupAction(v5, v71, v21, v93, 1); break; case 4LL: sub_1002782D0(v93, &v92); GJBaseGameLayer::processAreaTintGroupAction(v5, v71, v21, v93, 1); break; default: break; } sub_1007FEF90(v71); } v22 = v75; goto LABEL_36; } } else if ( *(float *)(v21 + 72) == 0.0 ) { *(_BYTE *)(v23 + 1900) = 1; cocos2d::ccpForAngle(v93, (float)(*(float *)(v21 + 68) + -90.0) * 0.017453292); v25 = (float *)(v23 + 1904); sub_100278300(v23 + 1904, v93); v39 = (__m128)*(unsigned int *)(v21 + 32); if ( *(_DWORD *)(v23 + 1968) ) goto LABEL_102; } else { *(_BYTE *)(v23 + 1900) = 0; if ( v57 ) goto LABEL_102; } v64 = (__m128)*(unsigned int *)(v21 + 40); goto LABEL_106; } LABEL_99: *(_BYTE *)(v23 + 2056) = v62 < 0.0; goto LABEL_100; } LODWORD(v91) = 0; if ( v61 ) v54 = 0; LABEL_91: v53 = v56; goto LABEL_121; } LABEL_81: v52 = *(float *)(v5 + 13636); v53 = 0.0; goto LABEL_82; } v49 = v50 * v48; } v51 = v41 + *((float *)&v92 + 1); if ( v51 > 0.0 ) goto LABEL_77; goto LABEL_81; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source