	.file	"extr_stmpe.c_stmpe811_adc_common_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Could not setup ADC\n"
	.text
	.p2align 4
	.globl	stmpe811_adc_common_init
	.type	stmpe811_adc_common_init, @function
stmpe811_adc_common_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	edi, DWORD PTR [rdi]
	call	STMPE_SAMPLE_TIME@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	ebp, eax
	call	STMPE_MOD_12B@PLT
	mov	edi, DWORD PTR 8[rbx]
	or	ebp, eax
	call	STMPE_REF_SEL@PLT
	mov	edi, 255
	or	ebp, eax
	call	STMPE_SAMPLE_TIME@PLT
	mov	edi, 255
	mov	r12d, ebp
	mov	ebp, eax
	call	STMPE_MOD_12B@PLT
	mov	edi, 255
	or	ebp, eax
	call	STMPE_REF_SEL@PLT
	mov	edx, ebp
	mov	esi, DWORD PTR STMPE811_REG_ADC_CTRL1[rip]
	mov	ecx, r12d
	or	edx, eax
	mov	rdi, rbx
	call	stmpe_set_bits@PLT
	test	eax, eax
	jne	.L9
	mov	edi, DWORD PTR 12[rbx]
	call	STMPE_ADC_FREQ@PLT
	mov	edi, 255
	mov	r12d, eax
	call	STMPE_ADC_FREQ@PLT
	mov	esi, DWORD PTR STMPE811_REG_ADC_CTRL2[rip]
	mov	ecx, r12d
	mov	rdi, rbx
	mov	edx, eax
	call	stmpe_set_bits@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L10
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rbx]
	mov	r12d, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	stmpe811_adc_common_init, .-stmpe811_adc_common_init
	.comm	STMPE811_REG_ADC_CTRL2,4,4
	.comm	STMPE811_REG_ADC_CTRL1,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_stmpe.c_stmpe811_adc_common_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not setup ADC\012\000"
	.text
	.align	2
	.global	stmpe811_adc_common_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	stmpe811_adc_common_init, %function
stmpe811_adc_common_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0]
	bl	STMPE_SAMPLE_TIME
	mov	r5, r0
	ldr	r0, [r4, #4]
	bl	STMPE_MOD_12B
	mov	r3, r0
	ldr	r0, [r4, #8]
	orr	r5, r5, r3
	bl	STMPE_REF_SEL
	mov	r3, r0
	mov	r0, #255
	orr	r5, r5, r3
	bl	STMPE_SAMPLE_TIME
	mov	r6, r0
	mov	r0, #255
	bl	STMPE_MOD_12B
	mov	r2, r0
	mov	r0, #255
	orr	r6, r6, r2
	bl	STMPE_REF_SEL
	ldr	r1, .L10
	mov	r3, r5
	orr	r2, r6, r0
	ldr	r1, [r1]
	mov	r0, r4
	bl	stmpe_set_bits
	subs	r5, r0, #0
	bne	.L8
	ldr	r3, .L10+4
	mov	r0, #255
	ldr	r6, [r3]
	bl	STMPE_ADC_FREQ
	mov	r5, r0
	ldr	r0, [r4, #12]
	bl	STMPE_ADC_FREQ
	mov	r2, r5
	mov	r3, r0
	mov	r1, r6
	mov	r0, r4
	bl	stmpe_set_bits
	subs	r5, r0, #0
	bne	.L8
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r0, [r4, #16]
	ldr	r1, .L10+8
	bl	dev_err
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	STMPE811_REG_ADC_CTRL1
	.word	STMPE811_REG_ADC_CTRL2
	.word	.LC0
	.size	stmpe811_adc_common_init, .-stmpe811_adc_common_init
	.comm	STMPE811_REG_ADC_CTRL2,4,4
	.comm	STMPE811_REG_ADC_CTRL1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
