	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_alloc_q_vectors
_fm10k_alloc_q_vectors:                 ## @fm10k_alloc_q_vectors
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %r12d
	movl	4(%rdi), %r13d
	movl	8(%rdi), %r14d
	xorl	%eax, %eax
	testl	%r13d, %r13d
	je	LBB0_7
## %bb.1:
	leal	(%r14,%r13), %ecx
	cmpl	%ecx, %r12d
	jb	LBB0_7
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, (%rsp)
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_fm10k_alloc_q_vector
	testl	%eax, %eax
	jne	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	cmpl	%ebx, %r13d
	jne	LBB0_3
## %bb.5:
	movl	%r13d, %ecx
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	xorl	%ecx, %ecx
LBB0_8:
	movl	%r12d, %edx
	subl	%ecx, %edx
	jbe	LBB0_18
## %bb.9:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	leal	(%rcx,%r15), %ebx
	movl	%r13d, %edi
	movl	%edx, %r12d
	movl	%edx, %esi
	callq	_DIV_ROUND_UP
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_DIV_ROUND_UP
	movq	%r13, %r14
	movl	%eax, %r13d
	movl	%ebx, (%rsp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%eax, %ecx
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r8d
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movl	%r9d, %r15d
	callq	_fm10k_alloc_q_vector
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	subl	%r15d, %r14d
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	subl	%r13d, %ecx
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	incl	%r15d
	decl	%r12d
	movq	%r14, %r13
	movq	%rcx, %r14
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r12d, %edx
	jne	LBB0_10
## %bb.12:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_13:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_14:
	movq	%r15, %rdi
	callq	_fm10k_reset_num_queues
	testl	%ebx, %ebx
	je	LBB0_17
## %bb.15:
	decl	%ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_fm10k_free_q_vector
	addl	$-1, %ebx
	jb	LBB0_16
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_fm10k_alloc_q_vectors
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_alloc_q_vectors
_fm10k_alloc_q_vectors:                 ; @fm10k_alloc_q_vectors
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldp	w20, w21, [x0]
	ldr	w22, [x0, #8]
	add	w8, w22, w21
	cmp	w21, #0
	ccmp	w20, w8, #0, ne
	b.hs	LBB0_2
; %bb.1:
	mov	w28, #0
	subs	w24, w20, w28
	b.ls	LBB0_9
	b	LBB0_6
LBB0_2:
	mov	w23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	w3, #0
	mov	w4, #0
	mov	w5, #1
	mov	x6, x23
	bl	_fm10k_alloc_q_vector
	cbnz	w0, LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	cmp	w21, w23
	b.ne	LBB0_3
; %bb.5:
	mov	x28, x21
	mov	w21, #0
	subs	w24, w20, w28
	b.ls	LBB0_9
LBB0_6:
	mov	w25, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	w23, w28, w25
	mov	x0, x21
	mov	x1, x24
	bl	_DIV_ROUND_UP
	mov	x26, x0
	mov	x0, x22
	mov	x1, x24
	bl	_DIV_ROUND_UP
	mov	x27, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x27
	mov	x4, x25
	mov	x5, x26
	mov	x6, x23
	bl	_fm10k_alloc_q_vector
	cbnz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w21, w21, w26
	sub	w22, w22, w27
	add	w25, w25, #1
	subs	w24, w24, #1
	b.ne	LBB0_7
LBB0_9:
	mov	w0, #0
	b	LBB0_14
LBB0_10:
	mov	x0, x19
	bl	_fm10k_reset_num_queues
	cbz	w23, LBB0_13
; %bb.11:
	sub	w20, w23, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_fm10k_free_q_vector
	sub	w20, w20, #1
	cmn	w20, #1
	b.ne	LBB0_12
LBB0_13:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_fm10k_alloc_q_vectors
.subsections_via_symbols
