	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs4231_dma_trigger
_cs4231_dma_trigger:                    ## @cs4231_dma_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	%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, %r12d
	movl	%esi, %r15d
	callq	_snd_pcm_substream_chip
	movq	%rax, %rbx
	movq	%rax, %r14
	movq	_CS4231_PLAYBACK_ENABLE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_3
## %bb.1:
	leaq	32(%rbx), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.2:
	callq	*40(%r14)
	movq	%r13, %rdi
	movl	$1, %esi
	callq	*32(%r14)
	movl	28(%r14), %esi
	leaq	24(%rbx), %rdx
	movq	%r13, %rdi
	callq	_snd_cs4231_advance_dma
LBB0_3:
	movq	_CS4231_RECORD_ENABLE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_9
## %bb.4:
	addq	$8, %rbx
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*16(%r14)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*8(%r14)
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_cs4231_advance_dma         ## TAILCALL
LBB0_6:
	callq	*(%r13)
	movq	_CS4231_RECORD_ENABLE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_9
## %bb.7:
	addq	$8, %rbx
LBB0_8:
	movq	8(%r14), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CS4231_PLAYBACK_ENABLE,4,2     ## @CS4231_PLAYBACK_ENABLE
	.comm	_CS4231_RECORD_ENABLE,4,2       ## @CS4231_RECORD_ENABLE
	.no_dead_strip	_cs4231_dma_trigger
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs4231_dma_trigger
_cs4231_dma_trigger:                    ; @cs4231_dma_trigger
	.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	x20, x1
	bl	_snd_pcm_substream_chip
	mov	x19, x0
Lloh0:
	adrp	x8, _CS4231_PLAYBACK_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CS4231_PLAYBACK_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.1:
	add	x22, x19, #32
	cbz	w21, LBB0_6
; %bb.2:
	ldr	x8, [x19, #40]
	mov	x0, x22
	mov	w1, #0
	blr	x8
	ldr	x8, [x19, #32]
	mov	x0, x22
	mov	w1, #1
	blr	x8
	ldr	w1, [x19, #28]
	add	x2, x19, #24
	mov	x0, x22
	bl	_snd_cs4231_advance_dma
LBB0_3:
Lloh3:
	adrp	x8, _CS4231_RECORD_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CS4231_RECORD_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.4:
	add	x20, x19, #8
	cbz	w21, LBB0_8
; %bb.5:
	ldr	x8, [x19, #16]
	mov	x0, x20
	mov	w1, #1
	blr	x8
	ldr	x8, [x19, #8]
	mov	x0, x20
	mov	w1, #1
	blr	x8
	ldr	w1, [x19, #4]
	mov	x0, x20
	mov	x2, x19
	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
	b	_snd_cs4231_advance_dma
LBB0_6:
	ldr	x8, [x22]
	mov	x0, x22
	mov	w1, #0
	blr	x8
Lloh6:
	adrp	x8, _CS4231_RECORD_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CS4231_RECORD_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.7:
	add	x20, x19, #8
LBB0_8:
	ldr	x2, [x19, #8]
	mov	x0, x20
	mov	w1, #0
	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
	br	x2
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CS4231_PLAYBACK_ENABLE,4,2     ; @CS4231_PLAYBACK_ENABLE
	.comm	_CS4231_RECORD_ENABLE,4,2       ; @CS4231_RECORD_ENABLE
	.no_dead_strip	_cs4231_dma_trigger
.subsections_via_symbols
