	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_cr
_read_cr:                               ## @read_cr
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpq	$0, 24(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_SPINOR_OP_RDCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_SPI_MEM_OP_CMD
	movl	%eax, %r15d
	movq	_SPI_MEM_OP_NO_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_SPI_MEM_OP_NO_DUMMY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	(%r14), %rsi
	movl	$1, %edi
	movl	$1, %edx
	callq	_SPI_MEM_OP_DATA_IN
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_SPI_MEM_OP
	movl	%eax, -40(%rbp)
	movq	24(%r14), %rdi
	leaq	-40(%rbp), %rsi
	callq	_spi_mem_exec_op
	jmp	LBB0_3
LBB0_2:
	movq	_SPINOR_OP_RDCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	*8(%r14)
LBB0_3:
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	(%r14), %rax
	movl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	movl	16(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPINOR_OP_RDCR,4,2             ## @SPINOR_OP_RDCR
	.comm	_SPI_MEM_OP_NO_ADDR,4,2         ## @SPI_MEM_OP_NO_ADDR
	.comm	_SPI_MEM_OP_NO_DUMMY,4,2        ## @SPI_MEM_OP_NO_DUMMY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error %d reading CR\n"

	.no_dead_strip	_read_cr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_cr
_read_cr:                               ; @read_cr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _SPINOR_OP_RDCR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPINOR_OP_RDCR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_SPI_MEM_OP_CMD
	mov	x20, x0
Lloh3:
	adrp	x8, _SPI_MEM_OP_NO_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPI_MEM_OP_NO_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
Lloh6:
	adrp	x8, _SPI_MEM_OP_NO_DUMMY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPI_MEM_OP_NO_DUMMY@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	ldr	x1, [x19]
	mov	w0, #1
	mov	w2, #1
	bl	_SPI_MEM_OP_DATA_IN
	mov	x3, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_SPI_MEM_OP
	str	w0, [sp, #8]
	ldr	x0, [x19, #24]
	add	x1, sp, #8
	bl	_spi_mem_exec_op
	mov	x20, x0
	tbnz	w0, #31, LBB0_4
LBB0_2:
	ldr	x8, [x19]
	ldr	w20, [x8]
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _SPINOR_OP_RDCR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SPINOR_OP_RDCR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldp	x2, x8, [x19]
	mov	x0, x19
	mov	w3, #1
	blr	x8
	mov	x20, x0
	tbz	w0, #31, LBB0_2
LBB0_4:
	ldr	w0, [x19, #16]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SPINOR_OP_RDCR,4,2             ; @SPINOR_OP_RDCR
	.comm	_SPI_MEM_OP_NO_ADDR,4,2         ; @SPI_MEM_OP_NO_ADDR
	.comm	_SPI_MEM_OP_NO_DUMMY,4,2        ; @SPI_MEM_OP_NO_DUMMY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error %d reading CR\n"

	.no_dead_strip	_read_cr
.subsections_via_symbols
