	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltc1660_probe
_ltc1660_probe:                         ## @ltc1660_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
	callq	_spi_get_device_id
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	$24, %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	_ltc1660_regmap_config@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regmap_init_spi
	movl	%eax, 16(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	16(%r14), %edi
	callq	_PTR_ERR
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	16(%r14), %edi
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regulator_get
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r14), %edi
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_7:
	movl	(%r14), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r13d
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_12
LBB0_9:
	movq	%rbx, 8(%r14)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_spi_set_drvdata
	movq	%rbx, 24(%r12)
	movq	_ltc1660_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_ltc1660_channels@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 8(%r12)
	movq	_LTC1660_NUM_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movl	8(%r15), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_10
## %bb.11:
	movl	%eax, %r13d
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r14), %edi
	callq	_regulator_disable
	jmp	LBB0_12
LBB0_10:
	xorl	%r13d, %r13d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ltc1660_regmap_config,4,2      ## @ltc1660_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to register spi regmap %ld\n"

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

L_.str.2:                               ## @.str.2
	.asciz	"vref regulator not specified\n"

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

	.comm	_ltc1660_info,4,2               ## @ltc1660_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ltc1660_channels,8,3           ## @ltc1660_channels
	.comm	_LTC1660_NUM_CHANNELS,4,2       ## @LTC1660_NUM_CHANNELS
L_.str.4:                               ## @.str.4
	.asciz	"failed to register iio device: %d\n"

	.no_dead_strip	_ltc1660_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltc1660_probe
_ltc1660_probe:                         ; @ltc1660_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
	bl	_spi_get_device_id
	mov	x21, x0
	mov	x0, x19
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	bl	_iio_priv
	mov	x20, x0
Lloh0:
	adrp	x1, _ltc1660_regmap_config@GOTPAGE
Lloh1:
	ldr	x1, [x1, _ltc1660_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_spi
	str	w0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w0, [x20, #16]
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #16]
	b	LBB0_7
LBB0_3:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_4:
	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
LBB0_5:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.6:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20]
LBB0_7:
	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	w0, [x20]
	bl	_regulator_enable
	cbz	w0, LBB0_10
; %bb.9:
	mov	x23, x0
	str	x23, [sp]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_4
LBB0_10:
	str	x19, [x20, #8]
	mov	x0, x19
	mov	x1, x22
	bl	_spi_set_drvdata
Lloh13:
	adrp	x8, _ltc1660_info@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ltc1660_info@GOTPAGEOFF]
	stp	x8, x19, [x22, #16]
Lloh15:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _ltc1660_channels@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ltc1660_channels@GOTPAGEOFF]
	str	w8, [x22, #12]
Lloh20:
	ldr	x8, [x9]
	ldr	x9, [x21]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x22, #8]
Lloh21:
	adrp	x8, _LTC1660_NUM_CHANNELS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LTC1660_NUM_CHANNELS@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x21, #8]
	stp	w9, w8, [x22]
	mov	x0, x22
	bl	_iio_device_register
	mov	x23, x0
	cbz	w0, LBB0_4
; %bb.11:
	str	x23, [sp]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20]
	bl	_regulator_disable
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ltc1660_regmap_config,4,2      ; @ltc1660_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to register spi regmap %ld\n"

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

l_.str.2:                               ; @.str.2
	.asciz	"vref regulator not specified\n"

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

	.comm	_ltc1660_info,4,2               ; @ltc1660_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ltc1660_channels,8,3           ; @ltc1660_channels
	.comm	_LTC1660_NUM_CHANNELS,4,2       ; @LTC1660_NUM_CHANNELS
l_.str.4:                               ; @.str.4
	.asciz	"failed to register iio device: %d\n"

	.no_dead_strip	_ltc1660_probe
.subsections_via_symbols
