	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7791_probe
_ad7791_probe:                          ## @ad7791_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, %r13
	cmpl	$0, 16(%rdi)
	je	LBB0_1
## %bb.2:
	movq	8(%r13), %r15
	movq	%r13, %rdi
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_regulator_get
	movl	%eax, (%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	(%r14), %edi
	testq	%rax, %rax
	je	LBB0_6
## %bb.17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_dev_err
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	_regulator_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:
	movq	_ad7791_chip_infos@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%r13, %rdi
	callq	_spi_get_device_id
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%rbx,%rax,4), %rax
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
	addq	$16, %rdi
	movq	_ad7791_sigma_delta_info@GOTPCREL(%rip), %rcx
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_ad_sd_init
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_spi_set_drvdata
	movq	%r13, 32(%r12)
	movl	(%r13), %eax
	movl	%eax, 24(%r12)
	movq	%r13, %rdi
	callq	_spi_get_device_id
	movl	8(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	8(%r14), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 12(%r12)
	movl	4(%rax), %ecx
	movl	%ecx, 8(%r12)
	movq	_AD7791_FLAG_HAS_FILTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	jne	LBB0_8
## %bb.9:
	movq	_ad7791_no_filter_info@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_ad7791_info@GOTPCREL(%rip), %rax
LBB0_10:
	movq	%rax, (%r12)
	movq	%r12, %rdi
	callq	_ad_sd_setup_buffer_and_trigger
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ad7791_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	movq	%r12, %rdi
	callq	_iio_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_13
LBB0_14:
	movq	%r12, %rdi
	callq	_ad_sd_cleanup_buffer_and_trigger
LBB0_15:
	movl	(%r14), %edi
	callq	_regulator_disable
	jmp	LBB0_16
LBB0_13:
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Missing IRQ.\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"refin"

	.comm	_ad7791_chip_infos,8,3          ## @ad7791_chip_infos
	.comm	_ad7791_sigma_delta_info,4,2    ## @ad7791_sigma_delta_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_AD7791_FLAG_HAS_FILTER,4,2     ## @AD7791_FLAG_HAS_FILTER
	.comm	_ad7791_info,4,2                ## @ad7791_info
	.comm	_ad7791_no_filter_info,4,2      ## @ad7791_no_filter_info
	.no_dead_strip	_ad7791_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7791_probe
_ad7791_probe:                          ; @ad7791_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	x22, x0
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x21, [x22, #8]
	mov	x0, x22
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_devm_regulator_get
	str	w0, [x20]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x20]
	cbz	x8, LBB0_8
; %bb.3:
	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_4:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_err
Lloh4:
	adrp	x8, _ENXIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_7:
	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
LBB0_8:
	bl	_regulator_enable
	mov	x23, x0
	cbnz	w0, LBB0_7
; %bb.9:
Lloh8:
	adrp	x8, _ad7791_chip_infos@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ad7791_chip_infos@GOTPAGEOFF]
Lloh10:
	ldr	x23, [x8]
	mov	x0, x22
	bl	_spi_get_device_id
	ldr	x8, [x0]
	mov	w9, #12
	madd	x8, x8, x9, x23
	str	x8, [x20, #8]
	add	x0, x20, #16
Lloh11:
	adrp	x3, _ad7791_sigma_delta_info@GOTPAGE
Lloh12:
	ldr	x3, [x3, _ad7791_sigma_delta_info@GOTPAGEOFF]
	mov	x1, x19
	mov	x2, x22
	bl	_ad_sd_init
	mov	x0, x22
	mov	x1, x19
	bl	_spi_set_drvdata
	str	x22, [x19, #32]
	ldr	w8, [x22]
	str	w8, [x19, #24]
	mov	x0, x22
	bl	_spi_get_device_id
Lloh13:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
	ldr	w9, [x0, #8]
Lloh15:
	ldr	w8, [x8]
	stp	w8, w9, [x19, #16]
	ldr	x8, [x20, #8]
	ldur	d0, [x8, #4]
	str	d0, [x19, #8]
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _AD7791_FLAG_HAS_FILTER@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AD7791_FLAG_HAS_FILTER@GOTPAGEOFF]
Lloh18:
	adrp	x10, _ad7791_info@GOTPAGE
Lloh19:
	ldr	x10, [x10, _ad7791_info@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x11, _ad7791_no_filter_info@GOTPAGE
Lloh22:
	ldr	x11, [x11, _ad7791_no_filter_info@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	str	x8, [x19]
	mov	x0, x19
	bl	_ad_sd_setup_buffer_and_trigger
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.10:
	mov	x0, x20
	mov	x1, x21
	bl	_ad7791_setup
	mov	x23, x0
	cbnz	w0, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_iio_device_register
	mov	x23, x0
	cbz	w0, LBB0_7
LBB0_12:
	mov	x0, x19
	bl	_ad_sd_cleanup_buffer_and_trigger
LBB0_13:
	ldr	w0, [x20]
	bl	_regulator_disable
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Missing IRQ.\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"refin"

	.comm	_ad7791_chip_infos,8,3          ; @ad7791_chip_infos
	.comm	_ad7791_sigma_delta_info,4,2    ; @ad7791_sigma_delta_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_AD7791_FLAG_HAS_FILTER,4,2     ; @AD7791_FLAG_HAS_FILTER
	.comm	_ad7791_info,4,2                ; @ad7791_info
	.comm	_ad7791_no_filter_info,4,2      ; @ad7791_no_filter_info
	.no_dead_strip	_ad7791_probe
.subsections_via_symbols
