	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_get_power_level
_mwifiex_get_power_level:               ## @mwifiex_get_power_level
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %edi
	callq	_le16_to_cpu
	movl	%eax, %r10d
	xorl	%eax, %eax
	cmpl	$8, %r10d
	jb	LBB0_16
## %bb.3:
	movl	32(%rbx), %edi
	movl	36(%rbx), %ecx
	leal	-8(%r10), %edx
	cmpl	$8, %edx
	jb	LBB0_15
## %bb.4:
	leaq	32(%rbx), %rsi
	addl	$-16, %r10d
	cmpl	$56, %r10d
	jb	LBB0_13
## %bb.5:
	shrl	$3, %r10d
	incl	%r10d
	movl	%r10d, %r8d
	andl	$-8, %r8d
	movd	%ecx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movd	%edi, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	leaq	-8(%r8), %rcx
	movq	%rcx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.7:
	movq	%r9, %rcx
	andq	$-2, %rcx
	xorl	%edi, %edi
	movdqa	%xmm0, %xmm2
	movdqa	%xmm1, %xmm3
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movups	40(%rbx,%rdi,8), %xmm7
	movups	56(%rbx,%rdi,8), %xmm9
	movups	72(%rbx,%rdi,8), %xmm6
	movups	88(%rbx,%rdi,8), %xmm8
	movaps	%xmm7, %xmm5
	shufps	$136, %xmm9, %xmm5              ## xmm5 = xmm5[0,2],xmm9[0,2]
	pmaxsd	%xmm1, %xmm5
	movaps	%xmm6, %xmm4
	shufps	$136, %xmm8, %xmm4              ## xmm4 = xmm4[0,2],xmm8[0,2]
	pmaxsd	%xmm3, %xmm4
	shufps	$221, %xmm9, %xmm7              ## xmm7 = xmm7[1,3],xmm9[1,3]
	pminsd	%xmm0, %xmm7
	shufps	$221, %xmm8, %xmm6              ## xmm6 = xmm6[1,3],xmm8[1,3]
	pminsd	%xmm2, %xmm6
	movups	120(%rbx,%rdi,8), %xmm8
	movups	104(%rbx,%rdi,8), %xmm0
	movups	152(%rbx,%rdi,8), %xmm9
	movups	136(%rbx,%rdi,8), %xmm2
	movaps	%xmm0, %xmm1
	shufps	$136, %xmm8, %xmm1              ## xmm1 = xmm1[0,2],xmm8[0,2]
	pmaxsd	%xmm5, %xmm1
	movaps	%xmm2, %xmm3
	shufps	$136, %xmm9, %xmm3              ## xmm3 = xmm3[0,2],xmm9[0,2]
	pmaxsd	%xmm4, %xmm3
	shufps	$221, %xmm8, %xmm0              ## xmm0 = xmm0[1,3],xmm8[1,3]
	pminsd	%xmm7, %xmm0
	shufps	$221, %xmm9, %xmm2              ## xmm2 = xmm2[1,3],xmm9[1,3]
	pminsd	%xmm6, %xmm2
	addq	$16, %rdi
	addq	$-2, %rcx
	jne	LBB0_8
## %bb.9:
	testb	$1, %r9b
	je	LBB0_11
LBB0_10:
	leaq	(,%rdi,8), %rcx
	orq	$32, %rcx
	movups	40(%rbx,%rdi,8), %xmm7
	movups	56(%rbx,%rdi,8), %xmm5
	movups	40(%rbx,%rcx), %xmm6
	movups	56(%rbx,%rcx), %xmm8
	movaps	%xmm7, %xmm4
	shufps	$136, %xmm5, %xmm4              ## xmm4 = xmm4[0,2],xmm5[0,2]
	pmaxsd	%xmm4, %xmm1
	movaps	%xmm6, %xmm4
	shufps	$136, %xmm8, %xmm4              ## xmm4 = xmm4[0,2],xmm8[0,2]
	pmaxsd	%xmm4, %xmm3
	shufps	$221, %xmm5, %xmm7              ## xmm7 = xmm7[1,3],xmm5[1,3]
	pminsd	%xmm7, %xmm0
	shufps	$221, %xmm8, %xmm6              ## xmm6 = xmm6[1,3],xmm8[1,3]
	pminsd	%xmm6, %xmm2
LBB0_11:
	pminsd	%xmm2, %xmm0
	pmaxsd	%xmm3, %xmm1
	pshufd	$238, %xmm1, %xmm2              ## xmm2 = xmm1[2,3,2,3]
	pmaxsd	%xmm1, %xmm2
	pshufd	$85, %xmm2, %xmm1               ## xmm1 = xmm2[1,1,1,1]
	pmaxsd	%xmm2, %xmm1
	movd	%xmm1, %edi
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pminsd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	pminsd	%xmm1, %xmm0
	movd	%xmm0, %ecx
	cmpq	%r10, %r8
	je	LBB0_15
## %bb.12:
	leal	(,%r8,8), %ebx
	subl	%ebx, %edx
	leaq	(%rsi,%r8,8), %rsi
LBB0_13:
	addq	$12, %rsi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%rsi), %ebx
	cmpl	%ebx, %edi
	cmovlel	%ebx, %edi
	movl	(%rsi), %ebx
	cmpl	%ebx, %ecx
	cmovgel	%ebx, %ecx
	addl	$-8, %edx
	addq	$8, %rsi
	cmpl	$7, %edx
	ja	LBB0_14
LBB0_15:
	movslq	%ecx, %rcx
	movq	%rcx, 8(%r14)
	movslq	%edi, %rcx
	movq	%rcx, (%r14)
	jmp	LBB0_16
LBB0_1:
	movl	$-1, %eax
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	xorl	%edi, %edi
	movdqa	%xmm0, %xmm2
	movdqa	%xmm1, %xmm3
	testb	$1, %r9b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mwifiex_get_power_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_get_power_level
_mwifiex_get_power_level:               ; @mwifiex_get_power_level
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x1, LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1]
	bl	_le16_to_cpu
	subs	w8, w0, #8
	b.hs	LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_12
LBB0_3:
	mov	w0, #-1
	b	LBB0_12
LBB0_4:
	mov	x9, x20
	ldp	w10, w13, [x9, #32]!
	cmp	w8, #8
	b.lo	LBB0_11
; %bb.5:
	sub	w11, w0, #16
	cmp	w11, #120
	b.lo	LBB0_9
; %bb.6:
	lsr	w11, w11, #3
	add	w11, w11, #1
	and	x12, x11, #0x3ffffff0
	sub	w8, w8, w12, lsl #3
	add	x9, x9, x12, lsl #3
	dup.4s	v0, w13
	dup.4s	v4, w10
	add	x10, x20, #136
	mov	x13, x12
	mov.16b	v1, v0
	mov.16b	v2, v0
	mov.16b	v3, v0
	mov.16b	v5, v4
	mov.16b	v6, v4
	mov.16b	v7, v4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	x14, x10, #96
	ld2.4s	{ v16, v17 }, [x14]
	sub	x14, x10, #64
	ld2.4s	{ v18, v19 }, [x14]
	sub	x14, x10, #32
	ld2.4s	{ v20, v21 }, [x14]
	ld2.4s	{ v22, v23 }, [x10]
	smax.4s	v4, v4, v16
	smax.4s	v5, v5, v18
	smax.4s	v6, v6, v20
	smax.4s	v7, v7, v22
	smin.4s	v0, v0, v17
	smin.4s	v1, v1, v19
	smin.4s	v2, v2, v21
	smin.4s	v3, v3, v23
	add	x10, x10, #128
	subs	x13, x13, #16
	b.ne	LBB0_7
; %bb.8:
	smax.4s	v4, v4, v5
	smax.4s	v4, v4, v6
	smax.4s	v4, v4, v7
	smaxv.4s	s4, v4
	fmov	w10, s4
	smin.4s	v0, v0, v1
	smin.4s	v0, v0, v2
	smin.4s	v0, v0, v3
	sminv.4s	s0, v0
	fmov	w13, s0
	cmp	x12, x11
	b.eq	LBB0_11
LBB0_9:
	add	x9, x9, #12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldur	w11, [x9, #-4]
	cmp	w10, w11
	csel	w10, w10, w11, gt
	ldr	w11, [x9], #8
	cmp	w13, w11
	csel	w13, w13, w11, lt
	sub	w8, w8, #8
	cmp	w8, #7
	b.hi	LBB0_10
LBB0_11:
	mov	w0, #0
	sxtw	x8, w13
	sxtw	x9, w10
	stp	x9, x8, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mwifiex_get_power_level
.subsections_via_symbols
