	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5592r_write_raw
_ad5592r_write_raw:                     ## @ad5592r_write_raw
	.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	%r8, %rbx
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	callq	_iio_priv
	movq	%rax, %rdx
	cmpq	$128, %rbx
	je	LBB0_8
## %bb.1:
	cmpq	$129, %rbx
	jne	LBB0_25
## %bb.2:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movb	16(%r15), %cl
	movl	$1, %eax
	shll	%cl, %eax
	testl	%r12d, %r12d
	js	LBB0_25
## %bb.3:
	cmpl	%r12d, %eax
	jle	LBB0_25
## %bb.4:
	cmpl	$0, 8(%r15)
	je	LBB0_25
## %bb.5:
	movq	%rdx, %rbx
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	24(%rbx), %rax
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	*(%rax)
	movq	%r14, %rdi
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	(%rbx), %rax
	movq	(%r15), %rcx
	movl	%r12d, (%rax,%rcx,4)
LBB0_7:
	callq	_mutex_unlock
	jmp	LBB0_26
LBB0_8:
	movq	%rax, %r13
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %eax
	movq	_IIO_VOLTAGE@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpl	(%rcx), %eax
	jne	LBB0_26
## %bb.9:
	movq	8(%rdx), %rax
	movq	(%rax), %rcx
	cmpl	%r12d, (%rcx)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_11
## %bb.10:
	movb	$1, %sil
	cmpl	%r15d, 4(%rcx)
	je	LBB0_14
LBB0_11:
	movq	8(%rax), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_25
## %bb.12:
	cmpl	%r15d, 4(%rax)
	jne	LBB0_25
## %bb.13:
	xorl	%esi, %esi
LBB0_14:
	movl	%esi, %r12d
	movq	%rdx, %rbx
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	24(%rbx), %rax
	movq	_AD5592R_REG_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	addq	$16, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	*8(%rax)
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 8(%rax)
	je	LBB0_21
## %bb.17:
	movq	_AD5592R_REG_CTRL_DAC_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testb	%r12b, %r12b
	je	LBB0_18
## %bb.20:
	notl	%edx
	andl	(%r13), %edx
	jmp	LBB0_19
LBB0_25:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_26:
	movl	%r14d, %eax
LBB0_27:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r14, %rdi
	movl	%eax, %r14d
	callq	_mutex_unlock
	jmp	LBB0_26
LBB0_21:
	movq	_AD5592R_REG_CTRL_ADC_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testb	%r12b, %r12b
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	_AD5592R_REG_CTRL@GOTPCREL(%rip), %rcx
	je	LBB0_22
## %bb.23:
	notl	%edx
	andl	(%r13), %edx
	jmp	LBB0_24
LBB0_18:
	orl	(%r13), %edx
LBB0_19:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	_AD5592R_REG_CTRL@GOTPCREL(%rip), %rcx
	jmp	LBB0_24
LBB0_22:
	orl	(%r13), %edx
LBB0_24:
	movl	%edx, 16(%rdi)
	movq	24(%rdi), %rax
	movl	(%rcx), %esi
	callq	*16(%rax)
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IIO_VOLTAGE,4,2                ## @IIO_VOLTAGE
	.comm	_AD5592R_REG_CTRL,4,2           ## @AD5592R_REG_CTRL
	.comm	_AD5592R_REG_CTRL_DAC_RANGE,4,2 ## @AD5592R_REG_CTRL_DAC_RANGE
	.comm	_AD5592R_REG_CTRL_ADC_RANGE,4,2 ## @AD5592R_REG_CTRL_ADC_RANGE
	.no_dead_strip	_ad5592r_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5592r_write_raw
_ad5592r_write_raw:                     ; @ad5592r_write_raw
	.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	x24, x4
	mov	x23, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	cmp	x24, #128
	b.eq	LBB0_7
; %bb.1:
	cmp	x24, #129
	b.ne	LBB0_19
; %bb.2:
	tbnz	w22, #31, LBB0_19
; %bb.3:
	ldr	w8, [x21, #16]
	mov	w9, #1
	lsl	w8, w9, w8
	cmp	w8, w22
	b.le	LBB0_19
; %bb.4:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_19
; %bb.5:
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	ldr	x1, [x21]
	mov	x0, x20
	mov	x2, x22
	blr	x8
	mov	x23, x0
	cbnz	w0, LBB0_23
; %bb.6:
	ldr	x8, [x20]
	ldr	x9, [x21]
	str	w22, [x8, x9, lsl #2]
	b	LBB0_23
LBB0_7:
	ldr	w8, [x21, #12]
Lloh0:
	adrp	x9, _IIO_VOLTAGE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IIO_VOLTAGE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_11
; %bb.8:
	ldr	x8, [x20, #8]
	ldr	x9, [x8]
	ldr	w10, [x9]
	cmp	w10, w22
	b.ne	LBB0_12
; %bb.9:
	ldr	w9, [x9, #4]
	cmp	w9, w23
	b.ne	LBB0_12
; %bb.10:
	mov	w25, #1
	b	LBB0_15
LBB0_11:
	mov	w23, #0
	b	LBB0_20
LBB0_12:
	ldr	x8, [x8, #8]
	ldr	w9, [x8]
	cmp	w9, w22
	b.ne	LBB0_19
; %bb.13:
	ldr	w8, [x8, #4]
	cmp	w8, w23
	b.ne	LBB0_19
; %bb.14:
	mov	w25, #0
LBB0_15:
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #8]
Lloh3:
	adrp	x24, _AD5592R_REG_CTRL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _AD5592R_REG_CTRL@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x22, x20, #16
	mov	x0, x20
	mov	x2, x22
	blr	x8
	tbnz	w0, #31, LBB0_22
; %bb.16:
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_24
; %bb.17:
Lloh5:
	adrp	x8, _AD5592R_REG_CTRL_DAC_RANGE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AD5592R_REG_CTRL_DAC_RANGE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tbz	w25, #0, LBB0_25
LBB0_18:
	ldr	w9, [x22]
	bic	w2, w9, w8
	b	LBB0_26
LBB0_19:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_20:
	mov	x0, x23
LBB0_21:
	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
LBB0_22:
	mov	x23, x0
LBB0_23:
	mov	x0, x19
	bl	_mutex_unlock
	b	LBB0_20
LBB0_24:
Lloh11:
	adrp	x8, _AD5592R_REG_CTRL_ADC_RANGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AD5592R_REG_CTRL_ADC_RANGE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tbnz	w25, #0, LBB0_18
LBB0_25:
	ldr	w9, [x22]
	orr	w2, w9, w8
LBB0_26:
	str	w2, [x20, #16]
	ldr	x8, [x20, #24]
	ldr	x8, [x8, #16]
	ldr	w1, [x24]
	mov	x0, x20
	blr	x8
	mov	x20, x0
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IIO_VOLTAGE,4,2                ; @IIO_VOLTAGE
	.comm	_AD5592R_REG_CTRL,4,2           ; @AD5592R_REG_CTRL
	.comm	_AD5592R_REG_CTRL_DAC_RANGE,4,2 ; @AD5592R_REG_CTRL_DAC_RANGE
	.comm	_AD5592R_REG_CTRL_ADC_RANGE,4,2 ; @AD5592R_REG_CTRL_ADC_RANGE
	.no_dead_strip	_ad5592r_write_raw
.subsections_via_symbols
