	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_rate
_check_rate:                            ## @check_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	8(%rdi), %edi
	callq	_ieee80211_get_suprates
	movq	%rax, %rbx
	movq	(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %r14d
	movq	(%r12), %r12
	movq	%r15, %rdi
	callq	_ieee80211_chan2mode
	movl	(%r12,%rax,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_IEEE80211_FIXED_RATE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_10
LBB0_2:
	movl	%r14d, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	cmpq	-80(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_10
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax,%r13,4), %edi
	callq	_IEEE80211_RV
	movl	%eax, %r12d
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	cmovel	%eax, %r15d
	movl	(%rbx), %eax
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jle	LBB0_7
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rbx), %rax
	movl	(%rax,%r14,4), %edi
	callq	_IEEE80211_RV
	cmpl	%eax, %r12d
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	incq	%r14
	movslq	(%rbx), %rax
	cmpq	%rax, %r14
	jl	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%eax, %r14d
	jne	LBB0_9
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	%eax, %r12d
	cmovgl	%r12d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	cmpl	%eax, %r14d
	jne	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_IEEE80211_RATE_BASIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, 8(%rcx,%r13,4)
	je	LBB0_9
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%r13), %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %r14d
	testl	%r14d, %r14d
	jg	LBB0_2
	jmp	LBB0_10
LBB0_12:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testl	%edi, %edi
	je	LBB0_14
## %bb.13:
	cmpl	%r15d, -44(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_14
## %bb.16:
                                        ## kill: def $edi killed $edi killed $rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IEEE80211_RV                   ## TAILCALL
LBB0_14:
	movq	_IEEE80211_RATE_BASIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
	orl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_FIXED_RATE_NONE,4,2  ## @IEEE80211_FIXED_RATE_NONE
	.comm	_IEEE80211_RATE_BASIC,4,2       ## @IEEE80211_RATE_BASIC
	.no_dead_strip	_check_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_rate
_check_rate:                            ; @check_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	ldr	w0, [x0, #8]
	bl	_ieee80211_get_suprates
	mov	x20, x0
	str	x19, [sp]                       ; 8-byte Folded Spill
	ldr	x28, [x19]
	ldr	w19, [x28, #4]
	ldr	x23, [x22]
	mov	x0, x21
	bl	_ieee80211_chan2mode
	mov	w21, #0
	mov	w22, #0
	ldr	w24, [x23, x0, lsl #2]
Lloh0:
	adrp	x8, _IEEE80211_FIXED_RATE_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_FIXED_RATE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
Lloh3:
	adrp	x25, _IEEE80211_RATE_BASIC@GOTPAGE
Lloh4:
	ldr	x25, [x25, _IEEE80211_RATE_BASIC@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;       Child Loop BB0_6 Depth 3
	cmp	w19, #1
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
	b.lt	LBB0_12
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x27, #0
	add	x28, x28, #8
	mov	w19, w19
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	add	x27, x27, #1
	cmp	x27, x19
	b.eq	LBB0_12
LBB0_4:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_6 Depth 3
	ldr	w0, [x28, x27, lsl #2]
	bl	_IEEE80211_RV
	mov	x22, x0
	cmp	w0, w24
	csel	w26, w0, w26, eq
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x23, #0
LBB0_6:                                 ;   Parent Loop BB0_1 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x23, lsl #2]
	bl	_IEEE80211_RV
	cmp	w22, w0
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=3
	add	x23, x23, #1
	ldrsw	x8, [x20]
	cmp	x23, x8
	b.lt	LBB0_6
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=2
	mov	w23, #0
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=2
	cmp	w23, w8
	b.ne	LBB0_3
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=2
	cmp	w22, w21
	csel	w21, w22, w21, gt
	ldr	w8, [x20]
	cmp	w23, w8
	b.ne	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w9, [x28, x27, lsl #2]
	ldr	w8, [x25]
	tst	w8, w9
	b.eq	LBB0_3
	b	LBB0_18
LBB0_12:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	x9, x10, [sp]                   ; 16-byte Folded Reload
	ldr	x8, [x9]
	cmp	x10, x8
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x28, [x9, #8]
	ldr	w19, [x28, #4]
	b	LBB0_1
LBB0_14:
	cbz	w21, LBB0_17
; %bb.15:
	cmp	w24, w26
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_IEEE80211_RV
LBB0_17:
	ldr	w8, [x25]
LBB0_18:
	orr	w0, w8, w22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_FIXED_RATE_NONE,4,2  ; @IEEE80211_FIXED_RATE_NONE
	.comm	_IEEE80211_RATE_BASIC,4,2       ; @IEEE80211_RATE_BASIC
	.no_dead_strip	_check_rate
.subsections_via_symbols
