	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_iov_configure_tc_pf
_fm10k_iov_configure_tc_pf:             ## @fm10k_iov_configure_tc_pf
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	%rsi, 8(%rdi)
	jle	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	cmpl	$128, %ecx
	jne	LBB0_3
## %bb.4:
	movq	_FM10K_TC_RATE_INTERVAL_4US_GEN2@GOTPCREL(%rip), %rax
	cmpl	$129, %ecx
	je	LBB0_6
	jmp	LBB0_7
LBB0_3:
	movq	_FM10K_TC_RATE_INTERVAL_4US_GEN3@GOTPCREL(%rip), %rax
	cmpl	$129, %ecx
	jne	LBB0_7
LBB0_6:
	movq	_FM10K_TC_RATE_INTERVAL_4US_GEN1@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r15d
	testl	%edx, %edx
	je	LBB0_8
## %bb.9:
	movq	_FM10K_VF_TC_MAX@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jl	LBB0_1
## %bb.10:
	movq	_FM10K_VF_TC_MIN@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jg	LBB0_1
## %bb.11:
	movl	%edx, %eax
	shll	$7, %eax
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	addl	%ecx, %eax
	cmpl	$3999, %edx                     ## imm = 0xF9F
	jg	LBB0_13
## %bb.12:
	addl	%r15d, %r15d
	jmp	LBB0_14
LBB0_1:
	movq	_FM10K_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_15
LBB0_8:
	movq	_FM10K_TC_RATE_QUANTA_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_14
LBB0_13:
	sarl	%eax
LBB0_14:
	orl	%eax, %r15d
	movq	%r14, %rdi
	callq	_FM10K_TC_RATE
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_fm10k_write_reg
	movq	%r14, %rdi
	callq	_FM10K_TC_MAXCREDIT
	movq	_FM10K_TC_MAXCREDIT_64K@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_fm10k_write_reg
	movq	%r14, %rdi
	callq	_FM10K_TC_CREDIT
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_fm10k_write_reg
	xorl	%eax, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FM10K_TC_RATE_INTERVAL_4US_GEN3,4,2 ## @FM10K_TC_RATE_INTERVAL_4US_GEN3
	.comm	_FM10K_TC_RATE_QUANTA_MASK,4,2  ## @FM10K_TC_RATE_QUANTA_MASK
	.comm	_FM10K_ERR_PARAM,4,2            ## @FM10K_ERR_PARAM
	.comm	_FM10K_TC_RATE_INTERVAL_4US_GEN1,4,2 ## @FM10K_TC_RATE_INTERVAL_4US_GEN1
	.comm	_FM10K_TC_RATE_INTERVAL_4US_GEN2,4,2 ## @FM10K_TC_RATE_INTERVAL_4US_GEN2
	.comm	_FM10K_VF_TC_MAX,4,2            ## @FM10K_VF_TC_MAX
	.comm	_FM10K_VF_TC_MIN,4,2            ## @FM10K_VF_TC_MIN
	.comm	_FM10K_TC_MAXCREDIT_64K,4,2     ## @FM10K_TC_MAXCREDIT_64K
	.no_dead_strip	_fm10k_iov_configure_tc_pf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_iov_configure_tc_pf
_fm10k_iov_configure_tc_pf:             ; @fm10k_iov_configure_tc_pf
	.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
	ldr	x8, [x0, #8]
	cmp	x8, x1
	b.le	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _FM10K_TC_RATE_INTERVAL_4US_GEN1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FM10K_TC_RATE_INTERVAL_4US_GEN1@GOTPAGEOFF]
Lloh2:
	adrp	x9, _FM10K_TC_RATE_INTERVAL_4US_GEN2@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FM10K_TC_RATE_INTERVAL_4US_GEN2@GOTPAGEOFF]
Lloh4:
	adrp	x10, _FM10K_TC_RATE_INTERVAL_4US_GEN3@GOTPAGE
Lloh5:
	ldr	x10, [x10, _FM10K_TC_RATE_INTERVAL_4US_GEN3@GOTPAGEOFF]
	ldr	w11, [x0]
	cmp	w11, #128
	csel	x9, x9, x10, eq
	cmp	w11, #129
	csel	x8, x8, x9, eq
	ldr	w21, [x8]
	cbz	w2, LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _FM10K_VF_TC_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FM10K_VF_TC_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _FM10K_VF_TC_MIN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FM10K_VF_TC_MIN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w2
	ccmp	w9, w2, #0, ge
	b.le	LBB0_5
LBB0_3:
Lloh12:
	adrp	x8, _FM10K_ERR_PARAM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FM10K_ERR_PARAM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	b	LBB0_7
LBB0_4:
Lloh15:
	adrp	x8, _FM10K_TC_RATE_QUANTA_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FM10K_TC_RATE_QUANTA_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	b	LBB0_6
LBB0_5:
	lsl	w8, w2, #7
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w8, w8, w9
	asr	w9, w8, #1
	lsl	w10, w21, #1
	cmp	w2, #3999
	csel	w21, w21, w10, gt
	csel	w22, w9, w8, gt
LBB0_6:
	mov	x0, x20
	bl	_FM10K_TC_RATE
	mov	x1, x0
	orr	w2, w22, w21
	mov	x0, x19
	bl	_fm10k_write_reg
	mov	x0, x20
	bl	_FM10K_TC_MAXCREDIT
	mov	x1, x0
Lloh18:
	adrp	x21, _FM10K_TC_MAXCREDIT_64K@GOTPAGE
Lloh19:
	ldr	x21, [x21, _FM10K_TC_MAXCREDIT_64K@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_fm10k_write_reg
	mov	x0, x20
	bl	_FM10K_TC_CREDIT
	mov	x1, x0
	ldr	w2, [x21]
	mov	x0, x19
	bl	_fm10k_write_reg
	mov	w0, #0
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_FM10K_TC_RATE_INTERVAL_4US_GEN3,4,2 ; @FM10K_TC_RATE_INTERVAL_4US_GEN3
	.comm	_FM10K_TC_RATE_QUANTA_MASK,4,2  ; @FM10K_TC_RATE_QUANTA_MASK
	.comm	_FM10K_ERR_PARAM,4,2            ; @FM10K_ERR_PARAM
	.comm	_FM10K_TC_RATE_INTERVAL_4US_GEN1,4,2 ; @FM10K_TC_RATE_INTERVAL_4US_GEN1
	.comm	_FM10K_TC_RATE_INTERVAL_4US_GEN2,4,2 ; @FM10K_TC_RATE_INTERVAL_4US_GEN2
	.comm	_FM10K_VF_TC_MAX,4,2            ; @FM10K_VF_TC_MAX
	.comm	_FM10K_VF_TC_MIN,4,2            ; @FM10K_VF_TC_MIN
	.comm	_FM10K_TC_MAXCREDIT_64K,4,2     ; @FM10K_TC_MAXCREDIT_64K
	.no_dead_strip	_fm10k_iov_configure_tc_pf
.subsections_via_symbols
