	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5504_write_dac_powerdown
_ad5504_write_dac_powerdown:            ## @ad5504_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, %r15
	callq	_iio_priv
	movq	%rax, %r12
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_strtobool
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movb	(%r15), %cl
	movl	$1, %eax
	shll	%cl, %eax
	cmpl	$0, -36(%rbp)
	je	LBB0_3
## %bb.2:
	orl	%eax, (%r12)
	jmp	LBB0_4
LBB0_3:
	notl	%eax
	andl	%eax, (%r12)
LBB0_4:
	movq	_AD5504_ADDR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	4(%r12), %edi
	callq	_AD5504_DAC_PWRDWN_MODE
	movl	%eax, %ebx
	movl	(%r12), %edi
	callq	_AD5504_DAC_PWR
	orl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_ad5504_spi_write
	movl	%eax, %ebx
	movq	_AD5504_ADDR_NOOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_ad5504_spi_write
	testl	%ebx, %ebx
	cmovnel	%ebx, %r14d
	movl	%r14d, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD5504_ADDR_CTRL,4,2           ## @AD5504_ADDR_CTRL
	.comm	_AD5504_ADDR_NOOP,4,2           ## @AD5504_ADDR_NOOP
	.no_dead_strip	_ad5504_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 ad5504_write_dac_powerdown
_ad5504_write_dac_powerdown:            ; @ad5504_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_5
; %bb.1:
	ldr	w9, [sp, #12]
	ldr	w8, [x21]
	mov	w10, #1
	lsl	w8, w10, w8
	cbz	w9, LBB0_3
; %bb.2:
	ldr	w9, [x20]
	orr	w8, w9, w8
	b	LBB0_4
LBB0_3:
	ldr	w9, [x20]
	bic	w8, w9, w8
LBB0_4:
	str	w8, [x20]
Lloh0:
	adrp	x8, _AD5504_ADDR_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD5504_ADDR_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w0, [x20, #4]
	bl	_AD5504_DAC_PWRDWN_MODE
	mov	x22, x0
	ldr	w0, [x20]
	bl	_AD5504_DAC_PWR
	orr	w2, w0, w22
	mov	x0, x20
	mov	x1, x21
	bl	_ad5504_spi_write
	mov	x21, x0
Lloh3:
	adrp	x8, _AD5504_ADDR_NOOP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AD5504_ADDR_NOOP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_ad5504_spi_write
	cmp	w21, #0
	csel	w0, w19, w21, eq
LBB0_5:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AD5504_ADDR_CTRL,4,2           ; @AD5504_ADDR_CTRL
	.comm	_AD5504_ADDR_NOOP,4,2           ; @AD5504_ADDR_NOOP
	.no_dead_strip	_ad5504_write_dac_powerdown
.subsections_via_symbols
