	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7780_probe
_ad7780_probe:                          ## @ad7780_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, %r15
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movl	$1, (%rax)
	leaq	16(%rax), %rdi
	movq	_ad7780_sigma_delta_info@GOTPCREL(%rip), %rcx
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_ad_sd_init
	movq	_ad7780_chip_info_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r15, %rdi
	callq	_spi_get_device_id
	movq	(%rax), %rax
	leaq	(%r12,%rax,4), %rax
	movq	%rax, 8(%r14)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_spi_set_drvdata
	movq	%r15, 32(%rbx)
	movq	%r15, %rdi
	callq	_spi_get_device_id
	movl	8(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	8(%r14), %rax
	movq	%rax, 16(%rbx)
	movl	$1, (%rbx)
	movq	_ad7780_info@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ad7780_init_gpios
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_3
LBB0_9:
	movq	%rbx, %rdi
	callq	_ad_sd_cleanup_buffer_and_trigger
LBB0_10:
	movl	4(%r14), %edi
	callq	_regulator_disable
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_11:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regulator_get
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	4(%r14), %edi
	testq	%rax, %rax
	je	LBB0_4
## %bb.12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_11
LBB0_6:
	movq	%rbx, %rdi
	callq	_ad_sd_setup_buffer_and_trigger
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	%rbx, %rdi
	callq	_iio_device_register
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	xorl	%r12d, %r12d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ad7780_sigma_delta_info,4,2    ## @ad7780_sigma_delta_info
	.comm	_ad7780_chip_info_tbl,8,3       ## @ad7780_chip_info_tbl
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ad7780_info,4,2                ## @ad7780_info
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"avdd"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to enable specified AVdd supply\n"

	.no_dead_strip	_ad7780_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7780_probe
_ad7780_probe:                          ; @ad7780_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_4
; %bb.1:
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	mov	w22, #1
	str	w22, [x0], #16
Lloh0:
	adrp	x3, _ad7780_sigma_delta_info@GOTPAGE
Lloh1:
	ldr	x3, [x3, _ad7780_sigma_delta_info@GOTPAGEOFF]
	mov	x1, x19
	mov	x2, x21
	bl	_ad_sd_init
Lloh2:
	adrp	x8, _ad7780_chip_info_tbl@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ad7780_chip_info_tbl@GOTPAGEOFF]
Lloh4:
	ldr	x23, [x8]
	mov	x0, x21
	bl	_spi_get_device_id
	ldr	x8, [x0]
	add	x8, x23, x8, lsl #2
	str	x8, [x20, #8]
	mov	x0, x21
	mov	x1, x19
	bl	_spi_set_drvdata
	str	x21, [x19, #32]
	mov	x0, x21
	bl	_spi_get_device_id
	ldr	w8, [x0, #8]
Lloh5:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	ldr	x8, [x20, #8]
	str	w22, [x19]
Lloh8:
	adrp	x9, _ad7780_info@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ad7780_info@GOTPAGEOFF]
	stp	x9, x8, [x19, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_ad7780_init_gpios
	mov	x22, x0
	cbz	w0, LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_ad_sd_cleanup_buffer_and_trigger
LBB0_3:
	ldr	w0, [x20, #4]
	bl	_regulator_disable
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	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
LBB0_6:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	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_8
; %bb.7:
	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_8:
	bl	_regulator_enable
	cbz	w0, LBB0_10
; %bb.9:
	mov	x22, x0
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_5
LBB0_10:
	mov	x0, x19
	bl	_ad_sd_setup_buffer_and_trigger
	mov	x22, x0
	cbnz	w0, LBB0_3
; %bb.11:
	mov	x0, x19
	bl	_iio_device_register
	mov	x22, x0
	cbnz	w0, LBB0_2
	b	LBB0_5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ad7780_sigma_delta_info,4,2    ; @ad7780_sigma_delta_info
	.comm	_ad7780_chip_info_tbl,8,3       ; @ad7780_chip_info_tbl
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ad7780_info,4,2                ; @ad7780_info
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"avdd"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to enable specified AVdd supply\n"

	.no_dead_strip	_ad7780_probe
.subsections_via_symbols
