	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function deserialize_gw_speed
LCPI0_0:
	.space	4
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
LCPI0_1:
	.long	10                              ## 0xa
	.long	10                              ## 0xa
	.long	10                              ## 0xa
	.long	10                              ## 0xa
LCPI0_2:
	.long	100                             ## 0x64
	.long	100                             ## 0x64
	.long	100                             ## 0x64
	.long	100                             ## 0x64
LCPI0_3:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_deserialize_gw_speed:                  ## @deserialize_gw_speed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movq	_UINT8_MAX@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_MAX_SMARTGW_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%edi, %eax
	sarl	$3, %eax
	incl	%eax
	andl	$7, %edi
	je	LBB0_8
## %bb.5:
	leal	-1(%rdi), %ecx
	movd	%ecx, %xmm0
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = <u,1,1,1>
	pinsrd	$0, %eax, %xmm1
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	addl	$3, %edi
	andl	$-4, %edi
	xorl	%eax, %eax
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = [10,10,10,10]
	pmulld	%xmm1, %xmm2
	cmpl	$4, %edi
	setne	%cl
	je	LBB0_7
## %bb.6:
	movdqa	%xmm1, %xmm3
	pmulld	LCPI0_2(%rip), %xmm3
	movdqa	%xmm2, %xmm1
	movdqa	%xmm3, %xmm2
LBB0_7:
	movb	%cl, %al
	movd	%eax, %xmm3
	pshufd	$0, %xmm3, %xmm3                ## xmm3 = xmm3[0,0,0,0]
	pslld	$2, %xmm3
	por	LCPI0_3(%rip), %xmm3
	pminud	%xmm3, %xmm0
	pcmpeqd	%xmm3, %xmm0
	blendvps	%xmm0, %xmm2, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	pmulld	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	pmulld	%xmm0, %xmm1
	movd	%xmm1, %eax
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UINT8_MAX,4,2                  ## @UINT8_MAX
	.comm	_MAX_SMARTGW_SPEED,4,2          ## @MAX_SMARTGW_SPEED
	.no_dead_strip	_deserialize_gw_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function deserialize_gw_speed
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_deserialize_gw_speed:                  ; @deserialize_gw_speed
	.cfi_startproc
; %bb.0:
	cbz	w0, LBB0_5
; %bb.1:
	mov	x8, x0
Lloh0:
	adrp	x9, _UINT8_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UINT8_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w0
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _MAX_SMARTGW_SPEED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SMARTGW_SPEED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_3:
	asr	w9, w8, #3
	add	w0, w9, #1
	ands	w8, w8, #0x7
	b.eq	LBB0_5
; %bb.4:
	sub	w9, w8, #1
	dup.4s	v0, w9
	movi.4s	v1, #1
	mov.s	v1[0], w0
	add	w8, w8, #3
	and	w8, w8, #0xc
	cmp	w8, #4
	cset	w9, ne
	movi.4s	v2, #10
	mul.4s	v2, v1, v2
	mov	w10, #4
	fmov	s3, w10
	fmov	s4, w8
	cmeq.4s	v3, v4, v3
	dup.4s	v3, v3[0]
	movi.4s	v4, #100
	mul.4s	v4, v1, v4
	bit.16b	v4, v2, v3
	lsl	w8, w9, #2
	dup.4s	v5, w8
	bif.16b	v1, v2, v3
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	q2, [x8, lCPI0_0@PAGEOFF]
	orr.16b	v2, v5, v2
	cmhi.4s	v0, v2, v0
	bsl.16b	v0, v1, v4
	ext.16b	v1, v0, v0, #8
	mul.2s	v0, v0, v1
	mov.s	w8, v0[1]
	fmov	w9, s0
	mul	w0, w9, w8
LBB0_5:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdr	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_UINT8_MAX,4,2                  ; @UINT8_MAX
	.comm	_MAX_SMARTGW_SPEED,4,2          ; @MAX_SMARTGW_SPEED
	.no_dead_strip	_deserialize_gw_speed
.subsections_via_symbols
