	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm8xxx_xoadc_parse_channel
_pm8xxx_xoadc_parse_channel:            ## @pm8xxx_xoadc_parse_channel
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %r12
	leaq	L_.str(%rip), %rsi
	leaq	-88(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	jmp	LBB0_2
LBB0_3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %r12                ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	leaq	-80(%rbp), %rcx
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	je	LBB0_4
## %bb.27:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_2:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_26:
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.5:
	cmpq	$0, 32(%rbx)
	je	LBB0_10
## %bb.6:
	movq	%r14, %r13
	movq	-88(%rbp), %rax
	movq	-80(%rbp), %rcx
	xorl	%r14d, %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incl	%r14d
	cmpq	$0, 72(%rbx)
	leaq	40(%rbx), %rbx
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, (%rbx)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rcx, 8(%rbx)
	jne	LBB0_9
## %bb.13:
	leaq	32(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
LBB0_11:
	cmpq	$0, 32
	je	LBB0_10
## %bb.12:
	movq	%r14, %r13
	xorl	%r14d, %r14d
	movl	$32, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
LBB0_14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r12)
	movq	%rbx, 24(%r12)
	movq	_VADC_CALIB_ABSOLUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_VADC_DEF_DECIMATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	leaq	L_.str.4(%rip), %rsi
	leaq	-112(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_15
LBB0_21:
	leaq	L_.str.7(%rip), %rsi
	leaq	-72(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_25
## %bb.22:
	movq	%r13, %r15
	movq	-72(%rbp), %rdi
	callq	_qcom_vadc_decimation_from_dt
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_23
## %bb.24:
	movl	%r13d, 8(%r12)
	movq	%r15, %r13
LBB0_25:
	movl	%r14d, (%r13)
	movq	8(%rbx), %rax
	movq	%rax, 8(%r13)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, 32(%r13)
	movl	28(%rbx), %eax
	movl	%eax, 24(%r13)
	movq	_IIO_CHAN_INFO_RAW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r15d
	movq	_IIO_CHAN_INFO_PROCESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%r15d, %eax
	movl	%eax, 16(%r13)
	movl	$1, 20(%r13)
	movq	(%rbx), %rdx
	movq	8(%rbx), %rcx
	movq	(%r12), %r8
	movl	12(%r12), %r9d
	movl	8(%r12), %r10d
	movl	24(%rbx), %r11d
	movl	20(%rbx), %eax
	movl	16(%rbx), %ebx
	leaq	L_.str.9(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	pushq	%rbx
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_dev_dbg
	addq	$32, %rsp
	xorl	%r13d, %r13d
	jmp	LBB0_26
LBB0_10:
	movq	-88(%rbp), %rdx
	movq	-80(%rbp), %rcx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r13d, %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_18:
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_26
LBB0_15:
	movq	_VADC_CALIB_RATIOMETRIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %rcx
	movl	%eax, 16(%r12)
	movq	-112(%rbp), %rcx
	movq	_XOADC_RSV_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jle	LBB0_19
## %bb.16:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_17
LBB0_19:
	movq	_AMUX_RSV3@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_21
## %bb.20:
	leaq	L_.str.6(%rip), %rsi
LBB0_17:
	xorl	%r13d, %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_23:
	movq	-72(%rbp), %rcx
	leaq	L_.str.8(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

L_.str.1:                               ## @.str.1
	.asciz	"invalid pre scale/mux number %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"invalid amux channel number %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"could not locate channel %02x/%02x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VADC_CALIB_ABSOLUTE,4,2        ## @VADC_CALIB_ABSOLUTE
	.comm	_VADC_DEF_DECIMATION,4,2        ## @VADC_DEF_DECIMATION
L_.str.4:                               ## @.str.4
	.asciz	"qcom,ratiometric"

	.comm	_VADC_CALIB_RATIOMETRIC,4,2     ## @VADC_CALIB_RATIOMETRIC
	.comm	_XOADC_RSV_MAX,8,3              ## @XOADC_RSV_MAX
L_.str.5:                               ## @.str.5
	.asciz	"%s too large RSV value %d\n"

	.comm	_AMUX_RSV3,8,3                  ## @AMUX_RSV3
L_.str.6:                               ## @.str.6
	.asciz	"%s invalid RSV value %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"qcom,decimation"

L_.str.8:                               ## @.str.8
	.asciz	"%s invalid decimation %d\n"

	.comm	_IIO_CHAN_INFO_RAW,4,2          ## @IIO_CHAN_INFO_RAW
	.comm	_IIO_CHAN_INFO_PROCESSED,4,2    ## @IIO_CHAN_INFO_PROCESSED
L_.str.9:                               ## @.str.9
	.asciz	"channel [PRESCALE/MUX: %02x AMUX: %02x] \"%s\" ref voltage: %d, decimation %d prescale %d/%d, scale function %d\n"

	.no_dead_strip	_pm8xxx_xoadc_parse_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm8xxx_xoadc_parse_channel
_pm8xxx_xoadc_parse_channel:            ; @pm8xxx_xoadc_parse_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	ldr	x21, [x1]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #40
	mov	x0, x24
	mov	w2, #0
	bl	_of_property_read_u32_index
	cbz	w0, LBB0_2
; %bb.1:
	mov	x25, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #32
	mov	x0, x24
	mov	w2, #1
	bl	_of_property_read_u32_index
	cbz	w0, LBB0_6
; %bb.3:
	mov	x25, x0
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_5:
	mov	x0, x25
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	cbz	x23, LBB0_13
; %bb.7:
	ldr	x8, [x23, #32]
	cbz	x8, LBB0_20
; %bb.8:
	mov	w26, #0
	ldp	x9, x8, [sp, #32]
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x10, [x23, #72]
	add	x23, x23, #40
	add	w26, w26, #1
	cbz	x10, LBB0_20
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x23]
	cmp	x10, x8
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x10, [x23, #8]
	cmp	x10, x9
	b.ne	LBB0_9
; %bb.12:
	add	x27, x23, #32
	b	LBB0_15
LBB0_13:
	mov	w27, #32
	ldr	x8, [x27]
	cbz	x8, LBB0_20
; %bb.14:
	mov	w26, #0
	mov	x23, #0
LBB0_15:
	str	x21, [x20]
	str	x23, [x20, #24]
Lloh8:
	adrp	x8, _VADC_CALIB_ABSOLUTE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VADC_CALIB_ABSOLUTE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #16]
Lloh11:
	adrp	x8, _VADC_DEF_DECIMATION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VADC_DEF_DECIMATION@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20, #8]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #24
	mov	x0, x24
	bl	_of_property_read_u32
	cbz	w0, LBB0_22
LBB0_16:
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x2, sp, #16
	mov	x0, x24
	bl	_of_property_read_u32
	cbnz	w0, LBB0_19
; %bb.17:
	ldr	x0, [sp, #16]
	bl	_qcom_vadc_decimation_from_dt
	mov	x25, x0
	tbnz	w0, #31, LBB0_27
; %bb.18:
	str	w25, [x20, #8]
LBB0_19:
	str	w26, [x22]
	ldr	x8, [x23, #8]
	str	x8, [x22, #8]
	ldr	x8, [x27]
	str	x8, [x22, #32]
	ldr	w8, [x23, #28]
	str	w8, [x22, #24]
Lloh18:
	adrp	x8, _IIO_CHAN_INFO_RAW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IIO_CHAN_INFO_RAW@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_BIT
	mov	x21, x0
Lloh21:
	adrp	x8, _IIO_CHAN_INFO_PROCESSED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IIO_CHAN_INFO_PROCESSED@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w0, w21
	mov	w9, #1
	stp	w8, w9, [x22, #16]
	ldp	x2, x3, [x23]
	ldr	x4, [x20]
	ldp	w6, w5, [x20, #8]
	ldp	w8, w7, [x23, #20]
	ldr	w9, [x23, #16]
	stp	w8, w9, [sp]
Lloh24:
	adrp	x1, l_.str.9@PAGE
Lloh25:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w25, #0
	b	LBB0_5
LBB0_20:
	ldp	x8, x2, [sp, #32]
	str	x8, [sp]
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
LBB0_21:
	bl	_dev_err
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_5
LBB0_22:
Lloh31:
	adrp	x8, _VADC_CALIB_RATIOMETRIC@GOTPAGE
Lloh32:
	ldr	x8, [x8, _VADC_CALIB_RATIOMETRIC@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	ldr	x8, [sp, #24]
Lloh34:
	adrp	x9, _XOADC_RSV_MAX@GOTPAGE
Lloh35:
	ldr	x9, [x9, _XOADC_RSV_MAX@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_24
; %bb.23:
	str	x8, [sp]
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_26
LBB0_24:
Lloh39:
	adrp	x9, _AMUX_RSV3@GOTPAGE
Lloh40:
	ldr	x9, [x9, _AMUX_RSV3@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.25:
	str	x8, [sp]
Lloh42:
	adrp	x1, l_.str.6@PAGE
Lloh43:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_26:
	mov	x0, x19
	mov	x2, x21
	b	LBB0_21
LBB0_27:
	ldr	x8, [sp, #16]
	str	x8, [sp]
Lloh44:
	adrp	x1, l_.str.8@PAGE
Lloh45:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

l_.str.1:                               ; @.str.1
	.asciz	"invalid pre scale/mux number %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"invalid amux channel number %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"could not locate channel %02x/%02x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VADC_CALIB_ABSOLUTE,4,2        ; @VADC_CALIB_ABSOLUTE
	.comm	_VADC_DEF_DECIMATION,4,2        ; @VADC_DEF_DECIMATION
l_.str.4:                               ; @.str.4
	.asciz	"qcom,ratiometric"

	.comm	_VADC_CALIB_RATIOMETRIC,4,2     ; @VADC_CALIB_RATIOMETRIC
	.comm	_XOADC_RSV_MAX,8,3              ; @XOADC_RSV_MAX
l_.str.5:                               ; @.str.5
	.asciz	"%s too large RSV value %d\n"

	.comm	_AMUX_RSV3,8,3                  ; @AMUX_RSV3
l_.str.6:                               ; @.str.6
	.asciz	"%s invalid RSV value %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"qcom,decimation"

l_.str.8:                               ; @.str.8
	.asciz	"%s invalid decimation %d\n"

	.comm	_IIO_CHAN_INFO_RAW,4,2          ; @IIO_CHAN_INFO_RAW
	.comm	_IIO_CHAN_INFO_PROCESSED,4,2    ; @IIO_CHAN_INFO_PROCESSED
l_.str.9:                               ; @.str.9
	.asciz	"channel [PRESCALE/MUX: %02x AMUX: %02x] \"%s\" ref voltage: %d, decimation %d prescale %d/%d, scale function %d\n"

	.no_dead_strip	_pm8xxx_xoadc_parse_channel
.subsections_via_symbols
