	.file	"extr_ti-ads8344.c_ads8344_adc_conversion.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ads8344_adc_conversion, @function
ads8344_adc_conversion:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	edi, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR ADS8344_START[rip]
	mov	rbp, QWORD PTR 8[rbx]
	mov	DWORD PTR 4[rbx], eax
	test	edx, edx
	jne	.L2
	or	eax, DWORD PTR ADS8344_SINGLE_END[rip]
	mov	DWORD PTR 4[rbx], eax
.L2:
	call	ADS8344_CHANNEL@PLT
	lea	rsi, 4[rbx]
	mov	edx, 1
	mov	rdi, rbp
	mov	r8d, eax
	mov	eax, DWORD PTR 4[rbx]
	or	eax, DWORD PTR ADS8344_CLOCK_INTERNAL[rip]
	or	eax, r8d
	mov	DWORD PTR 4[rbx], eax
	call	spi_write@PLT
	test	eax, eax
	je	.L6
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, 9
	call	udelay@PLT
	mov	edx, 2
	mov	rsi, rbx
	mov	rdi, rbp
	call	spi_read@PLT
	test	eax, eax
	jne	.L1
	mov	eax, DWORD PTR [rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ads8344_adc_conversion, .-ads8344_adc_conversion
	.comm	ADS8344_START,4,4
	.comm	ADS8344_SINGLE_END,4,4
	.comm	ADS8344_CLOCK_INTERNAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ti-ads8344.c_ads8344_adc_conversion.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ads8344_adc_conversion, %function
ads8344_adc_conversion:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	cmp	r2, #0
	ldreq	r2, .L6
	ldr	r3, .L6+4
	ldreq	r2, [r2]
	ldr	r3, [r3]
	mov	r0, r1
	str	r3, [r4, #4]
	orreq	r3, r2, r3
	streq	r3, [r4, #4]
	ldr	r5, [r4, #8]
	bl	ADS8344_CHANNEL
	mov	r1, r4
	ldr	r2, .L6+8
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	orr	r3, r3, r2
	orr	r3, r3, r0
	mov	r2, #1
	mov	r0, r5
	str	r3, [r1, #4]!
	bl	spi_write
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
	mov	r0, #9
	bl	udelay
	mov	r0, r5
	mov	r2, #2
	mov	r1, r4
	bl	spi_read
	cmp	r0, #0
	ldreq	r0, [r4]
	pop	{r4, r5, r6, pc}
.L7:
	.align	2
.L6:
	.word	ADS8344_SINGLE_END
	.word	ADS8344_START
	.word	ADS8344_CLOCK_INTERNAL
	.size	ads8344_adc_conversion, .-ads8344_adc_conversion
	.comm	ADS8344_START,4,4
	.comm	ADS8344_SINGLE_END,4,4
	.comm	ADS8344_CLOCK_INTERNAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
