	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_validate_num_queues
_i40e_validate_num_queues:              ## @i40e_validate_num_queues
	.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
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.1:
	movq	%rcx, %r13
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %r14
	movl	$0, (%rcx)
	movl	(%rdx), %ecx
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.2:
	cmpl	%r15d, %ecx
	jge	LBB0_5
## %bb.3:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
LBB0_4:
	movl	%r15d, %edx
	jmp	LBB0_10
LBB0_5:
	jle	LBB0_7
## %bb.6:
	movl	%r15d, %edi
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_14
LBB0_7:
	movl	%r15d, %edi
	callq	_is_power_of_2
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movq	%r12, %rdi
	callq	_i40e_get_max_queues_for_channel
	cmpl	%r15d, %eax
	jle	LBB0_13
## %bb.9:
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
LBB0_10:
	callq	_dev_dbg
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	$1, (%r13)
	jmp	LBB0_12
LBB0_14:
	movq	(%r14), %rdi
	movl	(%r12), %ecx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: num_queues (%d) > vsi's current_size(%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error: num_queues (%d) < vsi's current_size(%d), but not power of 2\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error: num_queues (%d) < max queues configured for channel(%d)\n"

	.no_dead_strip	_i40e_validate_num_queues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_validate_num_queues
_i40e_validate_num_queues:              ; @i40e_validate_num_queues
	.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
	cbz	x3, LBB0_13
; %bb.1:
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	str	wzr, [x3]
	ldr	w3, [x2]
	cbz	w3, LBB0_6
; %bb.2:
	cmp	w3, w19
	b.ge	LBB0_4
; %bb.3:
	ldr	x0, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_4:
	b.le	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_is_power_of_2
	cbz	w0, LBB0_11
LBB0_6:
	mov	x0, x19
	bl	_is_power_of_2
	cbz	w0, LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_14
LBB0_8:
	mov	x0, x22
	bl	_i40e_get_max_queues_for_channel
	cmp	w0, w19
	b.le	LBB0_10
; %bb.9:
	mov	x3, x0
	ldr	x0, [x20]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_10:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_14
LBB0_11:
	ldr	x0, [x20]
	ldr	w3, [x22]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
	mov	x2, x19
	bl	_dev_dbg
LBB0_13:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: num_queues (%d) > vsi's current_size(%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error: num_queues (%d) < vsi's current_size(%d), but not power of 2\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error: num_queues (%d) < max queues configured for channel(%d)\n"

	.no_dead_strip	_i40e_validate_num_queues
.subsections_via_symbols
