	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_dma_program                ## -- Begin function snd_dma_program
	.p2align	4, 0x90
_snd_dma_program:                       ## @snd_dma_program
	.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	%ecx, %r14d
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_claim_dma_lock
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_disable_dma
	movq	%rbx, %rdi
	callq	_clear_dma_ff
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_set_dma_mode
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_set_dma_addr
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_set_dma_count
	movq	_DMA_MODE_NO_ENABLE@GOTPCREL(%rip), %rax
	testw	%r14w, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_enable_dma
LBB0_2:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_release_dma_lock               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_MODE_NO_ENABLE,2,1         ## @DMA_MODE_NO_ENABLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_dma_program                ; -- Begin function snd_dma_program
	.p2align	2
_snd_dma_program:                       ; @snd_dma_program
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	bl	_claim_dma_lock
	mov	x19, x0
	mov	x0, x20
	bl	_disable_dma
	mov	x0, x20
	bl	_clear_dma_ff
	mov	x0, x20
	mov	x1, x21
	bl	_set_dma_mode
	mov	x0, x20
	mov	x1, x23
	bl	_set_dma_addr
	mov	x0, x20
	mov	x1, x22
	bl	_set_dma_count
Lloh0:
	adrp	x8, _DMA_MODE_NO_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_MODE_NO_ENABLE@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w21
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_enable_dma
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_release_dma_lock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_MODE_NO_ENABLE,2,1         ; @DMA_MODE_NO_ENABLE
.subsections_via_symbols
