	.file	"extr_cpcap-adc.c_cpcap_adc_calibrate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cpcap_adc_calibrate, @function
cpcap_adc_calibrate:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8d, DWORD PTR ST_ADC_CAL_CHRGI_HIGH_THRESHOLD[rip]
	mov	ecx, DWORD PTR ST_ADC_CAL_CHRGI_LOW_THRESHOLD[rip]
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	edx, DWORD PTR CPCAP_REG_ADCAL1[rip]
	mov	esi, DWORD PTR CPCAP_ADC_CHG_ISENSE[rip]
	call	cpcap_adc_calibrate_one@PLT
	test	eax, eax
	je	.L5
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	r8d, DWORD PTR ST_ADC_CAL_BATTI_HIGH_THRESHOLD[rip]
	mov	ecx, DWORD PTR ST_ADC_CAL_BATTI_LOW_THRESHOLD[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR CPCAP_REG_ADCAL2[rip]
	mov	esi, DWORD PTR CPCAP_ADC_BATTI[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	cpcap_adc_calibrate_one@PLT
	.cfi_endproc
.LFE0:
	.size	cpcap_adc_calibrate, .-cpcap_adc_calibrate
	.comm	ST_ADC_CAL_CHRGI_LOW_THRESHOLD,4,4
	.comm	ST_ADC_CAL_CHRGI_HIGH_THRESHOLD,4,4
	.comm	ST_ADC_CAL_BATTI_LOW_THRESHOLD,4,4
	.comm	ST_ADC_CAL_BATTI_HIGH_THRESHOLD,4,4
	.comm	CPCAP_REG_ADCAL2,4,4
	.comm	CPCAP_REG_ADCAL1,4,4
	.comm	CPCAP_ADC_CHG_ISENSE,4,4
	.comm	CPCAP_ADC_BATTI,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_cpcap-adc.c_cpcap_adc_calibrate.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpcap_adc_calibrate, %function
cpcap_adc_calibrate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r2, .L5
	sub	sp, sp, #8
	ldr	ip, [r2]
	ldr	r3, .L5+4
	ldr	r2, .L5+8
	ldr	r1, .L5+12
	str	ip, [sp]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	mov	r4, r0
	bl	cpcap_adc_calibrate_one
	cmp	r0, #0
	bne	.L1
	ldr	r2, .L5+16
	ldr	r3, .L5+20
	ldr	ip, [r2]
	ldr	r1, .L5+24
	ldr	r2, .L5+28
	str	ip, [sp]
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	cpcap_adc_calibrate_one
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L6:
	.align	2
.L5:
	.word	ST_ADC_CAL_CHRGI_HIGH_THRESHOLD
	.word	ST_ADC_CAL_CHRGI_LOW_THRESHOLD
	.word	CPCAP_REG_ADCAL1
	.word	CPCAP_ADC_CHG_ISENSE
	.word	ST_ADC_CAL_BATTI_HIGH_THRESHOLD
	.word	ST_ADC_CAL_BATTI_LOW_THRESHOLD
	.word	CPCAP_ADC_BATTI
	.word	CPCAP_REG_ADCAL2
	.size	cpcap_adc_calibrate, .-cpcap_adc_calibrate
	.comm	ST_ADC_CAL_CHRGI_LOW_THRESHOLD,4,4
	.comm	ST_ADC_CAL_CHRGI_HIGH_THRESHOLD,4,4
	.comm	ST_ADC_CAL_BATTI_LOW_THRESHOLD,4,4
	.comm	ST_ADC_CAL_BATTI_HIGH_THRESHOLD,4,4
	.comm	CPCAP_REG_ADCAL2,4,4
	.comm	CPCAP_REG_ADCAL1,4,4
	.comm	CPCAP_ADC_CHG_ISENSE,4,4
	.comm	CPCAP_ADC_BATTI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
