	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_validate_rate
_ieee80211_validate_rate:               ## @ieee80211_validate_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
	movl	%esi, %ebx
	movq	(%rdi), %r14
	movl	%esi, %edi
	callq	_IEEE80211_IS_HT_RATE
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	_IEEE80211_HTC_HT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_14
## %bb.2:
	movl	%ebx, %edi
	callq	_IEEE80211_RV
	movl	%eax, %ecx
	cmpl	$31, %eax
	jg	LBB0_4
## %bb.3:
	movl	4(%r14), %edx
	shll	$3, %edx
	xorl	%eax, %eax
	cmpl	%edx, %ecx
	jge	LBB0_14
	jmp	LBB0_15
LBB0_13:
	movl	8(%r14), %edi
	movl	%ebx, %esi
	callq	_ieee80211_isratevalid
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_14
	jmp	LBB0_15
LBB0_4:
	movl	(%r14), %edx
	cmpl	$32, %ecx
	jne	LBB0_6
## %bb.5:
	movq	_IEEE80211_HTC_TXMCS32@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	testl	%edx, (%rcx)
	je	LBB0_14
	jmp	LBB0_15
LBB0_6:
	movq	_IEEE80211_HTC_TXUNEQUAL@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_14
## %bb.7:
	movl	4(%r14), %eax
	cmpl	$2, %eax
	jb	LBB0_14
## %bb.8:
	je	LBB0_11
## %bb.9:
	cmpl	$3, %eax
	jne	LBB0_12
## %bb.10:
	xorl	%eax, %eax
	cmpl	$53, %ecx
	jb	LBB0_15
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	xorl	%eax, %eax
	cmpl	$39, %ecx
	jae	LBB0_14
	jmp	LBB0_15
LBB0_12:
	xorl	%eax, %eax
	cmpl	$77, %ecx
	jae	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HTC_HT,4,2           ## @IEEE80211_HTC_HT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IEEE80211_HTC_TXMCS32,4,2      ## @IEEE80211_HTC_TXMCS32
	.comm	_IEEE80211_HTC_TXUNEQUAL,4,2    ## @IEEE80211_HTC_TXUNEQUAL
	.no_dead_strip	_ieee80211_validate_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_validate_rate
_ieee80211_validate_rate:               ; @ieee80211_validate_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, x1
	ldr	x20, [x0]
	mov	x0, x1
	bl	_IEEE80211_IS_HT_RATE
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _IEEE80211_HTC_HT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_HTC_HT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.2:
	mov	x0, x19
	bl	_IEEE80211_RV
	cmp	w0, #31
	b.gt	LBB0_5
; %bb.3:
	ldr	w8, [x20, #4]
Lloh3:
	adrp	x9, _EINVAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w0, w8, lsl #3
	csel	w0, wzr, w9, lt
	b	LBB0_13
LBB0_4:
	ldr	w0, [x20, #8]
	mov	x1, x19
	bl	_ieee80211_isratevalid
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w8, wzr, eq
	b	LBB0_13
LBB0_5:
	ldr	w8, [x20]
	cmp	w0, #32
	b.ne	LBB0_7
; %bb.6:
Lloh9:
	adrp	x9, _IEEE80211_HTC_TXMCS32@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_HTC_TXMCS32@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _EINVAL@GOTPAGE
Lloh13:
	ldr	x10, [x10, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w0, w10, wzr, eq
	b	LBB0_13
LBB0_7:
Lloh15:
	adrp	x9, _IEEE80211_HTC_TXUNEQUAL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IEEE80211_HTC_TXUNEQUAL@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.8:
	ldr	w8, [x20, #4]
	cmp	w8, #2
	b.lo	LBB0_12
; %bb.9:
	b.eq	LBB0_14
; %bb.10:
	cmp	w8, #3
	b.ne	LBB0_15
; %bb.11:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w0, #52
	csel	w0, w8, wzr, hi
	b	LBB0_13
LBB0_12:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w0, #38
	csel	w0, w8, wzr, hi
	b	LBB0_13
LBB0_15:
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w0, #76
	csel	w0, w8, wzr, hi
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HTC_HT,4,2           ; @IEEE80211_HTC_HT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IEEE80211_HTC_TXMCS32,4,2      ; @IEEE80211_HTC_TXMCS32
	.comm	_IEEE80211_HTC_TXUNEQUAL,4,2    ; @IEEE80211_HTC_TXUNEQUAL
	.no_dead_strip	_ieee80211_validate_rate
.subsections_via_symbols
