	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5686_write_dac_powerdown
_ad5686_write_dac_powerdown:            ## @ad5686_write_dac_powerdown
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %rbx
	movq	%rdx, %r12
	callq	_iio_priv
	movq	%rax, %r15
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_strtobool
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	movl	(%r12), %eax
	leal	(%rax,%rax), %ecx
	movl	$3, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	cmpl	$0, -36(%rbp)
	je	LBB0_3
## %bb.2:
	orl	(%r15), %esi
	jmp	LBB0_4
LBB0_3:
	notl	%esi
	andl	(%r15), %esi
LBB0_4:
	movl	%esi, (%r15)
	movq	24(%r15), %rcx
	movl	(%rcx), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_10
## %bb.5:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_9:
	movq	_AD5693_REF_BIT_MSK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_8:
	xorl	%edx, %edx
	cmpl	$8, %eax
	setge	%dl
	shll	$3, %edx
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	jmp	LBB0_12
LBB0_6:
	movq	_AD5683_REF_BIT_MSK@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	xorl	%edx, %edx
	movl	$13, %ecx
	jmp	LBB0_12
LBB0_11:
	movq	_AD5310_REF_BIT_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%edx, %edx
	movl	$9, %ecx
LBB0_12:
	andl	4(%r15), %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	xorl	%eax, %eax
	cmpl	$0, 16(%r15)
	cmovel	%edi, %eax
	orl	%esi, %eax
	movq	_AD5686_CMD_POWERDOWN_DAC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leal	(%rdx,%rdx), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shrl	%cl, %eax
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	%eax, %ecx
	callq	*8(%r15)
	testl	%eax, %eax
	cmovnel	%eax, %r14d
	movl	%r14d, %eax
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_AD5310_REF_BIT_MSK,4,2         ## @AD5310_REF_BIT_MSK
	.comm	_AD5683_REF_BIT_MSK,4,2         ## @AD5683_REF_BIT_MSK
	.comm	_AD5693_REF_BIT_MSK,4,2         ## @AD5693_REF_BIT_MSK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AD5686_CMD_POWERDOWN_DAC,4,2   ## @AD5686_CMD_POWERDOWN_DAC
	.no_dead_strip	_ad5686_write_dac_powerdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5686_write_dac_powerdown
_ad5686_write_dac_powerdown:            ; @ad5686_write_dac_powerdown
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x4
	mov	x22, x3
	mov	x21, x2
	bl	_iio_priv
	mov	x20, x0
	add	x1, sp, #12
	mov	x0, x22
	bl	_strtobool
	cbnz	w0, LBB0_13
; %bb.1:
	ldr	w9, [sp, #12]
	ldr	w11, [x21]
	lsl	w8, w11, #1
	mov	w10, #3
	lsl	w8, w10, w8
	cbz	w9, LBB0_3
; %bb.2:
	ldr	w9, [x20]
	orr	w8, w8, w9
	b	LBB0_4
LBB0_3:
	ldr	w9, [x20]
	bic	w8, w9, w8
LBB0_4:
	str	w8, [x20]
	ldr	x9, [x20, #24]
	ldr	w9, [x9]
	sub	w9, w9, #128
	cmp	w9, #3
	b.hi	LBB0_7
; %bb.5:
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x12, LBB0_6
	ldrb	w13, [x10, x9]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_6:
	mov	w2, #0
Lloh2:
	adrp	x9, _AD5693_REF_BIT_MSK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AD5693_REF_BIT_MSK@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_8:
	mov	w9, #0
	mov	w10, #0
	cmp	w11, #7
	cset	w11, gt
	lsl	w2, w11, #3
	b	LBB0_12
LBB0_9:
	mov	w2, #0
Lloh7:
	adrp	x9, _AD5683_REF_BIT_MSK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AD5683_REF_BIT_MSK@GOTPAGEOFF]
LBB0_10:
	ldr	w9, [x9]
	mov	w10, #13
	b	LBB0_12
LBB0_11:
	mov	w2, #0
Lloh9:
	adrp	x9, _AD5310_REF_BIT_MSK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AD5310_REF_BIT_MSK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	mov	w10, #9
LBB0_12:
	ldr	w11, [x20, #4]
	and	w8, w11, w8
	lsl	w8, w8, w10
	ldr	w10, [x20, #16]
	cmp	w10, #0
	csel	w9, w9, wzr, eq
	orr	w8, w9, w8
	ldr	x9, [x20, #8]
Lloh12:
	adrp	x10, _AD5686_CMD_POWERDOWN_DAC@GOTPAGE
Lloh13:
	ldr	x10, [x10, _AD5686_CMD_POWERDOWN_DAC@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x10]
	lsl	w10, w2, #1
	lsr	w3, w8, w10
	mov	x0, x20
	blr	x9
	cmp	w0, #0
	csel	w0, w19, w0, eq
LBB0_13:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
                                        ; -- End function
	.comm	_AD5310_REF_BIT_MSK,4,2         ; @AD5310_REF_BIT_MSK
	.comm	_AD5683_REF_BIT_MSK,4,2         ; @AD5683_REF_BIT_MSK
	.comm	_AD5693_REF_BIT_MSK,4,2         ; @AD5693_REF_BIT_MSK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AD5686_CMD_POWERDOWN_DAC,4,2   ; @AD5686_CMD_POWERDOWN_DAC
	.no_dead_strip	_ad5686_write_dac_powerdown
.subsections_via_symbols
