	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adc0832_adc_conversion
_adc0832_adc_conversion:                ## @adc0832_adc_conversion
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	24(%rdi), %rdi
	movdqu	(%r14), %xmm0
	movdqa	%xmm0, -48(%rbp)
	movl	$2, -32(%rbp)
	movl	16(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.1:
	incb	%cl
	movl	$1, %r9d
	movl	$1, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movq	%xmm0, %r8
	movl	%ebx, (%r8)
	xorl	%eax, %eax
	testl	%edx, %edx
	jne	LBB0_3
## %bb.2:
	movb	16(%r14), %cl
	shll	%cl, %r9d
	movl	%r9d, %eax
LBB0_3:
	orl	%ebx, %eax
	movl	%eax, (%r8)
	movl	%esi, %ecx
	shrl	$31, %ecx
	addl	%esi, %ecx
	movl	%ecx, %edx
	shrl	%edx
	andl	$-2, %ecx
	subl	%ecx, %esi
	movb	16(%r14), %cl
	decb	%cl
	shll	%cl, %esi
	orl	%eax, %esi
	movl	%esi, (%r8)
	orl	%esi, %edx
	cmpl	$2, 16(%r14)
	cmovll	%esi, %edx
	addl	%edx, %edx
	movl	%edx, (%r8)
	leaq	-48(%rbp), %rsi
	movl	$1, %edx
	callq	_spi_sync_transfer
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	8(%r14), %rax
	movl	4(%rax), %eax
LBB0_5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_adc0831_adc_conversion         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_adc0832_adc_conversion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adc0832_adc_conversion
_adc0832_adc_conversion:                ; @adc0832_adc_conversion
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #24]
	ldp	x8, x9, [x19]
	stp	x8, x9, [sp, #8]
	mov	w9, #2
	str	w9, [sp, #24]
	ldr	w9, [x19, #16]
	cbz	w9, LBB0_3
; %bb.1:
	add	w9, w9, #1
	mov	w10, #1
	lsl	w9, w10, w9
	str	w9, [x8]
	cbz	w2, LBB0_4
; %bb.2:
	mov	w10, #0
	b	LBB0_5
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_adc0831_adc_conversion
LBB0_4:
	ldr	w11, [x19, #16]
	lsl	w10, w10, w11
LBB0_5:
	orr	w9, w10, w9
	str	w9, [x8]
	cmp	w1, #0
	cinc	w10, w1, lt
	and	w11, w10, #0xfffffffe
	sub	w11, w1, w11
	ldr	w12, [x19, #16]
	sub	w12, w12, #1
	lsl	w11, w11, w12
	orr	w9, w11, w9
	str	w9, [x8]
	ldr	w11, [x19, #16]
	orr	w10, w9, w10, asr #1
	cmp	w11, #1
	csel	w9, w10, w9, gt
	lsl	w9, w9, #1
	str	w9, [x8]
	add	x1, sp, #8
	mov	w2, #1
	bl	_spi_sync_transfer
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_adc0832_adc_conversion
.subsections_via_symbols
