	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ad5592r_probe                  ## -- Begin function ad5592r_probe
	.p2align	4, 0x90
_ad5592r_probe:                         ## @ad5592r_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	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r15
	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, %r13
	movq	%r15, 24(%rax)
	movq	%rbx, 16(%rax)
	movl	$8, (%rax)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_dev_set_drvdata
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regulator_get_optional
	movq	%rax, 8(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%r13), %rdi
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	callq	_PTR_ERR
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_5
## %bb.4:
	cmpq	$0, (%r15)
	je	LBB0_5
## %bb.21:
	movq	8(%r13), %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	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	$0, 8(%r13)
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	callq	_regulator_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
LBB0_7:
	movq	%r15, 24(%r14)
	movq	%r12, (%r14)
	movq	_ad5592r_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%r13, %rdi
	callq	_ad5592r_get_vref
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_ad5592r_init_scales
	movq	%r13, %rdi
	callq	_ad5592r_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.8:
	movq	_AD5592R_REG_PD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpq	$0, 8(%r13)
	jne	LBB0_10
## %bb.9:
	movq	_AD5592R_REG_PD_EN_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_10:
	movq	%r13, %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.11:
	movq	%r13, %rdi
	callq	_ad5592r_alloc_channels
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.12:
	movq	%r13, %rdi
	callq	_ad5592r_set_channel_modes
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.13:
	movq	%r14, %rdi
	callq	_iio_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.14:
	movq	%r13, %rdi
	callq	_ad5592r_gpio_init
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_iio_device_unregister
LBB0_17:
	movq	%r13, %rdi
	callq	_ad5592r_reset_channel_modes
LBB0_18:
	movq	8(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	callq	_regulator_disable
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vref"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ad5592r_info,4,2               ## @ad5592r_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_AD5592R_REG_PD,4,2             ## @AD5592R_REG_PD
	.comm	_AD5592R_REG_PD_EN_REF,4,2      ## @AD5592R_REG_PD_EN_REF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ad5592r_probe                  ; -- Begin function ad5592r_probe
	.p2align	2
_ad5592r_probe:                         ; @ad5592r_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x23, x1
	mov	x22, x0
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x19, x0
	stp	x21, x22, [x0, #16]
	mov	w8, #8
	str	w8, [x0]
	mov	x0, x22
	mov	x1, x20
	bl	_dev_set_drvdata
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_devm_regulator_get_optional
	str	x0, [x19, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_7
; %bb.2:
	bl	_PTR_ERR
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_6
; %bb.3:
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x0, [x19, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_5:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_18
LBB0_6:
	str	xzr, [x19, #8]
	b	LBB0_8
LBB0_7:
	bl	_regulator_enable
	mov	x24, x0
	cbnz	w0, LBB0_18
LBB0_8:
	str	x23, [x20]
Lloh8:
	adrp	x8, _ad5592r_info@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ad5592r_info@GOTPAGEOFF]
	stp	x8, x22, [x20, #16]
Lloh10:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x20, #8]
	mov	x0, x19
	bl	_ad5592r_get_vref
	mov	x1, x0
	mov	x0, x19
	bl	_ad5592r_init_scales
	mov	x0, x19
	bl	_ad5592r_reset
	mov	x24, x0
	cbnz	w0, LBB0_16
; %bb.9:
	ldr	x8, [x21]
Lloh13:
	adrp	x9, _AD5592R_REG_PD@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AD5592R_REG_PD@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x9]
	ldr	x9, [x19, #8]
Lloh16:
	adrp	x10, _AD5592R_REG_PD_EN_REF@GOTPAGE
Lloh17:
	ldr	x10, [x10, _AD5592R_REG_PD_EN_REF@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w2, w10, wzr, eq
	mov	x0, x19
	blr	x8
	mov	x24, x0
	cbnz	w0, LBB0_16
; %bb.10:
	mov	x0, x19
	bl	_ad5592r_alloc_channels
	mov	x24, x0
	cbnz	w0, LBB0_16
; %bb.11:
	mov	x0, x19
	bl	_ad5592r_set_channel_modes
	mov	x24, x0
	cbnz	w0, LBB0_15
; %bb.12:
	mov	x0, x20
	bl	_iio_device_register
	mov	x24, x0
	cbnz	w0, LBB0_15
; %bb.13:
	mov	x0, x19
	bl	_ad5592r_gpio_init
	mov	x24, x0
	cbz	w0, LBB0_18
; %bb.14:
	mov	x0, x20
	bl	_iio_device_unregister
LBB0_15:
	mov	x0, x19
	bl	_ad5592r_reset_channel_modes
LBB0_16:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_18
; %bb.17:
	bl	_regulator_disable
LBB0_18:
	mov	x0, x24
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vref"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ad5592r_info,4,2               ; @ad5592r_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_AD5592R_REG_PD,4,2             ; @AD5592R_REG_PD
	.comm	_AD5592R_REG_PD_EN_REF,4,2      ; @AD5592R_REG_PD_EN_REF
.subsections_via_symbols
