	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function minstrel_rate_init
LCPI0_0:
	.long	4294967295                      ## 0xffffffff
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_minstrel_rate_init:                    ## @minstrel_rate_init
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rsi, %r13
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, 48(%rcx)
	movq	%rsi, %rdi
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rsi
	callq	_rate_lowest_index
	movq	%rax, (%r15)
	movq	8(%r13), %r8
	movl	16(%r13), %edi
	movl	(%r8,%rax,8), %edx
	movq	_IEEE80211_RATE_ERP_G@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	xorl	%ecx, %ecx
	andl	4(%r8,%rax,8), %esi
	setne	%cl
	movl	$10, %esi
	movl	$1, %r8d
	callq	_ieee80211_frame_duration
	movl	%eax, 8(%r15)
	movq	40(%r15), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	$0, 32(%r15)
	cmpl	$0, (%r13)
	je	LBB0_12
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, 32(%rax,%rdx,4)
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	8(%r13), %rax
	movq	_IEEE80211_RATE_ERP_G@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	testl	%edx, 4(%rax,%rbx,8)
	je	LBB0_24
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	-52(%rbp), %r14d                ## 4-byte Reload
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movl	(%r13), %eax
	cmpq	%rax, %rbx
	jae	LBB0_4
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
	movq	24(%r15), %r12
	movl	(%rsi), %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	16(%r13), %esi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_rate_supported
	testl	%eax, %eax
	je	LBB0_3
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %eax
	leaq	(%rax,%rax,8), %r13
	leaq	(%r12,%r13,4), %r15
	incl	%r14d
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$36, %edx
	callq	_memset
	movl	%ebx, (%r12,%r13,4)
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	8(%rsi), %rax
	leaq	(%rax,%rbx,8), %rdx
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movslq	(%rax,%rbx,8), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$33, %rax
	addl	%ecx, %eax
	movl	%eax, 4(%r12,%r13,4)
	movl	16(%rsi), %edi
	movq	%r15, %rsi
	callq	_calc_rate_durations
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [4294967295,1,1,1]
	movups	%xmm0, 8(%r12,%r13,4)
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movl	24(%r12,%r13,4), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %r13d
	addl	%eax, %r13d
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	28(%r15), %eax
	leal	(%rdi,%rdi,8), %r12d
	shrl	%r12d
	addl	%eax, %r12d
	addl	%edi, %edi
	incl	%edi
	movl	12(%rsi), %esi
	callq	_min
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %ecx
	addl	%r12d, %r14d
	addl	%ecx, %r14d
	addl	%r12d, %ebx
	movl	4(%rsi), %eax
	cmpl	%eax, %r14d
	jae	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	16(%r15), %edx
	cmpl	8(%rsi), %edx
	jge	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	incl	%edx
	movl	%edx, 16(%r15)
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=2
	addl	%r12d, %r13d
	leal	(%rbx,%rcx,2), %ebx
	cmpl	%eax, %ebx
	jae	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	20(%r15), %ecx
	cmpl	8(%rsi), %ecx
	jge	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=2
	incl	%ecx
	movl	%ecx, 20(%r15)
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=2
	movl	12(%r15), %ecx
	cmpl	%eax, %r13d
	jae	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=2
	incl	%ecx
	movl	%ecx, 12(%r15)
	cmpl	8(%rsi), %ecx
	jge	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_14 Depth=2
	movl	24(%r15), %eax
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, 16(%r15)
	jmp	LBB0_25
LBB0_4:
	cmpl	%eax, %r14d
	jae	LBB0_12
## %bb.5:
	movq	24(%r15), %r8
	movl	%r14d, %edx
	movl	%eax, %edi
	subl	%r14d, %edi
	movq	%rdx, %rsi
	notq	%rsi
	addq	%rax, %rsi
	andq	$3, %rdi
	je	LBB0_9
## %bb.6:
	leaq	(%rdx,%rdx,8), %rcx
	leaq	(%r8,%rcx,4), %rbx
	negq	%rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	$-1, (%rbx)
	decq	%rcx
	addq	$36, %rbx
	cmpq	%rcx, %rdi
	jne	LBB0_7
## %bb.8:
	subq	%rcx, %rdx
LBB0_9:
	cmpq	$3, %rsi
	jb	LBB0_12
## %bb.10:
	subq	%rdx, %rax
	leaq	(%rdx,%rdx,8), %rcx
	leaq	(%r8,%rcx,4), %rcx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	$-1, (%rcx)
	movl	$-1, 36(%rcx)
	movl	$-1, 72(%rcx)
	movl	$-1, 108(%rcx)
	addq	$144, %rcx
	addq	$-4, %rax
	jne	LBB0_11
LBB0_12:
	movl	%r14d, 12(%r15)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	%r15, %rdi
	callq	_init_sample_table
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_minstrel_update_rates          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_RATE_ERP_G,4,2       ## @IEEE80211_RATE_ERP_G
	.comm	_jiffies,4,2                    ## @jiffies
	.no_dead_strip	_minstrel_rate_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function minstrel_rate_init
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_minstrel_rate_init:                    ; @minstrel_rate_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x3
	mov	x23, x1
	mov	x20, x0
	str	x2, [x3, #48]
	mov	x0, x1
	str	x2, [sp, #24]                   ; 8-byte Folded Spill
	mov	x1, x2
	bl	_rate_lowest_index
	str	x0, [x19]
	ldr	x9, [x23, #8]
	ldr	w8, [x23, #16]
	add	x9, x9, x0, lsl #3
	ldp	w2, w9, [x9]
Lloh0:
	adrp	x10, _IEEE80211_RATE_ERP_G@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IEEE80211_RATE_ERP_G@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w3, ne
	mov	x0, x8
	mov	w1, #10
	mov	w4, #1
	bl	_ieee80211_frame_duration
	str	w0, [x19, #8]
	ldr	x0, [x19, #40]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	str	xzr, [x19, #32]
	ldr	w8, [x23]
	cbz	w8, LBB0_20
; %bb.1:
	mov	x26, #0
	mov	w21, #0
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp]                        ; 16-byte Folded Spill
	str	x23, [sp, #16]                  ; 8-byte Folded Spill
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #36
	ldp	x11, x10, [sp, #40]             ; 16-byte Folded Reload
	madd	x8, x11, x8, x10
	str	w9, [x8, #32]
	ldr	x23, [sp, #16]                  ; 8-byte Folded Reload
	ldr	x8, [x23, #8]
	ldr	x26, [sp, #56]                  ; 8-byte Folded Reload
	add	x8, x8, x26, lsl #3
	ldr	w8, [x8, #4]
Lloh5:
	adrp	x10, _IEEE80211_RATE_ERP_G@GOTPAGE
Lloh6:
	ldr	x10, [x10, _IEEE80211_RATE_ERP_G@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w8
	mov	x19, x22
	b.eq	LBB0_16
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w21, [sp, #36]                  ; 4-byte Folded Reload
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	ldr	w8, [x23]
	cmp	x26, x8
	b.hs	LBB0_17
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x22, [x19, #24]
	ldr	w24, [x20]
	ldr	w1, [x23, #16]
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	mov	x2, x26
	bl	_rate_supported
	cbz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w9, w21
	mov	w8, #36
	stp	x9, x22, [sp, #40]              ; 16-byte Folded Spill
	madd	x25, x9, x8, x22
	add	w21, w21, #1
	str	w21, [sp, #36]                  ; 4-byte Folded Spill
	mov	x0, x25
	mov	w1, #0
	mov	w2, #36
	bl	_memset
	ldr	x8, [x23, #8]
	add	x2, x8, x26, lsl #3
	ldrsw	x8, [x2]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w8, w8, w9
	str	x26, [sp, #56]                  ; 8-byte Folded Spill
	stp	w26, w8, [x25]
	ldr	w0, [x23, #16]
	mov	x1, x25
	bl	_calc_rate_durations
	mov	w26, #0
	mov	w28, #0
	ldr	w8, [x25, #24]!
	sub	x27, x25, #12
	sub	x10, x25, #8
	sub	x9, x25, #4
	stp	x9, x10, [sp, #64]              ; 16-byte Folded Spill
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	stur	q0, [x25, #-16]
	mov	x22, x19
	ldr	w9, [x19, #8]
	add	w19, w9, w8
	add	x23, x25, #4
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x23]
	add	w8, w8, w9
	add	w9, w24, w24, lsl #3
	add	w21, w8, w9, lsr #1
	mov	w0, #1
	bfi	w0, w24, #1, #31
	ldr	w1, [x20, #12]
	bl	_min
	mov	x24, x0
	ldr	w9, [x22, #8]
	add	w8, w21, w26
	add	w26, w8, w9
	ldr	w8, [x20, #4]
	cmp	w26, w8
	b.hs	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x10, [sp, #72]                  ; 8-byte Folded Reload
	ldr	w10, [x10]
	ldr	w11, [x20, #8]
	cmp	w10, w11
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	add	w10, w10, #1
	ldr	x11, [sp, #72]                  ; 8-byte Folded Reload
	str	w10, [x11]
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=2
	add	w10, w21, w28
	add	w28, w10, w9, lsl #1
	cmp	w28, w8
	b.hs	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x9, [sp, #64]                   ; 8-byte Folded Reload
	ldr	w9, [x9]
	ldr	w10, [x20, #8]
	cmp	w9, w10
	b.ge	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=2
	add	w9, w9, #1
	ldr	x10, [sp, #64]                  ; 8-byte Folded Reload
	str	w9, [x10]
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w9, [x27]
	add	w19, w21, w19
	cmp	w19, w8
	b.hs	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=2
	add	w9, w9, #1
	str	w9, [x27]
	ldr	w8, [x20, #8]
	cmp	w9, w8
	b.ge	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x25]
	b	LBB0_7
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	str	w9, [x8]
	b	LBB0_3
LBB0_17:
	cmp	w21, w8
	b.hs	LBB0_26
; %bb.18:
	ldr	x9, [x19, #24]
	mov	w13, w21
	sub	x11, x8, x13
	cmp	x11, #4
	b.hs	LBB0_21
; %bb.19:
	mov	x10, x13
	b	LBB0_24
LBB0_20:
	mov	w21, #0
	b	LBB0_26
LBB0_21:
	and	x12, x11, #0xfffffffffffffffc
	add	x10, x12, x13
	mov	w14, #36
	madd	x13, x13, x14, x9
	add	x13, x13, #72
	mov	w14, #-1
	mov	x15, x12
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	stur	w14, [x13, #-72]
	stur	w14, [x13, #-36]
	str	w14, [x13]
	str	w14, [x13, #36]
	add	x13, x13, #144
	subs	x15, x15, #4
	b.ne	LBB0_22
; %bb.23:
	cmp	x11, x12
	b.eq	LBB0_26
LBB0_24:
	mov	w11, #36
	madd	x9, x10, x11, x9
	sub	x8, x8, x10
	mov	w10, #-1
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	str	w10, [x9], #36
	subs	x8, x8, #1
	b.ne	LBB0_25
LBB0_26:
Lloh8:
	adrp	x8, _jiffies@GOTPAGE
Lloh9:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stp	w21, w8, [x19, #12]
	mov	x0, x19
	bl	_init_sample_table
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	b	_minstrel_update_rates
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_RATE_ERP_G,4,2       ; @IEEE80211_RATE_ERP_G
	.comm	_jiffies,4,2                    ; @jiffies
	.no_dead_strip	_minstrel_rate_init
.subsections_via_symbols
