	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds4424_probe
_ds4424_probe:                          ## @ds4424_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, %r12
	movq	%rdi, %r15
	movl	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_clientdata
	movq	%r15, 8(%r14)
	movl	4(%r12), %eax
	movl	%eax, 40(%rbx)
	movl	(%r15), %eax
	movl	%eax, 32(%rbx)
	movq	%r15, 24(%rbx)
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regulator_get
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.15:
	movl	(%r14), %edi
	callq	_PTR_ERR
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_14
LBB0_3:
	movq	%r14, %rdi
	addq	$4, %rdi
	callq	_mutex_init
	movl	(%r14), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$1200, %esi                     ## imm = 0x4B0
	callq	_usleep_range
	movq	%rbx, %rdi
	callq	_ds4424_verify_chip
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	(%r12), %eax
	cmpl	$129, %eax
	je	LBB0_8
## %bb.9:
	cmpl	$128, %eax
	jne	LBB0_16
## %bb.10:
	movq	_DS4424_MAX_DAC_CHANNELS@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_6:
	movl	%eax, %r13d
	jmp	LBB0_13
LBB0_8:
	movq	_DS4422_MAX_DAC_CHANNELS@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_ds4424_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_ds4424_info@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_iio_device_register
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_14
## %bb.12:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_16:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
LBB0_13:
	movl	(%r14), %edi
	callq	_regulator_disable
LBB0_14:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iio dev alloc failed.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"vcc"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to get vcc-supply regulator. err: %ld\n"

L_.str.3:                               ## @.str.3
	.asciz	"Unable to enable the regulator.\n"

	.comm	_DS4422_MAX_DAC_CHANNELS,4,2    ## @DS4422_MAX_DAC_CHANNELS
	.comm	_DS4424_MAX_DAC_CHANNELS,4,2    ## @DS4424_MAX_DAC_CHANNELS
L_.str.4:                               ## @.str.4
	.asciz	"ds4424: Invalid chip id.\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ds4424_channels,4,2            ## @ds4424_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ds4424_info,4,2                ## @ds4424_info
L_.str.5:                               ## @.str.5
	.asciz	"iio_device_register failed. ret: %d\n"

	.no_dead_strip	_ds4424_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds4424_probe
_ds4424_probe:                          ; @ds4424_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, #16
	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, [x19, #8]
	ldr	w8, [x22, #4]
	str	w8, [x21, #40]
	ldr	w8, [x20]
	str	w8, [x21, #32]
	str	x20, [x21, #24]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	w0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x19]
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_3:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_16
LBB0_4:
	add	x0, x19, #4
	bl	_mutex_init
	ldr	w0, [x19]
	bl	_regulator_enable
	tbnz	w0, #31, LBB0_9
; %bb.5:
	mov	w0, #1000
	mov	w1, #1200
	bl	_usleep_range
	mov	x0, x21
	bl	_ds4424_verify_chip
	tbnz	w0, #31, LBB0_10
; %bb.6:
	ldr	w8, [x22]
	cmp	w8, #129
	b.eq	LBB0_11
; %bb.7:
	cmp	w8, #128
	b.ne	LBB0_14
; %bb.8:
Lloh9:
	adrp	x8, _DS4424_MAX_DAC_CHANNELS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DS4424_MAX_DAC_CHANNELS@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	mov	x23, x0
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_16
LBB0_10:
	mov	x23, x0
	b	LBB0_15
LBB0_11:
Lloh13:
	adrp	x8, _DS4422_MAX_DAC_CHANNELS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DS4422_MAX_DAC_CHANNELS@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x21, #16]
Lloh15:
	adrp	x8, _ds4424_channels@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ds4424_channels@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #8]
Lloh21:
	adrp	x8, _ds4424_info@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ds4424_info@GOTPAGEOFF]
	str	x8, [x21]
	mov	x0, x21
	bl	_iio_device_register
	mov	x23, x0
	tbz	w0, #31, LBB0_16
; %bb.13:
	str	x23, [sp]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_15
LBB0_14:
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh27:
	adrp	x8, _ENXIO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_15:
	ldr	w0, [x19]
	bl	_regulator_disable
LBB0_16:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iio dev alloc failed.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"vcc"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to get vcc-supply regulator. err: %ld\n"

l_.str.3:                               ; @.str.3
	.asciz	"Unable to enable the regulator.\n"

	.comm	_DS4422_MAX_DAC_CHANNELS,4,2    ; @DS4422_MAX_DAC_CHANNELS
	.comm	_DS4424_MAX_DAC_CHANNELS,4,2    ; @DS4424_MAX_DAC_CHANNELS
l_.str.4:                               ; @.str.4
	.asciz	"ds4424: Invalid chip id.\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ds4424_channels,4,2            ; @ds4424_channels
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ds4424_info,4,2                ; @ds4424_info
l_.str.5:                               ; @.str.5
	.asciz	"iio_device_register failed. ret: %d\n"

	.no_dead_strip	_ds4424_probe
.subsections_via_symbols
