	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7923_probe
_ad7923_probe:                          ## @ad7923_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, %r12
	movl	$48, %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	%r12, %rdi
	movq	%r15, %rsi
	callq	_spi_set_drvdata
	movq	%r12, 40(%r14)
	movq	_AD7923_CODING@GOTPCREL(%rip), %rax
	movq	_AD7923_RANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_AD7923_PM_MODE_OPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AD7923_PM_MODE_WRITE
	orl	%ebx, %eax
	movl	%eax, (%r14)
	movq	_ad7923_chip_info@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%r12, %rdi
	callq	_spi_get_device_id
	movq	(%rax), %rbx
	movq	%r12, %rdi
	callq	_spi_get_device_id
	movl	8(%rax), %eax
	movl	%eax, 40(%r15)
	movq	%r12, 32(%r15)
	movl	(%r12), %eax
	movl	%eax, 24(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movl	4(%r13,%rbx,8), %eax
	movl	%eax, 12(%r15)
	movl	(%r13,%rbx,8), %eax
	movl	%eax, 8(%r15)
	movq	_ad7923_info@GOTPCREL(%rip), %rax
	movq	%rax, (%r15)
	movq	16(%r14), %rax
	movq	32(%r14), %rcx
	movq	%rcx, 16(%rax)
	movabsq	$4294967298, %rcx               ## imm = 0x100000002
	movq	%rcx, (%rax)
	movq	24(%r14), %rcx
	movq	%rcx, 32(%rax)
	movl	$2, 24(%rax)
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spi_message_init
	movq	16(%r14), %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	movq	16(%r14), %rdi
	addq	$24, %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regulator_get
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	4(%r14), %edi
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	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_8
LBB0_3:
	callq	_regulator_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	_ad7923_trigger_handler@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_iio_triggered_buffer_setup
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_iio_triggered_buffer_cleanup
LBB0_7:
	movl	4(%r14), %edi
	callq	_regulator_disable
	movl	%r12d, %ebx
LBB0_8:
	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
	.comm	_AD7923_CODING,4,2              ## @AD7923_CODING
	.comm	_AD7923_RANGE,4,2               ## @AD7923_RANGE
	.comm	_AD7923_PM_MODE_OPS,4,2         ## @AD7923_PM_MODE_OPS
	.comm	_ad7923_chip_info,8,3           ## @ad7923_chip_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ad7923_info,4,2                ## @ad7923_info
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refin"

	.comm	_ad7923_trigger_handler,4,2     ## @ad7923_trigger_handler
	.no_dead_strip	_ad7923_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 ad7923_probe
lCPI0_0:
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ad7923_probe:                          ; @ad7923_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, #48
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	mov	x0, x21
	mov	x1, x19
	bl	_spi_set_drvdata
	str	x21, [x20, #40]
Lloh0:
	adrp	x8, _AD7923_CODING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD7923_CODING@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AD7923_RANGE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AD7923_RANGE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w22, w9, w8
Lloh6:
	adrp	x8, _AD7923_PM_MODE_OPS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AD7923_PM_MODE_OPS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_AD7923_PM_MODE_WRITE
	orr	w8, w22, w0
	str	w8, [x20]
Lloh9:
	adrp	x8, _ad7923_chip_info@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ad7923_chip_info@GOTPAGEOFF]
Lloh11:
	ldr	x22, [x8]
	mov	x0, x21
	bl	_spi_get_device_id
	ldr	x23, [x0]
	mov	x0, x21
	bl	_spi_get_device_id
	ldr	w8, [x0, #8]
	str	w8, [x19, #40]
	str	x21, [x19, #32]
	ldr	w8, [x21]
	str	w8, [x19, #24]
Lloh12:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	d0, [x22, x23, lsl #3]
	str	d0, [x19, #8]
Lloh15:
	adrp	x8, _ad7923_info@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ad7923_info@GOTPAGEOFF]
	str	x8, [x19]
	ldp	x10, x8, [x20, #24]
	ldr	x9, [x20, #16]
	str	x8, [x9, #16]
Lloh17:
	adrp	x8, lCPI0_0@PAGE
Lloh18:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x9]
	str	x10, [x9, #32]
	mov	w8, #2
	str	w8, [x9, #24]
	add	x22, x20, #8
	mov	x0, x22
	bl	_spi_message_init
	ldr	x0, [x20, #16]
	mov	x1, x22
	bl	_spi_message_add_tail
	ldr	x8, [x20, #16]
	add	x0, x8, #24
	mov	x1, x22
	bl	_spi_message_add_tail
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_devm_regulator_get
	str	w0, [x20, #4]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x20, #4]
	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:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_4:
	bl	_regulator_enable
	mov	x21, x0
	cbnz	w0, LBB0_9
; %bb.5:
Lloh24:
	adrp	x2, _ad7923_trigger_handler@GOTPAGE
Lloh25:
	ldr	x2, [x2, _ad7923_trigger_handler@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	bl	_iio_triggered_buffer_setup
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_iio_device_register
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_iio_triggered_buffer_cleanup
LBB0_8:
	ldr	w0, [x20, #4]
	bl	_regulator_disable
LBB0_9:
	mov	x0, x21
	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	Lloh19, Lloh20
	.loh AdrpLdr	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AD7923_CODING,4,2              ; @AD7923_CODING
	.comm	_AD7923_RANGE,4,2               ; @AD7923_RANGE
	.comm	_AD7923_PM_MODE_OPS,4,2         ; @AD7923_PM_MODE_OPS
	.comm	_ad7923_chip_info,8,3           ; @ad7923_chip_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ad7923_info,4,2                ; @ad7923_info
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refin"

	.comm	_ad7923_trigger_handler,4,2     ; @ad7923_trigger_handler
	.no_dead_strip	_ad7923_probe
.subsections_via_symbols
