	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_read_indirect_csr
_nfp_read_indirect_csr:                 ## @nfp_read_indirect_csr
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, -64(%rbp)
	movl	%edx, -56(%rbp)
	movl	%ecx, %edi
	callq	_nfp_get_ind_csr_ctx_ptr_offs
	movl	%eax, %r13d
	movq	_NFP_IND_ME_REFL_WR_SIG_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	shrq	$32, %rdx
	movl	%r14d, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%r15d, %ecx
	callq	_NFP_CPP_ISLAND_ID
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_nfp_cpp_writel
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	16(%rbp), %r14
	leaq	-64(%rbp), %rdi
	callq	_nfp_get_numeric_cpp_id
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	movq	%r14, %r13
	movq	%r14, %rcx
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r8d
	callq	_nfp_cpp_read
	cmpl	%r14d, %eax
	jne	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movq	%r13, %rcx
	movl	%r14d, %r8d
	callq	_nfp_cpp_read
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	%r14d, %ecx
	jne	LBB0_4
	jmp	LBB0_5
LBB0_2:
	movl	%eax, %ecx
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	testl	%ecx, %ecx
	cmovsl	%ecx, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_IND_ME_REFL_WR_SIG_INIT,4,2 ## @NFP_IND_ME_REFL_WR_SIG_INIT
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_nfp_read_indirect_csr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_read_indirect_csr
_nfp_read_indirect_csr:                 ; @nfp_read_indirect_csr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x6
	mov	x24, x5
	mov	x19, x4
	mov	x21, x3
	mov	x25, x2
	mov	x26, x1
	mov	x22, x0
	str	x1, [sp]
	str	w25, [sp, #8]
	mov	x0, x3
	bl	_nfp_get_ind_csr_ctx_ptr_offs
	mov	x23, x0
Lloh0:
	adrp	x8, _NFP_IND_ME_REFL_WR_SIG_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_IND_ME_REFL_WR_SIG_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	lsr	x2, x26, #32
	mov	x0, x25
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x26
	bl	_NFP_CPP_ISLAND_ID
	mov	x1, x0
	mov	x0, x22
	mov	x2, x23
	mov	x3, x24
	bl	_nfp_cpp_writel
	cbnz	w0, LBB0_5
; %bb.1:
	mov	x0, sp
	bl	_nfp_get_numeric_cpp_id
	mov	x24, x0
	mov	x0, x22
	mov	x1, x24
	mov	x2, x23
	mov	x3, x20
	mov	x4, x19
	bl	_nfp_cpp_read
	cmp	w0, w19
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x22
	mov	x1, x24
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_nfp_cpp_read
	cmp	w0, w19
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, w0, w8, lt
LBB0_5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_IND_ME_REFL_WR_SIG_INIT,4,2 ; @NFP_IND_ME_REFL_WR_SIG_INIT
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_nfp_read_indirect_csr
.subsections_via_symbols
