	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_abdac_trigger
_atmel_abdac_trigger:                   ## @atmel_abdac_trigger
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	callq	_snd_pcm_substream_chip
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movl	$28, %eax
	btl	%ebx, %eax
	jae	LBB0_4
## %bb.2:
	movl	(%r14), %edi
	callq	_clk_enable
	movl	4(%r14), %edi
	callq	_dw_dma_cyclic_start
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DAC_BIT
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_dac_writel
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_4:
	movl	4(%r14), %edi
	callq	_dw_dma_cyclic_stop
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_dac_writel
	movq	_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_dac_writel
	movl	(%r14), %edi
	callq	_clk_disable
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTRL,4,2                       ## @CTRL
	.comm	_EN,4,2                         ## @EN
	.comm	_DATA,4,2                       ## @DATA
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_atmel_abdac_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_abdac_trigger
_atmel_abdac_trigger:                   ; @atmel_abdac_trigger
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_snd_pcm_substream_chip
	sub	w8, w20, #128
	cmp	w8, #5
	b.hi	LBB0_5
; %bb.1:
	mov	x19, x0
	mov	w9, #1
	lsl	w8, w9, w8
	tst	w8, #0x1c
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x19]
	bl	_clk_enable
	ldr	w0, [x19, #4]
	bl	_dw_dma_cyclic_start
	cbnz	w0, LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_DAC_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_dac_writel
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	ldr	w0, [x19, #4]
	bl	_dw_dma_cyclic_stop
Lloh6:
	adrp	x8, _DATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_dac_writel
Lloh9:
	adrp	x8, _CTRL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CTRL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_dac_writel
	ldr	w0, [x19]
	bl	_clk_disable
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CTRL,4,2                       ; @CTRL
	.comm	_EN,4,2                         ; @EN
	.comm	_DATA,4,2                       ; @DATA
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_atmel_abdac_trigger
.subsections_via_symbols
