	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_lcb_csr                   ## -- Begin function read_lcb_csr
	.p2align	4, 0x90
_read_lcb_csr:                          ## @read_lcb_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movq	(%rdi), %rax
	movl	(%rax), %eax
	movq	_HLS_UP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.7:
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_read_lcb_via_8051              ## TAILCALL
LBB0_1:
	movq	_HLS_GOING_UP@GOTPCREL(%rip), %rcx
	movq	_HLS_GOING_OFFLINE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_4
## %bb.2:
	movl	%esi, %edi
	movq	%rbx, %rsi
	callq	_read_lcb_cache
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	callq	_read_csr
	movl	%eax, (%rbx)
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HLS_UP,4,2                     ## @HLS_UP
	.comm	_HLS_GOING_UP,4,2               ## @HLS_GOING_UP
	.comm	_HLS_GOING_OFFLINE,4,2          ## @HLS_GOING_OFFLINE
	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_lcb_csr                   ; -- Begin function read_lcb_csr
	.p2align	2
_read_lcb_csr:                          ; @read_lcb_csr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _HLS_UP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HLS_UP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_read_lcb_via_8051
LBB0_2:
Lloh3:
	adrp	x9, _HLS_GOING_UP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HLS_GOING_UP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _HLS_GOING_OFFLINE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HLS_GOING_OFFLINE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x1
	mov	x1, x19
	bl	_read_lcb_cache
	cbz	x0, LBB0_6
; %bb.4:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	bl	_read_csr
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HLS_UP,4,2                     ; @HLS_UP
	.comm	_HLS_GOING_UP,4,2               ; @HLS_GOING_UP
	.comm	_HLS_GOING_OFFLINE,4,2          ; @HLS_GOING_OFFLINE
	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
