	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dac5571_probe
_dac5571_probe:                         ## @dac5571_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	%rsi, %rbx
	movq	%rdi, %r15
	movl	$40, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	%r15, 32(%r14)
	movq	%r15, 32(%r12)
	movl	(%r15), %eax
	movl	%eax, 24(%r12)
	movq	_dac5571_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r12)
	movl	8(%rbx), %eax
	movl	%eax, 12(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	_dac5571_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_dac5571_spec@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	leaq	(%rax,%rcx,4), %rbx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, (%r12)
	movq	%rbx, 24(%r14)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regulator_get
	movl	%eax, 8(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	8(%r14), %edi
	testq	%rax, %rax
	je	LBB0_3
## %bb.18:
	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	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_17
LBB0_3:
	callq	_regulator_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_17
## %bb.4:
	movq	%r14, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	movl	(%rbx), %eax
	cmpl	$1, %eax
	je	LBB0_5
## %bb.6:
	cmpl	$4, %eax
	jne	LBB0_14
## %bb.7:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_dac5571_pwrdwn_quad@GOTPCREL(%rip), %rax
	movq	_dac5571_cmd_quad@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_dac5571_pwrdwn_single@GOTPCREL(%rip), %rax
	movq	_dac5571_cmd_single@GOTPCREL(%rip), %rcx
LBB0_8:
	movq	%rcx, (%r14)
	movl	(%rax), %eax
	movl	%eax, 12(%r14)
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	*%rcx
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %ebx
	jge	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	*(%r14)
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	movl	%eax, %r13d
LBB0_13:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_14:
	movl	8(%r14), %edi
	callq	_regulator_disable
LBB0_17:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r12, %rdi
	callq	_iio_device_register
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.16:
	xorl	%r13d, %r13d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_dac5571_info,4,2               ## @dac5571_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_dac5571_channels,4,2           ## @dac5571_channels
	.comm	_dac5571_spec,8,3               ## @dac5571_spec
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vref"

	.comm	_dac5571_pwrdwn_single,4,2      ## @dac5571_pwrdwn_single
	.comm	_dac5571_pwrdwn_quad,4,2        ## @dac5571_pwrdwn_quad
L_.str.1:                               ## @.str.1
	.asciz	"failed to initialize channel %d to 0\n"

	.no_dead_strip	_dac5571_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dac5571_probe
_dac5571_probe:                         ; @dac5571_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, x1
	mov	x20, x0
	mov	w1, #40
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	bl	_iio_priv
	mov	x19, x0
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_clientdata
	str	x20, [x21, #32]
	ldr	w8, [x20]
	str	w8, [x21, #24]
Lloh0:
	adrp	x8, _dac5571_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dac5571_info@GOTPAGEOFF]
	str	x8, [x21, #16]
	ldr	w8, [x22, #8]
Lloh2:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _dac5571_channels@GOTPAGE
Lloh6:
	ldr	x10, [x10, _dac5571_channels@GOTPAGEOFF]
	stp	w9, w8, [x21, #8]
Lloh7:
	ldr	w8, [x10]
Lloh8:
	adrp	x9, _dac5571_spec@GOTPAGE
Lloh9:
	ldr	x9, [x9, _dac5571_spec@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	x10, [x22]
	add	x24, x9, x10, lsl #2
	ldr	w9, [x24]
	stp	w9, w8, [x21]
	stp	x24, x20, [x19, #24]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	w0, [x19, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x19, #8]
	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_17
LBB0_4:
	bl	_regulator_enable
	mov	x22, x0
	tbnz	w0, #31, LBB0_17
; %bb.5:
	add	x0, x19, #16
	bl	_mutex_init
	ldr	w8, [x24]
	cmp	w8, #1
	b.eq	LBB0_8
; %bb.6:
	cmp	w8, #4
	b.ne	LBB0_16
; %bb.7:
Lloh16:
	adrp	x9, _dac5571_pwrdwn_quad@GOTPAGE
Lloh17:
	ldr	x9, [x9, _dac5571_pwrdwn_quad@GOTPAGEOFF]
Lloh18:
	adrp	x8, _dac5571_cmd_quad@GOTPAGE
Lloh19:
	ldr	x8, [x8, _dac5571_cmd_quad@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x9, _dac5571_pwrdwn_single@GOTPAGE
Lloh21:
	ldr	x9, [x9, _dac5571_pwrdwn_single@GOTPAGEOFF]
Lloh22:
	adrp	x8, _dac5571_cmd_single@GOTPAGE
Lloh23:
	ldr	x8, [x8, _dac5571_cmd_single@GOTPAGEOFF]
LBB0_9:
	str	x8, [x19]
	ldr	w9, [x9]
	str	w9, [x19, #12]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	blr	x8
	cbz	w0, LBB0_11
; %bb.10:
	mov	x22, x0
	mov	w23, #0
	b	LBB0_15
LBB0_11:
	mov	w23, #0
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	w23, w23, #1
	ldr	w8, [x24]
	cmp	w23, w8
	b.ge	LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x19]
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	blr	x8
	cbz	w0, LBB0_12
; %bb.14:
	mov	x22, x0
LBB0_15:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	bl	_dev_err
LBB0_16:
	ldr	w0, [x19, #8]
	bl	_regulator_disable
LBB0_17:
	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
LBB0_18:
	mov	x0, x21
	bl	_iio_device_register
	mov	x22, x0
	cbnz	w0, LBB0_16
	b	LBB0_17
	.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 AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dac5571_info,4,2               ; @dac5571_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_dac5571_channels,4,2           ; @dac5571_channels
	.comm	_dac5571_spec,8,3               ; @dac5571_spec
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vref"

	.comm	_dac5571_pwrdwn_single,4,2      ; @dac5571_pwrdwn_single
	.comm	_dac5571_pwrdwn_quad,4,2        ; @dac5571_pwrdwn_quad
l_.str.1:                               ; @.str.1
	.asciz	"failed to initialize channel %d to 0\n"

	.no_dead_strip	_dac5571_probe
.subsections_via_symbols
