	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5761_probe
_ad5761_probe:                          ## @ad5761_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, %rbx
	movq	_ad5761_chip_infos@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	callq	_spi_get_device_id
	movq	(%rax), %r12
	movq	_AD5761_VOLTAGE_RANGE_0V_5V@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rbx, %rdi
	callq	_dev_get_platdata
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	leaq	(%r14,%r12,4), %r13
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%rbx, 8(%rax)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_spi_set_drvdata
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ad5761_get_vref
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
LBB0_5:
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ad5761_spi_set_range
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	%rbx, 32(%r15)
	movq	_ad5761_info@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	%r13, 8(%r15)
	movl	$1, (%r15)
	movq	8(%r14), %rdi
	callq	_spi_get_device_id
	movl	8(%rax), %eax
	movl	%eax, 4(%r15)
	movq	%r15, %rdi
	callq	_iio_device_register
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movl	(%r14), %edi
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movl	(%r14), %edi
	callq	_regulator_disable
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%r12d, %r12d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ad5761_chip_infos,8,3          ## @ad5761_chip_infos
	.comm	_AD5761_VOLTAGE_RANGE_0V_5V,4,2 ## @AD5761_VOLTAGE_RANGE_0V_5V
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ad5761_info,4,2                ## @ad5761_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.no_dead_strip	_ad5761_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5761_probe
_ad5761_probe:                          ; @ad5761_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	x20, x0
Lloh0:
	adrp	x8, _ad5761_chip_infos@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ad5761_chip_infos@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
	bl	_spi_get_device_id
	ldr	x22, [x0]
Lloh3:
	adrp	x8, _AD5761_VOLTAGE_RANGE_0V_5V@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AD5761_VOLTAGE_RANGE_0V_5V@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_dev_get_platdata
	mov	x25, x0
	mov	x0, x20
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
	add	x22, x19, x22, lsl #2
	bl	_iio_priv
	mov	x19, x0
	str	x20, [x0, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_spi_set_drvdata
	mov	x0, x19
	mov	x1, x22
	bl	_ad5761_get_vref
	mov	x24, x0
	cbnz	w0, LBB0_9
; %bb.2:
	cbz	x25, LBB0_4
; %bb.3:
	ldr	w23, [x25]
LBB0_4:
	mov	x0, x19
	mov	x1, x23
	bl	_ad5761_spi_set_range
	mov	x24, x0
	cbnz	w0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _ad5761_info@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ad5761_info@GOTPAGEOFF]
	stp	x8, x20, [x21, #24]
Lloh8:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	str	x22, [x21, #8]
	mov	w8, #1
	str	w8, [x21]
	ldr	x0, [x19, #8]
	bl	_spi_get_device_id
	ldr	w8, [x0, #8]
	str	w8, [x21, #4]
	mov	x0, x21
	bl	_iio_device_register
	mov	x24, x0
	cbz	w0, LBB0_9
LBB0_6:
	ldr	w0, [x19]
	bl	_IS_ERR_OR_NULL
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	w0, [x19]
	bl	_regulator_disable
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_9:
	mov	x0, x24
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ad5761_chip_infos,8,3          ; @ad5761_chip_infos
	.comm	_AD5761_VOLTAGE_RANGE_0V_5V,4,2 ; @AD5761_VOLTAGE_RANGE_0V_5V
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ad5761_info,4,2                ; @ad5761_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.no_dead_strip	_ad5761_probe
.subsections_via_symbols
