	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_rtsym_to_dest
_nfp_rtsym_to_dest:                     ## @nfp_rtsym_to_dest
	.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
	movl	%ecx, %r15d
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	movq	_NFP_RTSYM_TYPE_OBJECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%r9, %r14
	movl	%edx, %r12d
	movq	16(%rbp), %r13
	addl	8(%rbx), %r8d
	movl	%r8d, (%r13)
	movq	16(%rbx), %rax
	movq	_NFP_RTSYM_TARGET_EMU_CACHE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	callq	_nfp_cpp_mu_locality_lsb
	movl	%eax, %ecx
	movq	_NFP_MU_ADDR_ACCESS_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	%cl, %eax
	notl	%eax
	andl	(%r13), %eax
	movl	%eax, (%r13)
	movq	_NFP_MU_ADDR_ACCESS_TYPE_DIRECT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%eax, %edx
	movl	%edx, (%r13)
	movq	_NFP_CPP_TARGET_MU@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_5
LBB0_1:
	movl	28(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_nfp_err
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_7:
	testq	%rax, %rax
	js	LBB0_8
LBB0_5:
	movl	24(%rbx), %ecx
	movq	%rax, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_NFP_CPP_ISLAND_ID
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	28(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_nfp_err
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_RTSYM_TYPE_OBJECT,8,3      ## @NFP_RTSYM_TYPE_OBJECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rtsym '%s': direct access to non-object rtsym\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NFP_RTSYM_TARGET_EMU_CACHE,8,3 ## @NFP_RTSYM_TARGET_EMU_CACHE
	.comm	_NFP_MU_ADDR_ACCESS_TYPE_MASK,4,2 ## @NFP_MU_ADDR_ACCESS_TYPE_MASK
	.comm	_NFP_MU_ADDR_ACCESS_TYPE_DIRECT,4,2 ## @NFP_MU_ADDR_ACCESS_TYPE_DIRECT
	.comm	_NFP_CPP_TARGET_MU,8,3          ## @NFP_CPP_TARGET_MU
L_.str.1:                               ## @.str.1
	.asciz	"rtsym '%s': unhandled target encoding: %d\n"

	.no_dead_strip	_nfp_rtsym_to_dest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_rtsym_to_dest
_nfp_rtsym_to_dest:                     ; @nfp_rtsym_to_dest
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _NFP_RTSYM_TYPE_OBJECT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NFP_RTSYM_TYPE_OBJECT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x23, x6
	mov	x19, x5
	mov	x20, x3
	mov	x21, x2
	ldr	w8, [x22, #8]
	add	w8, w8, w4
	str	w8, [x6]
	ldr	x8, [x22, #16]
Lloh3:
	adrp	x9, _NFP_RTSYM_TARGET_EMU_CACHE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NFP_RTSYM_TARGET_EMU_CACHE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	bl	_nfp_cpp_mu_locality_lsb
Lloh6:
	adrp	x8, _NFP_MU_ADDR_ACCESS_TYPE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NFP_MU_ADDR_ACCESS_TYPE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w8, w8, w0
	ldr	w9, [x23]
	bic	w8, w9, w8
	str	w8, [x23]
Lloh9:
	adrp	x9, _NFP_MU_ADDR_ACCESS_TYPE_DIRECT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NFP_MU_ADDR_ACCESS_TYPE_DIRECT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w9, w9, w0
	orr	w8, w9, w8
	str	w8, [x23]
Lloh12:
	adrp	x8, _NFP_CPP_TARGET_MU@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NFP_CPP_TARGET_MU@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	b	LBB0_6
LBB0_3:
	ldr	w2, [x22, #28]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	bl	_nfp_err
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	tbnz	x8, #63, LBB0_8
LBB0_6:
	ldr	w3, [x22, #24]
	mov	x0, x8
	mov	x1, x21
	mov	x2, x20
	bl	_NFP_CPP_ISLAND_ID
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	ldr	w2, [x22, #28]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_RTSYM_TYPE_OBJECT,8,3      ; @NFP_RTSYM_TYPE_OBJECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rtsym '%s': direct access to non-object rtsym\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NFP_RTSYM_TARGET_EMU_CACHE,8,3 ; @NFP_RTSYM_TARGET_EMU_CACHE
	.comm	_NFP_MU_ADDR_ACCESS_TYPE_MASK,4,2 ; @NFP_MU_ADDR_ACCESS_TYPE_MASK
	.comm	_NFP_MU_ADDR_ACCESS_TYPE_DIRECT,4,2 ; @NFP_MU_ADDR_ACCESS_TYPE_DIRECT
	.comm	_NFP_CPP_TARGET_MU,8,3          ; @NFP_CPP_TARGET_MU
l_.str.1:                               ; @.str.1
	.asciz	"rtsym '%s': unhandled target encoding: %d\n"

	.no_dead_strip	_nfp_rtsym_to_dest
.subsections_via_symbols
