	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5791_write_dac_powerdown
_ad5791_write_dac_powerdown:            ## @ad5791_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %rbx
	callq	_iio_priv
	movq	%rax, %r15
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_strtobool
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	cmpl	$0, -28(%rbp)
	je	LBB0_2
## %bb.3:
	movq	8(%r15), %rax
	movq	_AD5791_DAC_PWRDN_6K@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_AD5791_CTRL_OPGND@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_AD5791_CTRL_OPGND@GOTPCREL(%rip), %rax
	movq	_AD5791_CTRL_DACTRI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	notl	%edx
	andl	(%r15), %edx
	jmp	LBB0_9
LBB0_5:
	movq	_AD5791_DAC_PWRDN_3STATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.7:
	movq	_AD5791_CTRL_DACTRI@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%r15), %edx
	orl	(%rax), %edx
LBB0_9:
	movl	%edx, (%r15)
LBB0_10:
	movl	-28(%rbp), %eax
	movl	%eax, 16(%r15)
	movq	_AD5791_ADDR_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ad5791_spi_write
	testl	%eax, %eax
	cmovnel	%eax, %r14d
	movl	%r14d, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r15), %edx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_AD5791_CTRL_OPGND,4,2          ## @AD5791_CTRL_OPGND
	.comm	_AD5791_CTRL_DACTRI,4,2         ## @AD5791_CTRL_DACTRI
	.comm	_AD5791_DAC_PWRDN_6K,8,3        ## @AD5791_DAC_PWRDN_6K
	.comm	_AD5791_DAC_PWRDN_3STATE,8,3    ## @AD5791_DAC_PWRDN_3STATE
	.comm	_AD5791_ADDR_CTRL,4,2           ## @AD5791_ADDR_CTRL
	.no_dead_strip	_ad5791_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 ad5791_write_dac_powerdown
_ad5791_write_dac_powerdown:            ; @ad5791_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	x21, x3
	bl	_iio_priv
	mov	x20, x0
	add	x1, sp, #12
	mov	x0, x21
	bl	_strtobool
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_4
; %bb.2:
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _AD5791_DAC_PWRDN_6K@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AD5791_DAC_PWRDN_6K@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _AD5791_CTRL_OPGND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AD5791_CTRL_OPGND@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x8, _AD5791_CTRL_OPGND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AD5791_CTRL_OPGND@GOTPAGEOFF]
Lloh7:
	adrp	x9, _AD5791_CTRL_DACTRI@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AD5791_CTRL_DACTRI@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x20]
	bic	w2, w9, w8
	b	LBB0_8
LBB0_5:
Lloh11:
	adrp	x9, _AD5791_DAC_PWRDN_3STATE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AD5791_DAC_PWRDN_3STATE@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.6:
Lloh14:
	adrp	x8, _AD5791_CTRL_DACTRI@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AD5791_CTRL_DACTRI@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w2, w9, w8
LBB0_8:
	str	w2, [x20]
LBB0_9:
	ldr	w8, [sp, #12]
	str	w8, [x20, #16]
Lloh16:
	adrp	x8, _AD5791_ADDR_CTRL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AD5791_ADDR_CTRL@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ad5791_spi_write
	cmp	w0, #0
	csel	w0, w19, w0, eq
LBB0_10:
	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
LBB0_11:
	ldr	w2, [x20]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_AD5791_CTRL_OPGND,4,2          ; @AD5791_CTRL_OPGND
	.comm	_AD5791_CTRL_DACTRI,4,2         ; @AD5791_CTRL_DACTRI
	.comm	_AD5791_DAC_PWRDN_6K,8,3        ; @AD5791_DAC_PWRDN_6K
	.comm	_AD5791_DAC_PWRDN_3STATE,8,3    ; @AD5791_DAC_PWRDN_3STATE
	.comm	_AD5791_ADDR_CTRL,4,2           ; @AD5791_ADDR_CTRL
	.no_dead_strip	_ad5791_write_dac_powerdown
.subsections_via_symbols
