// // sub_A354E from 0xa354e to 0xa3688 (314 bytes) // // 1 xrefs: // > sub_A381C @ 0xa381e // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:41:34 +0000 // int __fastcall sub_A354E(int a1, unsigned int a2, int a3, int a4, int a5, int a6) { int result; // r0 int v9; // r6 unsigned int v10; // r10 const void *v11; // r8 void *v12; // r9 int v13; // r5 int v14; // r5 int v15; // r1 int v16; // [sp+0h] [bp-A0h] unsigned int v17; // [sp+10h] [bp-90h] BYREF unsigned __int8 v18; // [sp+17h] [bp-89h] BYREF int v19; // [sp+18h] [bp-88h] BYREF _DWORD v20[3]; // [sp+1Ch] [bp-84h] BYREF _DWORD v21[22]; // [sp+28h] [bp-78h] BYREF int v22; // [sp+80h] [bp-20h] BYREF if ( a6 == 1 ) { if ( a4 ) { **(_DWORD **)(a4 + 4) = **(_DWORD **)(a3 + 4); *(_DWORD *)(a4 + 16) = *(_DWORD *)(a3 + 16); } if ( a5 ) return 11; if ( !*(_DWORD *)(a1 + 400) || !(2 * *(_DWORD *)(a1 + 380)) && !(2 * *(_DWORD *)(a1 + 376)) ) return 6; return 0; } v9 = *(_DWORD *)(a1 + 400); v10 = **(_DWORD **)(a3 + 4); v11 = **(const void ***)(a3 + 12); v12 = **(void ***)(a4 + 12); if ( v9 ) { v13 = 0; v21[20] = 0; v21[21] = 0; v21[1] = v21; v20[2] = 0; v20[1] = v20; v21[0] = v21; v19 = 0; v20[0] = v20; memset(&v21[2], 0, 0x1Cu); result = sub_A3688(v9, &v22, &v17, &v18); if ( result ) goto LABEL_20; if ( !v22 ) goto LABEL_19; v14 = *(_DWORD *)(v9 + 392); if ( v14 * a2 > v17 ) { result = 28; v13 = 0; goto LABEL_20; } v15 = *(_DWORD *)(a1 + 128); if ( (unsigned int)(*(_DWORD *)(a1 + 88) - *(_DWORD *)(a1 + 384)) < 2 ) { sub_8D324(&v19, v15, *(_DWORD *)(a1 + 376)); sub_8E690((int)&v19, *(float *)(a1 + 380), 64, 0); } else { sub_8D324(&v19, v15, *(_DWORD *)(a1 + 380)); } *(_DWORD *)(a1 + 376) = *(_DWORD *)(a1 + 380); v16 = v14; v13 = 0; result = sub_8DCD4((int)&v19, (float *)v22, (int)v11, 0, v16, v10, a2, v18 ^ 1); if ( !result ) { LABEL_19: result = 0; v13 = 1; } LABEL_20: if ( !v13 ) return result; } if ( *(_BYTE *)(a1 + 420) ) memset(v12, 0, 4 * v10 * a2); else qmemcpy(v12, v11, 4 * v10 * a2); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source