	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad9523_probe
_ad9523_probe:                          ## @ad9523_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, %r12
	movq	(%rdi), %r13
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	movl	$64, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	leaq	56(%rax), %rdi
	callq	_mutex_init
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regulator_get
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	_GPIOD_OUT_HIGH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 48(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	%r14, %rax
	addq	$48, %rax
LBB0_9:
	movq	(%rax), %rdi
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_6:
	movq	(%r14), %rdi
	callq	_regulator_enable
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
	jmp	LBB0_7
LBB0_14:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 40(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	40(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_15
LBB0_10:
	callq	_PTR_ERR
LBB0_11:
	movl	%eax, %ebx
LBB0_12:
	movq	(%r14), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_24
## %bb.13:
	movq	(%r14), %rdi
	callq	_regulator_disable
LBB0_24:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	movl	$1, %edi
	callq	_udelay
	movq	40(%r14), %rdi
	movl	$1, %esi
	callq	_gpiod_direction_output
LBB0_17:
	movl	(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_gpiod_get_optional
	movq	%rax, 32(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	%r14, %rax
	addq	$32, %rax
	jmp	LBB0_9
LBB0_19:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_spi_set_drvdata
	movq	%r12, 24(%r14)
	movq	%r13, 16(%r14)
	movq	%r12, 32(%r15)
	movq	(%r13), %rax
	cmpq	$0, (%rax)
	jne	LBB0_21
## %bb.20:
	movq	%r12, %rdi
	callq	_spi_get_device_id
	movq	(%rax), %rax
LBB0_21:
	movq	%rax, (%r15)
	movq	_ad9523_info@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r15)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movl	8(%r14), %eax
	movl	%eax, 12(%r15)
	movl	8(%r13), %eax
	movl	%eax, 8(%r15)
	movq	%r15, %rdi
	callq	_ad9523_setup
	testl	%eax, %eax
	js	LBB0_11
## %bb.22:
	movq	%r15, %rdi
	callq	_iio_device_register
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.23:
	movq	(%r15), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no platform data?\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"vcc"

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

	.comm	_GPIOD_OUT_HIGH,4,2             ## @GPIOD_OUT_HIGH
L_.str.3:                               ## @.str.3
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.4:                               ## @.str.4
	.asciz	"sync"

	.comm	_ad9523_info,4,2                ## @ad9523_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
L_.str.5:                               ## @.str.5
	.asciz	"probed %s\n"

	.no_dead_strip	_ad9523_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad9523_probe
_ad9523_probe:                          ; @ad9523_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x23, [x0]
	cbz	x23, LBB0_5
; %bb.1:
	mov	x0, x20
	mov	w1, #64
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x21, x0
	bl	_iio_priv
	mov	x19, x0
	add	x0, x0, #56
	bl	_mutex_init
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	x0, [x19]
	bl	_IS_ERR
	cbz	x0, LBB0_8
LBB0_3:
Lloh2:
	adrp	x22, _GPIOD_OUT_HIGH@GOTPAGE
Lloh3:
	ldr	x22, [x22, _GPIOD_OUT_HIGH@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get_optional
	mov	x24, x19
	str	x0, [x24, #48]!
	bl	_IS_ERR
	cbz	x0, LBB0_9
LBB0_4:
	ldr	x0, [x24]
	b	LBB0_10
LBB0_5:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_8:
	ldr	x0, [x19]
	bl	_regulator_enable
	mov	x22, x0
	cbnz	w0, LBB0_14
	b	LBB0_3
LBB0_9:
Lloh12:
	adrp	x8, _GPIOD_OUT_LOW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GPIOD_OUT_LOW@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get_optional
	str	x0, [x19, #40]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #40]
	cbz	x8, LBB0_15
LBB0_10:
	bl	_PTR_ERR
LBB0_11:
	mov	x22, x0
LBB0_12:
	ldr	x0, [x19]
	bl	_IS_ERR
	cbnz	x0, LBB0_14
; %bb.13:
	ldr	x0, [x19]
	bl	_regulator_disable
LBB0_14:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	cbz	x0, LBB0_17
; %bb.16:
	mov	w0, #1
	bl	_udelay
	ldr	x0, [x19, #40]
	mov	w1, #1
	bl	_gpiod_direction_output
LBB0_17:
	ldr	w2, [x22]
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_devm_gpiod_get_optional
	mov	x24, x19
	str	x0, [x24, #32]!
	bl	_IS_ERR
	cbnz	x0, LBB0_4
; %bb.18:
	mov	x0, x20
	mov	x1, x21
	bl	_spi_set_drvdata
	stp	x23, x20, [x19, #16]
	str	x20, [x21, #32]
	ldr	x8, [x23]
	ldr	x9, [x8]
	cbnz	x9, LBB0_20
; %bb.19:
	mov	x0, x20
	bl	_spi_get_device_id
	ldr	x8, [x0]
LBB0_20:
	str	x8, [x21]
Lloh19:
	adrp	x8, _ad9523_info@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ad9523_info@GOTPAGEOFF]
	str	x8, [x21, #24]
Lloh21:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	ldr	w8, [x19, #8]
	ldr	w9, [x23, #8]
	stp	w9, w8, [x21, #8]
	mov	x0, x21
	bl	_ad9523_setup
	tbnz	w0, #31, LBB0_11
; %bb.21:
	mov	x0, x21
	bl	_iio_device_register
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.22:
	ldr	x2, [x21]
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no platform data?\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"vcc"

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

	.comm	_GPIOD_OUT_HIGH,4,2             ; @GPIOD_OUT_HIGH
l_.str.3:                               ; @.str.3
	.asciz	"reset"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.4:                               ; @.str.4
	.asciz	"sync"

	.comm	_ad9523_info,4,2                ; @ad9523_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
l_.str.5:                               ; @.str.5
	.asciz	"probed %s\n"

	.no_dead_strip	_ad9523_probe
.subsections_via_symbols
