	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function wpa_bss_get_max_rate
LCPI0_0:
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
	.long	127                             ## 0x7f
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_wpa_bss_get_max_rate
	.p2align	4, 0x90
_wpa_bss_get_max_rate:                  ## @wpa_bss_get_max_rate
	.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
	movq	%rdi, %r14
	movq	_WLAN_EID_SUPP_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wpa_bss_get_ie
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	4(%rax), %ecx
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	cmovlel	%ebx, %ecx
	jle	LBB0_13
## %bb.3:
	cmpl	$8, %ecx
	jae	LBB0_5
## %bb.4:
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	jmp	LBB0_12
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_5:
	movl	%ecx, %edx
	andl	$2147483640, %edx               ## imm = 0x7FFFFFF8
	leaq	-8(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$3, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	pxor	%xmm3, %xmm3
	movl	$2, %edi
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [127,127,127,127]
	pxor	%xmm4, %xmm4
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rdi,4), %xmm5
	movdqu	16(%rax,%rdi,4), %xmm6
	movdqu	32(%rax,%rdi,4), %xmm0
	movdqu	48(%rax,%rdi,4), %xmm1
	pand	%xmm2, %xmm5
	pmaxsd	%xmm3, %xmm5
	pand	%xmm2, %xmm6
	pmaxsd	%xmm4, %xmm6
	pand	%xmm2, %xmm0
	pmaxsd	%xmm5, %xmm0
	pand	%xmm2, %xmm1
	pmaxsd	%xmm6, %xmm1
	addq	$16, %rdi
	movdqa	%xmm0, %xmm3
	movdqa	%xmm1, %xmm4
	addq	$-2, %rsi
	jne	LBB0_8
## %bb.9:
	testb	$1, %bl
	je	LBB0_11
LBB0_10:
	movdqu	(%rax,%rdi,4), %xmm2
	movdqu	16(%rax,%rdi,4), %xmm3
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = [127,127,127,127]
	pand	%xmm4, %xmm2
	pmaxsd	%xmm2, %xmm0
	pand	%xmm4, %xmm3
	pmaxsd	%xmm3, %xmm1
LBB0_11:
	pmaxud	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pmaxsd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	pmaxsd	%xmm1, %xmm0
	movd	%xmm0, %ebx
	cmpq	%rcx, %rdx
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%rax,%rdx,4), %esi
	andl	$127, %esi
	cmpl	%ebx, %esi
	cmovgl	%esi, %ebx
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_12
LBB0_13:
	movq	_WLAN_EID_EXT_SUPP_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wpa_bss_get_ie
	testq	%rax, %rax
	je	LBB0_25
## %bb.14:
	movl	4(%rax), %edx
	xorl	%ecx, %ecx
	testl	%edx, %edx
	cmovgl	%edx, %ecx
	jle	LBB0_25
## %bb.15:
	cmpl	$8, %ecx
	jae	LBB0_17
## %bb.16:
	xorl	%edx, %edx
	jmp	LBB0_24
LBB0_17:
	movl	%ecx, %edx
	andl	$2147483640, %edx               ## imm = 0x7FFFFFF8
	movd	%ebx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$3, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.19:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	movl	$2, %edi
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [127,127,127,127]
	movdqa	%xmm0, %xmm4
	movdqa	%xmm0, %xmm3
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rdi,4), %xmm5
	movdqu	16(%rax,%rdi,4), %xmm6
	movdqu	32(%rax,%rdi,4), %xmm0
	movdqu	48(%rax,%rdi,4), %xmm1
	pand	%xmm2, %xmm5
	pmaxsd	%xmm4, %xmm5
	pand	%xmm2, %xmm6
	pmaxsd	%xmm3, %xmm6
	pand	%xmm2, %xmm0
	pmaxsd	%xmm5, %xmm0
	pand	%xmm2, %xmm1
	pmaxsd	%xmm6, %xmm1
	addq	$16, %rdi
	movdqa	%xmm0, %xmm4
	movdqa	%xmm1, %xmm3
	addq	$-2, %rsi
	jne	LBB0_20
## %bb.21:
	testb	$1, %bl
	je	LBB0_23
LBB0_22:
	movdqu	(%rax,%rdi,4), %xmm2
	movdqu	16(%rax,%rdi,4), %xmm3
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = [127,127,127,127]
	pand	%xmm4, %xmm2
	pmaxsd	%xmm2, %xmm0
	pand	%xmm4, %xmm3
	pmaxsd	%xmm3, %xmm1
LBB0_23:
	pmaxud	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pmaxsd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	pmaxsd	%xmm1, %xmm0
	movd	%xmm0, %ebx
	cmpq	%rcx, %rdx
	je	LBB0_25
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%rax,%rdx,4), %esi
	andl	$127, %esi
	cmpl	%ebx, %esi
	cmovgl	%esi, %ebx
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_24
LBB0_25:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	pxor	%xmm0, %xmm0
	movl	$2, %edi
	pxor	%xmm1, %xmm1
	testb	$1, %bl
	jne	LBB0_10
	jmp	LBB0_11
LBB0_18:
	movl	$2, %edi
	movdqa	%xmm0, %xmm1
	testb	$1, %bl
	jne	LBB0_22
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_EID_SUPP_RATES,4,2        ## @WLAN_EID_SUPP_RATES
	.comm	_WLAN_EID_EXT_SUPP_RATES,4,2    ## @WLAN_EID_EXT_SUPP_RATES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_bss_get_max_rate           ; -- Begin function wpa_bss_get_max_rate
	.p2align	2
_wpa_bss_get_max_rate:                  ; @wpa_bss_get_max_rate
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _WLAN_EID_SUPP_RATES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_EID_SUPP_RATES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_wpa_bss_get_ie
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w9, [x0, #4]
	cmp	w9, #0
	csel	w8, w9, wzr, gt
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.2:
	cmp	w8, #16
	b.hs	LBB0_5
; %bb.3:
	mov	w20, #0
	mov	x9, #0
	b	LBB0_8
LBB0_4:
	mov	w20, #0
	b	LBB0_10
LBB0_5:
	and	x9, x8, #0x7ffffff0
	add	x10, x0, #40
	movi.2d	v0, #0000000000000000
	movi.4s	v1, #127
	mov	x11, x9
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x10, #-32]
	ldp	q7, q16, [x10], #64
	and.16b	v5, v5, v1
	and.16b	v6, v6, v1
	and.16b	v7, v7, v1
	and.16b	v16, v16, v1
	smax.4s	v0, v5, v0
	smax.4s	v2, v6, v2
	smax.4s	v3, v7, v3
	smax.4s	v4, v16, v4
	subs	x11, x11, #16
	b.ne	LBB0_6
; %bb.7:
	umax.4s	v0, v0, v2
	umax.4s	v0, v0, v3
	umax.4s	v0, v0, v4
	smaxv.4s	s0, v0
	fmov	w20, s0
	cmp	x9, x8
	b.eq	LBB0_10
LBB0_8:
	sub	x8, x8, x9
	add	x9, x0, x9, lsl #2
	add	x9, x9, #8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #4
	and	w10, w10, #0x7f
	cmp	w10, w20
	csel	w20, w10, w20, gt
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
Lloh3:
	adrp	x8, _WLAN_EID_EXT_SUPP_RATES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WLAN_EID_EXT_SUPP_RATES@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wpa_bss_get_ie
	cbz	x0, LBB0_19
; %bb.11:
	ldr	w9, [x0, #4]
	cmp	w9, #0
	csel	w8, w9, wzr, gt
	cmp	w9, #1
	b.lt	LBB0_19
; %bb.12:
	cmp	w8, #16
	b.hs	LBB0_14
; %bb.13:
	mov	x9, #0
	b	LBB0_17
LBB0_14:
	and	x9, x8, #0x7ffffff0
	dup.4s	v0, w20
	add	x10, x0, #40
	movi.4s	v1, #127
	mov	x11, x9
	mov.16b	v2, v0
	mov.16b	v3, v0
	mov.16b	v4, v0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x10, #-32]
	ldp	q7, q16, [x10], #64
	and.16b	v5, v5, v1
	and.16b	v6, v6, v1
	and.16b	v7, v7, v1
	and.16b	v16, v16, v1
	smax.4s	v0, v5, v0
	smax.4s	v2, v6, v2
	smax.4s	v3, v7, v3
	smax.4s	v4, v16, v4
	subs	x11, x11, #16
	b.ne	LBB0_15
; %bb.16:
	umax.4s	v0, v0, v2
	umax.4s	v0, v0, v3
	umax.4s	v0, v0, v4
	smaxv.4s	s0, v0
	fmov	w20, s0
	cmp	x9, x8
	b.eq	LBB0_19
LBB0_17:
	sub	x8, x8, x9
	add	x9, x0, x9, lsl #2
	add	x9, x9, #8
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #4
	and	w10, w10, #0x7f
	cmp	w10, w20
	csel	w20, w10, w20, gt
	subs	x8, x8, #1
	b.ne	LBB0_18
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_EID_SUPP_RATES,4,2        ; @WLAN_EID_SUPP_RATES
	.comm	_WLAN_EID_EXT_SUPP_RATES,4,2    ; @WLAN_EID_EXT_SUPP_RATES
.subsections_via_symbols
