	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function axp288_adc_initialize
_axp288_adc_initialize:                 ## @axp288_adc_initialize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_axp288_adc_ts_bias_override@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dmi_first_match
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %edi
	movq	_AXP288_ADC_TS_PIN_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_AXP288_ADC_TS_BIAS_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	(%rax), %rcx
	callq	_regmap_update_bits
	testl	%eax, %eax
	jne	LBB0_8
LBB0_2:
	movl	4(%rbx), %edi
	movq	_AXP20X_ADC_EN1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	_AXP288_ADC_TS_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	-20(%rbp), %eax
	setne	%cl
	movl	%ecx, (%rbx)
	movl	4(%rbx), %edi
	movq	_AXP288_ADC_TS_PIN_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AXP288_ADC_TS_CURRENT_ON_OFF_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	jne	LBB0_4
## %bb.5:
	movq	_AXP288_ADC_TS_CURRENT_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_AXP288_ADC_TS_CURRENT_ON@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rcx
	callq	_regmap_update_bits
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	4(%rbx), %edi
	movl	(%r14), %esi
	movq	_AXP288_ADC_EN_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, %rdx
	callq	_regmap_update_bits
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_axp288_adc_ts_bias_override,4,2 ## @axp288_adc_ts_bias_override
	.comm	_AXP288_ADC_TS_PIN_CTRL,4,2     ## @AXP288_ADC_TS_PIN_CTRL
	.comm	_AXP288_ADC_TS_BIAS_MASK,8,3    ## @AXP288_ADC_TS_BIAS_MASK
	.comm	_AXP20X_ADC_EN1,4,2             ## @AXP20X_ADC_EN1
	.comm	_AXP288_ADC_TS_ENABLE,4,2       ## @AXP288_ADC_TS_ENABLE
	.comm	_AXP288_ADC_TS_CURRENT_ON_OFF_MASK,8,3 ## @AXP288_ADC_TS_CURRENT_ON_OFF_MASK
	.comm	_AXP288_ADC_TS_CURRENT_ON,8,3   ## @AXP288_ADC_TS_CURRENT_ON
	.comm	_AXP288_ADC_TS_CURRENT_OFF,8,3  ## @AXP288_ADC_TS_CURRENT_OFF
	.comm	_AXP288_ADC_EN_MASK,8,3         ## @AXP288_ADC_EN_MASK
	.no_dead_strip	_axp288_adc_initialize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function axp288_adc_initialize
_axp288_adc_initialize:                 ; @axp288_adc_initialize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, _axp288_adc_ts_bias_override@GOTPAGE
Lloh1:
	ldr	x8, [x8, _axp288_adc_ts_bias_override@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_dmi_first_match
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _AXP288_ADC_TS_PIN_CTRL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AXP288_ADC_TS_PIN_CTRL@GOTPAGEOFF]
	ldr	w8, [x19, #4]
Lloh5:
	ldr	w1, [x9]
Lloh6:
	adrp	x9, _AXP288_ADC_TS_BIAS_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AXP288_ADC_TS_BIAS_MASK@GOTPAGEOFF]
Lloh8:
	ldr	x2, [x9]
	ldr	x3, [x0]
	mov	x0, x8
	bl	_regmap_update_bits
	cbnz	w0, LBB0_5
LBB0_2:
	ldr	w0, [x19, #4]
Lloh9:
	adrp	x20, _AXP20X_ADC_EN1@GOTPAGE
Lloh10:
	ldr	x20, [x20, _AXP20X_ADC_EN1@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _AXP288_ADC_TS_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AXP288_ADC_TS_ENABLE@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w9
	cset	w8, ne
	str	w8, [x19]
	ldr	w0, [x19, #4]
Lloh14:
	adrp	x8, _AXP288_ADC_TS_PIN_CTRL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AXP288_ADC_TS_PIN_CTRL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _AXP288_ADC_TS_CURRENT_ON_OFF_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AXP288_ADC_TS_CURRENT_ON_OFF_MASK@GOTPAGEOFF]
Lloh19:
	ldr	x2, [x8]
Lloh20:
	adrp	x8, _AXP288_ADC_TS_CURRENT_OFF@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AXP288_ADC_TS_CURRENT_OFF@GOTPAGEOFF]
Lloh22:
	adrp	x9, _AXP288_ADC_TS_CURRENT_ON@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AXP288_ADC_TS_CURRENT_ON@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	x3, [x8]
	bl	_regmap_update_bits
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #4]
	ldr	w1, [x20]
Lloh24:
	adrp	x8, _AXP288_ADC_EN_MASK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AXP288_ADC_EN_MASK@GOTPAGEOFF]
Lloh26:
	ldr	x2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_axp288_adc_ts_bias_override,4,2 ; @axp288_adc_ts_bias_override
	.comm	_AXP288_ADC_TS_PIN_CTRL,4,2     ; @AXP288_ADC_TS_PIN_CTRL
	.comm	_AXP288_ADC_TS_BIAS_MASK,8,3    ; @AXP288_ADC_TS_BIAS_MASK
	.comm	_AXP20X_ADC_EN1,4,2             ; @AXP20X_ADC_EN1
	.comm	_AXP288_ADC_TS_ENABLE,4,2       ; @AXP288_ADC_TS_ENABLE
	.comm	_AXP288_ADC_TS_CURRENT_ON_OFF_MASK,8,3 ; @AXP288_ADC_TS_CURRENT_ON_OFF_MASK
	.comm	_AXP288_ADC_TS_CURRENT_ON,8,3   ; @AXP288_ADC_TS_CURRENT_ON
	.comm	_AXP288_ADC_TS_CURRENT_OFF,8,3  ; @AXP288_ADC_TS_CURRENT_OFF
	.comm	_AXP288_ADC_EN_MASK,8,3         ; @AXP288_ADC_EN_MASK
	.no_dead_strip	_axp288_adc_initialize
.subsections_via_symbols
