	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_alloc_asq_bufs
_i40e_alloc_asq_bufs:                   ## @i40e_alloc_asq_bufs
	.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	%rdi, %r12
	leaq	8(%rdi), %r13
	movl	(%rdi), %edx
	shll	$2, %edx
	movq	%r13, %rsi
	callq	_i40e_allocate_virt_mem
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	8(%r12), %rsi
	movq	%rsi, 16(%r12)
	cmpl	$0, (%r12)
	jle	LBB0_2
## %bb.3:
	movq	_i40e_mem_asq_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	24(%r12), %ecx
	movq	_I40E_ADMINQ_DESC_ALIGNMENT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	movq	%r12, %rdi
	callq	_i40e_allocate_dma_mem
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	%rax, %r15
	xorl	%r14d, %r14d
	testl	%r14d, %r14d
	jne	LBB0_6
	jmp	LBB0_8
LBB0_2:
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_10:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	$4, %r13d
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	incq	%r14
	movslq	(%r12), %rax
	cmpq	%rax, %r14
	jge	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	16(%r12), %rsi
	addq	%r13, %rsi
	movq	_i40e_mem_asq_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	24(%r12), %ecx
	movl	(%rbx), %r8d
	movq	%r12, %rdi
	callq	_i40e_allocate_dma_mem
	addq	$4, %r13
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:
	movq	%rax, %r15
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	testl	%r14d, %r14d
	je	LBB0_8
LBB0_6:
	leaq	-4(,%r14,4), %rbx
	incq	%r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_i40e_free_dma_mem
	decq	%r14
	addq	$-4, %rbx
	cmpq	$1, %r14
	jg	LBB0_7
LBB0_8:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_i40e_free_virt_mem
LBB0_9:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i40e_mem_asq_buf,4,2           ## @i40e_mem_asq_buf
	.comm	_I40E_ADMINQ_DESC_ALIGNMENT,4,2 ## @I40E_ADMINQ_DESC_ALIGNMENT
	.no_dead_strip	_i40e_alloc_asq_bufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_alloc_asq_bufs
_i40e_alloc_asq_bufs:                   ; @i40e_alloc_asq_bufs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	mov	x20, x0
	ldr	w8, [x20], #8
	lsl	w2, w8, #2
	mov	x1, x20
	bl	_i40e_allocate_virt_mem
	mov	x21, x0
	cbnz	x0, LBB0_12
; %bb.1:
	ldr	x1, [x19, #8]
	str	x1, [x19, #16]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:
Lloh0:
	adrp	x23, _i40e_mem_asq_buf@GOTPAGE
Lloh1:
	ldr	x23, [x23, _i40e_mem_asq_buf@GOTPAGEOFF]
	ldr	w2, [x23]
	ldr	w3, [x19, #24]
Lloh2:
	adrp	x24, _I40E_ADMINQ_DESC_ALIGNMENT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _I40E_ADMINQ_DESC_ALIGNMENT@GOTPAGEOFF]
	ldr	w4, [x24]
	mov	x0, x19
	bl	_i40e_allocate_dma_mem
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
	mov	x22, #0
	cbnz	w22, LBB0_8
	b	LBB0_10
LBB0_4:
	mov	x22, #0
	mov	w25, #4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.ge	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #16]
	add	x1, x8, x25
	ldr	w2, [x23]
	ldr	w3, [x19, #24]
	ldr	w4, [x24]
	mov	x0, x19
	bl	_i40e_allocate_dma_mem
	add	x25, x25, #4
	cbz	x0, LBB0_5
; %bb.7:
	mov	x21, x0
	cbz	w22, LBB0_10
LBB0_8:
	add	x23, x22, #1
	lsl	x8, x22, #2
	sub	x22, x8, #4
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x1, x8, x22
	mov	x0, x19
	bl	_i40e_free_dma_mem
	sub	x23, x23, #1
	sub	x22, x22, #4
	cmp	x23, #1
	b.gt	LBB0_9
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_i40e_free_virt_mem
	b	LBB0_12
LBB0_11:
	mov	x21, #0
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_i40e_mem_asq_buf,4,2           ; @i40e_mem_asq_buf
	.comm	_I40E_ADMINQ_DESC_ALIGNMENT,4,2 ; @I40E_ADMINQ_DESC_ALIGNMENT
	.no_dead_strip	_i40e_alloc_asq_bufs
.subsections_via_symbols
