	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function minstrel_ht_calc_tp
_minstrel_ht_calc_tp:                   ## @minstrel_ht_calc_tp
	.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	%esi, %ebx
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movslq	%esi, %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %r15
	movslq	%edx, %r12
	movl	(%r15,%r12,8), %r13d
	movl	$1, %edi
	movl	$10, %esi
	callq	_MINSTREL_FRAC
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %r13d
	jb	LBB0_7
## %bb.1:
	movl	$9, %edi
	movl	$10, %esi
	callq	_MINSTREL_FRAC
	cmpl	%eax, %r13d
	jbe	LBB0_3
## %bb.2:
	movl	$9, %edi
	movl	$10, %esi
	callq	_MINSTREL_FRAC
LBB0_3:
	movq	_MINSTREL_CCK_GROUP@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_5
## %bb.4:
	xorl	%ecx, %ecx
	jmp	LBB0_6
LBB0_5:
	imull	$1000, (%r14), %ebx             ## imm = 0x3E8
	movl	4(%r14), %edi
	callq	_MINSTREL_TRUNC
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ecx
LBB0_6:
	movq	_minstrel_mcs_groups@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rax,%rdx,8), %rax
	addl	(%rax,%r12,8), %ecx
	imull	$1000, (%r15,%r12,8), %eax      ## imm = 0x3E8
	xorl	%edx, %edx
	divl	%ecx
	imull	$1000000, %eax, %edi            ## imm = 0xF4240
	callq	_MINSTREL_TRUNC
LBB0_7:
	movl	%eax, 4(%r15,%r12,8)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MINSTREL_CCK_GROUP,4,2         ## @MINSTREL_CCK_GROUP
	.comm	_minstrel_mcs_groups,8,3        ## @minstrel_mcs_groups
	.no_dead_strip	_minstrel_ht_calc_tp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function minstrel_ht_calc_tp
_minstrel_ht_calc_tp:                   ; @minstrel_ht_calc_tp
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8, w1, sxtw #3]
	sxtw	x22, w2
	add	x23, x21, w2, sxtw #3
	ldr	w24, [x23]
	mov	w0, #1
	mov	w1, #10
	bl	_MINSTREL_FRAC
	cmp	w24, w0
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_8
LBB0_2:
	mov	w0, #9
	mov	w1, #10
	bl	_MINSTREL_FRAC
	cmp	w24, w0
	b.ls	LBB0_4
; %bb.3:
	mov	w0, #9
	mov	w1, #10
	bl	_MINSTREL_FRAC
LBB0_4:
	sxtw	x24, w20
Lloh0:
	adrp	x8, _MINSTREL_CCK_GROUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MINSTREL_CCK_GROUP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.5:
	mov	x8, #0
	b	LBB0_7
LBB0_6:
	mov	w8, #1000
	ldp	w9, w0, [x19]
	mul	w19, w9, w8
	bl	_MINSTREL_TRUNC
	sdiv	w8, w19, w0
LBB0_7:
Lloh3:
	adrp	x9, _minstrel_mcs_groups@GOTPAGE
Lloh4:
	ldr	x9, [x9, _minstrel_mcs_groups@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x9, [x9, x24, lsl #3]
	ldr	x9, [x9, x22, lsl #3]
	add	w8, w9, w8
	ldr	w9, [x23]
	mov	w10, #1000
	mul	w9, w9, w10
	udiv	w8, w9, w8
	mov	w9, #16960
	movk	w9, #15, lsl #16
	mul	w0, w8, w9
	bl	_MINSTREL_TRUNC
LBB0_8:
	add	x8, x21, x22, lsl #3
	str	w0, [x8, #4]
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_MINSTREL_CCK_GROUP,4,2         ; @MINSTREL_CCK_GROUP
	.comm	_minstrel_mcs_groups,8,3        ; @minstrel_mcs_groups
	.no_dead_strip	_minstrel_ht_calc_tp
.subsections_via_symbols
