	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iproc_adc_probe
_iproc_adc_probe:                       ## @iproc_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_platform_set_drvdata
	leaq	20(%r14), %rdi
	callq	_mutex_init
	leaq	16(%r14), %rdi
	callq	_init_completion
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_syscon_regmap_lookup_by_phandle
	movl	%eax, 12(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	12(%r14), %edi
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	subl	(%rax), %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_clk_get
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	8(%r14), %edi
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_9:
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, (%r14)
	testq	%rax, %rax
	jle	LBB0_12
## %bb.10:
	movl	12(%r14), %edi
	movq	_IPROC_REGCTL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPROC_ADC_AUXIN_SCAN_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %r12d
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_17
LBB0_12:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_13:
	movq	(%r14), %rsi
	movq	_iproc_adc_interrupt_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_iproc_adc_interrupt_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, (%rsp)
	leaq	L_.str.6(%rip), %r9
	movq	%rbx, %rdi
	callq	_devm_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r12d
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_17
LBB0_15:
	movl	8(%r14), %edi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movl	%eax, %r12d
	leaq	L_.str.8(%rip), %rsi
LBB0_17:
	movq	%rbx, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_5
LBB0_18:
	movq	%r15, %rdi
	callq	_iproc_adc_enable
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %r12d
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_22
LBB0_20:
	leaq	L_.str.10(%rip), %rax
	movq	%rax, (%r15)
	movq	%rbx, 40(%r15)
	movl	(%rbx), %eax
	movl	%eax, 32(%r15)
	movq	_iproc_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	_iproc_adc_iio_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 12(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 8(%r15)
	movq	%r15, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_23
## %bb.21:
	movl	%eax, %r12d
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r15, %rdi
	callq	_iproc_adc_disable
LBB0_22:
	movl	8(%r14), %edi
	callq	_clk_disable_unprepare
	jmp	LBB0_5
LBB0_23:
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate iio device\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"failed to get handle for tsc syscon\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"failed getting clock tsc_clk\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IPROC_REGCTL2,4,2              ## @IPROC_REGCTL2
	.comm	_IPROC_ADC_AUXIN_SCAN_ENA,4,2   ## @IPROC_ADC_AUXIN_SCAN_ENA
L_.str.5:                               ## @.str.5
	.asciz	"failed to write IPROC_REGCTL2 %d\n"

	.comm	_iproc_adc_interrupt_handler,4,2 ## @iproc_adc_interrupt_handler
	.comm	_iproc_adc_interrupt_thread,4,2 ## @iproc_adc_interrupt_thread
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.6:                               ## @.str.6
	.asciz	"iproc-adc"

L_.str.7:                               ## @.str.7
	.asciz	"request_irq error %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"clk_prepare_enable failed %d\n"

L_.str.9:                               ## @.str.9
	.asciz	"failed to enable adc %d\n"

L_.str.10:                              ## @.str.10
	.asciz	"iproc-static-adc"

	.comm	_iproc_adc_iio_info,4,2         ## @iproc_adc_iio_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_iproc_adc_iio_channels,4,2     ## @iproc_adc_iio_channels
L_.str.11:                              ## @.str.11
	.asciz	"iio_device_register failed:err %d\n"

	.no_dead_strip	_iproc_adc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iproc_adc_probe
_iproc_adc_probe:                       ; @iproc_adc_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	bl	_iio_priv
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	bl	_platform_set_drvdata
	add	x0, x20, #20
	bl	_mutex_init
	add	x0, x20, #16
	bl	_init_completion
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_syscon_regmap_lookup_by_phandle
	str	w0, [x20, #12]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #12]
	b	LBB0_8
LBB0_3:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
LBB0_6:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.7:
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #8]
LBB0_8:
	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
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_9:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	str	x0, [x20]
	cmp	x0, #0
	b.le	LBB0_12
; %bb.10:
	ldr	w0, [x20, #12]
Lloh12:
	adrp	x8, _IPROC_REGCTL2@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IPROC_REGCTL2@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _IPROC_ADC_AUXIN_SCAN_ENA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IPROC_ADC_AUXIN_SCAN_ENA@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_regmap_update_bits
	cbz	w0, LBB0_13
; %bb.11:
	mov	x22, x0
	str	x22, [sp]
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_5
LBB0_12:
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
LBB0_13:
	ldr	x1, [x20]
Lloh22:
	adrp	x8, _iproc_adc_interrupt_handler@GOTPAGE
Lloh23:
	ldr	x8, [x8, _iproc_adc_interrupt_handler@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x8, _iproc_adc_interrupt_thread@GOTPAGE
Lloh26:
	ldr	x8, [x8, _iproc_adc_interrupt_thread@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
Lloh28:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh30:
	ldr	w4, [x8]
Lloh31:
	adrp	x5, l_.str.6@PAGE
Lloh32:
	add	x5, x5, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x6, x21
	bl	_devm_request_threaded_irq
	cbz	w0, LBB0_15
; %bb.14:
	mov	x22, x0
	str	x22, [sp]
Lloh33:
	adrp	x1, l_.str.7@PAGE
Lloh34:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_17
LBB0_15:
	ldr	w0, [x20, #8]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_18
; %bb.16:
	mov	x22, x0
	str	x22, [sp]
Lloh35:
	adrp	x1, l_.str.8@PAGE
Lloh36:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_17:
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_5
LBB0_18:
	mov	x0, x21
	bl	_iproc_adc_enable
	cbz	w0, LBB0_20
; %bb.19:
	mov	x22, x0
	str	x22, [sp]
Lloh37:
	adrp	x1, l_.str.9@PAGE
Lloh38:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_22
LBB0_20:
Lloh39:
	adrp	x8, l_.str.10@PAGE
Lloh40:
	add	x8, x8, l_.str.10@PAGEOFF
	str	x8, [x21]
	str	x19, [x21, #40]
	ldr	w8, [x19]
	str	w8, [x21, #32]
Lloh41:
	adrp	x8, _iproc_adc_iio_info@GOTPAGE
Lloh42:
	ldr	x8, [x8, _iproc_adc_iio_info@GOTPAGEOFF]
	str	x8, [x21, #24]
Lloh43:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _iproc_adc_iio_channels@GOTPAGE
Lloh47:
	ldr	x9, [x9, _iproc_adc_iio_channels@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x9]
	stp	w0, w8, [x21, #12]
	bl	_ARRAY_SIZE
	str	w0, [x21, #8]
	mov	x0, x21
	bl	_iio_device_register
	mov	x22, x0
	cbz	w0, LBB0_5
; %bb.21:
	str	x22, [sp]
Lloh49:
	adrp	x1, l_.str.11@PAGE
Lloh50:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	bl	_iproc_adc_disable
LBB0_22:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	ldr	w0, [x20, #8]
	bl	_clk_disable_unprepare
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate iio device\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"failed to get handle for tsc syscon\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"failed getting clock tsc_clk\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IPROC_REGCTL2,4,2              ; @IPROC_REGCTL2
	.comm	_IPROC_ADC_AUXIN_SCAN_ENA,4,2   ; @IPROC_ADC_AUXIN_SCAN_ENA
l_.str.5:                               ; @.str.5
	.asciz	"failed to write IPROC_REGCTL2 %d\n"

	.comm	_iproc_adc_interrupt_handler,4,2 ; @iproc_adc_interrupt_handler
	.comm	_iproc_adc_interrupt_thread,4,2 ; @iproc_adc_interrupt_thread
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.6:                               ; @.str.6
	.asciz	"iproc-adc"

l_.str.7:                               ; @.str.7
	.asciz	"request_irq error %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"clk_prepare_enable failed %d\n"

l_.str.9:                               ; @.str.9
	.asciz	"failed to enable adc %d\n"

l_.str.10:                              ; @.str.10
	.asciz	"iproc-static-adc"

	.comm	_iproc_adc_iio_info,4,2         ; @iproc_adc_iio_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_iproc_adc_iio_channels,4,2     ; @iproc_adc_iio_channels
l_.str.11:                              ; @.str.11
	.asciz	"iio_device_register failed:err %d\n"

	.no_dead_strip	_iproc_adc_probe
.subsections_via_symbols
