	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad9523_write
_ad9523_write:                          ## @ad9523_write
	.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	%edx, %r15d
	movl	%esi, %r12d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_iio_priv
	movq	%rax, %r13
	movl	$2, -80(%rbp)
	movq	8(%rax), %rax
	movq	8(%rax), %rax
	addq	$8, %rax
	movq	%rax, -72(%rbp)
	movl	%r12d, %edi
	callq	_AD9523_TRANSF_LEN
	movl	%eax, -64(%rbp)
	movq	8(%r13), %rax
	movq	24(%rax), %rbx
	movl	%r12d, %edi
	callq	_AD9523_TRANSF_LEN
	movl	$4, %ecx
	subl	%eax, %ecx
	movslq	%ecx, %rax
	leaq	(%rbx,%rax,4), %rax
	movq	%rax, -56(%rbp)
	movq	_AD9523_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r12d, %edi
	callq	_AD9523_TRANSF_LEN
	movl	%eax, %edi
	callq	_AD9523_CNT
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	_AD9523_ADDR
	orl	%eax, %ebx
	orl	%r14d, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	8(%r13), %rcx
	movq	%rax, (%rcx)
	movl	%r15d, %edi
	callq	_cpu_to_be32
	movq	8(%r13), %rcx
	movq	%rax, 16(%rcx)
	movl	(%r13), %ebx
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_spi_sync_transfer
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_dev_err
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	movl	%ebx, %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	_AD9523_WRITE,4,2               ## @AD9523_WRITE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write failed (%d)"

	.no_dead_strip	_ad9523_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad9523_write
_ad9523_write:                          ; @ad9523_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	bl	_iio_priv
	mov	x22, x0
	mov	w8, #2
	str	w8, [sp, #8]
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #8]
	add	x8, x8, #8
	str	x8, [sp, #16]
	mov	x0, x21
	bl	_AD9523_TRANSF_LEN
	str	w0, [sp, #24]
	ldr	x8, [x22, #8]
	ldr	x23, [x8, #24]
	mov	x0, x21
	bl	_AD9523_TRANSF_LEN
	mov	w8, #4
	sub	w8, w8, w0
	add	x8, x23, w8, sxtw #2
	str	x8, [sp, #32]
Lloh3:
	adrp	x8, _AD9523_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AD9523_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x0, x21
	bl	_AD9523_TRANSF_LEN
	bl	_AD9523_CNT
	orr	w23, w0, w23
	mov	x0, x21
	bl	_AD9523_ADDR
	orr	w0, w23, w0
	bl	_cpu_to_be32
	ldr	x8, [x22, #8]
	str	x0, [x8]
	mov	x0, x20
	bl	_cpu_to_be32
	ldr	x8, [x22, #8]
	str	x0, [x8, #16]
	ldr	w20, [x22]
	add	x0, sp, #8
	bl	_ARRAY_SIZE
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x20
	bl	_spi_sync_transfer
	mov	x20, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_2:
	ldr	x8, [sp, #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_4
; %bb.3:
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	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_WRITE,4,2               ; @AD9523_WRITE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write failed (%d)"

	.no_dead_strip	_ad9523_write
.subsections_via_symbols
