	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function minstrel_ht_get_stats
_minstrel_ht_get_stats:                 ## @minstrel_ht_get_stats
	.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
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	_IEEE80211_TX_RC_MCS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_minstrel_ht_get_group_idx
	movl	%eax, %ecx
	movl	4(%r15), %eax
	movq	_MCS_GROUP_RATES@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	movslq	%ecx, %r13
	jmp	LBB0_6
LBB0_2:
	movq	%rdi, %r12
	movq	_MINSTREL_CCK_GROUP@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	movq	(%rdi), %rdi
	callq	_ARRAY_SIZE
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %eax
	movq	(%r12), %rdi
	cmpl	(%rdi,%rbx,4), %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_5:
	movq	(%r14), %rax
	movq	%r13, %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %r15d
	movl	%ebx, %edi
	callq	_BIT
	leal	4(%rbx), %edx
	testl	%r15d, %eax
	cmovnel	%ebx, %edx
LBB0_6:
	movq	(%r14), %rcx
	shlq	$4, %r13
	movslq	%edx, %rax
	shlq	$2, %rax
	addq	8(%rcx,%r13), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_TX_RC_MCS,4,2        ## @IEEE80211_TX_RC_MCS
	.comm	_MCS_GROUP_RATES,4,2            ## @MCS_GROUP_RATES
	.comm	_MINSTREL_CCK_GROUP,4,2         ## @MINSTREL_CCK_GROUP
	.no_dead_strip	_minstrel_ht_get_stats
.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_stats
_minstrel_ht_get_stats:                 ; @minstrel_ht_get_stats
	.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	x20, x2
	mov	x19, x1
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _IEEE80211_TX_RC_MCS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_TX_RC_MCS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_minstrel_ht_get_group_idx
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x20, #4]
Lloh3:
	adrp	x9, _MCS_GROUP_RATES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MCS_GROUP_RATES@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	sxtw	x23, w0
	b	LBB0_8
LBB0_2:
	mov	x22, x0
Lloh6:
	adrp	x8, _MINSTREL_CCK_GROUP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MINSTREL_CCK_GROUP@GOTPAGEOFF]
Lloh8:
	ldrsw	x23, [x8]
	ldr	x0, [x0]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #4]
	ldr	x0, [x22]
	ldr	w9, [x0, x21, lsl #2]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.lt	LBB0_4
	b	LBB0_7
LBB0_6:
	mov	w21, #0
LBB0_7:
	ldr	x8, [x19]
	lsl	x9, x23, #4
	ldr	w20, [x8, x9]
	mov	x0, x21
	bl	_BIT
	add	w8, w21, #4
	tst	w0, w20
	csel	w8, w8, w21, eq
LBB0_8:
	ldr	x9, [x19]
	add	x9, x9, x23, lsl #4
	ldr	x9, [x9, #8]
	add	x0, x9, w8, sxtw #2
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_TX_RC_MCS,4,2        ; @IEEE80211_TX_RC_MCS
	.comm	_MCS_GROUP_RATES,4,2            ; @MCS_GROUP_RATES
	.comm	_MINSTREL_CCK_GROUP,4,2         ; @MINSTREL_CCK_GROUP
	.no_dead_strip	_minstrel_ht_get_stats
.subsections_via_symbols
