	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_app_nic_vnic_init_phy_port ## -- Begin function nfp_app_nic_vnic_init_phy_port
	.p2align	4, 0x90
_nfp_app_nic_vnic_init_phy_port:        ## @nfp_app_nic_vnic_init_phy_port
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movl	%ecx, %r14d
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_NFP_PORT_PHYS_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rdx), %edx
	movq	%r15, %rdi
	callq	_nfp_port_alloc
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%rbx), %rdx
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	%rdx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_3:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%r14d, %ecx
	callq	_nfp_port_init_phy_port
	movq	(%rbx), %rdi
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r14d
	callq	_nfp_port_free
	jmp	LBB0_6
LBB0_5:
	movq	(%rdi), %rax
	movq	_NFP_PORT_INVALID@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	sete	%r14b
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_PORT_PHYS_PORT,4,2         ## @NFP_PORT_PHYS_PORT
	.comm	_NFP_PORT_INVALID,8,3           ## @NFP_PORT_INVALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_app_nic_vnic_init_phy_port ; -- Begin function nfp_app_nic_vnic_init_phy_port
	.p2align	2
_nfp_app_nic_vnic_init_phy_port:        ; @nfp_app_nic_vnic_init_phy_port
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _NFP_PORT_PHYS_PORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_PORT_PHYS_PORT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x2, #8]
	mov	x0, x21
	bl	_nfp_port_alloc
	str	x0, [x19]
	bl	_IS_ERR
	ldr	x2, [x19]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x2
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
	mov	w20, #0
	b	LBB0_7
LBB0_4:
	mov	x0, x22
	mov	x1, x21
	mov	x3, x20
	bl	_nfp_port_init_phy_port
	mov	x20, x0
	ldr	x0, [x19]
	cbz	w20, LBB0_6
; %bb.5:
	bl	_nfp_port_free
	b	LBB0_7
LBB0_6:
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _NFP_PORT_INVALID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NFP_PORT_INVALID@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w20, eq
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_PORT_PHYS_PORT,4,2         ; @NFP_PORT_PHYS_PORT
	.comm	_NFP_PORT_INVALID,8,3           ; @NFP_PORT_INVALID
.subsections_via_symbols
