	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_dac_probe
_ti_dac_probe:                          ## @ti_dac_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
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, 24(%rax)
	movq	_ti_dac_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r12)
	movl	(%rbx), %eax
	movl	%eax, 12(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	_ti_dac_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_spi_set_drvdata
	movq	%r12, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	addq	$40, %rax
	leaq	24(%r15), %rsi
	movq	%rax, 32(%r15)
	movl	$4, 24(%r15)
	leaq	16(%r15), %rdi
	movl	$1, %edx
	callq	_spi_message_init_with_transfers
	movq	%rbx, 16(%r15)
	movq	_ti_dac_spec@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%rbx, %rdi
	callq	_spi_get_device_id
	movq	(%rax), %rax
	movl	4(%r13,%rax,8), %ecx
	movl	%ecx, (%r12)
	movl	(%r13,%rax,8), %eax
	movl	%eax, 8(%r15)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_regulator_get
	movl	%eax, (%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	(%r15), %edi
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_3:
	callq	_regulator_enable
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movq	%r15, %r13
	addq	$4, %r13
	movq	%r13, %rdi
	callq	_mutex_init
	movq	_WRITE_ALL_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_ti_dac_cmd
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_8
LBB0_4:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_7:
	movq	%r12, %rdi
	callq	_iio_device_register
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_9
LBB0_8:
	movq	%r13, %rdi
	callq	_mutex_destroy
	movl	(%r15), %edi
	callq	_regulator_disable
	movl	%r14d, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ti_dac_info,4,2                ## @ti_dac_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ti_dac_channels,4,2            ## @ti_dac_channels
	.comm	_ti_dac_spec,8,3                ## @ti_dac_spec
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vref"

	.comm	_WRITE_ALL_UPDATE,4,2           ## @WRITE_ALL_UPDATE
L_.str.1:                               ## @.str.1
	.asciz	"failed to initialize outputs to 0\n"

	.no_dead_strip	_ti_dac_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ti_dac_probe
_ti_dac_probe:                          ; @ti_dac_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x22, x0
	add	x19, x0, #4
	mov	x0, x19
	mov	w1, #48
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, _ti_dac_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ti_dac_info@GOTPAGEOFF]
	stp	x8, x19, [x0, #16]
	ldr	w8, [x22]
	str	w8, [x0, #12]
Lloh2:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ti_dac_channels@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ti_dac_channels@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #4]
	mov	x0, x22
	mov	x1, x20
	bl	_spi_set_drvdata
	mov	x0, x20
	bl	_iio_priv
	mov	x21, x0
	add	x8, x0, #40
	str	x8, [x0, #32]
	mov	w8, #4
	mov	x1, x0
	str	w8, [x1, #24]!
	add	x0, x0, #16
	mov	w2, #1
	bl	_spi_message_init_with_transfers
	str	x22, [x21, #16]
Lloh8:
	adrp	x8, _ti_dac_spec@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ti_dac_spec@GOTPAGEOFF]
Lloh10:
	ldr	x23, [x8]
	mov	x0, x22
	bl	_spi_get_device_id
	ldr	x8, [x0]
	add	x8, x23, x8, lsl #3
	ldp	w8, w9, [x8]
	str	w9, [x20]
	str	w8, [x21, #8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	w0, [x21]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x21]
	cbz	x8, LBB0_4
; %bb.2:
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_3:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_10
LBB0_4:
	bl	_regulator_enable
	tbnz	w0, #31, LBB0_7
; %bb.5:
	add	x23, x21, #4
	mov	x0, x23
	bl	_mutex_init
Lloh16:
	adrp	x8, _WRITE_ALL_UPDATE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WRITE_ALL_UPDATE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	bl	_ti_dac_cmd
	cbz	w0, LBB0_8
; %bb.6:
	mov	x22, x0
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_9
LBB0_7:
	mov	x22, x0
	b	LBB0_10
LBB0_8:
	mov	x0, x20
	bl	_iio_device_register
	mov	x22, x0
	cbz	w0, LBB0_10
LBB0_9:
	mov	x0, x23
	bl	_mutex_destroy
	ldr	w0, [x21]
	bl	_regulator_disable
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ti_dac_info,4,2                ; @ti_dac_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ti_dac_channels,4,2            ; @ti_dac_channels
	.comm	_ti_dac_spec,8,3                ; @ti_dac_spec
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vref"

	.comm	_WRITE_ALL_UPDATE,4,2           ; @WRITE_ALL_UPDATE
l_.str.1:                               ; @.str.1
	.asciz	"failed to initialize outputs to 0\n"

	.no_dead_strip	_ti_dac_probe
.subsections_via_symbols
