	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpl115_spi_read
_mpl115_spi_read:                       ## @mpl115_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	callq	_to_spi_device
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_spi_get_drvdata
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$4, -40(%rbp)
	movq	8(%r15), %rax
	movq	%rax, -32(%rbp)
	movq	%rbx, %rdi
	callq	_MPL115_SPI_READ
	movq	8(%r15), %rcx
	movq	%rax, (%rcx)
	incq	%rbx
	movq	%rbx, %rdi
	callq	_MPL115_SPI_READ
	movq	8(%r15), %rcx
	movq	%rax, 16(%rcx)
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_spi_sync_transfer
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	(%r15), %rcx
	movl	4(%rcx), %eax
	shll	$8, %eax
	orl	12(%rcx), %eax
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mpl115_spi_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpl115_spi_read
_mpl115_spi_read:                       ; @mpl115_spi_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	bl	_to_spi_device
	mov	x21, x0
	bl	_spi_get_drvdata
	mov	x19, x0
	ldr	x8, [x0]
	str	x8, [sp, #8]
	mov	w8, #4
	str	w8, [sp, #16]
	ldr	x8, [x0, #8]
	str	x8, [sp, #24]
	mov	x0, x20
	bl	_MPL115_SPI_READ
	ldr	x8, [x19, #8]
	str	x0, [x8]
	add	x0, x20, #1
	bl	_MPL115_SPI_READ
	ldr	x8, [x19, #8]
	str	x0, [x8, #16]
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #1
	bl	_spi_sync_transfer
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	w9, [x8, #4]
	ldr	w8, [x8, #12]
	orr	w0, w8, w9, lsl #8
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mpl115_spi_read
.subsections_via_symbols
