	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function minstrel_ht_get_rate
_minstrel_ht_get_rate:                  ## @minstrel_ht_get_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rcx), %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_rate_control_send_low
	testq	%rax, %rax
	je	LBB0_1
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, 4(%r13)
	je	LBB0_12
## %bb.2:
	leaq	8(%r13), %r12
	movl	36(%r13), %eax
	orl	%eax, (%r15)
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_minstrel_ht_check_cck_shortpreamble
	movq	16(%r14), %rax
	cmpl	$1, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_ETH_P_PAE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movl	$-1, %ebx
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_5
LBB0_4:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_minstrel_get_sample_rate
	movl	%eax, %ebx
LBB0_5:
	movl	32(%r13), %eax
	incl	%eax
	movl	%eax, 32(%r13)
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.6:
	movl	$0, 32(%r13)
	movq	$0, 24(%r13)
LBB0_7:
	testl	%ebx, %ebx
	js	LBB0_11
## %bb.8:
	movq	_minstrel_mcs_groups@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_MCS_GROUP_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_IEEE80211_TX_CTL_RATE_CTRL_PROBE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r15)
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	$1, (%r15)
	movl	(%rax), %edi
	movl	%ebx, %eax
	cltd
	idivl	%edi
	movl	%edx, %ecx
	movq	_MINSTREL_CCK_GROUP@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_10
## %bb.9:
	movq	8(%r14), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movq	8(%r14), %rax
	movl	(%rax,%rdx,4), %eax
	movl	%eax, 4(%r15)
	movl	$0, 8(%r15)
	jmp	LBB0_11
LBB0_12:
	movq	_mac80211_minstrel@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%rbx, %rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_10:
	movl	%ebx, %eax
	cltd
	idivl	%r8d
	cltq
	movl	(%rsi,%rax,8), %edx
	decl	%edx
	imull	%edi, %edx
	addl	%ecx, %edx
	movl	%edx, 4(%r15)
	movq	_IEEE80211_TX_RC_MCS@GOTPCREL(%rip), %rcx
	movl	4(%rsi,%rax,8), %eax
	orl	(%rcx), %eax
	movl	%eax, 8(%r15)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_mac80211_minstrel,8,3          ## @mac80211_minstrel
	.comm	_ETH_P_PAE,4,2                  ## @ETH_P_PAE
	.comm	_minstrel_mcs_groups,8,3        ## @minstrel_mcs_groups
	.comm	_MCS_GROUP_RATES,4,2            ## @MCS_GROUP_RATES
	.comm	_IEEE80211_TX_CTL_RATE_CTRL_PROBE,4,2 ## @IEEE80211_TX_CTL_RATE_CTRL_PROBE
	.comm	_MINSTREL_CCK_GROUP,4,2         ## @MINSTREL_CCK_GROUP
	.comm	_IEEE80211_TX_RC_MCS,4,2        ## @IEEE80211_TX_RC_MCS
	.no_dead_strip	_minstrel_ht_get_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function minstrel_ht_get_rate
_minstrel_ht_get_rate:                  ; @minstrel_ht_get_rate
	.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	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
	ldr	x0, [x3]
	bl	_IEEE80211_SKB_CB
	mov	x20, x0
	ldr	x24, [x0, #8]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_rate_control_send_low
	cbz	x0, LBB0_2
LBB0_1:
	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
	ret
LBB0_2:
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_12
; %bb.3:
	add	x23, x21, #8
	ldr	w8, [x21, #36]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	ldr	w2, [x22, #8]
	mov	x0, x19
	mov	x1, x23
	bl	_minstrel_ht_check_cck_shortpreamble
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x22]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _ETH_P_PAE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_P_PAE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	cmp	x22, x0
	b.ne	LBB0_6
; %bb.5:
	mov	w22, #-1
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	mov	x1, x23
	bl	_minstrel_get_sample_rate
	mov	x22, x0
LBB0_7:
	ldr	w8, [x21, #32]
	add	w8, w8, #1
	str	w8, [x21, #32]
	cmn	w8, #1
	b.ne	LBB0_9
; %bb.8:
	str	wzr, [x21, #32]
	str	xzr, [x21, #24]
LBB0_9:
	tbnz	w22, #31, LBB0_1
; %bb.10:
Lloh3:
	adrp	x8, _minstrel_mcs_groups@GOTPAGE
Lloh4:
	ldr	x8, [x8, _minstrel_mcs_groups@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _MCS_GROUP_RATES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MCS_GROUP_RATES@GOTPAGEOFF]
	ldr	w10, [x9]
Lloh8:
	adrp	x11, _IEEE80211_TX_CTL_RATE_CTRL_PROBE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _IEEE80211_TX_CTL_RATE_CTRL_PROBE@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	ldr	w12, [x20]
	orr	w11, w12, w11
	str	w11, [x20]
	mov	w11, #1
	str	w11, [x24]
	ldr	w9, [x9]
	sdiv	w11, w22, w9
Lloh11:
	adrp	x12, _MINSTREL_CCK_GROUP@GOTPAGE
Lloh12:
	ldr	x12, [x12, _MINSTREL_CCK_GROUP@GOTPAGEOFF]
Lloh13:
	ldr	w12, [x12]
	cmp	w11, w12
	b.ne	LBB0_13
; %bb.11:
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	sdiv	w8, w22, w0
	msub	w8, w8, w0, w22
	ldr	x9, [x19, #8]
	ldr	w8, [x9, w8, uxtw #2]
	stp	w8, wzr, [x24, #4]
	b	LBB0_1
LBB0_12:
Lloh14:
	adrp	x8, _mac80211_minstrel@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mac80211_minstrel@GOTPAGEOFF]
Lloh16:
	ldr	x4, [x8]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	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
	br	x4
LBB0_13:
	sdiv	w10, w22, w10
	msub	w11, w11, w9, w22
	add	x8, x8, w10, sxtw #3
	ldp	w10, w8, [x8]
	sub	w10, w10, #1
	madd	w9, w10, w9, w11
Lloh17:
	adrp	x10, _IEEE80211_TX_RC_MCS@GOTPAGE
Lloh18:
	ldr	x10, [x10, _IEEE80211_TX_RC_MCS@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w8, w8, w10
	stp	w9, w8, [x24, #4]
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_mac80211_minstrel,8,3          ; @mac80211_minstrel
	.comm	_ETH_P_PAE,4,2                  ; @ETH_P_PAE
	.comm	_minstrel_mcs_groups,8,3        ; @minstrel_mcs_groups
	.comm	_MCS_GROUP_RATES,4,2            ; @MCS_GROUP_RATES
	.comm	_IEEE80211_TX_CTL_RATE_CTRL_PROBE,4,2 ; @IEEE80211_TX_CTL_RATE_CTRL_PROBE
	.comm	_MINSTREL_CCK_GROUP,4,2         ; @MINSTREL_CCK_GROUP
	.comm	_IEEE80211_TX_RC_MCS,4,2        ; @IEEE80211_TX_RC_MCS
	.no_dead_strip	_minstrel_ht_get_rate
.subsections_via_symbols
