	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltc2632_probe
_ltc2632_probe:                         ## @ltc2632_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, %r12
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_spi_set_drvdata
	movq	%r12, 16(%r15)
	movq	%r12, %rdi
	callq	_spi_get_device_id
	movq	8(%rax), %r13
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regulator_get_optional
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_PTR_ERR
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_7
## %bb.4:
	movq	$0, 8(%r15)
	movl	(%r13), %eax
	movl	%eax, (%r15)
	movq	_LTC2632_CMD_INTERNAL_REFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ltc2632_spi_write
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_2
LBB0_7:
	movq	8(%r15), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.16:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r15), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_8:
	movq	8(%r15), %rdi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_6
LBB0_10:
	movq	8(%r15), %rdi
	callq	_regulator_get_voltage
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, (%r15)
	movq	_LTC2632_CMD_EXTERNAL_REFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_ltc2632_spi_write
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
LBB0_6:
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_2:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r12, 32(%r14)
	movq	%r12, %rdi
	callq	_dev_of_node
	movq	%r12, %rdi
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	callq	_dev_of_node
	jmp	LBB0_15
LBB0_14:
	callq	_spi_get_device_id
LBB0_15:
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movq	_ltc2632_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	4(%r13), %eax
	movl	%eax, 4(%r14)
	movq	_LTC2632_DAC_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iio_device_register            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vref"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_LTC2632_CMD_INTERNAL_REFER,4,2 ## @LTC2632_CMD_INTERNAL_REFER
L_.str.1:                               ## @.str.1
	.asciz	"Set internal reference command failed, %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error getting voltage reference regulator\n"

L_.str.3:                               ## @.str.3
	.asciz	"enable reference regulator failed, %d\n"

	.comm	_LTC2632_CMD_EXTERNAL_REFER,4,2 ## @LTC2632_CMD_EXTERNAL_REFER
L_.str.4:                               ## @.str.4
	.asciz	"Set external reference command failed, %d\n"

	.comm	_ltc2632_info,4,2               ## @ltc2632_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_LTC2632_DAC_CHANNELS,4,2       ## @LTC2632_DAC_CHANNELS
	.no_dead_strip	_ltc2632_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltc2632_probe
_ltc2632_probe:                         ; @ltc2632_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	x19, x0
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
	str	x19, [x21, #16]
	mov	x0, x19
	bl	_spi_get_device_id
	ldr	x23, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get_optional
	str	x0, [x21, #8]
	bl	_PTR_ERR
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_6
; %bb.2:
	str	xzr, [x21, #8]
	ldr	w8, [x23]
	str	w8, [x21]
Lloh5:
	adrp	x8, _LTC2632_CMD_INTERNAL_REFER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LTC2632_CMD_INTERNAL_REFER@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_ltc2632_spi_write
	cbz	w0, LBB0_12
; %bb.3:
	mov	x21, x0
	str	x21, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	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
LBB0_6:
	ldr	x0, [x21, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x21, #8]
	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_8:
	ldr	x0, [x21, #8]
	bl	_regulator_enable
	cbz	w0, LBB0_10
; %bb.9:
	mov	x22, x0
	str	x22, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x21, x22
	b	LBB0_5
LBB0_10:
	ldr	x0, [x21, #8]
	bl	_regulator_get_voltage
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	w8, [x21]
Lloh17:
	adrp	x8, _LTC2632_CMD_EXTERNAL_REFER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LTC2632_CMD_EXTERNAL_REFER@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_ltc2632_spi_write
	cbz	w0, LBB0_12
; %bb.11:
	mov	x21, x0
	str	x21, [sp]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_5
LBB0_12:
	str	x19, [x20, #32]
	mov	x0, x19
	bl	_dev_of_node
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_dev_of_node
	b	LBB0_15
LBB0_14:
	mov	x0, x19
	bl	_spi_get_device_id
LBB0_15:
	ldr	w8, [x0]
	str	w8, [x20, #24]
Lloh22:
	adrp	x8, _ltc2632_info@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ltc2632_info@GOTPAGEOFF]
	str	x8, [x20, #16]
Lloh24:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	ldr	w8, [x23, #4]
Lloh27:
	adrp	x9, _LTC2632_DAC_CHANNELS@GOTPAGE
Lloh28:
	ldr	x9, [x9, _LTC2632_DAC_CHANNELS@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	stp	w9, w8, [x20]
	mov	x0, x20
	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	_iio_device_register
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vref"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_LTC2632_CMD_INTERNAL_REFER,4,2 ; @LTC2632_CMD_INTERNAL_REFER
l_.str.1:                               ; @.str.1
	.asciz	"Set internal reference command failed, %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error getting voltage reference regulator\n"

l_.str.3:                               ; @.str.3
	.asciz	"enable reference regulator failed, %d\n"

	.comm	_LTC2632_CMD_EXTERNAL_REFER,4,2 ; @LTC2632_CMD_EXTERNAL_REFER
l_.str.4:                               ; @.str.4
	.asciz	"Set external reference command failed, %d\n"

	.comm	_ltc2632_info,4,2               ; @ltc2632_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_LTC2632_DAC_CHANNELS,4,2       ; @LTC2632_DAC_CHANNELS
	.no_dead_strip	_ltc2632_probe
.subsections_via_symbols
