	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5758_write_powerdown
_ad5758_write_powerdown:                ## @ad5758_write_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %rbx
	callq	_iio_priv
	movq	%rax, %r15
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_kstrtobool
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	%r15, %r12
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	xorl	%ebx, %ebx
	cmpl	$0, -44(%rbp)
	sete	%bl
	movl	%ebx, %edi
	callq	_AD5758_DAC_CONFIG_OUT_EN_MODE
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_AD5758_DAC_CONFIG_INT_EN_MODE
	orl	%eax, %r13d
	movq	_AD5758_DAC_CONFIG_OUT_EN_MSK@GOTPCREL(%rip), %rax
	movq	_AD5758_DAC_CONFIG_INT_EN_MSK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	orq	(%rax), %rdx
	movq	_AD5758_DAC_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r13d, %ecx
	callq	_ad5758_spi_write_mask
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movl	-44(%rbp), %eax
	movl	%eax, (%r15)
LBB0_3:
	movq	%r12, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	cmovnel	%ebx, %r14d
	movl	%r14d, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD5758_DAC_CONFIG_OUT_EN_MSK,8,3 ## @AD5758_DAC_CONFIG_OUT_EN_MSK
	.comm	_AD5758_DAC_CONFIG_INT_EN_MSK,8,3 ## @AD5758_DAC_CONFIG_INT_EN_MSK
	.comm	_AD5758_DAC_CONFIG,4,2          ## @AD5758_DAC_CONFIG
	.no_dead_strip	_ad5758_write_powerdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5758_write_powerdown
_ad5758_write_powerdown:                ; @ad5758_write_powerdown
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x4
	mov	x21, x3
	bl	_iio_priv
	mov	x20, x0
	add	x1, sp, #12
	mov	x0, x21
	bl	_kstrtobool
	cbnz	w0, LBB0_4
; %bb.1:
	add	x21, x20, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cset	w22, eq
	mov	x0, x22
	bl	_AD5758_DAC_CONFIG_OUT_EN_MODE
	mov	x23, x0
	mov	x0, x22
	bl	_AD5758_DAC_CONFIG_INT_EN_MODE
	orr	w3, w0, w23
Lloh0:
	adrp	x8, _AD5758_DAC_CONFIG_OUT_EN_MSK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AD5758_DAC_CONFIG_OUT_EN_MSK@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AD5758_DAC_CONFIG_INT_EN_MSK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AD5758_DAC_CONFIG_INT_EN_MSK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	ldr	x9, [x9]
	orr	x2, x9, x8
Lloh6:
	adrp	x8, _AD5758_DAC_CONFIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AD5758_DAC_CONFIG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ad5758_spi_write_mask
	mov	x22, x0
	tbnz	w0, #31, LBB0_3
; %bb.2:
	ldr	w8, [sp, #12]
	str	w8, [x20]
LBB0_3:
	mov	x0, x21
	bl	_mutex_unlock
	cmp	w22, #0
	csel	w0, w19, w22, eq
LBB0_4:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AD5758_DAC_CONFIG_OUT_EN_MSK,8,3 ; @AD5758_DAC_CONFIG_OUT_EN_MSK
	.comm	_AD5758_DAC_CONFIG_INT_EN_MSK,8,3 ; @AD5758_DAC_CONFIG_INT_EN_MSK
	.comm	_AD5758_DAC_CONFIG,4,2          ; @AD5758_DAC_CONFIG
	.no_dead_strip	_ad5758_write_powerdown
.subsections_via_symbols
