	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ab8500_gpadc_double_read_raw   ## -- Begin function ab8500_gpadc_double_read_raw
	.p2align	4, 0x90
_ab8500_gpadc_double_read_raw:          ## @ab8500_gpadc_double_read_raw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	jns	LBB0_6
## %bb.4:
	movq	_ADC_SW@GOTPCREL(%rip), %rax
	cmpq	%r9, (%rax)
	je	LBB0_5
LBB0_6:
	cmpq	$0, 8(%rbx)
	movq	_ADC_HW@GOTPCREL(%rip), %rax
	jns	LBB0_8
## %bb.7:
	cmpq	%r9, (%rax)
	jne	LBB0_8
LBB0_5:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_76:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	leaq	20(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	leaq	16(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	16(%rbx), %edi
	callq	_pm_runtime_get_sync
	movl	$10, %r15d
	movq	_AB8500_GPADC@GOTPCREL(%rip), %rbx
	movq	_AB8500_GPADC_STAT_REG@GOTPCREL(%rip), %r13
	leaq	-72(%rbp), %r12
	movq	_GPADC_BUSY@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movq	(%r13), %rdx
	movq	%r12, %rcx
	callq	_abx500_get_register_interruptible
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r14), %rax
	testq	%rax, -72(%rbp)
	movq	_AB8500_GPADC@GOTPCREL(%rip), %rbx
	je	LBB0_17
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$20, %edi
	callq	_msleep
	decl	%r15d
	jne	LBB0_9
## %bb.13:
	movq	(%r14), %rax
	testq	%rax, -72(%rbp)
	je	LBB0_17
## %bb.14:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_17:
	movq	_EN_GPADC@GOTPCREL(%rip), %rsi
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$129, %rcx
	je	LBB0_22
## %bb.18:
	cmpq	$130, %rcx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	_ADC_HW@GOTPCREL(%rip), %rax
	je	LBB0_21
## %bb.19:
	cmpq	$131, %rcx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_23
## %bb.20:
	movq	_AVG_1@GOTPCREL(%rip), %rcx
	jmp	LBB0_24
LBB0_10:
	movl	%eax, %ebx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_22:
	movq	_AVG_8@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	orq	%r13, %rcx
	movq	%rcx, -72(%rbp)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	_ADC_HW@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_21:
	movq	_AVG_4@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	%r13, %rcx
	movq	%rcx, -72(%rbp)
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_25
LBB0_23:
	movq	_AVG_16@GOTPCREL(%rip), %rcx
LBB0_24:
	movq	(%rcx), %rcx
	orq	%r13, %rcx
	movq	%rcx, -72(%rbp)
LBB0_25:
	movq	(%rsi), %r12
	movl	(%r15), %edi
	movl	(%rbx), %esi
	cmpq	%rdx, (%rax)
	jne	LBB0_28
## %bb.26:
	movq	_AB8500_GPADC_CTRL3_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_abx500_set_register_interruptible
	movl	%eax, %ebx
	movq	_EN_TRIG_EDGE@GOTPCREL(%rip), %rax
	orq	(%rax), %r12
	cmpq	$0, -112(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_29
## %bb.27:
	movq	_EN_FALLING@GOTPCREL(%rip), %rax
	orq	(%rax), %r12
	jmp	LBB0_29
LBB0_28:
	movq	_AB8500_GPADC_CTRL2_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_abx500_set_register_interruptible
	movl	%eax, %ebx
LBB0_29:
	testl	%ebx, %ebx
	js	LBB0_30
## %bb.31:
	cmpq	$128, %r13
	movq	_AB8500_GPADC@GOTPCREL(%rip), %rbx
	je	LBB0_34
## %bb.32:
	cmpq	$133, %r13
	je	LBB0_35
## %bb.33:
	cmpq	$132, %r13
	jne	LBB0_37
LBB0_34:
	movq	_EN_BUF@GOTPCREL(%rip), %rax
	movq	_EN_ICHAR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	jmp	LBB0_38
LBB0_30:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_66:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_15:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_35:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	28(%rax), %edi
	callq	_is_ab8500_2p0_or_earlier
	testl	%eax, %eax
	je	LBB0_36
LBB0_37:
	movq	_EN_BUF@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_38:
	movl	$0, -80(%rbp)                   ## 4-byte Folded Spill
	movb	$1, %r14b
	xorl	%r13d, %r13d
LBB0_39:
	orq	%r12, %rcx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edi
	movl	(%rbx), %esi
	movq	_AB8500_GPADC_CTRL1_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	callq	_abx500_set_register_interruptible
	testl	%eax, %eax
	js	LBB0_40
## %bb.41:
	testb	%r14b, %r14b
	jne	LBB0_43
## %bb.42:
	movl	-80(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	callq	_usleep_range
LBB0_43:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edi
	movq	_AB8500_GPADC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	_ADC_HW@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_47
## %bb.44:
	movq	_AB8500_GPADC_AUTO_TIMER_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	callq	_abx500_set_register_interruptible
	testl	%eax, %eax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	js	LBB0_45
## %bb.46:
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	addq	%rsi, %rsi
	movq	_AB8500_GPADC_AUTODATAH_REG@GOTPCREL(%rip), %rax
	movq	_AB8500_GPADC_AUTODATAL_REG@GOTPCREL(%rip), %rcx
	jmp	LBB0_50
LBB0_40:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_54:
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_55
LBB0_47:
	movl	(%r12), %edx
	movq	_ADC_SW_CONV@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %r8d
	callq	_abx500_mask_and_set_register_interruptible
	testl	%eax, %eax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	js	LBB0_48
## %bb.49:
	movq	_CONVERSION_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %rsi
	movq	_AB8500_GPADC_MANDATAH_REG@GOTPCREL(%rip), %rax
	movq	_AB8500_GPADC_MANDATAL_REG@GOTPCREL(%rip), %rcx
LBB0_50:
	movq	(%rax), %r14
	movq	(%rcx), %r12
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	leaq	24(%rbx), %rdi
	callq	_wait_for_completion_timeout
	movl	16(%rbx), %edi
	testl	%eax, %eax
	je	LBB0_51
## %bb.52:
	movq	_AB8500_GPADC@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-144(%rbp), %rcx
	movq	%r12, %rdx
	callq	_abx500_get_register_interruptible
	movl	(%r15), %edi
	testl	%eax, %eax
	js	LBB0_53
## %bb.56:
	movl	(%r13), %esi
	leaq	-136(%rbp), %rcx
	movq	%r14, %rdx
	callq	_abx500_get_register_interruptible
	testl	%eax, %eax
	js	LBB0_57
## %bb.58:
	movq	_BAT_CTRL_AND_IBAT@GOTPCREL(%rip), %rax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	cmpq	%r13, (%rax)
	movq	_AB8500_GPADC@GOTPCREL(%rip), %rbx
	movq	_AB8500_GPADC_CTRL1_REG@GOTPCREL(%rip), %r14
	je	LBB0_62
## %bb.59:
	movq	_VBAT_MEAS_AND_IBAT@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	je	LBB0_62
## %bb.60:
	movq	_VBAT_TRUE_MEAS_AND_IBAT@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	je	LBB0_62
## %bb.61:
	movq	_BAT_TEMP_AND_IBAT@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	je	LBB0_62
LBB0_73:
	movl	(%r15), %edi
	movl	(%rbx), %esi
	movl	(%r14), %edx
	movq	_DIS_GPADC@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	callq	_abx500_set_register_interruptible
	movl	(%r15), %edi
	testl	%eax, %eax
	js	LBB0_74
## %bb.75:
	callq	_pm_runtime_mark_last_busy
	movl	(%r15), %edi
	callq	_pm_runtime_put_autosuspend
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	-136(%rbp), %ebx
	shll	$8, %ebx
	orl	-144(%rbp), %ebx
	jmp	LBB0_76
LBB0_51:
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_55:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_16:
	movl	(%r15), %edi
	movq	_AB8500_GPADC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AB8500_GPADC_CTRL1_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DIS_GPADC@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	callq	_abx500_set_register_interruptible
	movl	(%r15), %edi
	callq	_pm_runtime_put
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	(%r15), %edi
	leaq	L_.str.13(%rip), %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_76
LBB0_45:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_66
LBB0_48:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_66
LBB0_36:
	movq	_EN_BUF@GOTPCREL(%rip), %rax
	movq	_BTEMP_PULL_UP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	movl	$10000, %r13d                   ## imm = 0x2710
	movl	$1000, -80(%rbp)                ## 4-byte Folded Spill
                                        ## imm = 0x3E8
	xorl	%r14d, %r14d
	jmp	LBB0_39
LBB0_53:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_54
LBB0_57:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_54
LBB0_62:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	_ADC_HW@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_64
## %bb.63:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	(%r15), %edi
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_66
LBB0_64:
	movl	(%r15), %edi
	movl	(%rbx), %esi
	movq	_AB8540_GPADC_MANDATA2L_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	-128(%rbp), %rcx
	callq	_abx500_get_register_interruptible
	movl	(%r15), %edi
	testl	%eax, %eax
	js	LBB0_65
## %bb.67:
	movl	(%rbx), %esi
	movq	_AB8540_GPADC_MANDATA2H_REG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	-120(%rbp), %rcx
	callq	_abx500_get_register_interruptible
	testl	%eax, %eax
	js	LBB0_68
## %bb.69:
	movq	16(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_71
## %bb.70:
	movl	-120(%rbp), %eax
	shll	$8, %eax
	orl	-128(%rbp), %eax
	movl	%eax, (%rcx)
	jmp	LBB0_72
LBB0_74:
	movl	%eax, %ebx
	leaq	L_.str.12(%rip), %rsi
	jmp	LBB0_66
LBB0_65:
	movl	%eax, %ebx
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_66
LBB0_68:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_66
LBB0_71:
	movl	(%r15), %edi
	leaq	L_.str.11(%rip), %rsi
	callq	_dev_warn
LBB0_72:
	movq	_AB8500_GPADC@GOTPCREL(%rip), %rbx
	jmp	LBB0_73
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ADC_SW,8,3                     ## @ADC_SW
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_ADC_HW,8,3                     ## @ADC_HW
	.comm	_AB8500_GPADC,4,2               ## @AB8500_GPADC
	.comm	_AB8500_GPADC_STAT_REG,8,3      ## @AB8500_GPADC_STAT_REG
	.comm	_GPADC_BUSY,8,3                 ## @GPADC_BUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gpadc_conversion: GPADC busy"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EN_GPADC,8,3                   ## @EN_GPADC
	.comm	_AVG_1,8,3                      ## @AVG_1
	.comm	_AVG_4,8,3                      ## @AVG_4
	.comm	_AVG_8,8,3                      ## @AVG_8
	.comm	_AVG_16,8,3                     ## @AVG_16
	.comm	_AB8500_GPADC_CTRL3_REG,4,2     ## @AB8500_GPADC_CTRL3_REG
	.comm	_EN_TRIG_EDGE,8,3               ## @EN_TRIG_EDGE
	.comm	_EN_FALLING,8,3                 ## @EN_FALLING
	.comm	_AB8500_GPADC_CTRL2_REG,4,2     ## @AB8500_GPADC_CTRL2_REG
L_.str.1:                               ## @.str.1
	.asciz	"gpadc_conversion: set avg samples failed\n"

	.comm	_EN_BUF,8,3                     ## @EN_BUF
	.comm	_EN_ICHAR,8,3                   ## @EN_ICHAR
	.comm	_BTEMP_PULL_UP,8,3              ## @BTEMP_PULL_UP
	.comm	_AB8500_GPADC_CTRL1_REG,4,2     ## @AB8500_GPADC_CTRL1_REG
L_.str.2:                               ## @.str.2
	.asciz	"gpadc_conversion: set Control register failed\n"

	.comm	_AB8500_GPADC_AUTO_TIMER_REG,4,2 ## @AB8500_GPADC_AUTO_TIMER_REG
L_.str.3:                               ## @.str.3
	.asciz	"gpadc_conversion: trig timer failed\n"

	.comm	_HZ,4,2                         ## @HZ
	.comm	_AB8500_GPADC_AUTODATAL_REG,8,3 ## @AB8500_GPADC_AUTODATAL_REG
	.comm	_AB8500_GPADC_AUTODATAH_REG,8,3 ## @AB8500_GPADC_AUTODATAH_REG
	.comm	_ADC_SW_CONV,4,2                ## @ADC_SW_CONV
L_.str.4:                               ## @.str.4
	.asciz	"gpadc_conversion: start s/w conv failed\n"

	.comm	_CONVERSION_TIME,4,2            ## @CONVERSION_TIME
	.comm	_AB8500_GPADC_MANDATAL_REG,8,3  ## @AB8500_GPADC_MANDATAL_REG
	.comm	_AB8500_GPADC_MANDATAH_REG,8,3  ## @AB8500_GPADC_MANDATAH_REG
L_.str.5:                               ## @.str.5
	.asciz	"timeout didn't receive GPADC conv interrupt\n"

L_.str.6:                               ## @.str.6
	.asciz	"gpadc_conversion: read low data failed\n"

L_.str.7:                               ## @.str.7
	.asciz	"gpadc_conversion: read high data failed\n"

	.comm	_BAT_CTRL_AND_IBAT,8,3          ## @BAT_CTRL_AND_IBAT
	.comm	_VBAT_MEAS_AND_IBAT,8,3         ## @VBAT_MEAS_AND_IBAT
	.comm	_VBAT_TRUE_MEAS_AND_IBAT,8,3    ## @VBAT_TRUE_MEAS_AND_IBAT
	.comm	_BAT_TEMP_AND_IBAT,8,3          ## @BAT_TEMP_AND_IBAT
L_.str.8:                               ## @.str.8
	.asciz	"gpadc_conversion: only SW double conversion supported\n"

	.comm	_AB8540_GPADC_MANDATA2L_REG,8,3 ## @AB8540_GPADC_MANDATA2L_REG
L_.str.9:                               ## @.str.9
	.asciz	"gpadc_conversion: read sw low data 2 failed\n"

	.comm	_AB8540_GPADC_MANDATA2H_REG,8,3 ## @AB8540_GPADC_MANDATA2H_REG
L_.str.10:                              ## @.str.10
	.asciz	"gpadc_conversion: read sw high data 2 failed\n"

L_.str.11:                              ## @.str.11
	.asciz	"gpadc_conversion: ibat not stored\n"

	.comm	_DIS_GPADC,8,3                  ## @DIS_GPADC
L_.str.12:                              ## @.str.12
	.asciz	"gpadc_conversion: disable gpadc failed\n"

L_.str.13:                              ## @.str.13
	.asciz	"gpadc_conversion: Failed to AD convert channel %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ab8500_gpadc_double_read_raw   ; -- Begin function ab8500_gpadc_double_read_raw
	.p2align	2
_ab8500_gpadc_double_read_raw:          ; @ab8500_gpadc_double_read_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cbz	x0, LBB0_6
; %bb.1:
	mov	x22, x5
	mov	x26, x3
	mov	x27, x2
	mov	x23, x0
	ldr	x8, [x0]
	tbz	x8, #63, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _ADC_SW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADC_SW@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x22
	b.eq	LBB0_5
LBB0_3:
	ldr	x8, [x23, #8]
Lloh3:
	adrp	x9, _ADC_HW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ADC_HW@GOTPAGEOFF]
	tbz	x8, #63, LBB0_9
; %bb.4:
	ldr	x8, [x9]
	cmp	x8, x22
	b.ne	LBB0_9
LBB0_5:
Lloh5:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_8:
	mov	x0, x25
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_9:
	stp	x6, x4, [sp, #8]                ; 16-byte Folded Spill
	add	x0, x23, #20
	stp	x0, x1, [sp, #24]               ; 16-byte Folded Spill
	bl	_mutex_lock
	mov	x28, x23
	ldr	w0, [x28, #16]!
	bl	_pm_runtime_get_sync
	mov	w20, #10
Lloh9:
	adrp	x24, _AB8500_GPADC@GOTPAGE
Lloh10:
	ldr	x24, [x24, _AB8500_GPADC@GOTPAGEOFF]
Lloh11:
	adrp	x21, _AB8500_GPADC_STAT_REG@GOTPAGE
Lloh12:
	ldr	x21, [x21, _AB8500_GPADC_STAT_REG@GOTPAGEOFF]
Lloh13:
	adrp	x19, _GPADC_BUSY@GOTPAGE
Lloh14:
	ldr	x19, [x19, _GPADC_BUSY@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x28]
	ldr	w1, [x24]
	ldr	x2, [x21]
	add	x3, sp, #72
	bl	_abx500_get_register_interruptible
	tbnz	w0, #31, LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #72]
	ldr	x9, [x19]
	tst	x9, x8
	b.eq	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #20
	bl	_msleep
	subs	w20, w20, #1
	b.ne	LBB0_10
; %bb.13:
	ldr	x8, [sp, #72]
	ldr	x9, [x19]
	tst	x9, x8
	b.eq	LBB0_15
; %bb.14:
	ldr	w0, [x28]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_20
LBB0_15:
Lloh20:
	adrp	x8, _EN_GPADC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EN_GPADC@GOTPAGEOFF]
	cmp	x27, #129
	b.eq	LBB0_21
; %bb.16:
	cmp	x27, #130
	ldr	x19, [sp, #32]                  ; 8-byte Folded Reload
	mov	x21, x24
Lloh22:
	adrp	x20, _ADC_HW@GOTPAGE
Lloh23:
	ldr	x20, [x20, _ADC_HW@GOTPAGEOFF]
	b.eq	LBB0_22
; %bb.17:
	cmp	x27, #131
	b.ne	LBB0_23
; %bb.18:
Lloh24:
	adrp	x9, _AVG_1@GOTPAGE
Lloh25:
	ldr	x9, [x9, _AVG_1@GOTPAGEOFF]
	b	LBB0_24
LBB0_19:
	mov	x25, x0
LBB0_20:
	ldp	x20, x19, [sp, #24]             ; 16-byte Folded Reload
	mov	x21, x24
	b	LBB0_61
LBB0_21:
Lloh26:
	adrp	x9, _AVG_8@GOTPAGE
Lloh27:
	ldr	x9, [x9, _AVG_8@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	ldr	x19, [sp, #32]                  ; 8-byte Folded Reload
	orr	x3, x9, x19
	str	x3, [sp, #72]
	mov	x21, x24
Lloh29:
	adrp	x20, _ADC_HW@GOTPAGE
Lloh30:
	ldr	x20, [x20, _ADC_HW@GOTPAGEOFF]
	b	LBB0_25
LBB0_22:
Lloh31:
	adrp	x9, _AVG_4@GOTPAGE
Lloh32:
	ldr	x9, [x9, _AVG_4@GOTPAGEOFF]
	b	LBB0_24
LBB0_23:
Lloh33:
	adrp	x9, _AVG_16@GOTPAGE
Lloh34:
	ldr	x9, [x9, _AVG_16@GOTPAGEOFF]
LBB0_24:
	ldr	x9, [x9]
	orr	x3, x9, x19
	str	x3, [sp, #72]
LBB0_25:
	ldr	x27, [x8]
	ldr	x8, [x20]
	ldr	w0, [x28]
	ldr	w1, [x21]
	cmp	x8, x22
	b.ne	LBB0_28
; %bb.26:
Lloh35:
	adrp	x8, _AB8500_GPADC_CTRL3_REG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _AB8500_GPADC_CTRL3_REG@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	bl	_abx500_set_register_interruptible
	mov	x25, x0
Lloh38:
	adrp	x8, _EN_TRIG_EDGE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EN_TRIG_EDGE@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	orr	x27, x8, x27
	cbz	x26, LBB0_29
; %bb.27:
Lloh41:
	adrp	x8, _EN_FALLING@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EN_FALLING@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
	orr	x27, x8, x27
	b	LBB0_29
LBB0_28:
Lloh44:
	adrp	x8, _AB8500_GPADC_CTRL2_REG@GOTPAGE
Lloh45:
	ldr	x8, [x8, _AB8500_GPADC_CTRL2_REG@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	bl	_abx500_set_register_interruptible
	mov	x25, x0
LBB0_29:
	tbnz	w25, #31, LBB0_34
; %bb.30:
	cmp	x19, #128
	b.eq	LBB0_33
; %bb.31:
	cmp	x19, #133
	b.eq	LBB0_35
; %bb.32:
	cmp	x19, #132
	b.ne	LBB0_36
LBB0_33:
	str	wzr, [sp, #32]                  ; 4-byte Folded Spill
	mov	w24, #0
Lloh47:
	adrp	x8, _EN_BUF@GOTPAGE
Lloh48:
	ldr	x8, [x8, _EN_BUF@GOTPAGEOFF]
Lloh49:
	ldr	x8, [x8]
Lloh50:
	adrp	x9, _EN_ICHAR@GOTPAGE
Lloh51:
	ldr	x9, [x9, _EN_ICHAR@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	orr	x8, x9, x8
	b	LBB0_37
LBB0_34:
	ldr	w0, [x28]
Lloh53:
	adrp	x1, l_.str.1@PAGE
Lloh54:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_59
LBB0_35:
	ldr	w0, [x23, #28]
	bl	_is_ab8500_2p0_or_earlier
	cbz	w0, LBB0_62
LBB0_36:
	str	wzr, [sp, #32]                  ; 4-byte Folded Spill
	mov	w24, #0
Lloh55:
	adrp	x8, _EN_BUF@GOTPAGE
Lloh56:
	ldr	x8, [x8, _EN_BUF@GOTPAGEOFF]
Lloh57:
	ldr	x8, [x8]
LBB0_37:
	mov	w26, #1
LBB0_38:
	orr	x3, x8, x27
	ldr	w0, [x28]
	ldr	w1, [x21]
Lloh58:
	adrp	x27, _AB8500_GPADC_CTRL1_REG@GOTPAGE
Lloh59:
	ldr	x27, [x27, _AB8500_GPADC_CTRL1_REG@GOTPAGEOFF]
	ldr	w2, [x27]
	bl	_abx500_set_register_interruptible
	tbnz	w0, #31, LBB0_44
; %bb.39:
	tbnz	w26, #0, LBB0_41
; %bb.40:
	ldr	w0, [sp, #32]                   ; 4-byte Folded Reload
	mov	x1, x24
	bl	_usleep_range
LBB0_41:
	ldr	x8, [x20]
	ldr	w0, [x28]
	ldr	w1, [x21]
	cmp	x8, x22
	b.ne	LBB0_45
; %bb.42:
Lloh60:
	adrp	x8, _AB8500_GPADC_AUTO_TIMER_REG@GOTPAGE
Lloh61:
	ldr	x8, [x8, _AB8500_GPADC_AUTO_TIMER_REG@GOTPAGEOFF]
Lloh62:
	ldr	w2, [x8]
	ldr	x3, [sp, #16]                   ; 8-byte Folded Reload
	bl	_abx500_set_register_interruptible
	tbnz	w0, #31, LBB0_57
; %bb.43:
Lloh63:
	adrp	x8, _HZ@GOTPAGE
Lloh64:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh65:
	ldrsw	x8, [x8]
	lsl	x1, x8, #1
Lloh66:
	adrp	x8, _AB8500_GPADC_AUTODATAH_REG@GOTPAGE
Lloh67:
	ldr	x8, [x8, _AB8500_GPADC_AUTODATAH_REG@GOTPAGEOFF]
Lloh68:
	adrp	x9, _AB8500_GPADC_AUTODATAL_REG@GOTPAGE
Lloh69:
	ldr	x9, [x9, _AB8500_GPADC_AUTODATAL_REG@GOTPAGEOFF]
	b	LBB0_47
LBB0_44:
	mov	x25, x0
	ldr	w0, [x28]
Lloh70:
	adrp	x1, l_.str.2@PAGE
Lloh71:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_59
LBB0_45:
	ldr	w2, [x27]
Lloh72:
	adrp	x8, _ADC_SW_CONV@GOTPAGE
Lloh73:
	ldr	x8, [x8, _ADC_SW_CONV@GOTPAGEOFF]
Lloh74:
	ldr	w3, [x8]
	mov	x4, x3
	bl	_abx500_mask_and_set_register_interruptible
	tbnz	w0, #31, LBB0_58
; %bb.46:
Lloh75:
	adrp	x8, _CONVERSION_TIME@GOTPAGE
Lloh76:
	ldr	x8, [x8, _CONVERSION_TIME@GOTPAGEOFF]
Lloh77:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
Lloh78:
	adrp	x8, _AB8500_GPADC_MANDATAH_REG@GOTPAGE
Lloh79:
	ldr	x8, [x8, _AB8500_GPADC_MANDATAH_REG@GOTPAGEOFF]
Lloh80:
	adrp	x9, _AB8500_GPADC_MANDATAL_REG@GOTPAGE
Lloh81:
	ldr	x9, [x9, _AB8500_GPADC_MANDATAL_REG@GOTPAGEOFF]
LBB0_47:
	ldr	x24, [x8]
	ldr	x25, [x9]
	add	x0, x23, #24
	bl	_wait_for_completion_timeout
	mov	x8, x0
	ldr	w0, [x23, #16]
	cbz	w8, LBB0_56
; %bb.48:
	ldr	w1, [x21]
	add	x3, sp, #64
	mov	x2, x25
	bl	_abx500_get_register_interruptible
	mov	x25, x0
	ldr	w0, [x28]
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
	tbnz	w25, #31, LBB0_63
; %bb.49:
	ldr	w1, [x21]
	add	x3, sp, #56
	mov	x2, x24
	bl	_abx500_get_register_interruptible
	tbnz	w0, #31, LBB0_64
; %bb.50:
Lloh82:
	adrp	x8, _BAT_CTRL_AND_IBAT@GOTPAGE
Lloh83:
	ldr	x8, [x8, _BAT_CTRL_AND_IBAT@GOTPAGEOFF]
Lloh84:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_65
; %bb.51:
Lloh85:
	adrp	x8, _VBAT_MEAS_AND_IBAT@GOTPAGE
Lloh86:
	ldr	x8, [x8, _VBAT_MEAS_AND_IBAT@GOTPAGEOFF]
Lloh87:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_65
; %bb.52:
Lloh88:
	adrp	x8, _VBAT_TRUE_MEAS_AND_IBAT@GOTPAGE
Lloh89:
	ldr	x8, [x8, _VBAT_TRUE_MEAS_AND_IBAT@GOTPAGEOFF]
Lloh90:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_65
; %bb.53:
Lloh91:
	adrp	x8, _BAT_TEMP_AND_IBAT@GOTPAGE
Lloh92:
	ldr	x8, [x8, _BAT_TEMP_AND_IBAT@GOTPAGEOFF]
Lloh93:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_65
LBB0_54:
	ldr	w0, [x28]
	ldr	w1, [x21]
	ldr	w2, [x27]
Lloh94:
	adrp	x8, _DIS_GPADC@GOTPAGE
Lloh95:
	ldr	x8, [x8, _DIS_GPADC@GOTPAGEOFF]
Lloh96:
	ldr	x3, [x8]
	bl	_abx500_set_register_interruptible
	mov	x25, x0
	ldr	w0, [x28]
	tbnz	w25, #31, LBB0_71
; %bb.55:
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x28]
	bl	_pm_runtime_put_autosuspend
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w8, [sp, #56]
	ldr	w9, [sp, #64]
	orr	w25, w9, w8, lsl #8
	b	LBB0_8
LBB0_56:
Lloh97:
	adrp	x1, l_.str.5@PAGE
Lloh98:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_err
Lloh99:
	adrp	x8, _EINVAL@GOTPAGE
Lloh100:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh101:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_60
LBB0_57:
	mov	x25, x0
	ldr	w0, [x28]
Lloh102:
	adrp	x1, l_.str.3@PAGE
Lloh103:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_59
LBB0_58:
	mov	x25, x0
	ldr	w0, [x28]
Lloh104:
	adrp	x1, l_.str.4@PAGE
Lloh105:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_59:
	bl	_dev_err
LBB0_60:
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
LBB0_61:
	ldr	w0, [x28]
	ldr	w1, [x21]
Lloh106:
	adrp	x8, _AB8500_GPADC_CTRL1_REG@GOTPAGE
Lloh107:
	ldr	x8, [x8, _AB8500_GPADC_CTRL1_REG@GOTPAGEOFF]
Lloh108:
	ldr	w2, [x8]
Lloh109:
	adrp	x8, _DIS_GPADC@GOTPAGE
Lloh110:
	ldr	x8, [x8, _DIS_GPADC@GOTPAGEOFF]
Lloh111:
	ldr	x3, [x8]
	bl	_abx500_set_register_interruptible
	ldr	w0, [x28]
	bl	_pm_runtime_put
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w0, [x28]
	str	x19, [sp]
Lloh112:
	adrp	x1, l_.str.13@PAGE
Lloh113:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_62:
	mov	w26, #0
Lloh114:
	adrp	x8, _EN_BUF@GOTPAGE
Lloh115:
	ldr	x8, [x8, _EN_BUF@GOTPAGEOFF]
Lloh116:
	ldr	x8, [x8]
Lloh117:
	adrp	x9, _BTEMP_PULL_UP@GOTPAGE
Lloh118:
	ldr	x9, [x9, _BTEMP_PULL_UP@GOTPAGEOFF]
Lloh119:
	ldr	x9, [x9]
	orr	x8, x9, x8
	mov	w24, #10000
	mov	w9, #1000
	str	w9, [sp, #32]                   ; 4-byte Folded Spill
	b	LBB0_38
LBB0_63:
Lloh120:
	adrp	x1, l_.str.6@PAGE
Lloh121:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_74
LBB0_64:
	mov	x25, x0
	ldr	w0, [x28]
Lloh122:
	adrp	x1, l_.str.7@PAGE
Lloh123:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_74
LBB0_65:
Lloh124:
	adrp	x8, _ADC_HW@GOTPAGE
Lloh125:
	ldr	x8, [x8, _ADC_HW@GOTPAGEOFF]
Lloh126:
	ldr	x8, [x8]
	cmp	x8, x22
	b.ne	LBB0_67
; %bb.66:
Lloh127:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh128:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh129:
	ldr	w8, [x8]
	neg	w25, w8
	ldr	w0, [x28]
Lloh130:
	adrp	x1, l_.str.8@PAGE
Lloh131:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_74
LBB0_67:
	ldr	w0, [x28]
	ldr	w1, [x21]
Lloh132:
	adrp	x8, _AB8540_GPADC_MANDATA2L_REG@GOTPAGE
Lloh133:
	ldr	x8, [x8, _AB8540_GPADC_MANDATA2L_REG@GOTPAGEOFF]
Lloh134:
	ldr	x2, [x8]
	add	x3, sp, #48
	bl	_abx500_get_register_interruptible
	mov	x25, x0
	ldr	w0, [x28]
	tbnz	w25, #31, LBB0_72
; %bb.68:
	ldr	w1, [x21]
Lloh135:
	adrp	x8, _AB8540_GPADC_MANDATA2H_REG@GOTPAGE
Lloh136:
	ldr	x8, [x8, _AB8540_GPADC_MANDATA2H_REG@GOTPAGEOFF]
Lloh137:
	ldr	x2, [x8]
	add	x3, sp, #40
	bl	_abx500_get_register_interruptible
	tbnz	w0, #31, LBB0_73
; %bb.69:
	ldr	x10, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x10, LBB0_75
; %bb.70:
	ldr	w8, [sp, #40]
	ldr	w9, [sp, #48]
	orr	w8, w9, w8, lsl #8
	str	w8, [x10]
	b	LBB0_54
LBB0_71:
Lloh138:
	adrp	x1, l_.str.12@PAGE
Lloh139:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_74
LBB0_72:
Lloh140:
	adrp	x1, l_.str.9@PAGE
Lloh141:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_74
LBB0_73:
	mov	x25, x0
	ldr	w0, [x28]
Lloh142:
	adrp	x1, l_.str.10@PAGE
Lloh143:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_74:
	bl	_dev_err
	b	LBB0_61
LBB0_75:
	ldr	w0, [x28]
Lloh144:
	adrp	x1, l_.str.11@PAGE
Lloh145:
	add	x1, x1, l_.str.11@PAGEOFF
	bl	_dev_warn
	b	LBB0_54
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpAdd	Lloh97, Lloh98
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpAdd	Lloh104, Lloh105
	.loh AdrpAdd	Lloh112, Lloh113
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh117, Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh114, Lloh115, Lloh116
	.loh AdrpAdd	Lloh120, Lloh121
	.loh AdrpAdd	Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh124, Lloh125, Lloh126
	.loh AdrpAdd	Lloh130, Lloh131
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpLdrGotLdr	Lloh132, Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh135, Lloh136, Lloh137
	.loh AdrpAdd	Lloh138, Lloh139
	.loh AdrpAdd	Lloh140, Lloh141
	.loh AdrpAdd	Lloh142, Lloh143
	.loh AdrpAdd	Lloh144, Lloh145
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ADC_SW,8,3                     ; @ADC_SW
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_ADC_HW,8,3                     ; @ADC_HW
	.comm	_AB8500_GPADC,4,2               ; @AB8500_GPADC
	.comm	_AB8500_GPADC_STAT_REG,8,3      ; @AB8500_GPADC_STAT_REG
	.comm	_GPADC_BUSY,8,3                 ; @GPADC_BUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpadc_conversion: GPADC busy"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EN_GPADC,8,3                   ; @EN_GPADC
	.comm	_AVG_1,8,3                      ; @AVG_1
	.comm	_AVG_4,8,3                      ; @AVG_4
	.comm	_AVG_8,8,3                      ; @AVG_8
	.comm	_AVG_16,8,3                     ; @AVG_16
	.comm	_AB8500_GPADC_CTRL3_REG,4,2     ; @AB8500_GPADC_CTRL3_REG
	.comm	_EN_TRIG_EDGE,8,3               ; @EN_TRIG_EDGE
	.comm	_EN_FALLING,8,3                 ; @EN_FALLING
	.comm	_AB8500_GPADC_CTRL2_REG,4,2     ; @AB8500_GPADC_CTRL2_REG
l_.str.1:                               ; @.str.1
	.asciz	"gpadc_conversion: set avg samples failed\n"

	.comm	_EN_BUF,8,3                     ; @EN_BUF
	.comm	_EN_ICHAR,8,3                   ; @EN_ICHAR
	.comm	_BTEMP_PULL_UP,8,3              ; @BTEMP_PULL_UP
	.comm	_AB8500_GPADC_CTRL1_REG,4,2     ; @AB8500_GPADC_CTRL1_REG
l_.str.2:                               ; @.str.2
	.asciz	"gpadc_conversion: set Control register failed\n"

	.comm	_AB8500_GPADC_AUTO_TIMER_REG,4,2 ; @AB8500_GPADC_AUTO_TIMER_REG
l_.str.3:                               ; @.str.3
	.asciz	"gpadc_conversion: trig timer failed\n"

	.comm	_HZ,4,2                         ; @HZ
	.comm	_AB8500_GPADC_AUTODATAL_REG,8,3 ; @AB8500_GPADC_AUTODATAL_REG
	.comm	_AB8500_GPADC_AUTODATAH_REG,8,3 ; @AB8500_GPADC_AUTODATAH_REG
	.comm	_ADC_SW_CONV,4,2                ; @ADC_SW_CONV
l_.str.4:                               ; @.str.4
	.asciz	"gpadc_conversion: start s/w conv failed\n"

	.comm	_CONVERSION_TIME,4,2            ; @CONVERSION_TIME
	.comm	_AB8500_GPADC_MANDATAL_REG,8,3  ; @AB8500_GPADC_MANDATAL_REG
	.comm	_AB8500_GPADC_MANDATAH_REG,8,3  ; @AB8500_GPADC_MANDATAH_REG
l_.str.5:                               ; @.str.5
	.asciz	"timeout didn't receive GPADC conv interrupt\n"

l_.str.6:                               ; @.str.6
	.asciz	"gpadc_conversion: read low data failed\n"

l_.str.7:                               ; @.str.7
	.asciz	"gpadc_conversion: read high data failed\n"

	.comm	_BAT_CTRL_AND_IBAT,8,3          ; @BAT_CTRL_AND_IBAT
	.comm	_VBAT_MEAS_AND_IBAT,8,3         ; @VBAT_MEAS_AND_IBAT
	.comm	_VBAT_TRUE_MEAS_AND_IBAT,8,3    ; @VBAT_TRUE_MEAS_AND_IBAT
	.comm	_BAT_TEMP_AND_IBAT,8,3          ; @BAT_TEMP_AND_IBAT
l_.str.8:                               ; @.str.8
	.asciz	"gpadc_conversion: only SW double conversion supported\n"

	.comm	_AB8540_GPADC_MANDATA2L_REG,8,3 ; @AB8540_GPADC_MANDATA2L_REG
l_.str.9:                               ; @.str.9
	.asciz	"gpadc_conversion: read sw low data 2 failed\n"

	.comm	_AB8540_GPADC_MANDATA2H_REG,8,3 ; @AB8540_GPADC_MANDATA2H_REG
l_.str.10:                              ; @.str.10
	.asciz	"gpadc_conversion: read sw high data 2 failed\n"

l_.str.11:                              ; @.str.11
	.asciz	"gpadc_conversion: ibat not stored\n"

	.comm	_DIS_GPADC,8,3                  ; @DIS_GPADC
l_.str.12:                              ; @.str.12
	.asciz	"gpadc_conversion: disable gpadc failed\n"

l_.str.13:                              ; @.str.13
	.asciz	"gpadc_conversion: Failed to AD convert channel %d\n"

.subsections_via_symbols
