// // sub_14026B990 from 0x14026b990 to 0x14026bbdf (591 bytes) // // 2 xrefs: // > GJEffectManager::prepareMoveActions @ 0x140260122 // > @ 0x1406d0950 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // cocos2d::CCPoint *__fastcall sub_14026B990(cocos2d::CCPoint **a1, cocos2d::CCPoint *a2, cocos2d::CCPoint *a3) { cocos2d::CCPoint *v4; // rdi cocos2d::CCPoint *v6; // r8 __int64 v7; // rbx __int64 v8; // rcx __int64 v9; // rdx unsigned __int64 v10; // r9 unsigned __int64 v11; // rdx unsigned __int64 v12; // rcx __int64 v13; // r13 cocos2d::CCPoint *v14; // rax cocos2d::CCPoint *v15; // r15 cocos2d::CCPoint *v16; // r12 __int64 v17; // rcx cocos2d::CCPoint *v18; // rsi cocos2d::CCPoint *v19; // rbx cocos2d::CCPoint *v20; // rdi cocos2d::CCPoint *v21; // rsi cocos2d::CCPoint *v22; // rbx cocos2d::CCPoint *v23; // rsi cocos2d::CCPoint *v24; // r8 __int64 v26; // [rsp+60h] [rbp+8h] __int64 v27; // [rsp+68h] [rbp+10h] cocos2d::CCPoint *v28; // [rsp+78h] [rbp+20h] v4 = a2; v6 = *a1; v7 = ((char *)a2 - (char *)*a1) / 24; v8 = (char *)a1[1] - (char *)*a1; v9 = v8 / 24; if ( v8 / 24 == 0xAAAAAAAAAAAAAAALL ) sub_140062A20(v8, 0xAAAAAAAAAAAAAAALL); v10 = v9 + 1; v27 = v9 + 1; v11 = ((char *)a1[2] - (char *)v6) / 24; if ( v11 <= 0xAAAAAAAAAAAAAAALL - (v11 >> 1) ) { v12 = v10; if ( (v11 >> 1) + v11 >= v10 ) v12 = (v11 >> 1) + v11; v26 = v12; if ( v12 > 0xAAAAAAAAAAAAAAALL ) sub_140007AB0(v12, v11, v6); } else { v12 = 0xAAAAAAAAAAAAAAALL; v26 = 0xAAAAAAAAAAAAAAALL; } v13 = 3 * v12; v14 = (cocos2d::CCPoint *)sub_14003AA10(24 * v12); try { v15 = v14; v28 = v14; v16 = &v14[3 * v7]; *v16 = *a3; cocos2d::CCPoint::CCPoint(v16 + 1); v16[2] = a3[2]; v18 = a1[1]; v19 = *a1; if ( v4 == v18 ) { v20 = v15; while ( v19 != v18 ) { *v20 = *v19; cocos2d::CCPoint::CCPoint(v20 + 1); v20[2] = v19[2]; v20 += 3; v19 += 3; } } else { v21 = v15; while ( v19 != v4 ) { *v21 = *v19; cocos2d::CCPoint::CCPoint(v21 + 1); v21[2] = v19[2]; v21 += 3; v19 += 3; } v22 = v16 + 3; v23 = a1[1]; while ( v4 != v23 ) { *v22 = *v4; cocos2d::CCPoint::CCPoint(v22 + 1); v22[2] = v4[2]; v22 += 3; v4 += 3; } } } catch ( ... ) { sub_140266960(v17, v28, v26); throw; } v24 = *a1; if ( *a1 ) { if ( (unsigned __int64)(24 * (((char *)a1[2] - (char *)v24) / 24)) >= 0x1000 ) { if ( (unsigned __int64)&v24[-1] - *(_QWORD *)&v24[-1] > 0x1F ) invalid_parameter_noinfo_noreturn(); v24 = (cocos2d::CCPoint *)v24[-1]; } j_j_free(v24); } *a1 = v15; a1[1] = &v15[3 * v27]; a1[2] = &v15[v13]; return v16; }
GD Web Decomp Icon

GD Web Decomp

Raw Source