	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcp3911_probe
_mcp3911_probe:                         ## @mcp3911_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	$32, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r12, 24(%rax)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regulator_get_optional
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	callq	_PTR_ERR
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	movq	$0, (%r15)
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_6:
	callq	_regulator_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
LBB0_7:
	movq	24(%r15), %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, 8(%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	callq	_PTR_ERR
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_13
## %bb.9:
	movq	$0, 8(%r15)
	jmp	LBB0_10
LBB0_5:
	movq	(%r15), %rdi
	movq	24(%r15), %rbx
	callq	_PTR_ERR
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	(%r15), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_14:
	callq	_clk_prepare_enable
	testl	%eax, %eax
	js	LBB0_15
LBB0_10:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_mcp3911_config
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	movq	%r12, 32(%r14)
	movl	(%r12), %eax
	movl	%eax, 24(%r14)
	movq	%r12, %rdi
	callq	_spi_get_device_id
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_mcp3911_info@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_spi_set_drvdata
	movq	_mcp3911_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%r14)
	callq	_ARRAY_SIZE
	movl	%eax, (%r14)
	movq	%r15, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	callq	_iio_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_12
LBB0_16:
	movq	8(%r15), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_17
LBB0_13:
	movq	8(%r15), %rdi
	movq	24(%r15), %rbx
	callq	_PTR_ERR
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movq	8(%r15), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_15:
	movl	%eax, %ebx
	movq	24(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_17:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.18:
	callq	_regulator_disable
LBB0_19:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vref"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"failed to get regulator (%ld)\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	"failed to get adc clk (%ld)\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to enable clki: %d\n"

	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_mcp3911_info,4,2               ## @mcp3911_info
	.comm	_mcp3911_channels,4,2           ## @mcp3911_channels
	.no_dead_strip	_mcp3911_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcp3911_probe
_mcp3911_probe:                         ; @mcp3911_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x19, x0
	str	x21, [x0, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_devm_regulator_get_optional
	str	x0, [x19]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_5
; %bb.2:
	bl	_PTR_ERR
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_9
; %bb.3:
	str	xzr, [x19]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_16
LBB0_5:
	bl	_regulator_enable
	mov	x22, x0
	cbnz	w0, LBB0_16
LBB0_6:
	ldr	x0, [x19, #24]
	mov	x1, #0
	bl	_devm_clk_get
	str	x0, [x19, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_10
; %bb.7:
	bl	_PTR_ERR
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_14
; %bb.8:
	str	xzr, [x19, #8]
	b	LBB0_11
LBB0_9:
	ldr	x20, [x19, #24]
	ldr	x0, [x19]
	bl	_PTR_ERR
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_10:
	bl	_clk_prepare_enable
	tbnz	w0, #31, LBB0_17
LBB0_11:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mcp3911_config
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.12:
	str	x21, [x20, #32]
	ldr	w8, [x21]
	str	w8, [x20, #24]
	mov	x0, x21
	bl	_spi_get_device_id
	ldr	w8, [x0]
Lloh13:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #16]
Lloh16:
	adrp	x8, _mcp3911_info@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mcp3911_info@GOTPAGEOFF]
	str	x8, [x20, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_spi_set_drvdata
Lloh18:
	adrp	x8, _mcp3911_channels@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mcp3911_channels@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	str	w0, [x20, #4]
	bl	_ARRAY_SIZE
	str	w0, [x20]
	add	x0, x19, #16
	bl	_mutex_init
	mov	x0, x20
	bl	_iio_device_register
	mov	x22, x0
	cbz	w0, LBB0_16
LBB0_13:
	ldr	x0, [x19, #8]
	bl	_clk_disable_unprepare
	ldr	x0, [x19]
	cbnz	x0, LBB0_15
	b	LBB0_16
LBB0_14:
	ldr	x20, [x19, #24]
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
	mov	x2, x0
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #8]
	bl	_PTR_ERR
	mov	x22, x0
	ldr	x0, [x19]
	cbz	x0, LBB0_16
LBB0_15:
	bl	_regulator_disable
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	x22, x0
	ldr	x0, [x19, #24]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	ldr	x0, [x19]
	cbnz	x0, LBB0_15
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vref"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"failed to get regulator (%ld)\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	"failed to get adc clk (%ld)\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to enable clki: %d\n"

	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_mcp3911_info,4,2               ; @mcp3911_info
	.comm	_mcp3911_channels,4,2           ; @mcp3911_channels
	.no_dead_strip	_mcp3911_probe
.subsections_via_symbols
