	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad8801_probe
_ad8801_probe:                          ## @ad8801_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
	movl	$32, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%rbx, 24(%rax)
	movq	%rbx, %rdi
	callq	_spi_get_device_id
	movq	%rax, %r13
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regulator_get
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.24:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_23
LBB0_3:
	movq	8(%r14), %rdi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_23
LBB0_5:
	movq	8(%r14), %rdi
	callq	_regulator_get_voltage
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_6
## %bb.8:
	movl	%r12d, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	movl	%eax, (%r14)
	movq	(%r13), %rax
	movq	_ID_AD8803@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regulator_get
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	16(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_22
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
LBB0_7:
	movq	%rbx, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_22
LBB0_16:
	movl	$0, 4(%r14)
	movq	$0, 16(%r14)
LBB0_17:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_spi_set_drvdata
	movq	%rbx, 24(%r15)
	movq	_ad8801_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	movq	_ad8801_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 8(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 4(%r15)
	movl	8(%r13), %eax
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_18
## %bb.19:
	movl	%eax, %r12d
	leaq	L_.str.8(%rip), %rsi
LBB0_20:
	movq	%rbx, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:
	callq	_regulator_disable
LBB0_22:
	movq	8(%r14), %rdi
	callq	_regulator_disable
LBB0_23:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	xorl	%r12d, %r12d
	jmp	LBB0_23
LBB0_11:
	movq	16(%r14), %rdi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r12d
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_7
LBB0_13:
	movq	16(%r14), %rdi
	callq	_regulator_get_voltage
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_14
## %bb.15:
	movl	%r12d, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	movl	%eax, 4(%r14)
	jmp	LBB0_17
LBB0_14:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vrefh"

L_.str.1:                               ## @.str.1
	.asciz	"Vrefh regulator not specified\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to enable vrefh regulator: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to read vrefh regulator: %d\n"

	.comm	_ID_AD8803,8,3                  ## @ID_AD8803
L_.str.4:                               ## @.str.4
	.asciz	"vrefl"

L_.str.5:                               ## @.str.5
	.asciz	"Vrefl regulator not specified\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to enable vrefl regulator: %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to read vrefl regulator: %d\n"

	.comm	_ad8801_info,4,2                ## @ad8801_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ad8801_channels,4,2            ## @ad8801_channels
L_.str.8:                               ## @.str.8
	.asciz	"Failed to register iio device: %d\n"

	.no_dead_strip	_ad8801_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad8801_probe
_ad8801_probe:                          ; @ad8801_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	x20, x0
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	bl	_iio_priv
	mov	x19, x0
	str	x20, [x0, #24]
	mov	x0, x20
	bl	_spi_get_device_id
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #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_3:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_18
LBB0_4:
	ldr	x0, [x19, #8]
	bl	_regulator_enable
	cbz	w0, LBB0_6
; %bb.5:
	mov	x23, x0
	str	x23, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_18
LBB0_6:
	ldr	x0, [x19, #8]
	bl	_regulator_get_voltage
	mov	x23, x0
	tbnz	w0, #31, LBB0_10
; %bb.7:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w23, w8
	lsr	x8, x8, #38
	str	w8, [x19]
	ldr	x8, [x22]
Lloh9:
	adrp	x9, _ID_AD8803@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ID_AD8803@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.8:
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.9:
Lloh14:
	adrp	x1, l_.str.5@PAGE
Lloh15:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #16]
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_17
LBB0_10:
	str	x23, [sp]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_11:
	mov	x0, x20
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	b	LBB0_17
LBB0_12:
	str	wzr, [x19, #4]
	str	xzr, [x19, #16]
LBB0_13:
	mov	x0, x20
	mov	x1, x21
	bl	_spi_set_drvdata
Lloh18:
	adrp	x8, _ad8801_info@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ad8801_info@GOTPAGEOFF]
	stp	x8, x20, [x21, #16]
Lloh20:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _ad8801_channels@GOTPAGE
Lloh24:
	ldr	x9, [x9, _ad8801_channels@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x9]
	stp	w0, w8, [x21, #8]
	bl	_ARRAY_SIZE
	ldr	w8, [x22, #8]
	stp	w8, w0, [x21]
	mov	x0, x21
	bl	_iio_device_register
	mov	x23, x0
	cbz	w0, LBB0_18
; %bb.14:
	str	x23, [sp]
Lloh26:
	adrp	x1, l_.str.8@PAGE
Lloh27:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_15:
	mov	x0, x20
	bl	_dev_err
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_17
; %bb.16:
	bl	_regulator_disable
LBB0_17:
	ldr	x0, [x19, #8]
	bl	_regulator_disable
LBB0_18:
	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_19:
	ldr	x0, [x19, #16]
	bl	_regulator_enable
	cbz	w0, LBB0_21
; %bb.20:
	mov	x23, x0
	str	x23, [sp]
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_11
LBB0_21:
	ldr	x0, [x19, #16]
	bl	_regulator_get_voltage
	mov	x23, x0
	tbnz	w0, #31, LBB0_23
; %bb.22:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w23, w8
	lsr	x8, x8, #38
	str	w8, [x19, #4]
	b	LBB0_13
LBB0_23:
	str	x23, [sp]
Lloh30:
	adrp	x1, l_.str.7@PAGE
Lloh31:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vrefh"

l_.str.1:                               ; @.str.1
	.asciz	"Vrefh regulator not specified\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to enable vrefh regulator: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to read vrefh regulator: %d\n"

	.comm	_ID_AD8803,8,3                  ; @ID_AD8803
l_.str.4:                               ; @.str.4
	.asciz	"vrefl"

l_.str.5:                               ; @.str.5
	.asciz	"Vrefl regulator not specified\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to enable vrefl regulator: %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to read vrefl regulator: %d\n"

	.comm	_ad8801_info,4,2                ; @ad8801_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ad8801_channels,4,2            ; @ad8801_channels
l_.str.8:                               ; @.str.8
	.asciz	"Failed to register iio device: %d\n"

	.no_dead_strip	_ad8801_probe
.subsections_via_symbols
