	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iavf_init_arq
_iavf_init_arq:                         ## @iavf_init_arq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpq	$0, 16(%rdi)
	jle	LBB0_2
## %bb.1:
	movq	_IAVF_ERR_NOT_READY@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_8
## %bb.3:
	cmpq	$0, 8(%rbx)
	je	LBB0_8
## %bb.4:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movq	%rbx, %rdi
	callq	_iavf_alloc_adminq_arq_ring
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	%rbx, %rdi
	callq	_iavf_alloc_arq_bufs
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_iavf_config_arq_regs
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_11
LBB0_7:
	movq	%rbx, %rdi
	callq	_iavf_free_adminq_arq
	jmp	LBB0_10
LBB0_8:
	movq	_IAVF_ERR_CONFIG@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movq	(%rbx), %rax
	movq	%rax, 16(%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IAVF_ERR_NOT_READY,4,2         ## @IAVF_ERR_NOT_READY
	.comm	_IAVF_ERR_CONFIG,4,2            ## @IAVF_ERR_CONFIG
	.no_dead_strip	_iavf_init_arq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iavf_init_arq
_iavf_init_arq:                         ; @iavf_init_arq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #16]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _IAVF_ERR_NOT_READY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IAVF_ERR_NOT_READY@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.4:
	stp	xzr, xzr, [x19, #24]
	mov	x0, x19
	bl	_iavf_alloc_adminq_arq_ring
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.5:
	mov	x0, x19
	bl	_iavf_alloc_arq_bufs
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_iavf_config_arq_regs
	mov	x20, x0
	cbz	w0, LBB0_11
LBB0_7:
	mov	x0, x19
	bl	_iavf_free_adminq_arq
	b	LBB0_10
LBB0_8:
Lloh2:
	adrp	x8, _IAVF_ERR_CONFIG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IAVF_ERR_CONFIG@GOTPAGEOFF]
LBB0_9:
	ldr	w20, [x8]
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	x8, [x19]
	str	x8, [x19, #16]
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_IAVF_ERR_NOT_READY,4,2         ; @IAVF_ERR_NOT_READY
	.comm	_IAVF_ERR_CONFIG,4,2            ; @IAVF_ERR_CONFIG
	.no_dead_strip	_iavf_init_arq
.subsections_via_symbols
