	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_pf_rtsym_read_optional     ## -- Begin function nfp_pf_rtsym_read_optional
	.p2align	4, 0x90
_nfp_pf_rtsym_read_optional:            ## @nfp_pf_rtsym_read_optional
	.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
	subq	$288, %rsp                      ## imm = 0x120
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	$0, -308(%rbp)
	movl	(%rdi), %edi
	callq	_nfp_cppcore_pcie_unit
	leaq	-304(%rbp), %r12
	movq	%r12, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_snprintf
	movl	4(%rbx), %edi
	leaq	-308(%rbp), %rdx
	movq	%r12, %rsi
	callq	_nfp_rtsym_read_le
	movl	-308(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.2:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	addl	(%rax), %ecx
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-304(%rbp), %rdx
	callq	_nfp_err
	movl	-308(%rbp), %r14d
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %r14d
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movl	%r14d, %eax
	addq	$288, %rsp                      ## imm = 0x120
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to read symbol %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_pf_rtsym_read_optional     ; -- Begin function nfp_pf_rtsym_read_optional
	.p2align	2
_nfp_pf_rtsym_read_optional:            ; @nfp_pf_rtsym_read_optional
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	wzr, [sp, #4]
	ldr	w0, [x0]
	bl	_nfp_cppcore_pcie_unit
	mov	x3, x0
	add	x0, sp, #8
	mov	w1, #256
	mov	x2, x21
	bl	_snprintf
	ldr	w0, [x20, #4]
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_nfp_rtsym_read_le
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _ENOENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmn	w8, w9
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_nfp_err
	ldr	w19, [sp, #4]
	b	LBB0_4
LBB0_3:
	mov	x19, x0
LBB0_4:
	ldur	x8, [x29, #-40]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to read symbol %s\n"

.subsections_via_symbols
