	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5446_probe
_ad5446_probe:                          ## @ad5446_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	callq	_devm_regulator_get
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_3:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	$40, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r13)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_dev_set_drvdata
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, 32(%r13)
	movq	%r15, 24(%r13)
	movq	%r15, 40(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r12)
	movq	_ad5446_info@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	8(%r13), %rax
	leaq	4(%rax), %rcx
	movq	%rcx, 16(%r12)
	movl	$1, 8(%r12)
	movq	_MODE_PWRDWN_1k@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r13)
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, (%r13)
	jmp	LBB0_12
LBB0_1:
	movq	%r14, %rdi
	callq	_regulator_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.2:
	movq	%r14, %rdi
	callq	_regulator_get_voltage
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_3
	jmp	LBB0_5
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_9:
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	movl	%eax, (%r13)
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_warn
LBB0_12:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_iio_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_13
LBB0_5:
	movq	%r14, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movq	%r14, %rdi
	callq	_regulator_disable
	jmp	LBB0_14
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vcc"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ad5446_info,4,2                ## @ad5446_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_MODE_PWRDWN_1k,4,2             ## @MODE_PWRDWN_1k
L_.str.1:                               ## @.str.1
	.asciz	"reference voltage unspecified\n"

	.no_dead_strip	_ad5446_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5446_probe
_ad5446_probe:                          ; @ad5446_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_devm_regulator_get
	mov	x19, x0
	bl	_IS_ERR
	cbz	w0, LBB0_5
; %bb.1:
	mov	w21, #0
LBB0_2:
	mov	x0, x20
	mov	w1, #40
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x24, x0
	bl	_iio_priv
	mov	x25, x0
	str	x23, [x0, #8]
	mov	x0, x20
	mov	x1, x24
	bl	_dev_set_drvdata
	stp	x20, x19, [x25, #24]
	str	x22, [x24]
Lloh2:
	adrp	x8, _ad5446_info@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ad5446_info@GOTPAGEOFF]
	stp	x8, x20, [x24, #32]
Lloh4:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x24, #24]
	ldr	x9, [x25, #8]
	ldr	w8, [x9], #4
	str	x9, [x24, #16]
	mov	w9, #1
	str	w9, [x24, #8]
Lloh7:
	adrp	x9, _MODE_PWRDWN_1k@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MODE_PWRDWN_1k@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	str	w9, [x25, #16]
	cbz	w8, LBB0_8
; %bb.4:
	str	w8, [x25]
	b	LBB0_11
LBB0_5:
	mov	x0, x19
	bl	_regulator_enable
	mov	x21, x0
	cbnz	w0, LBB0_14
; %bb.6:
	mov	x0, x19
	bl	_regulator_get_voltage
	mov	x21, x0
	tbz	w0, #31, LBB0_2
	b	LBB0_12
LBB0_7:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_8:
	cbz	w21, LBB0_10
; %bb.9:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w21, w8
	lsr	x8, x8, #38
	str	w8, [x25]
	b	LBB0_11
LBB0_10:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_11:
	mov	x0, x24
	bl	_iio_device_register
	mov	x21, x0
	cbz	w0, LBB0_14
LBB0_12:
	mov	x0, x19
	bl	_IS_ERR
	cbnz	w0, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_regulator_disable
LBB0_14:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vcc"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ad5446_info,4,2                ; @ad5446_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_MODE_PWRDWN_1k,4,2             ; @MODE_PWRDWN_1k
l_.str.1:                               ; @.str.1
	.asciz	"reference voltage unspecified\n"

	.no_dead_strip	_ad5446_probe
.subsections_via_symbols
