	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidc_audio_trigger
_vidc_audio_trigger:                    ## @vidc_audio_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
	movq	_PCM_ENABLE_OUTPUT@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_audio_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	_DMA_ACTIVE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	callq	_local_irq_save
	movl	(%r14), %eax
	orl	%eax, (%rbx)
	movq	_vidc_audio_dma_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_dma_interrupt@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_vidc_sound_dma_irq
	movq	_DMA_CR_E@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	$16, %edi
	movq	_IOMD_SD0CR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_iomd_writeb
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_local_irq_restore              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_devs,8,3                 ## @audio_devs
	.comm	_PCM_ENABLE_OUTPUT,4,2          ## @PCM_ENABLE_OUTPUT
	.comm	_DMA_ACTIVE,4,2                 ## @DMA_ACTIVE
	.comm	_vidc_audio_dma_interrupt,4,2   ## @vidc_audio_dma_interrupt
	.comm	_dma_interrupt,4,2              ## @dma_interrupt
	.comm	_DMA_CR_E,4,2                   ## @DMA_CR_E
	.comm	_IOMD_SD0CR,4,2                 ## @IOMD_SD0CR
	.no_dead_strip	_vidc_audio_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidc_audio_trigger
_vidc_audio_trigger:                    ; @vidc_audio_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
Lloh0:
	adrp	x8, _PCM_ENABLE_OUTPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCM_ENABLE_OUTPUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _audio_devs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _audio_devs@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x19, [x8, w0, sxtw #3]
	ldr	w8, [x19]
Lloh6:
	adrp	x20, _DMA_ACTIVE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _DMA_ACTIVE@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	bl	_local_irq_save
	ldr	w8, [x20]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh8:
	adrp	x8, _vidc_audio_dma_interrupt@GOTPAGE
Lloh9:
	ldr	x8, [x8, _vidc_audio_dma_interrupt@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _dma_interrupt@GOTPAGE
Lloh12:
	ldr	x9, [x9, _dma_interrupt@GOTPAGEOFF]
Lloh13:
	str	w8, [x9]
	mov	w0, #0
	mov	x1, #0
	bl	_vidc_sound_dma_irq
Lloh14:
	adrp	x8, _DMA_CR_E@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DMA_CR_E@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w0, w8, #0x10
Lloh17:
	adrp	x8, _IOMD_SD0CR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IOMD_SD0CR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_iomd_writeb
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_local_irq_restore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_audio_devs,8,3                 ; @audio_devs
	.comm	_PCM_ENABLE_OUTPUT,4,2          ; @PCM_ENABLE_OUTPUT
	.comm	_DMA_ACTIVE,4,2                 ; @DMA_ACTIVE
	.comm	_vidc_audio_dma_interrupt,4,2   ; @vidc_audio_dma_interrupt
	.comm	_dma_interrupt,4,2              ; @dma_interrupt
	.comm	_DMA_CR_E,4,2                   ; @DMA_CR_E
	.comm	_IOMD_SD0CR,4,2                 ; @IOMD_SD0CR
	.no_dead_strip	_vidc_audio_trigger
.subsections_via_symbols
