	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcp4725_probe
_mcp4725_probe:                         ## @mcp4725_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
	subq	$56, %rsp
	.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, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$48, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	movq	%r13, 40(%r14)
	cmpq	$0, (%r13)
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_of_device_get_match_data
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_5:
	movq	(%rbx), %rax
LBB0_6:
	movl	%eax, (%r14)
	movq	%r13, %rdi
	callq	_dev_get_platdata
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_7
LBB0_9:
	movslq	(%r14), %rcx
	movq	_MCP4725@GOTPCREL(%rip), %rdx
	movq	(%r12), %rax
	cmpq	%rcx, (%rdx)
	jne	LBB0_13
## %bb.10:
	testq	%rax, %rax
	je	LBB0_14
## %bb.11:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_12
LBB0_13:
	testq	%rax, %rax
	je	LBB0_14
## %bb.17:
	cmpq	$0, 8(%r12)
	jne	LBB0_18
## %bb.19:
	movq	_MCP472X_REF_VREF_UNBUFFERED@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_7:
	leaq	-88(%rbp), %r12
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_mcp4725_probe_dt
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	jmp	LBB0_38
LBB0_14:
	cmpq	$0, 8(%r12)
	je	LBB0_16
## %bb.15:
	leaq	L_.str.2(%rip), %rsi
LBB0_12:
	movq	%r13, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_38:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_40
## %bb.39:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_MCP472X_REF_VREF_BUFFERED@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_16:
	movq	_MCP472X_REF_VDD@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_regulator_get
	movq	%rax, 24(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	24(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_38
LBB0_22:
	callq	_regulator_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_38
## %bb.23:
	cmpq	$0, (%r12)
	je	LBB0_28
## %bb.24:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_regulator_get
	movq	%rax, 32(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	32(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_26
LBB0_27:
	callq	_regulator_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_26
LBB0_28:
	movq	%r13, 32(%r15)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %eax
	movl	%eax, 24(%r15)
	movq	_mcp4725_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	_mcp472x_channel@GOTPCREL(%rip), %rax
	movq	(%rcx), %rcx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	movq	%rcx, 8(%r15)
	movl	$1, (%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movslq	(%r14), %rax
	xorl	%ecx, %ecx
	movq	_MCP4725@GOTPCREL(%rip), %rdx
	cmpq	%rax, (%rdx)
	sete	%cl
	movl	$4, %edx
	subl	%ecx, %edx
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_i2c_master_recv
	testl	%eax, %eax
	js	LBB0_29
## %bb.32:
	movl	-64(%rbp), %eax
	shrl	%eax
	andl	$3, %eax
	xorl	%ecx, %ecx
	movl	%eax, %edx
	addl	$-1, %edx
	setb	%cl
	testl	%eax, %eax
	movl	$2, %eax
	cmovnel	%edx, %eax
	movl	%ecx, 8(%r14)
	movl	%eax, 12(%r14)
	movl	-60(%rbp), %eax
	movl	-56(%rbp), %ecx
	shll	$4, %eax
	sarl	$4, %ecx
	orl	%eax, %ecx
	movl	%ecx, 16(%r14)
	movslq	(%r14), %rax
	movq	_MCP4726@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_36
## %bb.33:
	movl	-52(%rbp), %ecx
	shrl	$3, %ecx
	andl	$3, %ecx
	movl	4(%r14), %edx
	cmpl	%edx, %ecx
	je	LBB0_36
## %bb.34:
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	movl	%edx, %r8d
	callq	_dev_info
	movq	%r15, %rdi
	callq	_mcp4726_set_cfg
	testl	%eax, %eax
	js	LBB0_35
LBB0_36:
	movq	%r15, %rdi
	callq	_iio_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_30
## %bb.37:
	xorl	%ebx, %ebx
	jmp	LBB0_38
LBB0_29:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
LBB0_30:
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.31:
	callq	_regulator_disable
LBB0_26:
	movq	24(%r14), %rdi
	callq	_regulator_disable
	jmp	LBB0_38
LBB0_35:
	movl	%eax, %ebx
	jmp	LBB0_30
LBB0_40:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid platform or devicetree data"

	.comm	_MCP4725,8,3                    ## @MCP4725
L_.str.1:                               ## @.str.1
	.asciz	"external reference is unavailable on MCP4725"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"buffering is unavailable on the internal reference"

	.comm	_MCP472X_REF_VDD,4,2            ## @MCP472X_REF_VDD
	.comm	_MCP472X_REF_VREF_BUFFERED,4,2  ## @MCP472X_REF_VREF_BUFFERED
	.comm	_MCP472X_REF_VREF_UNBUFFERED,4,2 ## @MCP472X_REF_VREF_UNBUFFERED
L_.str.3:                               ## @.str.3
	.asciz	"vdd"

L_.str.4:                               ## @.str.4
	.asciz	"vref"

	.comm	_mcp4725_info,4,2               ## @mcp4725_info
	.comm	_mcp472x_channel,8,3            ## @mcp472x_channel
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
L_.str.5:                               ## @.str.5
	.asciz	"failed to read DAC value"

	.comm	_MCP4726,8,3                    ## @MCP4726
L_.str.6:                               ## @.str.6
	.asciz	"voltage reference mode differs (conf: %u, eeprom: %u), setting %u"

	.no_dead_strip	_mcp4725_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcp4725_probe
_mcp4725_probe:                         ; @mcp4725_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	mov	w1, #48
	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, #40]
	ldr	x8, [x20]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_of_device_get_match_data
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_16
LBB0_4:
	ldr	x0, [x22]
LBB0_5:
	str	w0, [x19]
	mov	x0, x20
	bl	_dev_get_platdata
	mov	x24, x0
	cbz	x0, LBB0_11
LBB0_6:
	ldrsw	x9, [x19]
Lloh5:
	adrp	x25, _MCP4725@GOTPAGE
Lloh6:
	ldr	x25, [x25, _MCP4725@GOTPAGEOFF]
	ldr	x10, [x25]
	ldr	x8, [x24]
	cmp	x10, x9
	b.ne	LBB0_9
; %bb.7:
	cbz	x8, LBB0_13
; %bb.8:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_15
LBB0_9:
	cbz	x8, LBB0_13
; %bb.10:
Lloh9:
	adrp	x8, _MCP472X_REF_VREF_BUFFERED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MCP472X_REF_VREF_BUFFERED@GOTPAGEOFF]
	ldr	x9, [x24, #8]
Lloh11:
	adrp	x10, _MCP472X_REF_VREF_UNBUFFERED@GOTPAGE
Lloh12:
	ldr	x10, [x10, _MCP472X_REF_VREF_UNBUFFERED@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	b	LBB0_20
LBB0_11:
	add	x24, sp, #8
	add	x1, sp, #8
	mov	x0, x20
	bl	_mcp4725_probe_dt
	cbz	w0, LBB0_6
; %bb.12:
	mov	x23, x0
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_17
LBB0_13:
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_19
; %bb.14:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_15:
	mov	x0, x20
	bl	_dev_err
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_17:
	ldr	x8, [sp, #40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_37
; %bb.18:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_19:
Lloh22:
	adrp	x8, _MCP472X_REF_VDD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MCP472X_REF_VDD@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	str	w8, [x19, #4]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	x0, [x19, #24]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #24]
	cbz	x8, LBB0_22
; %bb.21:
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_17
LBB0_22:
	bl	_regulator_enable
	mov	x23, x0
	cbnz	w0, LBB0_17
; %bb.23:
	ldr	x8, [x24]
	cbz	x8, LBB0_27
; %bb.24:
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	x0, [x19, #32]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #32]
	cbz	x8, LBB0_26
; %bb.25:
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_35
LBB0_26:
	bl	_regulator_enable
	mov	x23, x0
	cbnz	w0, LBB0_35
LBB0_27:
	str	x20, [x21, #32]
	ldr	w8, [x22, #8]
	str	w8, [x21, #24]
Lloh28:
	adrp	x8, _mcp4725_info@GOTPAGE
Lloh29:
	ldr	x8, [x8, _mcp4725_info@GOTPAGEOFF]
	str	x8, [x21, #16]
Lloh30:
	adrp	x8, _mcp472x_channel@GOTPAGE
Lloh31:
	ldr	x8, [x8, _mcp472x_channel@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	ldr	x9, [x22]
	add	x8, x8, x9, lsl #2
	str	x8, [x21, #8]
	mov	w8, #1
	str	w8, [x21]
Lloh33:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	str	w8, [x21, #4]
	ldrsw	x8, [x19]
	ldr	x9, [x25]
	cmp	x9, x8
	mov	w22, #3
	cinc	w2, w22, ne
	add	x1, sp, #24
	mov	x0, x20
	bl	_i2c_master_recv
	tbnz	w0, #31, LBB0_32
; %bb.28:
	ldp	w8, w9, [sp, #24]
	ands	w10, w22, w8, lsr #1
	subs	w10, w10, #1
	cset	w11, hs
	tst	w22, w8, lsr #1
	mov	w8, #2
	csel	w8, w8, w10, eq
	stp	w11, w8, [x19, #8]
	ldr	w8, [sp, #32]
	asr	w8, w8, #4
	orr	w8, w8, w9, lsl #4
	str	w8, [x19, #16]
	ldrsw	x8, [x19]
Lloh36:
	adrp	x9, _MCP4726@GOTPAGE
Lloh37:
	ldr	x9, [x9, _MCP4726@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.29:
	ldr	w8, [sp, #36]
	ubfx	w3, w8, #3, #2
	ldr	w2, [x19, #4]
	cmp	w3, w2
	b.eq	LBB0_31
; %bb.30:
Lloh39:
	adrp	x1, l_.str.6@PAGE
Lloh40:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	mov	x4, x2
	bl	_dev_info
	mov	x0, x21
	bl	_mcp4726_set_cfg
	tbnz	w0, #31, LBB0_36
LBB0_31:
	mov	x0, x21
	bl	_iio_device_register
	mov	x23, x0
	cbnz	w0, LBB0_33
	b	LBB0_17
LBB0_32:
	mov	x23, x0
Lloh41:
	adrp	x1, l_.str.5@PAGE
Lloh42:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_33:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_35
LBB0_34:
	bl	_regulator_disable
LBB0_35:
	ldr	x0, [x19, #24]
	bl	_regulator_disable
	b	LBB0_17
LBB0_36:
	mov	x23, x0
	ldr	x0, [x19, #32]
	cbnz	x0, LBB0_34
	b	LBB0_35
LBB0_37:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid platform or devicetree data"

	.comm	_MCP4725,8,3                    ; @MCP4725
l_.str.1:                               ; @.str.1
	.asciz	"external reference is unavailable on MCP4725"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"buffering is unavailable on the internal reference"

	.comm	_MCP472X_REF_VDD,4,2            ; @MCP472X_REF_VDD
	.comm	_MCP472X_REF_VREF_BUFFERED,4,2  ; @MCP472X_REF_VREF_BUFFERED
	.comm	_MCP472X_REF_VREF_UNBUFFERED,4,2 ; @MCP472X_REF_VREF_UNBUFFERED
l_.str.3:                               ; @.str.3
	.asciz	"vdd"

l_.str.4:                               ; @.str.4
	.asciz	"vref"

	.comm	_mcp4725_info,4,2               ; @mcp4725_info
	.comm	_mcp472x_channel,8,3            ; @mcp472x_channel
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
l_.str.5:                               ; @.str.5
	.asciz	"failed to read DAC value"

	.comm	_MCP4726,8,3                    ; @MCP4726
l_.str.6:                               ; @.str.6
	.asciz	"voltage reference mode differs (conf: %u, eeprom: %u), setting %u"

	.no_dead_strip	_mcp4725_probe
.subsections_via_symbols
