undefined4 FUN_00402a54(void *param_1)
{
int iVar1;
uint uVar2;
uint local_38;
char acStack_34 [40];
local_38 = 540000;
uVar2 = g_link_speed;
if (((g_link_speed == 0) && (uVar2 = local_38, g_helper != 0)) &&
(iVar1 = FUN_0040291c("get_link_speed",acStack_34,0x20), uVar2 = local_38, iVar1 == 0)) {
uVar2 = strtoul(acStack_34,(char **)0x0,0);
}
local_38 = uVar2;
local_38 = local_38 << 0x18 | local_38 >> 0x18 | local_38 >> 8 & 0xff00 | (local_38 & 0xff00) << 8
;
memcpy(param_1,&local_38,4) //possible issue identified - semgrep
return 1;
}