	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function repaper_read_val
_repaper_read_val:                      ## @repaper_read_val
	.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	%rdi, %rbx
	movl	%esi, -16(%rbp)
	leaq	-16(%rbp), %rdx
	movl	$112, %esi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_repaper_spi_transfer
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	leaq	-12(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$115, %esi
	xorl	%edx, %edx
	movl	$1, %r8d
	callq	_repaper_spi_transfer
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movl	-12(%rbp), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_repaper_read_val
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function repaper_read_val
_repaper_read_val:                      ; @repaper_read_val
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	w1, [sp, #12]
	add	x2, sp, #12
	mov	w1, #112
	mov	x3, #0
	mov	w4, #1
	bl	_repaper_spi_transfer
	cbnz	w0, LBB0_2
; %bb.1:
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #115
	mov	x2, #0
	mov	w4, #1
	bl	_repaper_spi_transfer
	ldr	w8, [sp, #8]
	cmp	w0, #0
	csel	w0, w8, w0, eq
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_repaper_read_val
.subsections_via_symbols
