	.file	"extr_ti_adc.c_ti_adc_disable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ti_adc_disable, @function
ti_adc_disable:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	call	TI_ADC_LOCK_ASSERT@PLT
	cmp	QWORD PTR [rbx], 0
	jne	.L12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	esi, DWORD PTR ADC_STEPENABLE[rip]
	xor	edx, edx
	mov	rdi, rbx
	call	ADC_WRITE4@PLT
	mov	esi, DWORD PTR ADC_CTRL[rip]
	mov	rdi, rbx
	call	ADC_READ4@PLT
	mov	edx, DWORD PTR ADC_CTRL_ENABLE[rip]
	mov	esi, DWORD PTR ADC_CTRL[rip]
	mov	rdi, rbx
	not	edx
	and	edx, eax
	call	ADC_WRITE4@PLT
	mov	esi, DWORD PTR ADC_IRQENABLE_CLR[rip]
	mov	rdi, rbx
	mov	edx, DWORD PTR ADC_IRQ_FIFO0_THRES[rip]
	or	edx, DWORD PTR ADC_IRQ_FIFO1_THRES[rip]
	or	edx, DWORD PTR ADC_IRQ_END_OF_SEQ[rip]
	call	ADC_WRITE4@PLT
	mov	esi, DWORD PTR ADC_IRQSTATUS[rip]
	mov	rdi, rbx
	call	ADC_READ4@PLT
	mov	esi, DWORD PTR ADC_IRQSTATUS[rip]
	mov	rdi, rbx
	mov	edx, eax
	call	ADC_WRITE4@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L13:
	mov	esi, DWORD PTR ADC_FIFO0DATA[rip]
	mov	rdi, rbx
	call	ADC_READ4@PLT
.L10:
	mov	esi, DWORD PTR ADC_FIFO0COUNT[rip]
	mov	rdi, rbx
	call	ADC_READ4@PLT
	test	DWORD PTR ADC_FIFO_COUNT_MSK[rip], eax
	jg	.L13
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	mov	esi, DWORD PTR ADC_FIFO1DATA[rip]
	mov	rdi, rbx
	call	ADC_READ4@PLT
.L3:
	mov	esi, DWORD PTR ADC_FIFO1COUNT[rip]
	mov	rdi, rbx
	call	ADC_READ4@PLT
	test	DWORD PTR ADC_FIFO_COUNT_MSK[rip], eax
	jg	.L14
	mov	QWORD PTR [rbx], 0
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ti_adc_disable, .-ti_adc_disable
	.comm	ADC_STEPENABLE,4,4
	.comm	ADC_IRQ_FIFO1_THRES,4,4
	.comm	ADC_IRQ_FIFO0_THRES,4,4
	.comm	ADC_IRQ_END_OF_SEQ,4,4
	.comm	ADC_IRQSTATUS,4,4
	.comm	ADC_IRQENABLE_CLR,4,4
	.comm	ADC_FIFO_COUNT_MSK,4,4
	.comm	ADC_FIFO1DATA,4,4
	.comm	ADC_FIFO1COUNT,4,4
	.comm	ADC_FIFO0DATA,4,4
	.comm	ADC_FIFO0COUNT,4,4
	.comm	ADC_CTRL_ENABLE,4,4
	.comm	ADC_CTRL,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_adc.c_ti_adc_disable.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ti_adc_disable, %function
ti_adc_disable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bl	TI_ADC_LOCK_ASSERT
	ldr	r3, [r4]
	cmp	r3, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L14
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	ADC_WRITE4
	ldr	r3, .L14+4
	mov	r0, r4
	ldr	r5, [r3]
	ldr	r6, .L14+8
	mov	r1, r5
	bl	ADC_READ4
	mov	r3, r0
	ldr	r2, .L14+12
	mov	r1, r5
	ldr	r2, [r2]
	mov	r0, r4
	bic	r2, r3, r2
	bl	ADC_WRITE4
	ldr	r1, .L14+16
	ldr	r3, .L14+20
	ldr	r2, .L14+24
	ldr	r0, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L14+28
	orr	r3, r3, r0
	orr	r2, r3, r2
	ldr	r1, [r1]
	mov	r0, r4
	bl	ADC_WRITE4
	ldr	r3, .L14+32
	mov	r0, r4
	ldr	r7, [r3]
	ldr	r5, .L14+36
	mov	r1, r7
	bl	ADC_READ4
	mov	r1, r7
	mov	r2, r0
	mov	r0, r4
	bl	ADC_WRITE4
	mov	r0, r4
	ldr	r1, [r6]
	bl	ADC_READ4
	ldr	r3, [r5]
	and	r0, r0, r3
	cmp	r0, #0
	ble	.L3
	ldr	r7, .L14+40
.L4:
	ldr	r1, [r7]
	mov	r0, r4
	bl	ADC_READ4
	mov	r0, r4
	ldr	r1, [r6]
	bl	ADC_READ4
	ldr	r3, [r5]
	and	r0, r0, r3
	cmp	r0, #0
	bgt	.L4
.L3:
	ldr	r6, .L14+44
	mov	r0, r4
	ldr	r1, [r6]
	bl	ADC_READ4
	ldr	r3, [r5]
	and	r0, r0, r3
	cmp	r0, #0
	ble	.L5
	ldr	r7, .L14+48
.L6:
	ldr	r1, [r7]
	mov	r0, r4
	bl	ADC_READ4
	mov	r0, r4
	ldr	r1, [r6]
	bl	ADC_READ4
	ldr	r3, [r5]
	and	r0, r0, r3
	cmp	r0, #0
	bgt	.L6
.L5:
	mov	r3, #0
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	ADC_STEPENABLE
	.word	ADC_CTRL
	.word	ADC_FIFO0COUNT
	.word	ADC_CTRL_ENABLE
	.word	ADC_IRQ_FIFO1_THRES
	.word	ADC_IRQ_FIFO0_THRES
	.word	ADC_IRQ_END_OF_SEQ
	.word	ADC_IRQENABLE_CLR
	.word	ADC_IRQSTATUS
	.word	ADC_FIFO_COUNT_MSK
	.word	ADC_FIFO0DATA
	.word	ADC_FIFO1COUNT
	.word	ADC_FIFO1DATA
	.size	ti_adc_disable, .-ti_adc_disable
	.comm	ADC_STEPENABLE,4,4
	.comm	ADC_IRQ_FIFO1_THRES,4,4
	.comm	ADC_IRQ_FIFO0_THRES,4,4
	.comm	ADC_IRQ_END_OF_SEQ,4,4
	.comm	ADC_IRQSTATUS,4,4
	.comm	ADC_IRQENABLE_CLR,4,4
	.comm	ADC_FIFO_COUNT_MSK,4,4
	.comm	ADC_FIFO1DATA,4,4
	.comm	ADC_FIFO1COUNT,4,4
	.comm	ADC_FIFO0DATA,4,4
	.comm	ADC_FIFO0COUNT,4,4
	.comm	ADC_CTRL_ENABLE,4,4
	.comm	ADC_CTRL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
