	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function minstrel_update_rates
_minstrel_update_rates:                 ## @minstrel_update_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	16(%r15), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_minstrel_set_rate
	movq	(%r14), %rdi
	movl	(%rdi), %eax
	movl	$1, %edx
	cmpl	$3, %eax
	jl	LBB0_3
## %bb.2:
	movq	16(%r15), %rax
	movl	4(%rax), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_minstrel_set_rate
	movq	(%r14), %rdi
	movl	(%rdi), %eax
	movl	$2, %edx
LBB0_3:
	cmpl	$2, %eax
	jl	LBB0_5
## %bb.4:
	leal	1(%rdx), %r12d
	movl	8(%r15), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_minstrel_set_rate
	movq	(%r14), %rdi
	movl	%r12d, %edx
LBB0_5:
	movl	4(%r15), %eax
	movq	(%rbx), %rcx
	movl	%edx, %edx
	shlq	$4, %rdx
	movl	%eax, 12(%rcx,%rdx)
	movl	8(%r14), %eax
	movl	%eax, 8(%rcx,%rdx)
	movl	%eax, 4(%rcx,%rdx)
	movl	%eax, (%rcx,%rdx)
	movl	(%r15), %esi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rate_control_set_rates         ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_minstrel_update_rates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function minstrel_update_rates
_minstrel_update_rates:                 ; @minstrel_update_rates
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	x8, [x19, #16]
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_minstrel_set_rate
	ldr	x0, [x20]
	ldr	w8, [x0]
	cmp	w8, #2
	b.le	LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	w3, [x8, #4]
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_minstrel_set_rate
	ldr	x0, [x20]
	ldr	w8, [x0]
	mov	w2, #2
	cmp	w8, #2
	b.ge	LBB0_5
	b	LBB0_6
LBB0_3:
	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
LBB0_4:
	mov	w2, #1
	cmp	w8, #2
	b.lt	LBB0_6
LBB0_5:
	add	w22, w2, #1
	ldr	w3, [x19, #8]
	mov	x0, x19
	mov	x1, x21
	bl	_minstrel_set_rate
	ldr	x0, [x20]
	mov	x2, x22
LBB0_6:
	ldr	x8, [x21]
	add	x8, x8, w2, uxtw #4
	ldr	w9, [x20, #8]
	ldp	w1, w10, [x19]
	stp	w9, w10, [x8, #8]
	stp	w9, w9, [x8]
	mov	x2, x21
	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
	b	_rate_control_set_rates
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_minstrel_update_rates
.subsections_via_symbols
