	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_adc_probe
_at91_adc_probe:                        ## @at91_adc_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, %r13
	movl	$96, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	cmpq	$0, 8(%r13)
	je	LBB0_8
## %bb.2:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_at91_adc_probe_dt
	testl	%eax, %eax
	je	LBB0_9
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_at91_adc_probe_pdata
	testl	%eax, %eax
	jne	LBB0_3
LBB0_9:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	%r13, 16(%r15)
	movq	%r13, %rdi
	callq	_dev_name
	movl	%eax, 12(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_at91_adc_info@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, (%r14)
	testq	%rax, %rax
	js	LBB0_12
## %bb.10:
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 88(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	88(%r14), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_12:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_13:
	movq	_AT91_ADC_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AT91_ADC_SWRST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_at91_adc_writel
	movq	_AT91_ADC_IDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$-1, %edx
	callq	_at91_adc_writel
	movq	(%r14), %rdi
	movq	80(%r14), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_15
## %bb.14:
	movq	_at91_adc_rl_interrupt@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_15:
	movq	_at91_adc_9x5_interrupt@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %esi
	movq	(%r13), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	movq	%r15, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_7
LBB0_18:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_clk_get
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	16(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_42
LBB0_20:
	movq	16(%r14), %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_42
LBB0_22:
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_clk_get
	movq	%rax, 24(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	24(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_41
LBB0_24:
	movq	24(%r14), %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movl	%eax, %r12d
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_41
LBB0_26:
	movq	16(%r14), %rdi
	callq	_clk_get_rate
	movl	%eax, %r12d
	movq	24(%r14), %rdi
	callq	_clk_get_rate
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_dev_dbg
	leal	(%rbx,%rbx), %ecx
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	72(%r14), %edi
	testl	%edi, %edi
	je	LBB0_37
## %bb.27:
	movl	%eax, %r12d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movl	%ebx, %eax
	imulq	$274877907, %rax, %rbx          ## imm = 0x10624DD3
	shrq	$38, %rbx
	decl	%r12d
	movq	80(%r14), %rax
	movl	%ebx, %esi
	callq	*(%rax)
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	8(%r14), %eax
	testl	%eax, %eax
	je	LBB0_29
## %bb.28:
	imull	%ebx, %eax
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	shrq	$38, %rdi
	decl	%edi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$1, %esi
	callq	_round_up
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_29:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	callq	_AT91_ADC_PRESCAL_
	movl	%eax, %ebx
	movq	64(%r14), %rax
	andl	(%rax), %ebx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_AT91_ADC_STARTUP_
	movl	%eax, %r12d
	movq	64(%r14), %rdx
	xorl	%eax, %eax
	movl	$0, %ecx
	andl	4(%rdx), %r12d
	cmpq	$0, 56(%r14)
	je	LBB0_31
## %bb.30:
	movq	_AT91_ADC_LOWRES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_31:
	orl	%ecx, %r12d
	cmpq	$0, 48(%r14)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	je	LBB0_33
## %bb.32:
	movq	_AT91_ADC_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_33:
	orl	%eax, %r12d
	callq	_AT91_ADC_SHTIM_
	movq	_AT91_ADC_SHTIM@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	orl	%eax, %r12d
	orl	%r12d, %ebx
	movq	_AT91_ADC_MR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_at91_adc_writel
	movq	%r15, %rdi
	callq	_at91_adc_channel_init
	testl	%eax, %eax
	js	LBB0_38
## %bb.34:
	leaq	40(%r14), %rdi
	callq	_init_waitqueue_head
	movq	%r14, %rdi
	addq	$36, %rdi
	callq	_mutex_init
	cmpl	$0, 32(%r14)
	je	LBB0_43
## %bb.35:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_at91_ts_register
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_40
## %bb.36:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_at91_ts_hw_init
	jmp	LBB0_45
LBB0_37:
	leaq	L_.str.9(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_40
LBB0_38:
	movl	%eax, %r12d
	leaq	L_.str.10(%rip), %rsi
LBB0_39:
	movq	%r13, %rdi
	callq	_dev_err
LBB0_40:
	movq	24(%r14), %rdi
	callq	_clk_disable_unprepare
LBB0_41:
	movq	16(%r14), %rdi
	callq	_clk_disable_unprepare
LBB0_42:
	movq	(%r14), %rdi
	movq	%r15, %rsi
	callq	_free_irq
	movl	%r12d, %ebx
	jmp	LBB0_7
LBB0_43:
	movq	%r15, %rdi
	callq	_at91_adc_buffer_init
	testl	%eax, %eax
	js	LBB0_48
## %bb.44:
	movq	%r15, %rdi
	callq	_at91_adc_trigger_init
	testl	%eax, %eax
	js	LBB0_49
LBB0_45:
	movq	%r15, %rdi
	callq	_iio_device_register
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jns	LBB0_7
## %bb.46:
	movl	%eax, %r12d
	leaq	L_.str.13(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	cmpl	$0, 32(%r14)
	je	LBB0_50
## %bb.47:
	movq	%r14, %rdi
	callq	_at91_ts_unregister
	jmp	LBB0_40
LBB0_48:
	movl	%eax, %r12d
	leaq	L_.str.11(%rip), %rsi
	jmp	LBB0_39
LBB0_49:
	movl	%eax, %r12d
	leaq	L_.str.12(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_51
LBB0_50:
	movq	%r15, %rdi
	callq	_at91_adc_trigger_remove
LBB0_51:
	movq	%r15, %rdi
	callq	_at91_adc_buffer_remove
	jmp	LBB0_40
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No platform data available.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_at91_adc_info,4,2              ## @at91_adc_info
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_AT91_ADC_CR,4,2                ## @AT91_ADC_CR
	.comm	_AT91_ADC_SWRST,4,2             ## @AT91_ADC_SWRST
	.comm	_AT91_ADC_IDR,4,2               ## @AT91_ADC_IDR
	.comm	_at91_adc_9x5_interrupt,4,2     ## @at91_adc_9x5_interrupt
	.comm	_at91_adc_rl_interrupt,4,2      ## @at91_adc_rl_interrupt
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate IRQ.\n"

L_.str.2:                               ## @.str.2
	.asciz	"adc_clk"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to get the clock.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Could not prepare or enable the clock.\n"

L_.str.5:                               ## @.str.5
	.asciz	"adc_op_clk"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to get the ADC clock.\n"

L_.str.7:                               ## @.str.7
	.asciz	"Could not prepare or enable the ADC clock.\n"

L_.str.8:                               ## @.str.8
	.asciz	"Master clock is set as: %d Hz, adc_clk should set as: %d Hz\n"

L_.str.9:                               ## @.str.9
	.asciz	"No startup time available.\n"

	.comm	_AT91_ADC_LOWRES,4,2            ## @AT91_ADC_LOWRES
	.comm	_AT91_ADC_SLEEP,4,2             ## @AT91_ADC_SLEEP
	.comm	_AT91_ADC_SHTIM,4,2             ## @AT91_ADC_SHTIM
	.comm	_AT91_ADC_MR,4,2                ## @AT91_ADC_MR
L_.str.10:                              ## @.str.10
	.asciz	"Couldn't initialize the channels.\n"

L_.str.11:                              ## @.str.11
	.asciz	"Couldn't initialize the buffer.\n"

L_.str.12:                              ## @.str.12
	.asciz	"Couldn't setup the triggers.\n"

L_.str.13:                              ## @.str.13
	.asciz	"Couldn't register the device.\n"

	.no_dead_strip	_at91_adc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91_adc_probe
_at91_adc_probe:                        ; @at91_adc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x0
	mov	w1, #96
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_7
; %bb.2:
	mov	x0, x20
	mov	x1, x21
	bl	_at91_adc_probe_dt
	cbz	w0, LBB0_8
LBB0_3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	mov	x0, x20
	mov	x1, x21
	bl	_at91_adc_probe_pdata
	cbnz	w0, LBB0_3
LBB0_8:
	mov	x0, x21
	mov	x1, x19
	bl	_platform_set_drvdata
	str	x21, [x19, #16]
	mov	x0, x21
	bl	_dev_name
Lloh6:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #8]
Lloh9:
	adrp	x8, _at91_adc_info@GOTPAGE
Lloh10:
	ldr	x8, [x8, _at91_adc_info@GOTPAGEOFF]
	str	x8, [x19]
	mov	x0, x21
	mov	w1, #0
	bl	_platform_get_irq
	str	x0, [x20]
	tbnz	x0, #63, LBB0_11
; %bb.9:
Lloh11:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x21
	bl	_devm_ioremap_resource
	str	x0, [x20, #88]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x0, [x20, #88]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_11:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_5
LBB0_12:
Lloh16:
	adrp	x8, _AT91_ADC_CR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AT91_ADC_CR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _AT91_ADC_SWRST@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AT91_ADC_SWRST@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_at91_adc_writel
Lloh22:
	adrp	x8, _AT91_ADC_IDR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AT91_ADC_IDR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #-1
	bl	_at91_adc_writel
	ldr	x8, [x20, #80]
	ldr	x8, [x8, #8]
Lloh25:
	adrp	x9, _at91_adc_rl_interrupt@GOTPAGE
Lloh26:
	ldr	x9, [x9, _at91_adc_rl_interrupt@GOTPAGEOFF]
Lloh27:
	adrp	x10, _at91_adc_9x5_interrupt@GOTPAGE
Lloh28:
	ldr	x10, [x10, _at91_adc_9x5_interrupt@GOTPAGEOFF]
	ldr	x0, [x20]
	cmp	x8, #0
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
	ldr	x8, [x21]
	ldr	w3, [x8]
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	cbz	w0, LBB0_14
; %bb.13:
	mov	x22, x0
Lloh29:
	adrp	x1, l_.str.1@PAGE
Lloh30:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_6
LBB0_14:
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_devm_clk_get
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.15:
Lloh33:
	adrp	x1, l_.str.3@PAGE
Lloh34:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	x0, [x20, #16]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_35
LBB0_16:
	ldr	x0, [x20, #16]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_18
; %bb.17:
	mov	x22, x0
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_35
LBB0_18:
Lloh37:
	adrp	x1, l_.str.5@PAGE
Lloh38:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_devm_clk_get
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.19:
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	x0, [x20, #24]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_34
LBB0_20:
	ldr	x0, [x20, #24]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_22
; %bb.21:
	mov	x22, x0
Lloh41:
	adrp	x1, l_.str.7@PAGE
Lloh42:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_34
LBB0_22:
	ldr	x0, [x20, #16]
	bl	_clk_get_rate
	mov	x22, x0
	ldr	x0, [x20, #24]
	bl	_clk_get_rate
	mov	x24, x0
Lloh43:
	adrp	x1, l_.str.8@PAGE
Lloh44:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	mov	x3, x24
	bl	_dev_dbg
	ldr	w0, [x20, #72]
	cbz	w0, LBB0_25
; %bb.23:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w24, w8
	lsr	x23, x8, #38
	lsl	w8, w24, #1
	udiv	w8, w22, w8
	sub	w22, w8, #1
	ldr	x8, [x20, #80]
	ldr	x8, [x8]
	mov	x1, x23
	blr	x8
	mov	x24, x0
	ldr	w8, [x20, #8]
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	cbz	w8, LBB0_26
; %bb.24:
	mul	w8, w8, w23
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #38
	sub	w0, w8, #1
	mov	w1, #1
	bl	_round_up
	mov	x23, x0
	b	LBB0_27
LBB0_25:
Lloh45:
	adrp	x1, l_.str.9@PAGE
Lloh46:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh47:
	adrp	x8, _EINVAL@GOTPAGE
Lloh48:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_33
LBB0_26:
	mov	w23, #0
LBB0_27:
	mov	x0, x22
	bl	_AT91_ADC_PRESCAL_
	ldr	x8, [x20, #64]
	ldr	w8, [x8]
	and	w22, w8, w0
	mov	x0, x24
	bl	_AT91_ADC_STARTUP_
	ldp	x9, x8, [x20, #56]
	ldr	w8, [x8, #4]
	and	w8, w8, w0
	orr	w8, w8, w22
	ldr	x10, [x20, #48]
	cmp	x9, #0
Lloh50:
	adrp	x9, _AT91_ADC_LOWRES@GOTPAGE
Lloh51:
	ldr	x9, [x9, _AT91_ADC_LOWRES@GOTPAGEOFF]
Lloh52:
	ldr	w9, [x9]
	csel	w9, wzr, w9, eq
	orr	w8, w8, w9
Lloh53:
	adrp	x9, _AT91_ADC_SLEEP@GOTPAGE
Lloh54:
	ldr	x9, [x9, _AT91_ADC_SLEEP@GOTPAGEOFF]
Lloh55:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w22, w8, w9
	mov	x0, x23
	bl	_AT91_ADC_SHTIM_
Lloh56:
	adrp	x8, _AT91_ADC_SHTIM@GOTPAGE
Lloh57:
	ldr	x8, [x8, _AT91_ADC_SHTIM@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	and	w8, w8, w0
	orr	w2, w22, w8
Lloh59:
	adrp	x8, _AT91_ADC_MR@GOTPAGE
Lloh60:
	ldr	x8, [x8, _AT91_ADC_MR@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_at91_adc_writel
	mov	x0, x19
	bl	_at91_adc_channel_init
	tbnz	w0, #31, LBB0_31
; %bb.28:
	add	x0, x20, #40
	bl	_init_waitqueue_head
	add	x0, x20, #36
	bl	_mutex_init
	ldr	w8, [x20, #32]
	cbz	w8, LBB0_36
; %bb.29:
	mov	x0, x20
	mov	x1, x21
	bl	_at91_ts_register
	mov	x22, x0
	cbnz	w0, LBB0_33
; %bb.30:
	mov	x0, x20
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_at91_ts_hw_init
	b	LBB0_38
LBB0_31:
	mov	x22, x0
Lloh62:
	adrp	x1, l_.str.10@PAGE
Lloh63:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_32:
	mov	x0, x21
	bl	_dev_err
LBB0_33:
	ldr	x0, [x20, #24]
	bl	_clk_disable_unprepare
LBB0_34:
	ldr	x0, [x20, #16]
	bl	_clk_disable_unprepare
LBB0_35:
	ldr	x0, [x20]
	mov	x1, x19
	bl	_free_irq
	b	LBB0_6
LBB0_36:
	mov	x0, x19
	bl	_at91_adc_buffer_init
	tbnz	w0, #31, LBB0_40
; %bb.37:
	mov	x0, x19
	bl	_at91_adc_trigger_init
	tbnz	w0, #31, LBB0_43
LBB0_38:
	mov	x0, x19
	bl	_iio_device_register
	tbnz	w0, #31, LBB0_41
; %bb.39:
	mov	w22, #0
	b	LBB0_6
LBB0_40:
	mov	x22, x0
Lloh64:
	adrp	x1, l_.str.11@PAGE
Lloh65:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_32
LBB0_41:
	mov	x22, x0
Lloh66:
	adrp	x1, l_.str.13@PAGE
Lloh67:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	w8, [x20, #32]
	cbz	w8, LBB0_44
; %bb.42:
	mov	x0, x20
	bl	_at91_ts_unregister
	b	LBB0_33
LBB0_43:
	mov	x22, x0
Lloh68:
	adrp	x1, l_.str.12@PAGE
Lloh69:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_45
LBB0_44:
	mov	x0, x19
	bl	_at91_adc_trigger_remove
LBB0_45:
	mov	x0, x19
	bl	_at91_adc_buffer_remove
	b	LBB0_33
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No platform data available.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_at91_adc_info,4,2              ; @at91_adc_info
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_AT91_ADC_CR,4,2                ; @AT91_ADC_CR
	.comm	_AT91_ADC_SWRST,4,2             ; @AT91_ADC_SWRST
	.comm	_AT91_ADC_IDR,4,2               ; @AT91_ADC_IDR
	.comm	_at91_adc_9x5_interrupt,4,2     ; @at91_adc_9x5_interrupt
	.comm	_at91_adc_rl_interrupt,4,2      ; @at91_adc_rl_interrupt
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate IRQ.\n"

l_.str.2:                               ; @.str.2
	.asciz	"adc_clk"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to get the clock.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Could not prepare or enable the clock.\n"

l_.str.5:                               ; @.str.5
	.asciz	"adc_op_clk"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to get the ADC clock.\n"

l_.str.7:                               ; @.str.7
	.asciz	"Could not prepare or enable the ADC clock.\n"

l_.str.8:                               ; @.str.8
	.asciz	"Master clock is set as: %d Hz, adc_clk should set as: %d Hz\n"

l_.str.9:                               ; @.str.9
	.asciz	"No startup time available.\n"

	.comm	_AT91_ADC_LOWRES,4,2            ; @AT91_ADC_LOWRES
	.comm	_AT91_ADC_SLEEP,4,2             ; @AT91_ADC_SLEEP
	.comm	_AT91_ADC_SHTIM,4,2             ; @AT91_ADC_SHTIM
	.comm	_AT91_ADC_MR,4,2                ; @AT91_ADC_MR
l_.str.10:                              ; @.str.10
	.asciz	"Couldn't initialize the channels.\n"

l_.str.11:                              ; @.str.11
	.asciz	"Couldn't initialize the buffer.\n"

l_.str.12:                              ; @.str.12
	.asciz	"Couldn't setup the triggers.\n"

l_.str.13:                              ; @.str.13
	.asciz	"Couldn't register the device.\n"

	.no_dead_strip	_at91_adc_probe
.subsections_via_symbols
