	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_validate_mqprio_qopt
_i40e_validate_mqprio_qopt:             ## @i40e_validate_mqprio_qopt
	.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	8(%rsi), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %r15
	movl	16(%rsi), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.2:
	movq	_I40E_MAX_TRAFFIC_CLASS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_13
## %bb.3:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	24(%r15), %rax
	xorl	%ebx, %ebx
	movq	_I40E_BW_MBPS_DIVISOR@GOTPCREL(%rip), %r14
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	32(%r15), %rax
	cmpq	$0, (%rax,%rbx,8)
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rax
	movq	(%rax,%rbx,8), %r13
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_do_div
	addq	%r13, %r12
	movslq	16(%r15), %rax
	decq	%rax
	cmpq	%rax, %rbx
	jge	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r15), %rcx
	movq	24(%r15), %rax
	movq	(%rax,%rbx,8), %rdx
	addq	(%rcx,%rbx,8), %rdx
	leaq	1(%rbx), %rsi
	cmpq	%rdx, 8(%rcx,%rbx,8)
	movq	%rsi, %rbx
	je	LBB0_4
	jmp	LBB0_13
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_12
LBB0_9:
	movq	8(%r15), %rax
	movq	24(%r15), %rcx
	movq	(%rcx,%rbx,8), %rcx
	addq	(%rax,%rbx,8), %rcx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rcx, (%rbx)
	jl	LBB0_13
## %bb.10:
	movq	%rbx, %rdi
	callq	_i40e_get_link_speed
	movq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %r12
	jle	LBB0_14
## %bb.11:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_12:
	callq	_dev_err
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_MAX_TRAFFIC_CLASS,4,2     ## @I40E_MAX_TRAFFIC_CLASS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid min tx rate (greater than 0) specified\n"

	.comm	_I40E_BW_MBPS_DIVISOR,4,2       ## @I40E_BW_MBPS_DIVISOR
L_.str.1:                               ## @.str.1
	.asciz	"Invalid max tx rate specified\n"

	.no_dead_strip	_i40e_validate_mqprio_qopt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_validate_mqprio_qopt
_i40e_validate_mqprio_qopt:             ; @i40e_validate_mqprio_qopt
	.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
	ldr	x8, [x1, #8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_12
; %bb.1:
	mov	x20, x1
	ldr	w8, [x1, #16]
Lloh0:
	adrp	x9, _I40E_MAX_TRAFFIC_CLASS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I40E_MAX_TRAFFIC_CLASS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, #1
	ccmp	w8, w9, #0, ge
	b.gt	LBB0_12
; %bb.2:
	mov	x19, x0
	mov	x24, #0
	mov	x22, #0
	ldr	x8, [x20, #24]
Lloh3:
	adrp	x23, _I40E_BW_MBPS_DIVISOR@GOTPAGE
Lloh4:
	ldr	x23, [x23, _I40E_BW_MBPS_DIVISOR@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8, x24, lsl #3]
	cbz	x8, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #32]
	ldr	x8, [x8, x24, lsl #3]
	cbnz	x8, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	ldr	x21, [x8, x24, lsl #3]
	ldr	w1, [x23]
	mov	x0, x21
	bl	_do_div
	add	x22, x21, x22
	ldrsw	x8, [x20, #16]
	sub	x8, x8, #1
	cmp	x24, x8
	b.ge	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #8]
	lsl	x9, x24, #3
	add	x24, x24, #1
	add	x8, x8, x9
	ldp	x11, x10, [x8]
	ldr	x8, [x20, #24]
	ldr	x9, [x8, x9]
	add	x9, x9, x11
	cmp	x10, x9
	b.eq	LBB0_3
	b	LBB0_12
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_8:
	ldr	x8, [x20, #8]
	lsl	x9, x24, #3
	ldr	x8, [x8, x9]
	ldr	x10, [x19]
	ldr	x11, [x20, #24]
	ldr	x9, [x11, x9]
	add	x8, x9, x8
	cmp	x10, x8
	b.lt	LBB0_12
; %bb.9:
	mov	x0, x19
	bl	_i40e_get_link_speed
	cmp	x22, x0
	b.le	LBB0_14
; %bb.10:
	ldr	x8, [x19, #8]
	ldr	x0, [x8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	bl	_dev_err
LBB0_12:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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_14:
	mov	w0, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_MAX_TRAFFIC_CLASS,4,2     ; @I40E_MAX_TRAFFIC_CLASS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid min tx rate (greater than 0) specified\n"

	.comm	_I40E_BW_MBPS_DIVISOR,4,2       ; @I40E_BW_MBPS_DIVISOR
l_.str.1:                               ; @.str.1
	.asciz	"Invalid max tx rate specified\n"

	.no_dead_strip	_i40e_validate_mqprio_qopt
.subsections_via_symbols
