	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7298_probe
_ad7298_probe:                          ## @ad7298_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	movl	$56, %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
	testq	%r12, %r12
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%r12)
	je	LBB0_5
## %bb.4:
	movq	_AD7298_EXTREF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
LBB0_5:
	cmpq	$0, 8(%r14)
	je	LBB0_8
## %bb.6:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regulator_get
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	(%r14), %edi
	testq	%rax, %rax
	je	LBB0_7
## %bb.15:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_7:
	callq	_regulator_enable
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
LBB0_8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_spi_set_drvdata
	movq	%rbx, 48(%r14)
	movq	%rbx, %rdi
	callq	_spi_get_device_id
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	%rbx, 32(%r15)
	movl	(%rbx), %eax
	movl	%eax, 24(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	_ad7298_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 12(%r15)
	callq	_ARRAY_SIZE
	movl	%eax, 8(%r15)
	movq	_ad7298_info@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
	movq	24(%r14), %rax
	movq	40(%r14), %rcx
	movq	%rcx, 16(%rax)
	movabsq	$4294967298, %rdx               ## imm = 0x100000002
	movq	%rdx, (%rax)
	addq	$4, %rcx
	movq	%rcx, 40(%rax)
	movq	%rdx, 24(%rax)
	movq	32(%r14), %rcx
	movq	%rcx, 56(%rax)
	movl	$2, 48(%rax)
	movq	%r14, %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_spi_message_init
	movq	24(%r14), %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	movq	24(%r14), %rdi
	addq	$24, %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	movq	24(%r14), %rdi
	addq	$48, %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	movq	_ad7298_trigger_handler@GOTPCREL(%rip), %rdx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_iio_triggered_buffer_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
## %bb.11:
	cmpq	$0, 8(%r14)
	je	LBB0_13
LBB0_12:
	movl	(%r14), %edi
	callq	_regulator_disable
LBB0_13:
	movl	%ebx, %r12d
LBB0_14:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r15, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_iio_triggered_buffer_cleanup
	cmpq	$0, 8(%r14)
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AD7298_EXTREF,8,3              ## @AD7298_EXTREF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vref"

	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ad7298_channels,4,2            ## @ad7298_channels
	.comm	_ad7298_info,4,2                ## @ad7298_info
	.comm	_ad7298_trigger_handler,4,2     ## @ad7298_trigger_handler
	.no_dead_strip	_ad7298_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ad7298_probe
lCPI0_0:
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ad7298_probe:                          ; @ad7298_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x0
	ldr	x22, [x0, #8]
	mov	w1, #56
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	cbz	x22, LBB0_4
; %bb.2:
	ldr	x8, [x22]
	cbz	x8, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _AD7298_EXTREF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD7298_EXTREF@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x20, #8]
LBB0_4:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_9
; %bb.5:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_devm_regulator_get
	str	w0, [x20]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x20]
	cbz	x8, LBB0_8
; %bb.6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_7:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_8:
	bl	_regulator_enable
	mov	x22, x0
	cbnz	w0, LBB0_14
LBB0_9:
	mov	x0, x21
	mov	x1, x19
	bl	_spi_set_drvdata
	str	x21, [x20, #48]
	mov	x0, x21
	bl	_spi_get_device_id
	ldr	w8, [x0]
	str	w8, [x19, #40]
	str	x21, [x19, #32]
	ldr	w8, [x21]
	str	w8, [x19, #24]
Lloh8:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _ad7298_channels@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ad7298_channels@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x9]
	stp	w0, w8, [x19, #12]
	bl	_ARRAY_SIZE
	str	w0, [x19, #8]
Lloh14:
	adrp	x8, _ad7298_info@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ad7298_info@GOTPAGEOFF]
	str	x8, [x19]
	ldp	x10, x8, [x20, #32]
Lloh16:
	adrp	x9, lCPI0_0@PAGE
Lloh17:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	ldr	x9, [x20, #24]
	str	x8, [x9, #16]
	str	d0, [x9]
	add	x8, x8, #4
	str	x8, [x9, #40]
	str	d0, [x9, #24]
	str	x10, [x9, #56]
	mov	w8, #2
	add	x21, x20, #16
	str	w8, [x9, #48]
	mov	x0, x21
	bl	_spi_message_init
	ldr	x0, [x20, #24]
	mov	x1, x21
	bl	_spi_message_add_tail
	ldr	x8, [x20, #24]
	add	x0, x8, #24
	mov	x1, x21
	bl	_spi_message_add_tail
	ldr	x8, [x20, #24]
	add	x0, x8, #48
	mov	x1, x21
	bl	_spi_message_add_tail
Lloh18:
	adrp	x2, _ad7298_trigger_handler@GOTPAGE
Lloh19:
	ldr	x2, [x2, _ad7298_trigger_handler@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	bl	_iio_triggered_buffer_setup
	mov	x22, x0
	cbz	w0, LBB0_11
; %bb.10:
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_13
	b	LBB0_14
LBB0_11:
	mov	x0, x19
	bl	_iio_device_register
	mov	x22, x0
	cbz	w0, LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_iio_triggered_buffer_cleanup
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_14
LBB0_13:
	ldr	w0, [x20]
	bl	_regulator_disable
LBB0_14:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AD7298_EXTREF,8,3              ; @AD7298_EXTREF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vref"

	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ad7298_channels,4,2            ; @ad7298_channels
	.comm	_ad7298_info,4,2                ; @ad7298_info
	.comm	_ad7298_trigger_handler,4,2     ; @ad7298_trigger_handler
	.no_dead_strip	_ad7298_probe
.subsections_via_symbols
