	.file	"extr_adc.c_adc_single.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	adc_single
	.type	adc_single, @function
adc_single:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	edi, 7
	ja	.L4
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	lea	ebx, 0[0+rdi*4]
	and	ebx, 12
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR ADCSR[rip]
	call	ctrl_inb@PLT
	mov	edi, DWORD PTR ADCSR_CKS[rip]
	or	dil, BYTE PTR ADCSR_ADST[rip]
	or	edi, ebp
	mov	rsi, QWORD PTR ADCSR[rip]
	movzx	edi, dil
	call	ctrl_outb@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR ADCSR[rip]
	call	ctrl_inb@PLT
	movzx	edx, BYTE PTR ADCSR_ADF[rip]
	mov	ecx, eax
	test	dl, al
	je	.L3
	or	dl, BYTE PTR ADCSR_ADST[rip]
	mov	rsi, QWORD PTR ADCSR[rip]
	movsx	rbx, ebx
	mov	edi, edx
	not	edi
	and	edi, ecx
	movzx	edi, dil
	call	ctrl_outb@PLT
	mov	rdi, QWORD PTR ADDRAH[rip]
	add	rdi, rbx
	call	ctrl_inb@PLT
	add	rbx, QWORD PTR ADDRAL[rip]
	mov	ebp, eax
	mov	rdi, rbx
	call	ctrl_inb@PLT
	sal	ebp, 8
	add	rsp, 8
	.cfi_def_cfa_offset 24
	or	ebp, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	mov	eax, ebp
	pop	rbp
	.cfi_def_cfa_offset 8
	sar	eax, 6
	ret
.L4:
	.cfi_restore 3
	.cfi_restore 6
	mov	eax, -1
	ret
	.cfi_endproc
.LFE0:
	.size	adc_single, .-adc_single
	.comm	ADDRAL,8,8
	.comm	ADDRAH,8,8
	.comm	ADCSR_CKS,4,4
	.comm	ADCSR_ADST,4,4
	.comm	ADCSR_ADF,1,1
	.comm	ADCSR,8,8
	.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_adc.c_adc_single.c"
	.text
	.align	2
	.global	adc_single
	.syntax unified
	.arm
	.fpu softvfp
	.type	adc_single, %function
adc_single:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #7
	bhi	.L4
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r4, .L12
	lsl	r6, r0, #2
	ldr	r0, [r4]
	bl	ctrl_inb
	ldr	r7, .L12+4
	ldr	r3, .L12+8
	ldr	r0, [r7]
	ldr	r3, [r3]
	ldr	r1, [r4]
	orr	r0, r0, r3
	orr	r0, r0, r5
	and	r0, r0, #255
	bl	ctrl_outb
	ldr	r5, .L12+12
	and	r6, r6, #12
.L3:
	ldr	r0, [r4]
	bl	ctrl_inb
	ldrb	r3, [r5]	@ zero_extendqisi2
	and	r2, r0, #255
	tst	r0, r3
	beq	.L3
	ldr	r0, [r7]
	ldr	r1, [r4]
	orr	r0, r3, r0
	bic	r0, r2, r0
	bl	ctrl_outb
	ldr	r3, .L12+16
	ldr	r0, [r3]
	add	r0, r6, r0
	bl	ctrl_inb
	ldr	r3, .L12+20
	mov	r4, r0
	ldr	r0, [r3]
	add	r0, r6, r0
	bl	ctrl_inb
	orr	r0, r0, r4, lsl #8
	asr	r0, r0, #6
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mvn	r0, #0
	bx	lr
.L13:
	.align	2
.L12:
	.word	ADCSR
	.word	ADCSR_ADST
	.word	ADCSR_CKS
	.word	ADCSR_ADF
	.word	ADDRAH
	.word	ADDRAL
	.size	adc_single, .-adc_single
	.comm	ADDRAL,4,4
	.comm	ADDRAH,4,4
	.comm	ADCSR_CKS,4,4
	.comm	ADCSR_ADST,4,4
	.comm	ADCSR_ADF,1,1
	.comm	ADCSR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
