	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imx7d_adc_probe
_imx7d_adc_probe:                       ## @imx7d_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	movq	%r12, 16(%rax)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movl	%eax, 12(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.17:
	movl	12(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_16
LBB0_3:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_16
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_clk_get
	movl	%eax, 8(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	8(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regulator_get
	movl	%eax, 4(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	4(%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r14d
	leaq	L_.str.4(%rip), %rsi
LBB0_6:
	movq	%r12, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_16:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	movq	%rbx, %rdi
	callq	_init_completion
	movq	%r12, %rdi
	callq	_dev_name
	movl	%eax, 32(%r15)
	movq	%r12, (%r15)
	movq	_imx7d_adc_iio_info@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_imx7d_adc_iio_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 12(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 8(%r15)
	movq	_imx7d_adc_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r12, %rdi
	callq	_dev_name
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%rbx, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	movq	%rbx, %rdi
	callq	_imx7d_adc_feature_config
	movq	%r15, %rdi
	callq	_imx7d_adc_enable
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.12:
	movq	___imx7d_adc_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_devm_add_action_or_reset
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_devm_iio_device_register
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_16
LBB0_10:
	movl	%eax, %r13d
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r13d, %r14d
	jmp	LBB0_16
LBB0_14:
	xorl	%r14d, %r14d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed allocating iio device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"adc"

L_.str.2:                               ## @.str.2
	.asciz	"Failed getting clock, err = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"vref"

L_.str.4:                               ## @.str.4
	.asciz	"Failed getting reference voltage, err = %d\n"

	.comm	_imx7d_adc_iio_info,4,2         ## @imx7d_adc_iio_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_imx7d_adc_iio_channels,4,2     ## @imx7d_adc_iio_channels
	.comm	_imx7d_adc_isr,4,2              ## @imx7d_adc_isr
L_.str.5:                               ## @.str.5
	.asciz	"Failed requesting irq, irq = %d\n"

	.comm	___imx7d_adc_disable,4,2        ## @__imx7d_adc_disable
L_.str.6:                               ## @.str.6
	.asciz	"Couldn't register the device.\n"

	.no_dead_strip	_imx7d_adc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imx7d_adc_probe
_imx7d_adc_probe:                       ; @imx7d_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	x19, x0
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x22, x0
	str	x19, [x0, #16]
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	w0, [x22, #12]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x22, #12]
	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_3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x21
	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_5:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
; %bb.6:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x22, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w0, [x22, #8]
	bl	_PTR_ERR
	mov	x21, x0
	str	x21, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_4
LBB0_9:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	w0, [x22, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x22, #4]
	bl	_PTR_ERR
	mov	x21, x0
	str	x21, [sp]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_4
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x22
	bl	_init_completion
	mov	x0, x19
	bl	_dev_name
	str	w0, [x20, #32]
	str	x19, [x20]
Lloh13:
	adrp	x8, _imx7d_adc_iio_info@GOTPAGE
Lloh14:
	ldr	x8, [x8, _imx7d_adc_iio_info@GOTPAGEOFF]
	str	x8, [x20, #24]
Lloh15:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _imx7d_adc_iio_channels@GOTPAGE
Lloh19:
	ldr	x9, [x9, _imx7d_adc_iio_channels@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #12]
	bl	_ARRAY_SIZE
	str	w0, [x20, #8]
Lloh21:
	adrp	x8, _imx7d_adc_isr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _imx7d_adc_isr@GOTPAGEOFF]
Lloh23:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	w3, #0
	mov	x5, x22
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_16
; %bb.12:
	mov	x0, x22
	bl	_imx7d_adc_feature_config
	mov	x0, x20
	bl	_imx7d_adc_enable
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.13:
Lloh24:
	adrp	x8, ___imx7d_adc_disable@GOTPAGE
Lloh25:
	ldr	x8, [x8, ___imx7d_adc_disable@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_devm_add_action_or_reset
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.14:
	mov	x0, x19
	mov	x1, x20
	bl	_devm_iio_device_register
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.15:
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_8
LBB0_16:
	mov	x23, x0
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	str	x21, [sp]
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x21, x23
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed allocating iio device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"adc"

l_.str.2:                               ; @.str.2
	.asciz	"Failed getting clock, err = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"vref"

l_.str.4:                               ; @.str.4
	.asciz	"Failed getting reference voltage, err = %d\n"

	.comm	_imx7d_adc_iio_info,4,2         ; @imx7d_adc_iio_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_imx7d_adc_iio_channels,4,2     ; @imx7d_adc_iio_channels
	.comm	_imx7d_adc_isr,4,2              ; @imx7d_adc_isr
l_.str.5:                               ; @.str.5
	.asciz	"Failed requesting irq, irq = %d\n"

	.comm	___imx7d_adc_disable,4,2        ; @__imx7d_adc_disable
l_.str.6:                               ; @.str.6
	.asciz	"Couldn't register the device.\n"

	.no_dead_strip	_imx7d_adc_probe
.subsections_via_symbols
