	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad9523_read
_ad9523_read:                           ## @ad9523_read
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_iio_priv
	movq	%rax, %r12
	movl	$2, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	(%rax), %rax
	movq	8(%rax), %rax
	addq	$8, %rax
	movq	%rax, -80(%rbp)
	movl	%r15d, %edi
	callq	_AD9523_TRANSF_LEN
	movl	%eax, -72(%rbp)
	movq	(%r12), %rax
	movq	24(%rax), %rbx
	movl	%r15d, %edi
	callq	_AD9523_TRANSF_LEN
	movl	$4, %ecx
	subl	%eax, %ecx
	movslq	%ecx, %rax
	leaq	(%rbx,%rax,4), %rax
	movq	%rax, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	_AD9523_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r15d, %edi
	callq	_AD9523_TRANSF_LEN
	movl	%eax, %edi
	callq	_AD9523_CNT
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_AD9523_ADDR
	orl	%eax, %ebx
	orl	%r13d, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	movl	8(%r12), %ebx
	leaq	-96(%rbp), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_spi_sync_transfer
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	(%r12), %rax
	movl	16(%rax), %edi
	callq	_be32_to_cpu
	movl	%eax, %r14d
	movl	%r15d, %edi
	callq	_AD9523_TRANSF_LEN
	shll	$3, %eax
	movb	$24, %cl
	subb	%al, %cl
	movl	$16777215, %ebx                 ## imm = 0xFFFFFF
	shrl	%cl, %ebx
	andl	%r14d, %ebx
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AD9523_READ,4,2                ## @AD9523_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read failed (%d)"

	.no_dead_strip	_ad9523_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad9523_read
_ad9523_read:                           ; @ad9523_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_iio_priv
	mov	x21, x0
	mov	w8, #2
	str	w8, [sp, #8]
	str	xzr, [sp, #16]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	add	x8, x8, #8
	str	x8, [sp, #24]
	mov	x0, x19
	bl	_AD9523_TRANSF_LEN
	str	w0, [sp, #32]
	ldr	x8, [x21]
	ldr	x22, [x8, #24]
	mov	x0, x19
	bl	_AD9523_TRANSF_LEN
	mov	w8, #4
	sub	w8, w8, w0
	add	x8, x22, w8, sxtw #2
	stp	x8, xzr, [sp, #40]
Lloh3:
	adrp	x8, _AD9523_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AD9523_READ@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_AD9523_TRANSF_LEN
	bl	_AD9523_CNT
	orr	w22, w0, w22
	mov	x0, x19
	bl	_AD9523_ADDR
	orr	w0, w22, w0
	bl	_cpu_to_be32
	ldr	x8, [x21]
	str	w0, [x8]
	ldr	w22, [x21, #8]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x22
	bl	_spi_sync_transfer
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	w0, [x8, #16]
	bl	_be32_to_cpu
	mov	x20, x0
	mov	x0, x19
	bl	_AD9523_TRANSF_LEN
	mov	w8, #24
	sub	w8, w8, w0, lsl #3
	mov	w9, #16777215
	lsr	w8, w9, w8
	and	w22, w8, w20
	b	LBB0_3
LBB0_2:
	mov	x22, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_err
LBB0_3:
	ldur	x8, [x29, #-40]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_AD9523_READ,4,2                ; @AD9523_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read failed (%d)"

	.no_dead_strip	_ad9523_read
.subsections_via_symbols
