	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function maxrate
_maxrate:                               ## @maxrate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r12
	xorl	%ebx, %ebx
	testq	%r12, %r12
	je	LBB0_15
## %bb.1:
	movq	(%r12), %rdi
	movl	48(%rdi), %eax
	testb	$3, %al
	je	LBB0_2
## %bb.6:
	andl	$12, %eax
	leal	(%rax,%rax), %r15d
	addl	$7, %r15d
LBB0_7:
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_le16dec
	movq	_IEEE80211_HTCAP_CHWIDTH40@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.8:
	movq	_IEEE80211_HTCAP_SHORTGI40@GOTPCREL(%rip), %rsi
	movq	_ieee80211_htrates@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r15d, %edx
	testl	%eax, (%rsi)
	je	LBB0_10
## %bb.9:
	shlq	$4, %rdx
	addq	%rdx, %rcx
	jmp	LBB0_14
LBB0_2:
	movl	$31, %r15d
	movl	$31, %esi
	callq	_isclr
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movl	$31, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r15d, %r15d
	je	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	decl	%r15d
	movq	(%r12), %rdi
	movl	%r15d, %esi
	callq	_isclr
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_7
LBB0_11:
	movq	_IEEE80211_HTCAP_SHORTGI20@GOTPCREL(%rip), %rsi
	movq	_ieee80211_htrates@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r15d, %edx
	testl	%eax, (%rsi)
	je	LBB0_13
## %bb.12:
	shlq	$4, %rdx
	addq	%rdx, %rcx
	addq	$8, %rcx
	jmp	LBB0_14
LBB0_10:
	shlq	$4, %rdx
	addq	%rdx, %rcx
	addq	$4, %rcx
	jmp	LBB0_14
LBB0_13:
	shlq	$4, %rdx
	addq	%rdx, %rcx
	addq	$12, %rcx
LBB0_14:
	movl	(%rcx), %ebx
LBB0_15:
	movq	(%r14), %rax
	movl	4(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_27
## %bb.16:
	movq	_IEEE80211_RATE_VAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	$8, %ecx
	jae	LBB0_18
## %bb.17:
	xorl	%esi, %esi
	jmp	LBB0_25
LBB0_18:
	movl	%ecx, %esi
	andl	$-8, %esi
	movd	%ebx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movd	%edx, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	leaq	-8(%rsi), %rdi
	movq	%rdi, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.20:
	movq	%r8, %rdi
	andq	$-2, %rdi
	movl	$2, %ebx
	movdqa	%xmm0, %xmm4
	movdqa	%xmm0, %xmm3
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rbx,4), %xmm5
	movdqu	16(%rax,%rbx,4), %xmm6
	movdqu	32(%rax,%rbx,4), %xmm0
	movdqu	48(%rax,%rbx,4), %xmm2
	pand	%xmm1, %xmm5
	pmaxsd	%xmm4, %xmm5
	pand	%xmm1, %xmm6
	pmaxsd	%xmm3, %xmm6
	pand	%xmm1, %xmm0
	pmaxsd	%xmm5, %xmm0
	pand	%xmm1, %xmm2
	pmaxsd	%xmm6, %xmm2
	addq	$16, %rbx
	movdqa	%xmm0, %xmm4
	movdqa	%xmm2, %xmm3
	addq	$-2, %rdi
	jne	LBB0_21
## %bb.22:
	testb	$1, %r8b
	je	LBB0_24
LBB0_23:
	movdqu	(%rax,%rbx,4), %xmm3
	movdqu	16(%rax,%rbx,4), %xmm4
	pand	%xmm1, %xmm3
	pmaxsd	%xmm3, %xmm0
	pand	%xmm1, %xmm4
	pmaxsd	%xmm4, %xmm2
LBB0_24:
	pmaxsd	%xmm2, %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, %rsi
	je	LBB0_27
LBB0_25:
	movl	%ebx, %edi
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%rax,%rsi,4), %ebx
	andl	%edx, %ebx
	cmpl	%edi, %ebx
	cmovlel	%edi, %ebx
	incq	%rsi
	movl	%ebx, %edi
	cmpq	%rsi, %rcx
	jne	LBB0_26
LBB0_27:
	movq	8(%r14), %rax
	movl	4(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_38
## %bb.28:
	movq	_IEEE80211_RATE_VAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	$8, %ecx
	jae	LBB0_30
## %bb.29:
	xorl	%esi, %esi
	jmp	LBB0_37
LBB0_30:
	movl	%ecx, %esi
	andl	$-8, %esi
	movd	%ebx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movd	%edx, %xmm1
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	leaq	-8(%rsi), %rdi
	movq	%rdi, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.32:
	movq	%r8, %rdi
	andq	$-2, %rdi
	movl	$2, %ebx
	movdqa	%xmm0, %xmm4
	movdqa	%xmm0, %xmm3
	.p2align	4, 0x90
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rbx,4), %xmm5
	movdqu	16(%rax,%rbx,4), %xmm6
	movdqu	32(%rax,%rbx,4), %xmm0
	movdqu	48(%rax,%rbx,4), %xmm2
	pand	%xmm1, %xmm5
	pmaxsd	%xmm4, %xmm5
	pand	%xmm1, %xmm6
	pmaxsd	%xmm3, %xmm6
	pand	%xmm1, %xmm0
	pmaxsd	%xmm5, %xmm0
	pand	%xmm1, %xmm2
	pmaxsd	%xmm6, %xmm2
	addq	$16, %rbx
	movdqa	%xmm0, %xmm4
	movdqa	%xmm2, %xmm3
	addq	$-2, %rdi
	jne	LBB0_33
## %bb.34:
	testb	$1, %r8b
	je	LBB0_36
LBB0_35:
	movdqu	(%rax,%rbx,4), %xmm3
	movdqu	16(%rax,%rbx,4), %xmm4
	pand	%xmm1, %xmm3
	pmaxsd	%xmm3, %xmm0
	pand	%xmm1, %xmm4
	pmaxsd	%xmm4, %xmm2
LBB0_36:
	pmaxsd	%xmm2, %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, %rsi
	je	LBB0_38
	.p2align	4, 0x90
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movl	8(%rax,%rsi,4), %edi
	andl	%edx, %edi
	cmpl	%ebx, %edi
	cmovgl	%edi, %ebx
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_37
LBB0_38:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movl	$2, %ebx
	movdqa	%xmm0, %xmm2
	testb	$1, %r8b
	jne	LBB0_23
	jmp	LBB0_24
LBB0_31:
	movl	$2, %ebx
	movdqa	%xmm0, %xmm2
	testb	$1, %r8b
	jne	LBB0_35
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HTCAP_CHWIDTH40,4,2  ## @IEEE80211_HTCAP_CHWIDTH40
	.comm	_IEEE80211_HTCAP_SHORTGI40,4,2  ## @IEEE80211_HTCAP_SHORTGI40
	.comm	_ieee80211_htrates,8,3          ## @ieee80211_htrates
	.comm	_IEEE80211_HTCAP_SHORTGI20,4,2  ## @IEEE80211_HTCAP_SHORTGI20
	.comm	_IEEE80211_RATE_VAL,4,2         ## @IEEE80211_RATE_VAL
	.no_dead_strip	_maxrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function maxrate
_maxrate:                               ; @maxrate
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x21, [x0, #16]
	cbz	x21, LBB0_9
; %bb.1:
	ldr	x0, [x21]
	ldr	w8, [x0, #48]
	tst	w8, #0x3
	b.eq	LBB0_5
; %bb.2:
	lsr	w8, w8, #2
	mov	w20, #7
	bfi	w20, w8, #3, #2
LBB0_3:
	add	x0, x21, #8
	bl	_le16dec
Lloh0:
	adrp	x8, _IEEE80211_HTCAP_CHWIDTH40@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_HTCAP_CHWIDTH40@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.4:
Lloh3:
	adrp	x8, _IEEE80211_HTCAP_SHORTGI40@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_HTCAP_SHORTGI40@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ieee80211_htrates@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ieee80211_htrates@GOTPAGEOFF]
	tst	w8, w0
Lloh8:
	ldr	x8, [x9]
	mov	w9, w20
	add	x8, x8, x9, lsl #4
	add	x9, x8, #4
	b	LBB0_11
LBB0_5:
	mov	w20, #31
	mov	w1, #31
	bl	_isclr
	cbz	x0, LBB0_3
; %bb.6:
	mov	w20, #31
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w20, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w20, w20, #1
	ldr	x0, [x21]
	mov	x1, x20
	bl	_isclr
	cbnz	x0, LBB0_7
	b	LBB0_3
LBB0_9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
Lloh9:
	adrp	x8, _IEEE80211_HTCAP_SHORTGI20@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IEEE80211_HTCAP_SHORTGI20@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
Lloh12:
	adrp	x8, _ieee80211_htrates@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ieee80211_htrates@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	mov	w9, w20
	add	x8, x8, x9, lsl #4
	add	x9, x8, #12
	add	x8, x8, #8
LBB0_11:
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
LBB0_12:
	ldr	x11, [x19]
	ldr	w10, [x11, #4]
Lloh15:
	adrp	x8, _IEEE80211_RATE_VAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IEEE80211_RATE_VAL@GOTPAGEOFF]
	cmp	w10, #1
	b.lt	LBB0_20
; %bb.13:
	ldr	w9, [x8]
	cmp	w10, #16
	b.hs	LBB0_15
; %bb.14:
	mov	x12, #0
	b	LBB0_18
LBB0_15:
	and	x12, x10, #0xfffffff0
	dup.4s	v0, w0
	add	x13, x11, #40
	dup.4s	v1, w9
	mov	x14, x12
	mov.16b	v2, v0
	mov.16b	v3, v0
	mov.16b	v4, v0
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x13, #-32]
	ldp	q7, q16, [x13], #64
	and.16b	v5, v1, v5
	and.16b	v6, v1, v6
	and.16b	v7, v1, v7
	and.16b	v16, v1, v16
	smax.4s	v0, v5, v0
	smax.4s	v2, v6, v2
	smax.4s	v3, v7, v3
	smax.4s	v4, v16, v4
	subs	x14, x14, #16
	b.ne	LBB0_16
; %bb.17:
	smax.4s	v0, v0, v2
	smax.4s	v0, v0, v3
	smax.4s	v0, v0, v4
	smaxv.4s	s0, v0
	fmov	w0, s0
	cmp	x12, x10
	b.eq	LBB0_20
LBB0_18:
	add	x11, x11, x12, lsl #2
	add	x11, x11, #8
	sub	x10, x10, x12
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11], #4
	and	w12, w9, w12
	cmp	w12, w0
	csel	w0, w12, w0, gt
	subs	x10, x10, #1
	b.ne	LBB0_19
LBB0_20:
	ldr	x10, [x19, #8]
	ldr	w9, [x10, #4]
	cmp	w9, #1
	b.lt	LBB0_28
; %bb.21:
	ldr	w8, [x8]
	cmp	w9, #16
	b.hs	LBB0_23
; %bb.22:
	mov	x11, #0
	b	LBB0_26
LBB0_23:
	and	x11, x9, #0xfffffff0
	dup.4s	v0, w0
	add	x12, x10, #40
	dup.4s	v1, w8
	mov	x13, x11
	mov.16b	v2, v0
	mov.16b	v3, v0
	mov.16b	v4, v0
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x12, #-32]
	ldp	q7, q16, [x12], #64
	and.16b	v5, v1, v5
	and.16b	v6, v1, v6
	and.16b	v7, v1, v7
	and.16b	v16, v1, v16
	smax.4s	v0, v5, v0
	smax.4s	v2, v6, v2
	smax.4s	v3, v7, v3
	smax.4s	v4, v16, v4
	subs	x13, x13, #16
	b.ne	LBB0_24
; %bb.25:
	smax.4s	v0, v0, v2
	smax.4s	v0, v0, v3
	smax.4s	v0, v0, v4
	smaxv.4s	s0, v0
	fmov	w0, s0
	cmp	x11, x9
	b.eq	LBB0_28
LBB0_26:
	add	x10, x10, x11, lsl #2
	add	x10, x10, #8
	sub	x9, x9, x11
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #4
	and	w11, w8, w11
	cmp	w11, w0
	csel	w0, w11, w0, gt
	subs	x9, x9, #1
	b.ne	LBB0_27
LBB0_28:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HTCAP_CHWIDTH40,4,2  ; @IEEE80211_HTCAP_CHWIDTH40
	.comm	_IEEE80211_HTCAP_SHORTGI40,4,2  ; @IEEE80211_HTCAP_SHORTGI40
	.comm	_ieee80211_htrates,8,3          ; @ieee80211_htrates
	.comm	_IEEE80211_HTCAP_SHORTGI20,4,2  ; @IEEE80211_HTCAP_SHORTGI20
	.comm	_IEEE80211_RATE_VAL,4,2         ; @IEEE80211_RATE_VAL
	.no_dead_strip	_maxrate
.subsections_via_symbols
