	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_dac_set_enable_state
_stm32_dac_set_enable_state:            ## @stm32_dac_set_enable_state
	.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
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_iio_priv
	movq	%rax, %r12
	movl	%ebx, %edi
	callq	_STM32_DAC_IS_CHAN_1
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_STM32_DAC_CR_EN2@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_STM32_DAC_CR_EN1@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rdx
	xorl	%r15d, %r15d
	testl	%r13d, %r13d
	movl	$0, %ebx
	cmovneq	%rdx, %rbx
	movq	(%r12), %rax
	movl	8(%rax), %edi
	movq	_STM32_DAC_CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rcx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.6:
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movl	$1, %edi
	callq	_udelay
	jmp	LBB0_8
LBB0_4:
	movl	%eax, %r13d
	testq	%rbx, %rbx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movl	%r13d, %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STM32_DAC_CR_EN1,8,3           ## @STM32_DAC_CR_EN1
	.comm	_STM32_DAC_CR_EN2,8,3           ## @STM32_DAC_CR_EN2
	.comm	_STM32_DAC_CR,4,2               ## @STM32_DAC_CR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"Enable"

L_.str.2:                               ## @.str.2
	.asciz	"Disable"

	.no_dead_strip	_stm32_dac_set_enable_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_dac_set_enable_state
_stm32_dac_set_enable_state:            ; @stm32_dac_set_enable_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_iio_priv
	mov	x20, x0
	mov	x0, x22
	bl	_STM32_DAC_IS_CHAN_1
Lloh0:
	adrp	x8, _STM32_DAC_CR_EN1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STM32_DAC_CR_EN1@GOTPAGEOFF]
Lloh2:
	adrp	x9, _STM32_DAC_CR_EN2@GOTPAGE
Lloh3:
	ldr	x9, [x9, _STM32_DAC_CR_EN2@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	x2, [x8]
	cmp	w21, #0
	csel	x22, xzr, x2, eq
	ldr	x8, [x20]
	ldr	w0, [x8, #8]
Lloh4:
	adrp	x8, _STM32_DAC_CR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _STM32_DAC_CR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x3, x22
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_5
; %bb.1:
	cbz	x22, LBB0_4
; %bb.2:
	ldr	x8, [x20]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	w0, #1
	bl	_udelay
LBB0_4:
	mov	w21, #0
	b	LBB0_6
LBB0_5:
	mov	x21, x0
Lloh7:
	adrp	x8, l_.str.1@PAGE
Lloh8:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh9:
	adrp	x9, l_.str.2@PAGE
Lloh10:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x22, #0
	csel	x2, x9, x8, eq
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STM32_DAC_CR_EN1,8,3           ; @STM32_DAC_CR_EN1
	.comm	_STM32_DAC_CR_EN2,8,3           ; @STM32_DAC_CR_EN2
	.comm	_STM32_DAC_CR,4,2               ; @STM32_DAC_CR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"Enable"

l_.str.2:                               ; @.str.2
	.asciz	"Disable"

	.no_dead_strip	_stm32_dac_set_enable_state
.subsections_via_symbols
