	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function palmas_gpadc_probe
_palmas_gpadc_probe:                    ## @palmas_gpadc_probe
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	$0, -48(%rbp)
	movl	(%rdi), %edi
	callq	_dev_get_platdata
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, -48(%rbp)
	jmp	LBB0_3
LBB0_5:
	cmpq	$0, 8(%r14)
	je	LBB0_9
## %bb.6:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_palmas_gpadc_get_adc_dt_data
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	cmpq	$0, -48(%rbp)
	je	LBB0_9
LBB0_3:
	movq	%r14, %rdi
	movl	$72, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.10:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movq	%r14, 32(%rax)
	movl	(%r14), %edi
	callq	_dev_get_drvdata
	movl	%eax, 60(%r12)
	movq	_palmas_gpadc_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r12)
	leaq	68(%r12), %rdi
	callq	_init_completion
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
	movq	-48(%rbp), %rax
	movl	28(%rax), %eax
	movl	%eax, 64(%r12)
	movl	60(%r12), %edi
	movq	_PALMAS_GPADC_EOC_SW_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_palmas_irq_get_virq
	movl	%eax, %r13d
	movl	%eax, (%r12)
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_palmas_gpadc_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	32(%r12), %rdi
	callq	_dev_name
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movq	%rax, %r8
	movq	%r12, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movq	-48(%rbp), %rax
	movq	8(%rax), %rsi
	testq	%rsi, %rsi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %r13
	je	LBB0_17
## %bb.15:
	leaq	56(%r12), %rdi
	movl	$4, %edx
	callq	_memcpy
	movl	$1, 4(%r12)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_platform_get_irq
	movl	%eax, 8(%r12)
	movq	_palmas_gpadc_irq_auto@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%r13), %ecx
	leaq	L_.str.3(%rip), %r8
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r12, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_47
## %bb.16:
	movq	-48(%rbp), %rax
LBB0_17:
	movq	16(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.18:
	movq	%r12, %rdi
	addq	$52, %rdi
	movl	$4, %edx
	callq	_memcpy
	movl	$1, 12(%r12)
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_platform_get_irq
	movl	%eax, 16(%r12)
	movq	_palmas_gpadc_irq_auto@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	(%r13), %ecx
	leaq	L_.str.5(%rip), %r8
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r12, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_49
## %bb.19:
	movq	-48(%rbp), %rax
LBB0_20:
	movl	(%rax), %ecx
	cmpl	$2, %ecx
	jge	LBB0_22
## %bb.21:
	movq	_PALMAS_ADC_CH0_CURRENT_SRC_0@GOTPCREL(%rip), %rcx
	jmp	LBB0_27
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_46
LBB0_4:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_46
LBB0_7:
	movl	%eax, %ebx
	jmp	LBB0_46
LBB0_11:
	movq	32(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r12), %ebx
	jmp	LBB0_46
LBB0_13:
	movl	%eax, %ebx
	movq	32(%r12), %rdi
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_46
LBB0_22:
	cmpl	$6, %ecx
	jae	LBB0_24
## %bb.23:
	movq	_PALMAS_ADC_CH0_CURRENT_SRC_5@GOTPCREL(%rip), %rcx
	jmp	LBB0_27
LBB0_47:
	movl	%eax, %ebx
	movq	32(%r12), %rdi
	movl	8(%r12), %edx
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_48
LBB0_49:
	movl	%eax, %ebx
	movq	32(%r12), %rdi
	movl	16(%r12), %edx
	leaq	L_.str.6(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_50
LBB0_24:
	cmpl	$16, %ecx
	jae	LBB0_25
## %bb.26:
	movq	_PALMAS_ADC_CH0_CURRENT_SRC_15@GOTPCREL(%rip), %rcx
	jmp	LBB0_27
LBB0_25:
	movq	_PALMAS_ADC_CH0_CURRENT_SRC_20@GOTPCREL(%rip), %rcx
LBB0_27:
	movl	(%rcx), %ecx
	movl	%ecx, 48(%r12)
	movl	4(%rax), %ecx
	cmpl	$2, %ecx
	jge	LBB0_29
## %bb.28:
	movq	_PALMAS_ADC_CH3_CURRENT_SRC_0@GOTPCREL(%rip), %rcx
	jmp	LBB0_34
LBB0_29:
	cmpl	$11, %ecx
	jae	LBB0_31
## %bb.30:
	movq	_PALMAS_ADC_CH3_CURRENT_SRC_10@GOTPCREL(%rip), %rcx
	jmp	LBB0_34
LBB0_31:
	cmpl	$401, %ecx                      ## imm = 0x191
	jae	LBB0_32
## %bb.33:
	movq	_PALMAS_ADC_CH3_CURRENT_SRC_400@GOTPCREL(%rip), %rcx
	jmp	LBB0_34
LBB0_32:
	movq	_PALMAS_ADC_CH3_CURRENT_SRC_800@GOTPCREL(%rip), %rcx
LBB0_34:
	movl	(%rcx), %ecx
	movl	%ecx, 44(%r12)
	movl	24(%rax), %eax
	movl	%eax, 40(%r12)
	movq	_MOD_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movq	%r14, 24(%r15)
	movq	_palmas_gpadc_iio_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_palmas_gpadc_iio_channel@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	js	LBB0_35
## %bb.37:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_device_set_wakeup_capable
	movq	_PALMAS_ADC_CH_MAX@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_42
## %bb.38:
	xorl	%ebx, %ebx
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_39 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_42
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rcx
	cmpl	$0, (%rcx,%rbx,4)
	jne	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_39 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_palmas_gpadc_calibrate
	movl	(%r15), %eax
	jmp	LBB0_41
LBB0_42:
	cmpl	$0, 4(%r12)
	jne	LBB0_44
## %bb.43:
	cmpl	$0, 12(%r12)
	je	LBB0_45
LBB0_44:
	movq	%r14, %rdi
	callq	_device_wakeup_enable
LBB0_45:
	xorl	%ebx, %ebx
	jmp	LBB0_46
LBB0_35:
	movl	%eax, %ebx
	movq	32(%r12), %rdi
	leaq	L_.str.7(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	-48(%rbp), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_50
## %bb.36:
	movl	16(%r12), %edi
	movq	%r12, %rsi
	callq	_free_irq
LBB0_50:
	movq	-48(%rbp), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_48
## %bb.51:
	movl	8(%r12), %edi
	movq	%r12, %rsi
	callq	_free_irq
LBB0_48:
	movl	(%r12), %edi
	movq	%r12, %rsi
	callq	_free_irq
LBB0_46:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iio_device_alloc failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_palmas_gpadc_info,8,3          ## @palmas_gpadc_info
	.comm	_PALMAS_GPADC_EOC_SW_IRQ,4,2    ## @PALMAS_GPADC_EOC_SW_IRQ
L_.str.1:                               ## @.str.1
	.asciz	"get virq failed: %d\n"

	.comm	_palmas_gpadc_irq,4,2           ## @palmas_gpadc_irq
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
L_.str.2:                               ## @.str.2
	.asciz	"request irq %d failed: %d\n"

	.comm	_palmas_gpadc_irq_auto,4,2      ## @palmas_gpadc_irq_auto
L_.str.3:                               ## @.str.3
	.asciz	"palmas-adc-auto-0"

L_.str.4:                               ## @.str.4
	.asciz	"request auto0 irq %d failed: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"palmas-adc-auto-1"

L_.str.6:                               ## @.str.6
	.asciz	"request auto1 irq %d failed: %d\n"

	.comm	_PALMAS_ADC_CH0_CURRENT_SRC_0,4,2 ## @PALMAS_ADC_CH0_CURRENT_SRC_0
	.comm	_PALMAS_ADC_CH0_CURRENT_SRC_5,4,2 ## @PALMAS_ADC_CH0_CURRENT_SRC_5
	.comm	_PALMAS_ADC_CH0_CURRENT_SRC_15,4,2 ## @PALMAS_ADC_CH0_CURRENT_SRC_15
	.comm	_PALMAS_ADC_CH0_CURRENT_SRC_20,4,2 ## @PALMAS_ADC_CH0_CURRENT_SRC_20
	.comm	_PALMAS_ADC_CH3_CURRENT_SRC_0,4,2 ## @PALMAS_ADC_CH3_CURRENT_SRC_0
	.comm	_PALMAS_ADC_CH3_CURRENT_SRC_10,4,2 ## @PALMAS_ADC_CH3_CURRENT_SRC_10
	.comm	_PALMAS_ADC_CH3_CURRENT_SRC_400,4,2 ## @PALMAS_ADC_CH3_CURRENT_SRC_400
	.comm	_PALMAS_ADC_CH3_CURRENT_SRC_800,4,2 ## @PALMAS_ADC_CH3_CURRENT_SRC_800
	.comm	_MOD_NAME,4,2                   ## @MOD_NAME
	.comm	_palmas_gpadc_iio_info,4,2      ## @palmas_gpadc_iio_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_palmas_gpadc_iio_channel,4,2   ## @palmas_gpadc_iio_channel
L_.str.7:                               ## @.str.7
	.asciz	"iio_device_register() failed: %d\n"

	.comm	_PALMAS_ADC_CH_MAX,4,2          ## @PALMAS_ADC_CH_MAX
	.no_dead_strip	_palmas_gpadc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function palmas_gpadc_probe
_palmas_gpadc_probe:                    ; @palmas_gpadc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x0
	str	xzr, [sp, #24]
	ldr	w0, [x0]
	bl	_dev_get_platdata
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.2:
	str	x8, [sp, #24]
	b	LBB0_6
LBB0_3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_17
; %bb.4:
	add	x1, sp, #24
	mov	x0, x20
	bl	_palmas_gpadc_get_adc_dt_data
	tbnz	w0, #31, LBB0_20
; %bb.5:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_17
LBB0_6:
	mov	x0, x20
	mov	w1, #72
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_18
; %bb.7:
	mov	x21, x0
	bl	_iio_priv
	mov	x19, x0
	str	x20, [x0, #32]
	ldr	w0, [x20]
	bl	_dev_get_drvdata
	str	w0, [x19, #60]
Lloh0:
	adrp	x8, _palmas_gpadc_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _palmas_gpadc_info@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	add	x0, x19, #68
	bl	_init_completion
	mov	x0, x20
	mov	x1, x21
	bl	_dev_set_drvdata
	ldr	x8, [sp, #24]
	ldr	w8, [x8, #28]
	str	w8, [x19, #64]
	ldr	w0, [x19, #60]
Lloh3:
	adrp	x8, _PALMAS_GPADC_EOC_SW_IRQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PALMAS_GPADC_EOC_SW_IRQ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_palmas_irq_get_virq
	mov	x22, x0
	str	w0, [x19]
	tbnz	w0, #31, LBB0_21
; %bb.8:
Lloh6:
	adrp	x8, _palmas_gpadc_irq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _palmas_gpadc_irq@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
Lloh9:
	adrp	x25, _IRQF_ONESHOT@GOTPAGE
Lloh10:
	ldr	x25, [x25, _IRQF_ONESHOT@GOTPAGEOFF]
	ldr	w24, [x25]
	ldr	x0, [x19, #32]
	bl	_dev_name
	mov	x4, x0
	mov	x0, x22
	mov	x1, #0
	mov	x2, x23
	mov	x3, x24
	mov	x5, x19
	bl	_request_threaded_irq
	tbnz	w0, #31, LBB0_22
; %bb.9:
	ldr	x8, [sp, #24]
	ldr	x1, [x8, #8]
Lloh11:
	adrp	x23, _palmas_gpadc_irq_auto@GOTPAGE
Lloh12:
	ldr	x23, [x23, _palmas_gpadc_irq_auto@GOTPAGEOFF]
	cbz	x1, LBB0_12
; %bb.10:
	add	x0, x19, #56
	mov	w2, #4
	bl	_memcpy
	mov	w8, #1
	str	w8, [x19, #4]
	mov	x0, x20
	mov	w1, #1
	bl	_platform_get_irq
	str	w0, [x19, #8]
	ldr	w2, [x23]
	ldr	w3, [x25]
Lloh13:
	adrp	x4, l_.str.3@PAGE
Lloh14:
	add	x4, x4, l_.str.3@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, #0
	mov	x5, x19
	bl	_request_threaded_irq
	tbnz	w0, #31, LBB0_25
; %bb.11:
	ldr	x8, [sp, #24]
LBB0_12:
	ldr	x1, [x8, #16]
	cbz	x1, LBB0_15
; %bb.13:
	add	x0, x19, #52
	mov	w2, #4
	bl	_memcpy
	mov	w8, #1
	str	w8, [x19, #12]
	mov	x0, x20
	mov	w1, #2
	bl	_platform_get_irq
	str	w0, [x19, #16]
	ldr	w2, [x23]
	ldr	w3, [x25]
Lloh15:
	adrp	x4, l_.str.5@PAGE
Lloh16:
	add	x4, x4, l_.str.5@PAGEOFF
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, #0
	mov	x5, x19
	bl	_request_threaded_irq
	tbnz	w0, #31, LBB0_26
; %bb.14:
	ldr	x8, [sp, #24]
LBB0_15:
	ldr	w9, [x8]
	cmp	w9, #2
	b.ge	LBB0_23
; %bb.16:
Lloh17:
	adrp	x9, _PALMAS_ADC_CH0_CURRENT_SRC_0@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PALMAS_ADC_CH0_CURRENT_SRC_0@GOTPAGEOFF]
	b	LBB0_28
LBB0_17:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_19
LBB0_18:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_48
LBB0_20:
	mov	x21, x0
	b	LBB0_48
LBB0_21:
	ldr	x0, [x19, #32]
	str	x22, [sp]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	w21, [x19]
	b	LBB0_48
LBB0_22:
	mov	x22, x0
	ldr	x0, [x19, #32]
	ldr	w8, [x19]
	stp	x8, x22, [sp]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	mov	x21, x22
	b	LBB0_48
LBB0_23:
	cmp	w9, #6
	b.hs	LBB0_27
; %bb.24:
Lloh29:
	adrp	x9, _PALMAS_ADC_CH0_CURRENT_SRC_5@GOTPAGE
Lloh30:
	ldr	x9, [x9, _PALMAS_ADC_CH0_CURRENT_SRC_5@GOTPAGEOFF]
	b	LBB0_28
LBB0_25:
	mov	x22, x0
	ldr	x0, [x19, #32]
	ldr	w8, [x19, #8]
	stp	x8, x22, [sp]
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_err
	mov	x21, x22
	b	LBB0_47
LBB0_26:
	mov	x22, x0
	ldr	x0, [x19, #32]
	ldr	w8, [x19, #16]
	stp	x8, x22, [sp]
Lloh33:
	adrp	x1, l_.str.6@PAGE
Lloh34:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_err
	mov	x21, x22
	b	LBB0_45
LBB0_27:
Lloh35:
	adrp	x10, _PALMAS_ADC_CH0_CURRENT_SRC_20@GOTPAGE
Lloh36:
	ldr	x10, [x10, _PALMAS_ADC_CH0_CURRENT_SRC_20@GOTPAGEOFF]
Lloh37:
	adrp	x11, _PALMAS_ADC_CH0_CURRENT_SRC_15@GOTPAGE
Lloh38:
	ldr	x11, [x11, _PALMAS_ADC_CH0_CURRENT_SRC_15@GOTPAGEOFF]
	cmp	w9, #16
	csel	x9, x11, x10, lo
LBB0_28:
	ldr	w9, [x9]
	str	w9, [x19, #48]
	ldr	w9, [x8, #4]
	cmp	w9, #2
	b.ge	LBB0_30
; %bb.29:
Lloh39:
	adrp	x9, _PALMAS_ADC_CH3_CURRENT_SRC_0@GOTPAGE
Lloh40:
	ldr	x9, [x9, _PALMAS_ADC_CH3_CURRENT_SRC_0@GOTPAGEOFF]
	b	LBB0_33
LBB0_30:
	cmp	w9, #11
	b.hs	LBB0_32
; %bb.31:
Lloh41:
	adrp	x9, _PALMAS_ADC_CH3_CURRENT_SRC_10@GOTPAGE
Lloh42:
	ldr	x9, [x9, _PALMAS_ADC_CH3_CURRENT_SRC_10@GOTPAGEOFF]
	b	LBB0_33
LBB0_32:
Lloh43:
	adrp	x10, _PALMAS_ADC_CH3_CURRENT_SRC_800@GOTPAGE
Lloh44:
	ldr	x10, [x10, _PALMAS_ADC_CH3_CURRENT_SRC_800@GOTPAGEOFF]
Lloh45:
	adrp	x11, _PALMAS_ADC_CH3_CURRENT_SRC_400@GOTPAGE
Lloh46:
	ldr	x11, [x11, _PALMAS_ADC_CH3_CURRENT_SRC_400@GOTPAGEOFF]
	cmp	w9, #401
	csel	x9, x11, x10, lo
LBB0_33:
	ldr	w9, [x9]
	ldr	w8, [x8, #24]
	stp	w8, w9, [x19, #40]
Lloh47:
	adrp	x8, _MOD_NAME@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MOD_NAME@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	str	w8, [x21, #32]
Lloh50:
	adrp	x8, _palmas_gpadc_iio_info@GOTPAGE
Lloh51:
	ldr	x8, [x8, _palmas_gpadc_iio_info@GOTPAGEOFF]
	stp	x8, x20, [x21, #16]
Lloh52:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh54:
	ldr	w8, [x8]
Lloh55:
	adrp	x9, _palmas_gpadc_iio_channel@GOTPAGE
Lloh56:
	ldr	x9, [x9, _palmas_gpadc_iio_channel@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x9]
	stp	w0, w8, [x21, #4]
	bl	_ARRAY_SIZE
	str	w0, [x21]
	mov	x0, x21
	bl	_iio_device_register
	tbnz	w0, #31, LBB0_43
; %bb.34:
	mov	x0, x20
	mov	w1, #1
	bl	_device_set_wakeup_capable
Lloh58:
	adrp	x22, _PALMAS_ADC_CH_MAX@GOTPAGE
Lloh59:
	ldr	x22, [x22, _PALMAS_ADC_CH_MAX@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_39
; %bb.35:
	mov	x21, #0
	b	LBB0_37
LBB0_36:                                ;   in Loop: Header=BB0_37 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_39
LBB0_37:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	ldr	w9, [x9, x21, lsl #2]
	cbnz	w9, LBB0_36
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_palmas_gpadc_calibrate
	ldr	w8, [x22]
	b	LBB0_36
LBB0_39:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_41
; %bb.40:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_42
LBB0_41:
	mov	x0, x20
	bl	_device_wakeup_enable
LBB0_42:
	mov	w21, #0
	b	LBB0_48
LBB0_43:
	mov	x21, x0
	ldr	x0, [x19, #32]
	str	x21, [sp]
Lloh60:
	adrp	x1, l_.str.7@PAGE
Lloh61:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_err
	ldr	x8, [sp, #24]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_45
; %bb.44:
	ldr	w0, [x19, #16]
	mov	x1, x19
	bl	_free_irq
LBB0_45:
	ldr	x8, [sp, #24]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_47
; %bb.46:
	ldr	w0, [x19, #8]
	mov	x1, x19
	bl	_free_irq
LBB0_47:
	ldr	w0, [x19]
	mov	x1, x19
	bl	_free_irq
LBB0_48:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpAdd	Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iio_device_alloc failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_palmas_gpadc_info,8,3          ; @palmas_gpadc_info
	.comm	_PALMAS_GPADC_EOC_SW_IRQ,4,2    ; @PALMAS_GPADC_EOC_SW_IRQ
l_.str.1:                               ; @.str.1
	.asciz	"get virq failed: %d\n"

	.comm	_palmas_gpadc_irq,4,2           ; @palmas_gpadc_irq
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
l_.str.2:                               ; @.str.2
	.asciz	"request irq %d failed: %d\n"

	.comm	_palmas_gpadc_irq_auto,4,2      ; @palmas_gpadc_irq_auto
l_.str.3:                               ; @.str.3
	.asciz	"palmas-adc-auto-0"

l_.str.4:                               ; @.str.4
	.asciz	"request auto0 irq %d failed: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"palmas-adc-auto-1"

l_.str.6:                               ; @.str.6
	.asciz	"request auto1 irq %d failed: %d\n"

	.comm	_PALMAS_ADC_CH0_CURRENT_SRC_0,4,2 ; @PALMAS_ADC_CH0_CURRENT_SRC_0
	.comm	_PALMAS_ADC_CH0_CURRENT_SRC_5,4,2 ; @PALMAS_ADC_CH0_CURRENT_SRC_5
	.comm	_PALMAS_ADC_CH0_CURRENT_SRC_15,4,2 ; @PALMAS_ADC_CH0_CURRENT_SRC_15
	.comm	_PALMAS_ADC_CH0_CURRENT_SRC_20,4,2 ; @PALMAS_ADC_CH0_CURRENT_SRC_20
	.comm	_PALMAS_ADC_CH3_CURRENT_SRC_0,4,2 ; @PALMAS_ADC_CH3_CURRENT_SRC_0
	.comm	_PALMAS_ADC_CH3_CURRENT_SRC_10,4,2 ; @PALMAS_ADC_CH3_CURRENT_SRC_10
	.comm	_PALMAS_ADC_CH3_CURRENT_SRC_400,4,2 ; @PALMAS_ADC_CH3_CURRENT_SRC_400
	.comm	_PALMAS_ADC_CH3_CURRENT_SRC_800,4,2 ; @PALMAS_ADC_CH3_CURRENT_SRC_800
	.comm	_MOD_NAME,4,2                   ; @MOD_NAME
	.comm	_palmas_gpadc_iio_info,4,2      ; @palmas_gpadc_iio_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_palmas_gpadc_iio_channel,4,2   ; @palmas_gpadc_iio_channel
l_.str.7:                               ; @.str.7
	.asciz	"iio_device_register() failed: %d\n"

	.comm	_PALMAS_ADC_CH_MAX,4,2          ; @PALMAS_ADC_CH_MAX
	.no_dead_strip	_palmas_gpadc_probe
.subsections_via_symbols
