	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_ctrl_open                  ## -- Begin function nfp_ctrl_open
	.p2align	4, 0x90
_nfp_ctrl_open:                         ## @nfp_ctrl_open
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	%r15, %rdi
	callq	_nfp_net_open_alloc_all
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	%r15, %rdi
	callq	_nfp_net_set_config_and_enable
	testl	%eax, %eax
	je	LBB0_2
## %bb.6:
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_nfp_net_close_free_all
	jmp	LBB0_7
LBB0_2:
	cmpl	$0, 8(%r15)
	jle	LBB0_3
## %bb.4:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_enable_irq
	incq	%rbx
	movslq	8(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
	jmp	LBB0_7
LBB0_3:
	xorl	%r14d, %r14d
LBB0_7:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_ctrl_open                  ; -- Begin function nfp_ctrl_open
	.p2align	2
_nfp_ctrl_open:                         ; @nfp_ctrl_open
	.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
	mov	x19, x0
	bl	_rtnl_lock
	mov	x0, x19
	bl	_nfp_net_open_alloc_all
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.1:
	mov	x0, x19
	bl	_nfp_net_set_config_and_enable
	cbz	w0, LBB0_3
; %bb.2:
	mov	x20, x0
	mov	x0, x19
	bl	_nfp_net_close_free_all
	b	LBB0_7
LBB0_3:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x20, lsl #2]
	bl	_enable_irq
	add	x20, x20, #1
	ldrsw	x8, [x19, #8]
	cmp	x20, x8
	b.lt	LBB0_5
LBB0_6:
	mov	w20, #0
LBB0_7:
	bl	_rtnl_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
