	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_adc_probe
_ti_adc_probe:                          ## @ti_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, %rbx
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	_ti_adc_info@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r15)
	movq	%rbx, 32(%r15)
	movl	(%rbx), %eax
	movl	%eax, 24(%r15)
	movq	_TI_ADC_DRV_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_spi_set_drvdata
	movq	%r15, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%rbx, 16(%rax)
	movq	%rbx, %rdi
	callq	_spi_get_device_id
	movl	(%rax), %eax
	cmpl	$129, %eax
	je	LBB0_3
## %bb.4:
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.5:
	movl	$3, %r12d
	movl	$6, %r13d
	movq	_ti_adc161s626_channels@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_3:
	movl	$2, %r12d
	xorl	%r13d, %r13d
	movq	_ti_adc141s626_channels@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rdi
	movq	%rdi, 8(%r15)
	callq	_ARRAY_SIZE
	movq	%rax, (%r15)
	movl	%r13d, (%r14)
	movl	%r12d, 4(%r14)
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regulator_get
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movl	8(%r14), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	js	LBB0_9
LBB0_10:
	movq	_ti_adc_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_iio_triggered_buffer_setup
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	%r15, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_iio_triggered_buffer_cleanup
LBB0_13:
	movl	8(%r14), %edi
	callq	_regulator_disable
	movl	%r12d, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%eax, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ti_adc_info,4,2                ## @ti_adc_info
	.comm	_TI_ADC_DRV_NAME,4,2            ## @TI_ADC_DRV_NAME
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ti_adc141s626_channels,8,3     ## @ti_adc141s626_channels
	.comm	_ti_adc161s626_channels,8,3     ## @ti_adc161s626_channels
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vdda"

	.comm	_ti_adc_trigger_handler,4,2     ## @ti_adc_trigger_handler
	.no_dead_strip	_ti_adc_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ti_adc_probe
lCPI0_0:
	.long	0                               ; 0x0
	.long	2                               ; 0x2
lCPI0_1:
	.long	6                               ; 0x6
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ti_adc_probe:                          ; @ti_adc_probe
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	mov	x21, x0
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _ti_adc_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ti_adc_info@GOTPAGEOFF]
	stp	x21, x8, [x0, #32]
	ldr	w8, [x21]
	str	w8, [x0, #24]
Lloh2:
	adrp	x8, _TI_ADC_DRV_NAME@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TI_ADC_DRV_NAME@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
	mov	x0, x21
	mov	x1, x19
	bl	_spi_set_drvdata
	mov	x0, x19
	bl	_iio_priv
	mov	x20, x0
	str	x21, [x0, #16]
	mov	x0, x21
	bl	_spi_get_device_id
	ldr	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.3:
Lloh8:
	adrp	x8, lCPI0_1@PAGE
Lloh9:
	ldr	d8, [x8, lCPI0_1@PAGEOFF]
Lloh10:
	adrp	x8, _ti_adc161s626_channels@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ti_adc161s626_channels@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_5:
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
Lloh17:
	adrp	x8, _ti_adc141s626_channels@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ti_adc141s626_channels@GOTPAGEOFF]
LBB0_6:
	ldr	x0, [x8]
	str	x0, [x19, #8]
	bl	_ARRAY_SIZE
	str	x0, [x19]
	str	d8, [x20]
LBB0_7:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_devm_regulator_get
	str	w0, [x20, #8]
	bl	_IS_ERR
	cbnz	w0, LBB0_9
; %bb.8:
	ldr	w0, [x20, #8]
	bl	_regulator_enable
	tbnz	w0, #31, LBB0_14
LBB0_9:
Lloh21:
	adrp	x8, _ti_adc_trigger_handler@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ti_adc_trigger_handler@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	bl	_iio_triggered_buffer_setup
	mov	x21, x0
	cbnz	w0, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_iio_device_register
	mov	x21, x0
	cbz	w0, LBB0_13
; %bb.11:
	mov	x0, x19
	bl	_iio_triggered_buffer_cleanup
LBB0_12:
	ldr	w0, [x20, #8]
	bl	_regulator_disable
LBB0_13:
	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	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
LBB0_14:
	mov	x21, x0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdrp	Lloh8, Lloh10
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdrp	Lloh15, Lloh17
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ti_adc_info,4,2                ; @ti_adc_info
	.comm	_TI_ADC_DRV_NAME,4,2            ; @TI_ADC_DRV_NAME
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ti_adc141s626_channels,8,3     ; @ti_adc141s626_channels
	.comm	_ti_adc161s626_channels,8,3     ; @ti_adc161s626_channels
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vdda"

	.comm	_ti_adc_trigger_handler,4,2     ; @ti_adc_trigger_handler
	.no_dead_strip	_ti_adc_probe
.subsections_via_symbols
