	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7476_probe
_ad7476_probe:                          ## @ad7476_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
	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
	movq	_ad7476_chip_info_tbl@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%rbx, %rdi
	callq	_spi_get_device_id
	movq	(%rax), %rax
	shlq	$4, %rax
	addq	%r12, %rax
	movq	%rax, 8(%r14)
	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_3
## %bb.12:
	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_11
LBB0_3:
	callq	_regulator_enable
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_spi_set_drvdata
	movq	%rbx, 48(%r14)
	movq	%rbx, 40(%r15)
	movl	(%rbx), %eax
	movl	%eax, 32(%r15)
	movq	%rbx, %rdi
	callq	_spi_get_device_id
	movl	8(%rax), %eax
	movl	%eax, 28(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r15)
	movq	8(%r14), %rax
	movq	8(%rax), %rax
	movq	%rax, 16(%r15)
	movl	$2, (%r15)
	movq	_ad7476_info@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%r15)
	leaq	40(%r14), %rcx
	movq	%rcx, 32(%r14)
	movl	(%rax), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	leaq	24(%r14), %r12
	sarl	$3, %ecx
	movl	%ecx, 24(%r14)
	movq	%r14, %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_spi_message_init
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_spi_message_add_tail
	movq	_ad7476_trigger_handler@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_iio_triggered_buffer_setup
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	8(%r14), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	*%rax
LBB0_7:
	movq	%r15, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_iio_triggered_buffer_cleanup
LBB0_10:
	movl	(%r14), %edi
	callq	_regulator_disable
LBB0_11:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%r12d, %r12d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ad7476_chip_info_tbl,8,3       ## @ad7476_chip_info_tbl
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vcc"

	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ad7476_info,4,2                ## @ad7476_info
	.comm	_ad7476_trigger_handler,4,2     ## @ad7476_trigger_handler
	.no_dead_strip	_ad7476_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7476_probe
_ad7476_probe:                          ; @ad7476_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
	mov	w1, #56
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
Lloh0:
	adrp	x8, _ad7476_chip_info_tbl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ad7476_chip_info_tbl@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	mov	x0, x21
	bl	_spi_get_device_id
	ldr	x8, [x0]
	add	x8, x22, x8, lsl #4
	str	x8, [x20, #8]
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_4
; %bb.2:
	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_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_4:
	bl	_regulator_enable
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.5:
	mov	x0, x21
	mov	x1, x19
	bl	_spi_set_drvdata
	str	x21, [x20, #48]
	str	x21, [x19, #40]
	ldr	w8, [x21]
	str	w8, [x19, #32]
	mov	x0, x21
	bl	_spi_get_device_id
	ldr	w8, [x0, #8]
Lloh8:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	mov	w9, #2
	str	w9, [x19]
Lloh11:
	adrp	x9, _ad7476_info@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ad7476_info@GOTPAGEOFF]
	stp	x9, x8, [x19, #8]
	ldr	w8, [x8]
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	mov	x21, x20
	str	w8, [x21, #24]!
	add	x8, x21, #16
	str	x8, [x21, #8]
	sub	x22, x21, #8
	mov	x0, x22
	bl	_spi_message_init
	mov	x0, x21
	mov	x1, x22
	bl	_spi_message_add_tail
Lloh13:
	adrp	x2, _ad7476_trigger_handler@GOTPAGE
Lloh14:
	ldr	x2, [x2, _ad7476_trigger_handler@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, #0
	mov	x3, #0
	bl	_iio_triggered_buffer_setup
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.6:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x20
	blr	x8
LBB0_8:
	mov	x0, x19
	bl	_iio_device_register
	mov	x22, x0
	cbz	w0, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_iio_triggered_buffer_cleanup
LBB0_10:
	ldr	w0, [x20]
	bl	_regulator_disable
LBB0_11:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ad7476_chip_info_tbl,8,3       ; @ad7476_chip_info_tbl
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vcc"

	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ad7476_info,4,2                ; @ad7476_info
	.comm	_ad7476_trigger_handler,4,2     ; @ad7476_trigger_handler
	.no_dead_strip	_ad7476_probe
.subsections_via_symbols
