	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpaa_alloc_all_fqs
_dpaa_alloc_all_fqs:                    ## @dpaa_alloc_all_fqs
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	_FQ_TYPE_RX_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$1, %edx
	movq	%r13, %rcx
	callq	_dpaa_fq_alloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, 32(%rbx)
	movq	_FQ_TYPE_RX_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movq	%r13, %rcx
	callq	_dpaa_fq_alloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	movq	%rax, 24(%rbx)
	movq	_DPAA_ETH_PCD_RXQ_NUM@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	addl	%esi, %esi
	leaq	-48(%rbp), %rdi
	callq	_qman_alloc_fqid_range
	testq	%rax, %rax
	je	LBB0_3
LBB0_14:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi
	movl	(%r14), %esi
	callq	_ALIGN
	movq	%rax, %r15
	movq	-48(%rbp), %rbx
	cmpq	%rax, %rbx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jge	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_qman_release_fqid
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_4
## %bb.5:
	movq	-48(%rbp), %rbx
LBB0_6:
	movslq	(%r14), %rdx
	movq	%r15, %r13
	addq	%rdx, %r13
	leaq	(%rbx,%rdx,2), %rax
	cmpq	%rax, %r13
	jge	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_qman_release_fqid
	incq	%r13
	movslq	(%r14), %rdx
	leaq	(%rdx,%rdx), %rax
	addq	-48(%rbp), %rax
	cmpq	%rax, %r13
	jl	LBB0_7
LBB0_9:
	movq	_FQ_TYPE_RX_PCD@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%r15, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_dpaa_fq_alloc
	testq	%rax, %rax
	movl	$0, %r15d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_14
## %bb.10:
	movq	%rax, 16(%r14)
	movq	_DPAA_ETH_TXQ_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FQ_TYPE_TX_CONF_MQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r13, %rcx
	callq	_dpaa_fq_alloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	movq	_FQ_TYPE_TX_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movq	%r13, %rcx
	callq	_dpaa_fq_alloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%rax, 8(%r14)
	movq	_FQ_TYPE_TX_CONFIRM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	movq	%r13, %rcx
	callq	_dpaa_fq_alloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rax, (%r14)
	movq	_DPAA_ETH_TXQ_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FQ_TYPE_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%r13, %rcx
	callq	_dpaa_fq_alloc
	testq	%rax, %rax
	jne	LBB0_15
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_FQ_TYPE_RX_ERROR,4,2           ## @FQ_TYPE_RX_ERROR
	.comm	_FQ_TYPE_RX_DEFAULT,4,2         ## @FQ_TYPE_RX_DEFAULT
	.comm	_DPAA_ETH_PCD_RXQ_NUM,4,2       ## @DPAA_ETH_PCD_RXQ_NUM
	.comm	_FQ_TYPE_RX_PCD,4,2             ## @FQ_TYPE_RX_PCD
	.comm	_DPAA_ETH_TXQ_NUM,4,2           ## @DPAA_ETH_TXQ_NUM
	.comm	_FQ_TYPE_TX_CONF_MQ,4,2         ## @FQ_TYPE_TX_CONF_MQ
	.comm	_FQ_TYPE_TX_ERROR,4,2           ## @FQ_TYPE_TX_ERROR
	.comm	_FQ_TYPE_TX_CONFIRM,4,2         ## @FQ_TYPE_TX_CONFIRM
	.comm	_FQ_TYPE_TX,4,2                 ## @FQ_TYPE_TX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dpaa_fq_alloc() failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_dpaa_alloc_all_fqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpaa_alloc_all_fqs
_dpaa_alloc_all_fqs:                    ; @dpaa_alloc_all_fqs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _FQ_TYPE_RX_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FQ_TYPE_RX_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	mov	x1, #0
	mov	w2, #1
	mov	x3, x20
	bl	_dpaa_fq_alloc
	cbz	x0, LBB0_3
; %bb.1:
	str	x0, [x21, #32]
Lloh3:
	adrp	x8, _FQ_TYPE_RX_DEFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FQ_TYPE_RX_DEFAULT@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #1
	mov	x3, x20
	bl	_dpaa_fq_alloc
	cbz	x0, LBB0_3
; %bb.2:
	str	x0, [x21, #24]
Lloh6:
	adrp	x24, _DPAA_ETH_PCD_RXQ_NUM@GOTPAGE
Lloh7:
	ldr	x24, [x24, _DPAA_ETH_PCD_RXQ_NUM@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	w1, w8, #1
	add	x0, sp, #8
	bl	_qman_alloc_fqid_range
	cbz	x0, LBB0_5
LBB0_3:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	add	sp, sp, #80
	ret
LBB0_5:
	ldr	x0, [sp, #8]
	ldr	w1, [x24]
	bl	_ALIGN
	mov	x22, x0
	ldr	x23, [sp, #8]
	cmp	x23, x0
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_qman_release_fqid
	add	x23, x23, #1
	cmp	x22, x23
	b.ne	LBB0_6
; %bb.7:
	ldr	x23, [sp, #8]
LBB0_8:
	ldrsw	x2, [x24]
	add	x8, x23, x2, lsl #1
	add	x23, x22, x2
	cmp	x23, x8
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_qman_release_fqid
	add	x23, x23, #1
	ldr	x8, [sp, #8]
	ldrsw	x2, [x24]
	add	x8, x8, x2, lsl #1
	cmp	x23, x8
	b.lt	LBB0_9
; %bb.10:
                                        ; kill: def $w2 killed $w2 killed $x2 def $x2
LBB0_11:
Lloh13:
	adrp	x8, _FQ_TYPE_RX_PCD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FQ_TYPE_RX_PCD@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x20
	bl	_dpaa_fq_alloc
	cbz	x0, LBB0_3
; %bb.12:
	str	x0, [x21, #16]
Lloh16:
	adrp	x22, _DPAA_ETH_TXQ_NUM@GOTPAGE
Lloh17:
	ldr	x22, [x22, _DPAA_ETH_TXQ_NUM@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh18:
	adrp	x8, _FQ_TYPE_TX_CONF_MQ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FQ_TYPE_TX_CONF_MQ@GOTPAGEOFF]
Lloh20:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	x3, x20
	bl	_dpaa_fq_alloc
	cbz	x0, LBB0_3
; %bb.13:
Lloh21:
	adrp	x8, _FQ_TYPE_TX_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FQ_TYPE_TX_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #1
	mov	x3, x20
	bl	_dpaa_fq_alloc
	cbz	x0, LBB0_3
; %bb.14:
	str	x0, [x21, #8]
Lloh24:
	adrp	x8, _FQ_TYPE_TX_CONFIRM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FQ_TYPE_TX_CONFIRM@GOTPAGEOFF]
Lloh26:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	w2, #1
	mov	x3, x20
	bl	_dpaa_fq_alloc
	cbz	x0, LBB0_3
; %bb.15:
	str	x0, [x21]
	ldr	w2, [x22]
Lloh27:
	adrp	x8, _FQ_TYPE_TX@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FQ_TYPE_TX@GOTPAGEOFF]
Lloh29:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	x3, x20
	bl	_dpaa_fq_alloc
	cbz	x0, LBB0_3
; %bb.16:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_FQ_TYPE_RX_ERROR,4,2           ; @FQ_TYPE_RX_ERROR
	.comm	_FQ_TYPE_RX_DEFAULT,4,2         ; @FQ_TYPE_RX_DEFAULT
	.comm	_DPAA_ETH_PCD_RXQ_NUM,4,2       ; @DPAA_ETH_PCD_RXQ_NUM
	.comm	_FQ_TYPE_RX_PCD,4,2             ; @FQ_TYPE_RX_PCD
	.comm	_DPAA_ETH_TXQ_NUM,4,2           ; @DPAA_ETH_TXQ_NUM
	.comm	_FQ_TYPE_TX_CONF_MQ,4,2         ; @FQ_TYPE_TX_CONF_MQ
	.comm	_FQ_TYPE_TX_ERROR,4,2           ; @FQ_TYPE_TX_ERROR
	.comm	_FQ_TYPE_TX_CONFIRM,4,2         ; @FQ_TYPE_TX_CONFIRM
	.comm	_FQ_TYPE_TX,4,2                 ; @FQ_TYPE_TX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dpaa_fq_alloc() failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_dpaa_alloc_all_fqs
.subsections_via_symbols
