	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spi_reg_read
_spi_reg_read:                          ## @spi_reg_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rdi
	movq	_READ_CMD@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_spi_w8r16
	movl	%eax, %ecx
	sarl	$8, %ecx
	testl	%eax, %eax
	cmovnsl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_READ_CMD,4,2                   ## @READ_CMD
	.no_dead_strip	_spi_reg_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spi_reg_read
_spi_reg_read:                          ; @spi_reg_read
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x0, [x0]
Lloh0:
	adrp	x8, _READ_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _READ_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w1, w8, w1
	bl	_spi_w8r16
	asr	w8, w0, #8
	cmp	w0, #0
	csel	w0, w0, w8, lt
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_READ_CMD,4,2                   ; @READ_CMD
	.no_dead_strip	_spi_reg_read
.subsections_via_symbols
