	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxd2880_spi_device_write_read
_cxd2880_spi_device_write_read:         ## @cxd2880_spi_device_write_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	testl	%r8d, %r8d
	je	LBB0_6
## %bb.2:
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.3:
	testl	%edx, %edx
	je	LBB0_6
## %bb.4:
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movl	(%rax), %edi
	callq	_spi_write_then_read
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	js	LBB0_8
## %bb.10:
	popq	%rbp
	retq
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_8:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_cxd2880_spi_device_write_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxd2880_spi_device_write_read
_cxd2880_spi_device_write_read:         ; @cxd2880_spi_device_write_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
	cbz	x0, LBB0_8
; %bb.1:
	cbz	w4, LBB0_8
; %bb.2:
	cbz	x3, LBB0_8
; %bb.3:
	cbz	w2, LBB0_8
; %bb.4:
	cbz	x1, LBB0_8
; %bb.5:
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	w0, [x8]
	bl	_spi_write_then_read
	tbnz	w0, #31, LBB0_10
; %bb.7:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_cxd2880_spi_device_write_read
.subsections_via_symbols
