	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpcap_adc_calibrate
_cpcap_adc_calibrate:                   ## @cpcap_adc_calibrate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_CPCAP_ADC_CHG_ISENSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CPCAP_REG_ADCAL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ST_ADC_CAL_CHRGI_LOW_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ST_ADC_CAL_CHRGI_HIGH_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_cpcap_adc_calibrate_one
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	_CPCAP_ADC_BATTI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CPCAP_REG_ADCAL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ST_ADC_CAL_BATTI_LOW_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ST_ADC_CAL_BATTI_HIGH_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_cpcap_adc_calibrate_one        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CPCAP_ADC_CHG_ISENSE,4,2       ## @CPCAP_ADC_CHG_ISENSE
	.comm	_CPCAP_REG_ADCAL1,4,2           ## @CPCAP_REG_ADCAL1
	.comm	_ST_ADC_CAL_CHRGI_LOW_THRESHOLD,4,2 ## @ST_ADC_CAL_CHRGI_LOW_THRESHOLD
	.comm	_ST_ADC_CAL_CHRGI_HIGH_THRESHOLD,4,2 ## @ST_ADC_CAL_CHRGI_HIGH_THRESHOLD
	.comm	_CPCAP_ADC_BATTI,4,2            ## @CPCAP_ADC_BATTI
	.comm	_CPCAP_REG_ADCAL2,4,2           ## @CPCAP_REG_ADCAL2
	.comm	_ST_ADC_CAL_BATTI_LOW_THRESHOLD,4,2 ## @ST_ADC_CAL_BATTI_LOW_THRESHOLD
	.comm	_ST_ADC_CAL_BATTI_HIGH_THRESHOLD,4,2 ## @ST_ADC_CAL_BATTI_HIGH_THRESHOLD
	.no_dead_strip	_cpcap_adc_calibrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpcap_adc_calibrate
_cpcap_adc_calibrate:                   ; @cpcap_adc_calibrate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _CPCAP_ADC_CHG_ISENSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CPCAP_ADC_CHG_ISENSE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _CPCAP_REG_ADCAL1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CPCAP_REG_ADCAL1@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _ST_ADC_CAL_CHRGI_LOW_THRESHOLD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ST_ADC_CAL_CHRGI_LOW_THRESHOLD@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x8, _ST_ADC_CAL_CHRGI_HIGH_THRESHOLD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ST_ADC_CAL_CHRGI_HIGH_THRESHOLD@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	bl	_cpcap_adc_calibrate_one
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh12:
	adrp	x8, _CPCAP_ADC_BATTI@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CPCAP_ADC_BATTI@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _CPCAP_REG_ADCAL2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CPCAP_REG_ADCAL2@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _ST_ADC_CAL_BATTI_LOW_THRESHOLD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ST_ADC_CAL_BATTI_LOW_THRESHOLD@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
Lloh21:
	adrp	x8, _ST_ADC_CAL_BATTI_HIGH_THRESHOLD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ST_ADC_CAL_BATTI_HIGH_THRESHOLD@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cpcap_adc_calibrate_one
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CPCAP_ADC_CHG_ISENSE,4,2       ; @CPCAP_ADC_CHG_ISENSE
	.comm	_CPCAP_REG_ADCAL1,4,2           ; @CPCAP_REG_ADCAL1
	.comm	_ST_ADC_CAL_CHRGI_LOW_THRESHOLD,4,2 ; @ST_ADC_CAL_CHRGI_LOW_THRESHOLD
	.comm	_ST_ADC_CAL_CHRGI_HIGH_THRESHOLD,4,2 ; @ST_ADC_CAL_CHRGI_HIGH_THRESHOLD
	.comm	_CPCAP_ADC_BATTI,4,2            ; @CPCAP_ADC_BATTI
	.comm	_CPCAP_REG_ADCAL2,4,2           ; @CPCAP_REG_ADCAL2
	.comm	_ST_ADC_CAL_BATTI_LOW_THRESHOLD,4,2 ; @ST_ADC_CAL_BATTI_LOW_THRESHOLD
	.comm	_ST_ADC_CAL_BATTI_HIGH_THRESHOLD,4,2 ; @ST_ADC_CAL_BATTI_HIGH_THRESHOLD
	.no_dead_strip	_cpcap_adc_calibrate
.subsections_via_symbols
