	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5380_probe
_ad5380_probe:                          ## @ad5380_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	%rcx, %rbx
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_dev_set_drvdata
	movq	_ad5380_chip_info_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r12d, %ecx
	leaq	(%rax,%rcx,8), %rdx
	movq	%rdx, 16(%r14)
	movq	%rbx, 8(%r14)
	movq	%r15, 32(%r13)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%r13)
	movq	_ad5380_info@GOTPCREL(%rip), %rdx
	movq	%rdx, 24(%r13)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 16(%r13)
	movl	4(%rax,%rcx,8), %eax
	movl	%eax, 12(%r13)
	movq	%r13, %rdi
	callq	_ad5380_alloc_channels
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_21
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_21
LBB0_4:
	movq	16(%r14), %rax
	xorl	%ebx, %ebx
	cmpl	$2500, (%rax)                   ## imm = 0x9C4
	jne	LBB0_6
## %bb.5:
	movq	_AD5380_CTRL_INT_VREF_2V5@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regulator_get
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_7
## %bb.11:
	movq	16(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_AD5380_CTRL_INT_VREF_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_12:
	movq	8(%r14), %rdi
	movq	_AD5380_REG_SF_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_17
LBB0_7:
	movl	4(%r14), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_20
LBB0_14:
	movq	%r13, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movl	%eax, %r12d
	leaq	L_.str.5(%rip), %rsi
LBB0_17:
	movq	%r15, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_18:
	movl	4(%r14), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:
	movl	4(%r14), %edi
	callq	_regulator_disable
LBB0_20:
	movl	8(%r13), %edi
	callq	_kfree
LBB0_21:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	4(%r14), %edi
	callq	_regulator_get_voltage
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_18
## %bb.10:
	movl	%r12d, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	movl	%eax, (%r14)
	jmp	LBB0_12
LBB0_15:
	xorl	%r12d, %r12d
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate iio device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ad5380_chip_info_tbl,8,3       ## @ad5380_chip_info_tbl
	.comm	_ad5380_info,4,2                ## @ad5380_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate channel spec: %d\n"

	.comm	_AD5380_CTRL_INT_VREF_2V5,4,2   ## @AD5380_CTRL_INT_VREF_2V5
L_.str.2:                               ## @.str.2
	.asciz	"vref"

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

	.comm	_AD5380_CTRL_INT_VREF_EN,4,2    ## @AD5380_CTRL_INT_VREF_EN
	.comm	_AD5380_REG_SF_CTRL,4,2         ## @AD5380_REG_SF_CTRL
L_.str.4:                               ## @.str.4
	.asciz	"Failed to write to device: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to register iio device: %d\n"

	.no_dead_strip	_ad5380_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5380_probe
_ad5380_probe:                          ; @ad5380_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	x22, x3
	mov	x24, x2
	mov	x23, x1
	mov	x20, x0
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_dev_set_drvdata
Lloh0:
	adrp	x8, _ad5380_chip_info_tbl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ad5380_chip_info_tbl@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, w24, uxtw #3
	stp	x23, x8, [x21, #8]
	str	x22, [x19]
Lloh3:
	adrp	x9, _ad5380_info@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ad5380_info@GOTPAGEOFF]
	stp	x9, x20, [x19, #24]
Lloh5:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ldr	w8, [x8, #4]
	stp	w8, w9, [x19, #12]
	mov	x0, x19
	bl	_ad5380_alloc_channels
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
	str	x22, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_16
LBB0_3:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_16
LBB0_4:
	ldr	x8, [x21, #16]
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _AD5380_CTRL_INT_VREF_2V5@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AD5380_CTRL_INT_VREF_2V5@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, #2500
	csel	w23, w9, wzr, eq
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	w0, [x21, #4]
	bl	_IS_ERR
	cbz	w0, LBB0_8
; %bb.5:
	ldr	x8, [x21, #16]
	ldr	w8, [x8]
	str	w8, [x21]
Lloh20:
	adrp	x8, _AD5380_CTRL_INT_VREF_EN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AD5380_CTRL_INT_VREF_EN@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	orr	w23, w8, w23
LBB0_6:
	ldr	x0, [x21, #8]
Lloh23:
	adrp	x8, _AD5380_REG_SF_CTRL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AD5380_REG_SF_CTRL@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x2, x23
	bl	_regmap_write
	cbz	w0, LBB0_10
; %bb.7:
	mov	x22, x0
	str	x22, [sp]
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_8:
	ldr	w0, [x21, #4]
	bl	_regulator_enable
	cbz	w0, LBB0_17
; %bb.9:
	mov	x22, x0
	str	x22, [sp]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_15
LBB0_10:
	mov	x0, x19
	bl	_iio_device_register
	mov	x22, x0
	cbz	w0, LBB0_16
; %bb.11:
	str	x22, [sp]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_12:
	mov	x0, x20
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_13:
	ldr	w0, [x21, #4]
	bl	_IS_ERR
	cbnz	w0, LBB0_15
; %bb.14:
	ldr	w0, [x21, #4]
	bl	_regulator_disable
LBB0_15:
	ldr	w0, [x19, #8]
	bl	_kfree
LBB0_16:
	mov	x0, x22
	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_17:
	ldr	w0, [x21, #4]
	bl	_regulator_get_voltage
	mov	x22, x0
	tbnz	w0, #31, LBB0_13
; %bb.18:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w22, w8
	lsr	x8, x8, #38
	str	w8, [x21]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate iio device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ad5380_chip_info_tbl,8,3       ; @ad5380_chip_info_tbl
	.comm	_ad5380_info,4,2                ; @ad5380_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate channel spec: %d\n"

	.comm	_AD5380_CTRL_INT_VREF_2V5,4,2   ; @AD5380_CTRL_INT_VREF_2V5
l_.str.2:                               ; @.str.2
	.asciz	"vref"

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

	.comm	_AD5380_CTRL_INT_VREF_EN,4,2    ; @AD5380_CTRL_INT_VREF_EN
	.comm	_AD5380_REG_SF_CTRL,4,2         ; @AD5380_REG_SF_CTRL
l_.str.4:                               ; @.str.4
	.asciz	"Failed to write to device: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to register iio device: %d\n"

	.no_dead_strip	_ad5380_probe
.subsections_via_symbols
