	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7766_probe
_ad7766_probe:                          ## @ad7766_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_spi_get_device_id
	movq	%rax, %rbx
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	movl	$80, %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, %r13
	movq	_ad7766_chip_info@GOTPCREL(%rip), %rax
	movq	(%rbx), %rcx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	movq	%rcx, 72(%r13)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movl	%eax, 64(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	64(%r13), %edi
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_5:
	movq	56(%r13), %rdi
	movq	_AD7766_SUPPLY_AVDD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, (%rdi,%rax,8)
	movq	_AD7766_SUPPLY_DVDD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, (%rdi,%rax,8)
	movq	_AD7766_SUPPLY_VREF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	L_.str.3(%rip), %rcx
	movq	%rcx, (%rdi,%rax,8)
	callq	_ARRAY_SIZE
	movq	56(%r13), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_devm_regulator_bulk_get
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_gpiod_get_optional
	movl	%eax, 48(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	48(%r13), %edi
	jmp	LBB0_4
LBB0_8:
	movq	%r15, 40(%r14)
	movq	%r12, %rdi
	callq	_spi_get_device_id
	movl	8(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	_ad7766_channels@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, 24(%r14)
	callq	_ARRAY_SIZE
	movl	%eax, 16(%r14)
	movq	_ad7766_info@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	cmpq	$0, (%r12)
	jle	LBB0_12
## %bb.9:
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_iio_trigger_alloc
	movq	%rax, 40(%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	movq	_ad7766_trigger_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	%r15, (%rax)
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_iio_trigger_set_drvdata
	movq	(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_ad7766_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_dev_name
	movq	40(%r13), %r9
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_devm_request_irq
	testl	%eax, %eax
	js	LBB0_13
## %bb.11:
	movq	(%r12), %rdi
	callq	_disable_irq
	movq	40(%r13), %rsi
	movq	%r15, %rdi
	callq	_devm_iio_trigger_register
	testl	%eax, %eax
	jne	LBB0_13
LBB0_12:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_spi_set_drvdata
	movq	%r12, 32(%r13)
	movq	24(%r13), %rax
	addq	$4, %rax
	movq	%r13, %rbx
	addq	$8, %rbx
	movq	%rax, 16(%r13)
	movl	$3, 8(%r13)
	movq	%r13, %rdi
	callq	_spi_message_init
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_spi_message_add_tail
	movq	_iio_pollfunc_store_time@GOTPCREL(%rip), %rdx
	movq	_ad7766_trigger_handler@GOTPCREL(%rip), %rcx
	movq	_ad7766_buffer_setup_ops@GOTPCREL(%rip), %r8
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_devm_iio_triggered_buffer_setup
	testl	%eax, %eax
	jne	LBB0_13
## %bb.14:
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_device_register       ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ad7766_chip_info,8,3           ## @ad7766_chip_info
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mclk"

L_.str.1:                               ## @.str.1
	.asciz	"avdd"

	.comm	_AD7766_SUPPLY_AVDD,8,3         ## @AD7766_SUPPLY_AVDD
L_.str.2:                               ## @.str.2
	.asciz	"dvdd"

	.comm	_AD7766_SUPPLY_DVDD,8,3         ## @AD7766_SUPPLY_DVDD
L_.str.3:                               ## @.str.3
	.asciz	"vref"

	.comm	_AD7766_SUPPLY_VREF,8,3         ## @AD7766_SUPPLY_VREF
L_.str.4:                               ## @.str.4
	.asciz	"powerdown"

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_ad7766_channels,8,3            ## @ad7766_channels
	.comm	_ad7766_info,4,2                ## @ad7766_info
L_.str.5:                               ## @.str.5
	.asciz	"%s-dev%d"

	.comm	_ad7766_trigger_ops,4,2         ## @ad7766_trigger_ops
	.comm	_ad7766_irq,4,2                 ## @ad7766_irq
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
	.comm	_iio_pollfunc_store_time,4,2    ## @iio_pollfunc_store_time
	.comm	_ad7766_trigger_handler,4,2     ## @ad7766_trigger_handler
	.comm	_ad7766_buffer_setup_ops,4,2    ## @ad7766_buffer_setup_ops
	.no_dead_strip	_ad7766_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7766_probe
_ad7766_probe:                          ; @ad7766_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	bl	_spi_get_device_id
	mov	x23, x0
	add	x19, x21, #8
	mov	x0, x19
	mov	w1, #80
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_13
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x22, x0
Lloh0:
	adrp	x8, _ad7766_chip_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ad7766_chip_info@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x23]
	add	x8, x8, x9, lsl #2
	str	x8, [x0, #72]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	w0, [x22, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x22, #64]
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
	ldr	x0, [x22, #56]
Lloh5:
	adrp	x8, _AD7766_SUPPLY_AVDD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AD7766_SUPPLY_AVDD@GOTPAGEOFF]
Lloh7:
	adrp	x9, l_.str.1@PAGE
Lloh8:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh9:
	ldr	x8, [x8]
	str	x9, [x0, x8, lsl #3]
Lloh10:
	adrp	x8, _AD7766_SUPPLY_DVDD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AD7766_SUPPLY_DVDD@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, l_.str.2@PAGE
Lloh14:
	add	x9, x9, l_.str.2@PAGEOFF
	str	x9, [x0, x8, lsl #3]
Lloh15:
	adrp	x8, _AD7766_SUPPLY_VREF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AD7766_SUPPLY_VREF@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x9, l_.str.3@PAGE
Lloh19:
	add	x9, x9, l_.str.3@PAGEOFF
	str	x9, [x0, x8, lsl #3]
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	x2, [x22, #56]
	mov	x0, x19
	bl	_devm_regulator_bulk_get
	cbnz	w0, LBB0_14
; %bb.5:
Lloh20:
	adrp	x8, _GPIOD_OUT_HIGH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GPIOD_OUT_HIGH@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get_optional
	str	w0, [x22, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x22, #48]
	b	LBB0_3
LBB0_7:
	str	x19, [x20, #40]
	mov	x0, x21
	bl	_spi_get_device_id
	ldr	w8, [x0, #8]
	str	w8, [x20, #4]
Lloh25:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x20, #32]
Lloh28:
	adrp	x8, _ad7766_channels@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ad7766_channels@GOTPAGEOFF]
Lloh30:
	ldr	x0, [x8]
	str	x0, [x20, #24]
	bl	_ARRAY_SIZE
	str	w0, [x20, #16]
Lloh31:
	adrp	x8, _ad7766_info@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ad7766_info@GOTPAGEOFF]
	str	x8, [x20, #8]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.8:
	ldp	w3, w2, [x20]
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_devm_iio_trigger_alloc
	str	x0, [x22, #40]
	cbz	x0, LBB0_13
; %bb.9:
Lloh35:
	adrp	x8, _ad7766_trigger_ops@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ad7766_trigger_ops@GOTPAGEOFF]
	stp	x19, x8, [x0]
	mov	x1, x22
	bl	_iio_trigger_set_drvdata
	ldr	x23, [x21]
Lloh37:
	adrp	x8, _ad7766_irq@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ad7766_irq@GOTPAGEOFF]
Lloh39:
	ldr	w24, [x8]
Lloh40:
	adrp	x8, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh42:
	ldr	w25, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
	ldr	x5, [x22, #40]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_14
; %bb.10:
	ldr	x0, [x21]
	bl	_disable_irq
	ldr	x1, [x22, #40]
	mov	x0, x19
	bl	_devm_iio_trigger_register
	cbnz	w0, LBB0_14
LBB0_11:
	mov	x0, x21
	mov	x1, x20
	bl	_spi_set_drvdata
	str	x21, [x22, #32]
	ldr	x8, [x22, #24]
	add	x8, x8, #4
	str	x8, [x22, #16]
	mov	w8, #3
	mov	x21, x22
	str	w8, [x21, #8]!
	mov	x0, x22
	bl	_spi_message_init
	mov	x0, x21
	mov	x1, x22
	bl	_spi_message_add_tail
Lloh43:
	adrp	x2, _iio_pollfunc_store_time@GOTPAGE
Lloh44:
	ldr	x2, [x2, _iio_pollfunc_store_time@GOTPAGEOFF]
Lloh45:
	adrp	x3, _ad7766_trigger_handler@GOTPAGE
Lloh46:
	ldr	x3, [x3, _ad7766_trigger_handler@GOTPAGEOFF]
Lloh47:
	adrp	x4, _ad7766_buffer_setup_ops@GOTPAGE
Lloh48:
	ldr	x4, [x4, _ad7766_buffer_setup_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_devm_iio_triggered_buffer_setup
	cbnz	w0, LBB0_14
; %bb.12:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_devm_iio_device_register
LBB0_13:
Lloh49:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh50:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ad7766_chip_info,8,3           ; @ad7766_chip_info
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mclk"

l_.str.1:                               ; @.str.1
	.asciz	"avdd"

	.comm	_AD7766_SUPPLY_AVDD,8,3         ; @AD7766_SUPPLY_AVDD
l_.str.2:                               ; @.str.2
	.asciz	"dvdd"

	.comm	_AD7766_SUPPLY_DVDD,8,3         ; @AD7766_SUPPLY_DVDD
l_.str.3:                               ; @.str.3
	.asciz	"vref"

	.comm	_AD7766_SUPPLY_VREF,8,3         ; @AD7766_SUPPLY_VREF
l_.str.4:                               ; @.str.4
	.asciz	"powerdown"

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_ad7766_channels,8,3            ; @ad7766_channels
	.comm	_ad7766_info,4,2                ; @ad7766_info
l_.str.5:                               ; @.str.5
	.asciz	"%s-dev%d"

	.comm	_ad7766_trigger_ops,4,2         ; @ad7766_trigger_ops
	.comm	_ad7766_irq,4,2                 ; @ad7766_irq
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
	.comm	_iio_pollfunc_store_time,4,2    ; @iio_pollfunc_store_time
	.comm	_ad7766_trigger_handler,4,2     ; @ad7766_trigger_handler
	.comm	_ad7766_buffer_setup_ops,4,2    ; @ad7766_buffer_setup_ops
	.no_dead_strip	_ad7766_probe
.subsections_via_symbols
