	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spi_rw
_spi_rw:                                ## @spi_rw
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movq	%rsi, -72(%rbp)
	movq	%rdx, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	%rsi, -48(%rbp)
	leaq	-40(%rbp), %r15
	movq	%r15, %rdi
	callq	_spi_message_init
	leaq	-72(%rbp), %rdi
	movq	%r15, %rsi
	callq	_spi_message_add_tail
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_spi_sync
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	subl	-32(%rbp), %ebx
	orq	-40(%rbp), %rax
	cmovnel	%edx, %ebx
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_spi_rw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spi_rw
_spi_rw:                                ; @spi_rw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x0
	stp	x1, x2, [sp, #16]
	stp	xzr, x1, [sp, #32]
	mov	x0, sp
	bl	_spi_message_init
	add	x0, sp, #16
	mov	x1, sp
	bl	_spi_message_add_tail
	mov	x1, sp
	mov	x0, x20
	bl	_spi_sync
	ldr	x8, [sp]
	orr	x8, x0, x8
Lloh0:
	adrp	x9, _EINVAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [sp, #8]
	sub	w10, w19, w10
	cmp	x8, #0
	csneg	w0, w10, w9, eq
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_spi_rw
.subsections_via_symbols
