	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_net_open_alloc_all
_nfp_net_open_alloc_all:                ## @nfp_net_open_alloc_all
	.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, %r14
	movq	_NFP_NET_CFG_EXN@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	40(%rdi), %eax
	movl	44(%rdi), %ecx
	movq	_NFP_NET_IRQ_EXN_IDX@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r9
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdx
	movl	$4, %r8d
	callq	_nfp_net_aux_irq_request
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.1:
	movq	_NFP_NET_CFG_LSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r14), %eax
	movl	36(%r14), %ecx
	movq	_NFP_NET_IRQ_LSC_IDX@GOTPCREL(%rip), %r15
	movq	(%r15), %r9
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	$4, %r8d
	callq	_nfp_net_aux_irq_request
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_19
## %bb.2:
	movq	24(%r14), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_disable_irq
	leaq	16(%r14), %rbx
	cmpl	$0, 16(%r14)
	jle	LBB0_6
## %bb.3:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rsi
	addq	%r13, %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_nfp_net_prepare_vector
	testl	%eax, %eax
	jne	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movslq	(%rbx), %rax
	addq	$4, %r13
	cmpq	%rax, %r15
	jl	LBB0_4
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %r15
	movq	%rbx, %rsi
	callq	_nfp_net_rx_rings_prepare
	movl	%eax, %r12d
	testl	%eax, %eax
	movq	_NFP_NET_CFG_EXN@GOTPCREL(%rip), %rbx
	jne	LBB0_13
## %bb.7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_nfp_net_tx_rings_prepare
	testl	%eax, %eax
	je	LBB0_8
## %bb.12:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_nfp_net_rx_rings_free
LBB0_13:
	movq	%rbx, %r13
	movl	(%r15), %r15d
	testl	%r15d, %r15d
	jne	LBB0_16
	jmp	LBB0_18
LBB0_14:
	movl	%eax, %r12d
	movq	_NFP_NET_CFG_EXN@GOTPCREL(%rip), %r13
	testl	%r15d, %r15d
	je	LBB0_18
LBB0_16:
	movslq	%r15d, %rax
	leaq	-4(,%rax,4), %rbx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	callq	_nfp_net_cleanup_vector
	addq	$-4, %rbx
	decl	%r15d
	jne	LBB0_17
LBB0_18:
	movq	_NFP_NET_CFG_LSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NFP_NET_IRQ_LSC_IDX@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	callq	_nfp_net_aux_irq_free
	movq	_NFP_NET_IRQ_EXN_IDX@GOTPCREL(%rip), %rbx
LBB0_19:
	movl	(%r13), %esi
	movq	(%rbx), %rdx
	movq	%r14, %rdi
	callq	_nfp_net_aux_irq_free
LBB0_20:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	cmpl	$0, (%r14)
	jle	LBB0_9
## %bb.10:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rsi
	addq	%r13, %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_nfp_net_vector_assign_rings
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_11
	jmp	LBB0_20
LBB0_9:
	xorl	%r12d, %r12d
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_NET_CFG_EXN,4,2            ## @NFP_NET_CFG_EXN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s-exn"

	.comm	_NFP_NET_IRQ_EXN_IDX,8,3        ## @NFP_NET_IRQ_EXN_IDX
	.comm	_NFP_NET_CFG_LSC,4,2            ## @NFP_NET_CFG_LSC
L_.str.1:                               ## @.str.1
	.asciz	"%s-lsc"

	.comm	_NFP_NET_IRQ_LSC_IDX,8,3        ## @NFP_NET_IRQ_LSC_IDX
	.no_dead_strip	_nfp_net_open_alloc_all
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_net_open_alloc_all
_nfp_net_open_alloc_all:                ; @nfp_net_open_alloc_all
	.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
Lloh0:
	adrp	x23, _NFP_NET_CFG_EXN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NFP_NET_CFG_EXN@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x24, _NFP_NET_IRQ_EXN_IDX@GOTPAGE
Lloh3:
	ldr	x24, [x24, _NFP_NET_IRQ_EXN_IDX@GOTPAGEOFF]
	ldr	x5, [x24]
	ldp	w6, w3, [x0, #40]
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	mov	w4, #4
	bl	_nfp_net_aux_irq_request
	mov	x20, x0
	cbnz	w0, LBB0_15
; %bb.1:
Lloh6:
	adrp	x25, _NFP_NET_CFG_LSC@GOTPAGE
Lloh7:
	ldr	x25, [x25, _NFP_NET_CFG_LSC@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh8:
	adrp	x26, _NFP_NET_IRQ_LSC_IDX@GOTPAGE
Lloh9:
	ldr	x26, [x26, _NFP_NET_IRQ_LSC_IDX@GOTPAGEOFF]
	ldr	x5, [x26]
	ldp	w6, w3, [x19, #32]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w4, #4
	bl	_nfp_net_aux_irq_request
	mov	x20, x0
	cbnz	w0, LBB0_14
; %bb.2:
	ldr	x8, [x19, #24]
	ldr	x9, [x26]
	ldr	w0, [x8, x9, lsl #2]
	bl	_disable_irq
	mov	x21, x19
	ldr	w8, [x21, #16]!
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x27, #0
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, x27
	mov	x0, x19
	mov	x2, x22
	bl	_nfp_net_prepare_vector
	cbnz	w0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x21]
	add	x27, x27, #4
	cmp	x22, x8
	b.lt	LBB0_4
LBB0_6:
	mov	x0, x19
	mov	x1, x21
	bl	_nfp_net_rx_rings_prepare
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	bl	_nfp_net_tx_rings_prepare
	cbz	w0, LBB0_16
; %bb.8:
	mov	x20, x0
	mov	x0, x21
	bl	_nfp_net_rx_rings_free
LBB0_9:
	ldr	w22, [x21]
	cbnz	w22, LBB0_11
	b	LBB0_13
LBB0_10:
	mov	x20, x0
	cbz	w22, LBB0_13
LBB0_11:
	mov	x8, x22
	sbfiz	x8, x8, #2, #32
	sub	x21, x8, #4
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, x21
	mov	x0, x19
	bl	_nfp_net_cleanup_vector
	sub	x21, x21, #4
	sub	w22, w22, #1
	cbnz	w22, LBB0_12
LBB0_13:
	ldr	w1, [x25]
	ldr	x2, [x26]
	mov	x0, x19
	bl	_nfp_net_aux_irq_free
LBB0_14:
	ldr	w1, [x23]
	ldr	x2, [x24]
	mov	x0, x19
	bl	_nfp_net_aux_irq_free
LBB0_15:
	mov	x0, x20
	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
LBB0_16:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.17:
	mov	x23, #0
	mov	x22, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x1, x8, x23
	mov	x0, x21
	mov	x2, x22
	bl	_nfp_net_vector_assign_rings
	mov	w20, #0
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x23, x23, #4
	cmp	x22, x8
	b.lt	LBB0_18
	b	LBB0_15
LBB0_19:
	mov	w20, #0
	b	LBB0_15
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_NET_CFG_EXN,4,2            ; @NFP_NET_CFG_EXN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s-exn"

	.comm	_NFP_NET_IRQ_EXN_IDX,8,3        ; @NFP_NET_IRQ_EXN_IDX
	.comm	_NFP_NET_CFG_LSC,4,2            ; @NFP_NET_CFG_LSC
l_.str.1:                               ; @.str.1
	.asciz	"%s-lsc"

	.comm	_NFP_NET_IRQ_LSC_IDX,8,3        ; @NFP_NET_IRQ_LSC_IDX
	.no_dead_strip	_nfp_net_open_alloc_all
.subsections_via_symbols
