	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_setup_rates          ## -- Begin function ieee80211_setup_rates
	.p2align	4, 0x90
_ieee80211_setup_rates:                 ## @ieee80211_setup_rates
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	16(%rdi), %r13
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	8(%rbx), %rdx
	movq	%rdx, (%r12)
	movq	8(%r12), %rdi
	addq	$16, %rbx
	movq	%rbx, %rsi
	callq	_memcpy
	testq	%r15, %r15
	je	LBB0_4
## %bb.1:
	movq	%r13, %rbx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	8(%r15), %r14
	movq	(%r12), %rdi
	leaq	(%rdi,%r14), %rax
	movq	_IEEE80211_RATE_MAXSIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	cmpq	%r13, %rax
	jle	LBB0_3
## %bb.2:
	subq	%rdi, %r13
	movq	_IEEE80211_MSG_XRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movq	%r13, %r8
	movq	%r14, %r9
	callq	_IEEE80211_NOTE
	incl	(%rbx)
	movq	(%r12), %rdi
	movq	%r13, %r14
LBB0_3:
	addq	8(%r12), %rdi
	addq	$16, %r15
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	addq	%r14, (%r12)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_4:
	movq	%r12, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_fix_rate             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_RATE_MAXSIZE,8,3     ## @IEEE80211_RATE_MAXSIZE
	.comm	_IEEE80211_MSG_XRATE,4,2        ## @IEEE80211_MSG_XRATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"extended rate set too large; only using %u of %u rates"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_setup_rates          ; -- Begin function ieee80211_setup_rates
	.p2align	2
_ieee80211_setup_rates:                 ; @ieee80211_setup_rates
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x22, [x0, #16]
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x2, [x23, #8]
	str	x2, [x20]
	ldr	x0, [x20, #8]
	add	x1, x23, #16
	bl	_memcpy
	cbz	x21, LBB0_4
; %bb.1:
	ldr	x23, [x21, #8]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _IEEE80211_RATE_MAXSIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_RATE_MAXSIZE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x10, x8, x23
	cmp	x10, x9
	b.le	LBB0_3
; %bb.2:
	sub	x24, x9, x8
Lloh3:
	adrp	x8, _IEEE80211_MSG_XRATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_MSG_XRATE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	mov	x4, x24
	mov	x5, x23
	bl	_IEEE80211_NOTE
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	ldr	x8, [x20]
	mov	x23, x24
LBB0_3:
	ldr	x9, [x20, #8]
	add	x0, x8, x9
	add	x1, x21, #16
	mov	x2, x23
	bl	_memcpy
	ldr	x8, [x20]
	add	x8, x8, x23
	str	x8, [x20]
LBB0_4:
	mov	x0, x20
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ieee80211_fix_rate
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_RATE_MAXSIZE,8,3     ; @IEEE80211_RATE_MAXSIZE
	.comm	_IEEE80211_MSG_XRATE,4,2        ; @IEEE80211_MSG_XRATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"extended rate set too large; only using %u of %u rates"

.subsections_via_symbols
