	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mc13xxx_spi_read
_mc13xxx_spi_read:                      ## @mc13xxx_spi_read
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movb	(%rsi), %al
	movb	%al, -36(%rbp)
	movw	$0, -35(%rbp)
	movb	$0, -33(%rbp)
	callq	_to_spi_device
	movq	%rax, %r15
	leaq	-36(%rbp), %rax
	movq	%rax, -72(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, -64(%rbp)
	movl	$4, -56(%rbp)
	cmpq	$1, %rbx
	jne	LBB0_2
## %bb.1:
	cmpq	$3, %r12
	jne	LBB0_2
## %bb.3:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_spi_message_init
	leaq	-72(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_spi_sync
	movl	%eax, %ebx
	leaq	-39(%rbp), %rsi
	movq	%r14, %rdi
	movl	$3, %edx
	callq	_memcpy
	jmp	LBB0_4
LBB0_2:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_mc13xxx_spi_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mc13xxx_spi_read
_mc13xxx_spi_read:                      ; @mc13xxx_spi_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x4
	mov	x19, x3
	mov	x22, x2
	ldrb	w8, [x1]
	sturb	w8, [x29, #-36]
	sturh	wzr, [x29, #-35]
	sturb	wzr, [x29, #-33]
	bl	_to_spi_device
	sub	x8, x29, #36
	add	x9, sp, #40
	stp	x8, x9, [sp, #16]
	mov	w8, #4
	str	w8, [sp, #32]
	cmp	x22, #1
	b.ne	LBB0_3
; %bb.1:
	cmp	x21, #3
	b.ne	LBB0_3
; %bb.2:
	mov	x20, x0
	add	x0, sp, #8
	bl	_spi_message_init
	add	x0, sp, #16
	add	x1, sp, #8
	bl	_spi_message_add_tail
	add	x1, sp, #8
	mov	x0, x20
	bl	_spi_sync
	mov	x20, x0
	add	x8, sp, #40
	add	x1, x8, #1
	mov	x0, x19
	mov	w2, #3
	bl	_memcpy
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_mc13xxx_spi_read
.subsections_via_symbols
