	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5764_probe
_ad5764_probe:                          ## @ad5764_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, %r15
	callq	_spi_get_device_id
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_spi_set_drvdata
	movq	%r15, 16(%r14)
	movq	_ad5764_chip_infos@GOTPCREL(%rip), %rax
	shlq	$4, %rbx
	addq	(%rax), %rbx
	movq	%rbx, 8(%r14)
	movq	%r15, 32(%r13)
	movq	%r15, %rdi
	callq	_spi_get_device_id
	movl	4(%rax), %eax
	movl	%eax, 24(%r13)
	movq	_ad5764_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r13)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	_AD5764_NUM_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movq	8(%r14), %rax
	movl	8(%rax), %ecx
	movl	%ecx, (%r13)
	cmpq	$0, (%rax)
	je	LBB0_3
LBB0_8:
	movq	%r13, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %r12d
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	8(%r14), %rax
	cmpq	$0, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	movq	(%r14), %rsi
	movl	%eax, %edi
	callq	_regulator_bulk_disable
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_12
LBB0_3:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%rdi)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, 8(%rdi)
	movq	16(%r14), %r12
	callq	_ARRAY_SIZE
	movq	(%r14), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_devm_regulator_bulk_get
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_5
LBB0_9:
	xorl	%r12d, %r12d
	jmp	LBB0_12
LBB0_6:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	movq	(%r14), %rsi
	movl	%eax, %edi
	callq	_regulator_bulk_enable
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
LBB0_5:
	movq	%r15, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_12:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate iio device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ad5764_chip_infos,8,3          ## @ad5764_chip_infos
	.comm	_ad5764_info,4,2                ## @ad5764_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_AD5764_NUM_CHANNELS,4,2        ## @AD5764_NUM_CHANNELS
L_.str.1:                               ## @.str.1
	.asciz	"vrefAB"

L_.str.2:                               ## @.str.2
	.asciz	"vrefCD"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to request vref regulators: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to enable vref regulators: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to register iio device: %d\n"

	.no_dead_strip	_ad5764_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5764_probe
_ad5764_probe:                          ; @ad5764_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_spi_get_device_id
	ldr	w22, [x0]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	bl	_iio_priv
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	bl	_spi_set_drvdata
Lloh0:
	adrp	x8, _ad5764_chip_infos@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ad5764_chip_infos@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, x22, lsl #4
	stp	x8, x19, [x20, #8]
	str	x19, [x21, #32]
	mov	x0, x19
	bl	_spi_get_device_id
	ldr	w8, [x0, #4]
	str	w8, [x21, #24]
Lloh3:
	adrp	x8, _ad5764_info@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ad5764_info@GOTPAGEOFF]
	str	x8, [x21, #16]
Lloh5:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x21, #8]
Lloh8:
	adrp	x8, _AD5764_NUM_CHANNELS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AD5764_NUM_CHANNELS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x9, [x20, #8]
	ldr	w10, [x9, #8]
	stp	w10, w8, [x21]
	ldr	x8, [x9]
	cbz	x8, LBB0_6
LBB0_2:
	mov	x0, x21
	bl	_iio_device_register
	mov	x21, x0
	cbz	w0, LBB0_11
; %bb.3:
	str	x21, [sp]
Lloh11:
	adrp	x1, l_.str.5@PAGE
Lloh12:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_11
; %bb.4:
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	ldr	x1, [x20]
	bl	_regulator_bulk_disable
	b	LBB0_11
LBB0_5:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_6:
Lloh18:
	adrp	x8, l_.str.1@PAGE
Lloh19:
	add	x8, x8, l_.str.1@PAGEOFF
	ldr	x0, [x20]
Lloh20:
	adrp	x9, l_.str.2@PAGE
Lloh21:
	add	x9, x9, l_.str.2@PAGEOFF
	stp	x8, x9, [x0]
	ldr	x22, [x20, #16]
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	x2, [x20]
	mov	x0, x22
	bl	_devm_regulator_bulk_get
	cbz	w0, LBB0_8
; %bb.7:
	mov	x22, x0
	str	x22, [sp]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_8:
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	ldr	x1, [x20]
	bl	_regulator_bulk_enable
	cbz	w0, LBB0_2
; %bb.9:
	mov	x22, x0
	str	x22, [sp]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dev_err
	mov	x21, x22
LBB0_11:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate iio device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ad5764_chip_infos,8,3          ; @ad5764_chip_infos
	.comm	_ad5764_info,4,2                ; @ad5764_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_AD5764_NUM_CHANNELS,4,2        ; @AD5764_NUM_CHANNELS
l_.str.1:                               ; @.str.1
	.asciz	"vrefAB"

l_.str.2:                               ; @.str.2
	.asciz	"vrefCD"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to request vref regulators: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to enable vref regulators: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to register iio device: %d\n"

	.no_dead_strip	_ad5764_probe
.subsections_via_symbols
