	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7768_probe
_ad7768_probe:                          ## @ad7768_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	$40, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movq	%r15, 32(%rax)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regulator_get
	movl	%eax, 28(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	28(%r12), %edi
	testq	%rax, %rax
	je	LBB0_3
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_17
LBB0_6:
	movq	_ad7768_regulator_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_devm_add_action_or_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movl	%eax, 20(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	20(%r12), %edi
	testq	%rax, %rax
	jne	LBB0_18
## %bb.8:
	callq	_clk_prepare_enable
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	movq	_ad7768_clk_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_devm_add_action_or_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.11:
	movl	20(%r12), %edi
	callq	_clk_get_rate
	movl	%eax, 24(%r12)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_spi_set_drvdata
	movq	%r12, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	movq	_ad7768_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 36(%r14)
	callq	_ARRAY_SIZE
	movl	%eax, 32(%r14)
	movq	%r15, 24(%r14)
	movq	%r15, %rdi
	callq	_spi_get_device_id
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_ad7768_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movq	_INDIO_BUFFER_TRIGGERED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	%r12, %rdi
	callq	_ad7768_setup
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movl	4(%r14), %edx
	movl	12(%r14), %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_iio_trigger_alloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.14:
	movq	_ad7768_trigger_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	%r15, (%rax)
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_iio_trigger_set_drvdata
	movq	8(%r12), %rsi
	movq	%r15, %rdi
	callq	_devm_iio_trigger_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:
	movq	8(%r12), %rdi
	callq	_iio_trigger_get
	movl	%eax, 8(%r14)
	movq	%r12, %rdi
	callq	_init_completion
	movl	4(%r15), %esi
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	4(%r14), %r8d
	movq	_ad7768_interrupt@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %r9
	callq	_devm_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	_iio_pollfunc_store_time@GOTPCREL(%rip), %rdx
	movq	_ad7768_trigger_handler@GOTPCREL(%rip), %rcx
	movq	_ad7768_buffer_ops@GOTPCREL(%rip), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_devm_iio_triggered_buffer_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.19:
	movq	%r15, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_device_register       ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_12:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vref"

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

	.comm	_ad7768_regulator_disable,4,2   ## @ad7768_regulator_disable
L_.str.2:                               ## @.str.2
	.asciz	"mclk"

	.comm	_ad7768_clk_disable,4,2         ## @ad7768_clk_disable
	.comm	_ad7768_channels,4,2            ## @ad7768_channels
	.comm	_ad7768_info,4,2                ## @ad7768_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_INDIO_BUFFER_TRIGGERED,4,2     ## @INDIO_BUFFER_TRIGGERED
L_.str.3:                               ## @.str.3
	.asciz	"AD7768 setup failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s-dev%d"

	.comm	_ad7768_trigger_ops,4,2         ## @ad7768_trigger_ops
	.comm	_ad7768_interrupt,4,2           ## @ad7768_interrupt
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_iio_pollfunc_store_time,4,2    ## @iio_pollfunc_store_time
	.comm	_ad7768_trigger_handler,4,2     ## @ad7768_trigger_handler
	.comm	_ad7768_buffer_ops,4,2          ## @ad7768_buffer_ops
	.no_dead_strip	_ad7768_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7768_probe
_ad7768_probe:                          ; @ad7768_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	x19, x0
	mov	w1, #40
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_16
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	str	x19, [x0, #32]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	w0, [x21, #28]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x21, #28]
	cbz	x8, LBB0_3
LBB0_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:
	bl	_regulator_enable
	cbz	w0, LBB0_6
; %bb.4:
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_dev_err
	b	LBB0_17
LBB0_6:
Lloh4:
	adrp	x8, _ad7768_regulator_disable@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ad7768_regulator_disable@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_devm_add_action_or_reset
	mov	x22, x0
	cbnz	w0, LBB0_17
; %bb.7:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x21, #20]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x21, #20]
	cbnz	x8, LBB0_2
; %bb.8:
	bl	_clk_prepare_enable
	tbnz	w0, #31, LBB0_18
; %bb.9:
Lloh9:
	adrp	x8, _ad7768_clk_disable@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ad7768_clk_disable@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_devm_add_action_or_reset
	mov	x22, x0
	cbnz	w0, LBB0_17
; %bb.10:
	ldr	w0, [x21, #20]
	bl	_clk_get_rate
	str	w0, [x21, #24]
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
	add	x0, x21, #16
	bl	_mutex_init
Lloh12:
	adrp	x8, _ad7768_channels@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ad7768_channels@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	str	w0, [x20, #36]
	bl	_ARRAY_SIZE
	str	w0, [x20, #32]
	str	x19, [x20, #24]
	mov	x0, x19
	bl	_spi_get_device_id
	ldr	w8, [x0]
Lloh15:
	adrp	x9, _ad7768_info@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ad7768_info@GOTPAGEOFF]
	str	x9, [x20, #16]
Lloh17:
	adrp	x9, _INDIO_DIRECT_MODE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _INDIO_BUFFER_TRIGGERED@GOTPAGE
Lloh21:
	ldr	x10, [x10, _INDIO_BUFFER_TRIGGERED@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w9, w10, w9
	stp	w9, w8, [x20]
	mov	x0, x21
	bl	_ad7768_setup
	tbnz	w0, #31, LBB0_19
; %bb.11:
	ldr	w2, [x20, #4]
	ldr	w3, [x20, #12]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_iio_trigger_alloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_16
; %bb.12:
Lloh25:
	adrp	x8, _ad7768_trigger_ops@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ad7768_trigger_ops@GOTPAGEOFF]
	stp	x19, x8, [x0]
	mov	x1, x20
	bl	_iio_trigger_set_drvdata
	ldr	x1, [x21, #8]
	mov	x0, x19
	bl	_devm_iio_trigger_register
	mov	x22, x0
	cbnz	w0, LBB0_17
; %bb.13:
	ldr	x0, [x21, #8]
	bl	_iio_trigger_get
	str	w0, [x20, #8]
	mov	x0, x21
	bl	_init_completion
	ldr	w1, [x19, #4]
Lloh27:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w3, w9, w8
	ldr	w4, [x20, #4]
Lloh33:
	adrp	x2, _ad7768_interrupt@GOTPAGE
Lloh34:
	ldr	x2, [x2, _ad7768_interrupt@GOTPAGEOFF]
	mov	x0, x19
	mov	x5, x20
	bl	_devm_request_irq
	mov	x22, x0
	cbnz	w0, LBB0_17
; %bb.14:
Lloh35:
	adrp	x2, _iio_pollfunc_store_time@GOTPAGE
Lloh36:
	ldr	x2, [x2, _iio_pollfunc_store_time@GOTPAGEOFF]
Lloh37:
	adrp	x3, _ad7768_trigger_handler@GOTPAGE
Lloh38:
	ldr	x3, [x3, _ad7768_trigger_handler@GOTPAGEOFF]
Lloh39:
	adrp	x4, _ad7768_buffer_ops@GOTPAGE
Lloh40:
	ldr	x4, [x4, _ad7768_buffer_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_devm_iio_triggered_buffer_setup
	mov	x22, x0
	cbnz	w0, LBB0_17
; %bb.15:
	mov	x0, x19
	mov	x1, x20
	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	_devm_iio_device_register
LBB0_16:
Lloh41:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_17:
	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
LBB0_18:
	mov	x22, x0
	b	LBB0_17
LBB0_19:
	mov	x22, x0
Lloh44:
	adrp	x1, l_.str.3@PAGE
Lloh45:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vref"

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

	.comm	_ad7768_regulator_disable,4,2   ; @ad7768_regulator_disable
l_.str.2:                               ; @.str.2
	.asciz	"mclk"

	.comm	_ad7768_clk_disable,4,2         ; @ad7768_clk_disable
	.comm	_ad7768_channels,4,2            ; @ad7768_channels
	.comm	_ad7768_info,4,2                ; @ad7768_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_INDIO_BUFFER_TRIGGERED,4,2     ; @INDIO_BUFFER_TRIGGERED
l_.str.3:                               ; @.str.3
	.asciz	"AD7768 setup failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s-dev%d"

	.comm	_ad7768_trigger_ops,4,2         ; @ad7768_trigger_ops
	.comm	_ad7768_interrupt,4,2           ; @ad7768_interrupt
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_iio_pollfunc_store_time,4,2    ; @iio_pollfunc_store_time
	.comm	_ad7768_trigger_handler,4,2     ; @ad7768_trigger_handler
	.comm	_ad7768_buffer_ops,4,2          ; @ad7768_buffer_ops
	.no_dead_strip	_ad7768_probe
.subsections_via_symbols
