	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_port_get_phys_port_name    ## -- Begin function nfp_port_get_phys_port_name
	.p2align	4, 0x90
_nfp_port_get_phys_port_name:           ## @nfp_port_get_phys_port_name
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_nfp_port_from_netdev
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rax), %ecx
	cmpl	$128, %ecx
	je	LBB0_18
## %bb.3:
	cmpl	$130, %ecx
	je	LBB0_15
## %bb.4:
	cmpl	$129, %ecx
	jne	LBB0_1
## %bb.5:
	movq	%rax, %rdi
	callq	___nfp_port_get_eth_port
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	cmpl	$0, 8(%rax)
	movl	(%rax), %ecx
	je	LBB0_7
## %bb.9:
	movl	4(%rax), %r8d
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_10
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_18:
	movl	4(%rax), %ecx
	movl	12(%rax), %r8d
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_10
LBB0_15:
	cmpl	$0, 16(%rax)
	movl	4(%rax), %ecx
	je	LBB0_16
## %bb.17:
	movl	8(%rax), %r8d
	leaq	L_.str.3(%rip), %rdx
LBB0_10:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_11
LBB0_16:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rdx
LBB0_8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_snprintf
LBB0_11:
	movslq	%eax, %rcx
	xorl	%eax, %eax
	cmpq	%r14, %rcx
	jb	LBB0_14
## %bb.12:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_13:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"p%d"

L_.str.1:                               ## @.str.1
	.asciz	"p%ds%d"

L_.str.2:                               ## @.str.2
	.asciz	"pf%d"

L_.str.3:                               ## @.str.3
	.asciz	"pf%ds%d"

L_.str.4:                               ## @.str.4
	.asciz	"pf%dvf%d"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_port_get_phys_port_name    ; -- Begin function nfp_port_get_phys_port_name
	.p2align	2
_nfp_port_get_phys_port_name:           ; @nfp_port_get_phys_port_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	bl	_nfp_port_from_netdev
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.2:
	cmp	w8, #130
	b.eq	LBB0_9
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_7
; %bb.4:
	bl	___nfp_port_get_eth_port
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w8, [x0, #8]
	ldr	w3, [x0]
	cbz	w8, LBB0_12
; %bb.6:
	ldr	w8, [x0, #4]
	str	x8, [sp]
Lloh0:
	adrp	x2, l_.str.1@PAGE
Lloh1:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_7:
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_16
LBB0_8:
	ldr	w3, [x0, #4]
	ldr	w8, [x0, #12]
	str	x8, [sp]
Lloh4:
	adrp	x2, l_.str.4@PAGE
Lloh5:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_9:
	ldr	w8, [x0, #16]
	ldr	w3, [x0, #4]
	cbz	w8, LBB0_11
; %bb.10:
	ldr	w8, [x0, #8]
	str	x8, [sp]
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_11:
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	bl	_snprintf
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x19
	b.hs	LBB0_15
; %bb.14:
	mov	w0, #0
	b	LBB0_17
LBB0_15:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"p%d"

l_.str.1:                               ; @.str.1
	.asciz	"p%ds%d"

l_.str.2:                               ; @.str.2
	.asciz	"pf%d"

l_.str.3:                               ; @.str.3
	.asciz	"pf%ds%d"

l_.str.4:                               ; @.str.4
	.asciz	"pf%dvf%d"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
