	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7303_probe
_ad7303_probe:                          ## @ad7303_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
	callq	_spi_get_device_id
	movq	%rax, %r12
	movq	%rbx, %rdi
	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, %rdi
	movq	%r15, %rsi
	callq	_spi_set_drvdata
	movq	%rbx, 24(%r14)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regulator_get
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.18:
	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	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_17
LBB0_3:
	callq	_regulator_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.4:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	callq	_of_property_read_bool
	testl	%eax, %eax
	jne	LBB0_8
	jmp	LBB0_12
LBB0_5:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	cmpq	$0, (%rax)
	je	LBB0_12
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regulator_get
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	8(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_16
LBB0_10:
	callq	_regulator_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:
	movq	_AD7303_CFG_EXTERNAL_VREF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r14)
LBB0_12:
	movq	%rbx, 32(%r15)
	movl	(%r12), %eax
	movl	%eax, 24(%r15)
	movq	_ad7303_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_ad7303_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movl	%eax, %r13d
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_regulator_disable
LBB0_16:
	movq	(%r14), %rdi
	callq	_regulator_disable
	jmp	LBB0_17
LBB0_13:
	xorl	%r13d, %r13d
LBB0_17:
	movl	%r13d, %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	"Vdd"

L_.str.1:                               ## @.str.1
	.asciz	"REF-supply"

L_.str.2:                               ## @.str.2
	.asciz	"REF"

	.comm	_AD7303_CFG_EXTERNAL_VREF,4,2   ## @AD7303_CFG_EXTERNAL_VREF
	.comm	_ad7303_info,4,2                ## @ad7303_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ad7303_channels,4,2            ## @ad7303_channels
	.no_dead_strip	_ad7303_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7303_probe
_ad7303_probe:                          ; @ad7303_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
	bl	_spi_get_device_id
	mov	x22, x0
	mov	x0, x21
	mov	w1, #32
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x19, x0
	mov	x0, x21
	mov	x1, x20
	bl	_spi_set_drvdata
	str	x21, [x19, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_devm_regulator_get
	str	x0, [x19]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_4
; %bb.2:
	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_3:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_17
LBB0_4:
	bl	_regulator_enable
	mov	x23, x0
	cbnz	w0, LBB0_17
; %bb.5:
	ldr	x0, [x21, #8]
	cbz	x0, LBB0_7
; %bb.6:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_of_property_read_bool
	cbnz	w0, LBB0_9
	b	LBB0_13
LBB0_7:
	ldr	x8, [x21]
	cbz	x8, LBB0_13
; %bb.8:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
LBB0_9:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_devm_regulator_get
	str	x0, [x19, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #8]
	cbz	x8, LBB0_11
; %bb.10:
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_16
LBB0_11:
	bl	_regulator_enable
	mov	x23, x0
	cbnz	w0, LBB0_16
; %bb.12:
Lloh9:
	adrp	x8, _AD7303_CFG_EXTERNAL_VREF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AD7303_CFG_EXTERNAL_VREF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_13:
	str	x21, [x20, #32]
	ldr	w8, [x22]
	str	w8, [x20, #24]
Lloh12:
	adrp	x8, _ad7303_info@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ad7303_info@GOTPAGEOFF]
	str	x8, [x20, #16]
Lloh14:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _ad7303_channels@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ad7303_channels@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x9]
	stp	w0, w8, [x20, #4]
	bl	_ARRAY_SIZE
	str	w0, [x20]
	mov	x0, x20
	bl	_iio_device_register
	mov	x23, x0
	cbz	w0, LBB0_17
; %bb.14:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_regulator_disable
LBB0_16:
	ldr	x0, [x19]
	bl	_regulator_disable
LBB0_17:
	mov	x0, x23
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Vdd"

l_.str.1:                               ; @.str.1
	.asciz	"REF-supply"

l_.str.2:                               ; @.str.2
	.asciz	"REF"

	.comm	_AD7303_CFG_EXTERNAL_VREF,4,2   ; @AD7303_CFG_EXTERNAL_VREF
	.comm	_ad7303_info,4,2                ; @ad7303_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ad7303_channels,4,2            ; @ad7303_channels
	.no_dead_strip	_ad7303_probe
.subsections_via_symbols
