	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ads8344_adc_conversion
_ads8344_adc_conversion:                ## @ads8344_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
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	_ADS8344_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	4(%rdi), %rbx
	movl	%eax, 4(%rdi)
	testl	%edx, %edx
	jne	LBB0_2
## %bb.1:
	movq	_ADS8344_SINGLE_END@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
LBB0_2:
	movl	%esi, %edi
	callq	_ADS8344_CHANNEL
	orl	(%rbx), %eax
	movq	_ADS8344_CLOCK_INTERNAL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_spi_write
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	$9, %edi
	callq	_udelay
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$2, %edx
	callq	_spi_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	(%r15), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADS8344_START,4,2              ## @ADS8344_START
	.comm	_ADS8344_SINGLE_END,4,2         ## @ADS8344_SINGLE_END
	.comm	_ADS8344_CLOCK_INTERNAL,4,2     ## @ADS8344_CLOCK_INTERNAL
	.no_dead_strip	_ads8344_adc_conversion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ads8344_adc_conversion
_ads8344_adc_conversion:                ; @ads8344_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	x19, x0
Lloh0:
	adrp	x8, _ADS8344_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADS8344_START@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x21, x0
	str	w8, [x21, #4]!
	ldur	x20, [x21, #4]
	cbnz	w2, LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _ADS8344_SINGLE_END@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADS8344_SINGLE_END@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_2:
	mov	x0, x1
	bl	_ADS8344_CHANNEL
	ldr	w8, [x21]
	orr	w8, w8, w0
Lloh6:
	adrp	x9, _ADS8344_CLOCK_INTERNAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ADS8344_CLOCK_INTERNAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x21]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	_spi_write
	cbnz	w0, LBB0_5
; %bb.3:
	mov	w0, #9
	bl	_udelay
	mov	x0, x20
	mov	x1, x19
	mov	w2, #2
	bl	_spi_read
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x19]
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ADS8344_START,4,2              ; @ADS8344_START
	.comm	_ADS8344_SINGLE_END,4,2         ; @ADS8344_SINGLE_END
	.comm	_ADS8344_CLOCK_INTERNAL,4,2     ; @ADS8344_CLOCK_INTERNAL
	.no_dead_strip	_ads8344_adc_conversion
.subsections_via_symbols
