	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5624r_probe
_ad5624r_probe:                         ## @ad5624r_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, %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	%rax, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regulator_get
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_spi_set_drvdata
	movq	_ad5624r_chip_info_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r15, %rdi
	callq	_spi_get_device_id
	movq	(%rax), %rax
	leaq	(%rbx,%rax,8), %rax
	movq	%rax, 8(%r14)
	movq	%r14, %rcx
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.6:
	movl	%r12d, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_3:
	movl	4(%r14), %edi
	callq	_regulator_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.4:
	movl	4(%r14), %edi
	callq	_regulator_get_voltage
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_5
	jmp	LBB0_10
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
	xorl	%r14d, %r14d
	testl	%r12d, %r12d
	setne	%r14b
	movq	%rcx, %r12
	movl	%eax, (%rcx)
	movq	%r15, 16(%rcx)
	movq	%r15, 32(%r13)
	movq	%r15, %rdi
	callq	_spi_get_device_id
	movl	8(%rax), %eax
	movl	%eax, 24(%r13)
	movq	_ad5624r_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r13)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	8(%r12), %rax
	movl	4(%rax), %eax
	movl	%eax, 4(%r13)
	movq	_AD5624R_DAC_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
	movq	_AD5624R_CMD_INTERNAL_REFER_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	%r14d, %ecx
	movq	%r12, %r14
	movl	$16, %r8d
	callq	_ad5624r_spi_write
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	%r13, %rdi
	callq	_iio_device_register
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_13
LBB0_10:
	movl	4(%r14), %edi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	4(%r14), %edi
	callq	_regulator_disable
LBB0_12:
	movl	%r12d, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vcc"

	.comm	_ad5624r_chip_info_tbl,8,3      ## @ad5624r_chip_info_tbl
	.comm	_ad5624r_info,4,2               ## @ad5624r_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_AD5624R_DAC_CHANNELS,4,2       ## @AD5624R_DAC_CHANNELS
	.comm	_AD5624R_CMD_INTERNAL_REFER_SETUP,4,2 ## @AD5624R_CMD_INTERNAL_REFER_SETUP
	.no_dead_strip	_ad5624r_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5624r_probe
_ad5624r_probe:                         ; @ad5624r_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, x0
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_devm_regulator_get
	str	w0, [x19, #4]
	bl	_IS_ERR
	cbz	w0, LBB0_6
; %bb.2:
	mov	w22, #0
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	bl	_spi_set_drvdata
Lloh2:
	adrp	x8, _ad5624r_chip_info_tbl@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ad5624r_chip_info_tbl@GOTPAGEOFF]
Lloh4:
	ldr	x23, [x8]
	mov	x0, x21
	bl	_spi_get_device_id
	ldr	x8, [x0]
	add	x8, x23, x8, lsl #3
	str	x8, [x19, #8]
	cbz	w22, LBB0_8
; %bb.4:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w22, w8
	lsr	x8, x8, #38
	b	LBB0_9
LBB0_5:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_13
LBB0_6:
	ldr	w0, [x19, #4]
	bl	_regulator_enable
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.7:
	ldr	w0, [x19, #4]
	bl	_regulator_get_voltage
	mov	x22, x0
	tbz	w0, #31, LBB0_3
	b	LBB0_11
LBB0_8:
	ldr	w8, [x8]
LBB0_9:
	cmp	w22, #0
	str	w8, [x19]
	cset	w22, ne
	str	x21, [x19, #16]
	str	x21, [x20, #32]
	mov	x0, x21
	bl	_spi_get_device_id
	ldr	w8, [x0, #8]
	str	w8, [x20, #24]
Lloh8:
	adrp	x8, _ad5624r_info@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ad5624r_info@GOTPAGEOFF]
	str	x8, [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]
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #4]
Lloh13:
	adrp	x9, _AD5624R_DAC_CHANNELS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _AD5624R_DAC_CHANNELS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x20]
Lloh16:
	adrp	x8, _AD5624R_CMD_INTERNAL_REFER_SETUP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AD5624R_CMD_INTERNAL_REFER_SETUP@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #0
	mov	x3, x22
	mov	w4, #16
	bl	_ad5624r_spi_write
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.10:
	mov	x0, x20
	bl	_iio_device_register
	mov	x22, x0
	cbz	w0, LBB0_13
LBB0_11:
	ldr	w0, [x19, #4]
	bl	_IS_ERR
	cbnz	w0, LBB0_13
; %bb.12:
	ldr	w0, [x19, #4]
	bl	_regulator_disable
LBB0_13:
	mov	x0, x22
	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	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vcc"

	.comm	_ad5624r_chip_info_tbl,8,3      ; @ad5624r_chip_info_tbl
	.comm	_ad5624r_info,4,2               ; @ad5624r_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_AD5624R_DAC_CHANNELS,4,2       ; @AD5624R_DAC_CHANNELS
	.comm	_AD5624R_CMD_INTERNAL_REFER_SETUP,4,2 ; @AD5624R_CMD_INTERNAL_REFER_SETUP
	.no_dead_strip	_ad5624r_probe
.subsections_via_symbols
