	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adc128_adc_conversion
_adc128_adc_conversion:                 ## @adc128_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	shll	$3, %ebx
	movq	(%r15), %rax
	movl	%ebx, (%rax)
	movl	$0, 4(%rax)
	movl	12(%r15), %edi
	movq	%r15, %rsi
	movl	$2, %edx
	callq	_spi_write
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	12(%r15), %edi
	movq	%r15, %rsi
	movl	$2, %edx
	callq	_spi_read
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.3:
	movq	(%r15), %rax
	movl	(%rax), %ebx
	shll	$8, %ebx
	orl	4(%rax), %ebx
	andl	$4095, %ebx                     ## imm = 0xFFF
	jmp	LBB0_4
LBB0_1:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_adc128_adc_conversion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adc128_adc_conversion
_adc128_adc_conversion:                 ; @adc128_adc_conversion
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_mutex_lock
	lsl	w8, w21, #3
	ldr	x9, [x19]
	stp	w8, wzr, [x9]
	ldr	w0, [x19, #12]
	mov	x1, x19
	mov	w2, #2
	bl	_spi_write
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w0, [x19, #12]
	mov	x1, x19
	mov	w2, #2
	bl	_spi_read
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_unlock
	tbnz	w21, #31, LBB0_4
; %bb.2:
	ldr	x8, [x19]
	ldp	w9, w8, [x8]
	orr	w8, w8, w9, lsl #8
	and	w21, w8, #0xfff
	b	LBB0_4
LBB0_3:
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_unlock
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_adc128_adc_conversion
.subsections_via_symbols
