	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx7d_adc_channel_set
_imx7d_adc_channel_set:                 ## @imx7d_adc_channel_set
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_IMX7D_REG_ADC_CH_CFG1_CHANNEL_EN@GOTPCREL(%rip), %rax
	movq	_IMX7D_REG_ADC_CH_CFG1_CHANNEL_SINGLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movslq	(%rdi), %r15
	movq	_IMX7D_REG_ADC_CH_CFG1_CHANNEL_AVG_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%r15d, %edi
	callq	_IMX7D_REG_ADC_CH_CFG1_CHANNEL_SEL
	orl	%eax, %ebx
	movq	_IMX7D_EACH_CHANNEL_REG_OFFSET@GOTPCREL(%rip), %r12
	movslq	(%r12), %rax
	imulq	%r15, %rax
	movq	_IMX7D_REG_ADC_CHANNEL_CFG2_BASE@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	8(%r14), %rdi
	addq	%rax, %rdi
	callq	_readl
	movq	_imx7d_adc_average_num@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	16(%r14), %rdx
	orl	(%rcx,%rdx,4), %eax
	movslq	(%r12), %rcx
	imulq	%r15, %rcx
	movq	(%r13), %rsi
	addq	8(%r14), %rsi
	addq	%rcx, %rsi
	movl	%eax, %edi
	callq	_writel
	movslq	(%r12), %rsi
	imulq	%r15, %rsi
	addq	8(%r14), %rsi
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IMX7D_REG_ADC_CH_CFG1_CHANNEL_EN,4,2 ## @IMX7D_REG_ADC_CH_CFG1_CHANNEL_EN
	.comm	_IMX7D_REG_ADC_CH_CFG1_CHANNEL_SINGLE,4,2 ## @IMX7D_REG_ADC_CH_CFG1_CHANNEL_SINGLE
	.comm	_IMX7D_REG_ADC_CH_CFG1_CHANNEL_AVG_EN,4,2 ## @IMX7D_REG_ADC_CH_CFG1_CHANNEL_AVG_EN
	.comm	_IMX7D_EACH_CHANNEL_REG_OFFSET,4,2 ## @IMX7D_EACH_CHANNEL_REG_OFFSET
	.comm	_IMX7D_REG_ADC_CHANNEL_CFG2_BASE,8,3 ## @IMX7D_REG_ADC_CHANNEL_CFG2_BASE
	.comm	_imx7d_adc_average_num,8,3      ## @imx7d_adc_average_num
	.no_dead_strip	_imx7d_adc_channel_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx7d_adc_channel_set
_imx7d_adc_channel_set:                 ; @imx7d_adc_channel_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldrsw	x20, [x0]
Lloh0:
	adrp	x8, _IMX7D_REG_ADC_CH_CFG1_CHANNEL_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IMX7D_REG_ADC_CH_CFG1_CHANNEL_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IMX7D_REG_ADC_CH_CFG1_CHANNEL_SINGLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IMX7D_REG_ADC_CH_CFG1_CHANNEL_SINGLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _IMX7D_REG_ADC_CH_CFG1_CHANNEL_AVG_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IMX7D_REG_ADC_CH_CFG1_CHANNEL_AVG_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w21, w8, w9
	mov	x0, x20
	bl	_IMX7D_REG_ADC_CH_CFG1_CHANNEL_SEL
	orr	w21, w21, w0
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x22, _IMX7D_EACH_CHANNEL_REG_OFFSET@GOTPAGE
Lloh10:
	ldr	x22, [x22, _IMX7D_EACH_CHANNEL_REG_OFFSET@GOTPAGEOFF]
	ldrsw	x9, [x22]
Lloh11:
	adrp	x23, _IMX7D_REG_ADC_CHANNEL_CFG2_BASE@GOTPAGE
Lloh12:
	ldr	x23, [x23, _IMX7D_REG_ADC_CHANNEL_CFG2_BASE@GOTPAGEOFF]
	ldr	x10, [x23]
	add	x8, x10, x8
	madd	x0, x9, x20, x8
	bl	_readl
Lloh13:
	adrp	x8, _imx7d_adc_average_num@GOTPAGE
Lloh14:
	ldr	x8, [x8, _imx7d_adc_average_num@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldp	x10, x9, [x19, #8]
	ldr	w8, [x8, x9, lsl #2]
	orr	w0, w8, w0
	ldrsw	x8, [x22]
	ldr	x9, [x23]
	add	x9, x9, x10
	madd	x1, x8, x20, x9
	bl	_writel
	ldr	x8, [x19, #8]
	ldrsw	x9, [x22]
	madd	x1, x9, x20, x8
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IMX7D_REG_ADC_CH_CFG1_CHANNEL_EN,4,2 ; @IMX7D_REG_ADC_CH_CFG1_CHANNEL_EN
	.comm	_IMX7D_REG_ADC_CH_CFG1_CHANNEL_SINGLE,4,2 ; @IMX7D_REG_ADC_CH_CFG1_CHANNEL_SINGLE
	.comm	_IMX7D_REG_ADC_CH_CFG1_CHANNEL_AVG_EN,4,2 ; @IMX7D_REG_ADC_CH_CFG1_CHANNEL_AVG_EN
	.comm	_IMX7D_EACH_CHANNEL_REG_OFFSET,4,2 ; @IMX7D_EACH_CHANNEL_REG_OFFSET
	.comm	_IMX7D_REG_ADC_CHANNEL_CFG2_BASE,8,3 ; @IMX7D_REG_ADC_CHANNEL_CFG2_BASE
	.comm	_imx7d_adc_average_num,8,3      ; @imx7d_adc_average_num
	.no_dead_strip	_imx7d_adc_channel_set
.subsections_via_symbols
