	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tiadc_probe
_tiadc_probe:                           ## @tiadc_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_ti_tscadc_dev_get
	movq	%rax, (%r15)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_tiadc_parse_dt
	movq	%rbx, 16(%r14)
	movq	%rbx, %rdi
	callq	_dev_name
	movl	%eax, 12(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_tiadc_info@GOTPCREL(%rip), %rax
	movq	%rax, (%r14)
	movq	%r14, %rdi
	callq	_tiadc_step_config
	movq	_REG_FIFO1THR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FIFO1_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_tiadc_writel
	leaq	12(%r15), %rdi
	callq	_mutex_init
	movl	8(%r15), %esi
	movq	%r14, %rdi
	callq	_tiadc_channel_init
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:
	movq	(%r15), %rax
	movl	(%rax), %ecx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_tiadc_worker_h@GOTPCREL(%rip), %rsi
	movq	_tiadc_irq_h@GOTPCREL(%rip), %rdx
	movq	_tiadc_buffer_setup_ops@GOTPCREL(%rip), %r9
	movq	%r14, %rdi
	callq	_tiadc_iio_buffered_hardware_setup
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_12
## %bb.7:
	movq	%r14, %rdi
	callq	_iio_device_register
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_8
LBB0_11:
	movq	%r14, %rdi
	callq	_tiadc_iio_buffered_hardware_remove
LBB0_12:
	movq	%r14, %rdi
	callq	_tiadc_channels_remove
	movl	%r12d, %eax
	jmp	LBB0_13
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_tiadc_request_dma
	movl	%eax, %r12d
	xorl	%eax, %eax
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.9:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%r12d, %ecx
	jne	LBB0_13
## %bb.10:
	movq	%r14, %rdi
	callq	_iio_device_unregister
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not find valid DT data.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"failed to allocate iio device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_tiadc_info,4,2                 ## @tiadc_info
	.comm	_REG_FIFO1THR,4,2               ## @REG_FIFO1THR
	.comm	_FIFO1_THRESHOLD,4,2            ## @FIFO1_THRESHOLD
	.comm	_tiadc_worker_h,4,2             ## @tiadc_worker_h
	.comm	_tiadc_irq_h,4,2                ## @tiadc_irq_h
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_tiadc_buffer_setup_ops,4,2     ## @tiadc_buffer_setup_ops
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.no_dead_strip	_tiadc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tiadc_probe
_tiadc_probe:                           ; @tiadc_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x0, x20
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x19, x0
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x20
	bl	_ti_tscadc_dev_get
	str	x0, [x21]
	mov	x0, x20
	mov	x1, x21
	bl	_tiadc_parse_dt
	str	x20, [x19, #16]
	mov	x0, x20
	bl	_dev_name
Lloh0:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w8, w0, [x19, #8]
Lloh3:
	adrp	x8, _tiadc_info@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tiadc_info@GOTPAGEOFF]
	str	x8, [x19]
	mov	x0, x19
	bl	_tiadc_step_config
Lloh5:
	adrp	x8, _REG_FIFO1THR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_FIFO1THR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _FIFO1_THRESHOLD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FIFO1_THRESHOLD@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_tiadc_writel
	add	x0, x21, #12
	bl	_mutex_init
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_tiadc_channel_init
	tbnz	w0, #31, LBB0_11
; %bb.3:
	ldr	x8, [x21]
	ldr	w3, [x8]
Lloh11:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
Lloh14:
	adrp	x1, _tiadc_worker_h@GOTPAGE
Lloh15:
	ldr	x1, [x1, _tiadc_worker_h@GOTPAGEOFF]
Lloh16:
	adrp	x2, _tiadc_irq_h@GOTPAGE
Lloh17:
	ldr	x2, [x2, _tiadc_irq_h@GOTPAGEOFF]
Lloh18:
	adrp	x5, _tiadc_buffer_setup_ops@GOTPAGE
Lloh19:
	ldr	x5, [x5, _tiadc_buffer_setup_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_tiadc_iio_buffered_hardware_setup
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_iio_device_register
	mov	x22, x0
	cbz	w0, LBB0_12
LBB0_5:
	mov	x0, x19
	bl	_tiadc_iio_buffered_hardware_remove
LBB0_6:
	mov	x0, x19
	bl	_tiadc_channels_remove
	b	LBB0_10
LBB0_7:
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x22, x0
	b	LBB0_10
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x20
	mov	x1, x21
	bl	_tiadc_request_dma
	mov	x22, x0
	cbz	w0, LBB0_10
; %bb.13:
Lloh28:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmn	w22, w8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_iio_device_unregister
	b	LBB0_5
LBB0_15:
	mov	w22, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not find valid DT data.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"failed to allocate iio device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_tiadc_info,4,2                 ; @tiadc_info
	.comm	_REG_FIFO1THR,4,2               ; @REG_FIFO1THR
	.comm	_FIFO1_THRESHOLD,4,2            ; @FIFO1_THRESHOLD
	.comm	_tiadc_worker_h,4,2             ; @tiadc_worker_h
	.comm	_tiadc_irq_h,4,2                ; @tiadc_irq_h
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_tiadc_buffer_setup_ops,4,2     ; @tiadc_buffer_setup_ops
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.no_dead_strip	_tiadc_probe
.subsections_via_symbols
