	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5449_read
_ad5449_read:                           ## @ad5449_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
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_iio_priv
	movq	%rax, %r13
	movabsq	$4294967298, %rax               ## imm = 0x100000002
	movq	%rax, -96(%rbp)
	movq	$0, -88(%rbp)
	movq	(%r13), %rax
	movq	%rax, -80(%rbp)
	movq	$2, -72(%rbp)
	addq	$8, %rax
	movq	%rax, -64(%rbp)
	movq	%rax, -56(%rbp)
	movq	%r15, %rdi
	callq	_mutex_lock
	shll	$12, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be16
	movq	(%r13), %rcx
	movq	%rax, (%rcx)
	movq	_AD5449_CMD_NOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be16
	movq	(%r13), %rcx
	movq	%rax, 8(%rcx)
	movl	8(%r13), %ebx
	leaq	-96(%rbp), %r12
	movq	%r12, %rdi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_spi_sync_transfer
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	(%r13), %rax
	movq	8(%rax), %rdi
	callq	_be16_to_cpu
	movl	%eax, (%r14)
LBB0_2:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AD5449_CMD_NOOP,4,2            ## @AD5449_CMD_NOOP
	.no_dead_strip	_ad5449_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function ad5449_read
lCPI0_0:
	.long	2                               ; 0x2
	.long	1                               ; 0x1
lCPI0_1:
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_ad5449_read:                           ; @ad5449_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	x20, x2
	mov	x22, x1
	mov	x19, 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
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #8]
	str	xzr, [sp, #16]
	ldr	x8, [x0]
	str	x8, [sp, #24]
Lloh5:
	adrp	x9, lCPI0_1@PAGE
Lloh6:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
	str	d0, [sp, #32]
	add	x8, x8, #8
	stp	x8, x8, [sp, #40]
	mov	x0, x19
	bl	_mutex_lock
	lsl	w0, w22, #12
	bl	_cpu_to_be16
	ldr	x8, [x21]
	str	x0, [x8]
Lloh7:
	adrp	x8, _AD5449_CMD_NOOP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AD5449_CMD_NOOP@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_cpu_to_be16
	ldr	x8, [x21]
	str	x0, [x8, #8]
	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
	mov	x22, x0
	tbnz	w0, #31, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	x0, [x8, #8]
	bl	_be16_to_cpu
	str	w0, [x20]
LBB0_2:
	mov	x0, x19
	bl	_mutex_unlock
	ldur	x8, [x29, #-40]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	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_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AD5449_CMD_NOOP,4,2            ; @AD5449_CMD_NOOP
	.no_dead_strip	_ad5449_read
.subsections_via_symbols
