	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DMAbuf_launch_output           ## -- Begin function DMAbuf_launch_output
	.p2align	4, 0x90
_DMAbuf_launch_output:                  ## @DMAbuf_launch_output
	.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
	movq	_audio_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %r15
	movl	4(%r15), %eax
	imull	(%r15), %eax
	movq	_PCM_ENABLE_OUTPUT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_14
## %bb.1:
	movl	%edi, %r14d
	movq	%rsi, %r13
	movq	_DMODE_OUTPUT@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rax
	movq	%rax, 32(%rsi)
	movl	(%rsi), %eax
	movq	_DMA_ACTIVE@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.2:
	movq	_DMA_AUTOMODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%r15)
	je	LBB0_4
## %bb.3:
	movq	_DMA_NODMA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
LBB0_4:
	movq	_DMA_STARTED@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_5
LBB0_9:
	movq	8(%r13), %rax
	movq	16(%r13), %rsi
	movl	(%rax,%rsi,4), %edx
	testl	%edx, %edx
	jne	LBB0_11
## %bb.10:
	movl	4(%r13), %edx
	movl	%edx, (%rax,%rsi,4)
LBB0_11:
	movq	(%rdi), %rax
	movq	%rax, 32(%r13)
	movq	16(%r15), %rax
	movslq	4(%r13), %rcx
	imulq	%rcx, %rsi
	addq	24(%r13), %rsi
	movl	%r14d, %edi
	movl	$1, %ecx
	callq	*8(%rax)
	movq	16(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	movq	_DMA_ACTIVE@GOTPCREL(%rip), %rbx
	je	LBB0_13
## %bb.12:
	movl	4(%r15), %esi
	imull	(%r15), %esi
	movl	%r14d, %edi
	callq	*%rax
LBB0_13:
	movl	(%rbx), %eax
	orl	%eax, (%r13)
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rdi, %rbx
	movl	%r14d, %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_reorganize_buffers
	movq	16(%r15), %rax
	movl	4(%r13), %esi
	movl	44(%r13), %edx
	movl	%r14d, %edi
	callq	*16(%rax)
	testq	%rax, %rax
	jne	LBB0_14
## %bb.6:
	movl	(%r13), %eax
	movq	_DMA_NODMA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_8
## %bb.7:
	movq	24(%r13), %rsi
	movl	40(%r13), %edx
	movq	_DMA_MODE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	callq	_local_start_dma
	movl	(%r13), %eax
LBB0_8:
	orl	(%r12), %eax
	movl	%eax, (%r13)
	movq	%rbx, %rdi
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_devs,8,3                 ## @audio_devs
	.comm	_PCM_ENABLE_OUTPUT,4,2          ## @PCM_ENABLE_OUTPUT
	.comm	_DMODE_OUTPUT,8,3               ## @DMODE_OUTPUT
	.comm	_DMA_ACTIVE,4,2                 ## @DMA_ACTIVE
	.comm	_DMA_AUTOMODE,4,2               ## @DMA_AUTOMODE
	.comm	_DMA_NODMA,4,2                  ## @DMA_NODMA
	.comm	_DMA_STARTED,4,2                ## @DMA_STARTED
	.comm	_DMA_MODE_WRITE,4,2             ## @DMA_MODE_WRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DMAbuf_launch_output           ; -- Begin function DMAbuf_launch_output
	.p2align	2
_DMAbuf_launch_output:                  ; @DMAbuf_launch_output
	.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
Lloh0:
	adrp	x8, _audio_devs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _audio_devs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x21, [x8, w0, sxtw #3]
	ldp	w8, w9, [x21]
	mul	w8, w9, w8
Lloh3:
	adrp	x9, _PCM_ENABLE_OUTPUT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCM_ENABLE_OUTPUT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_10
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh6:
	adrp	x23, _DMODE_OUTPUT@GOTPAGE
Lloh7:
	ldr	x23, [x23, _DMODE_OUTPUT@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [x1, #32]
	ldr	w8, [x1]
Lloh8:
	adrp	x22, _DMA_ACTIVE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _DMA_ACTIVE@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w9, [x21, #8]
Lloh10:
	adrp	x10, _DMA_AUTOMODE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _DMA_AUTOMODE@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
Lloh13:
	adrp	x9, _DMA_NODMA@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DMA_NODMA@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_4:
Lloh16:
	adrp	x24, _DMA_STARTED@GOTPAGE
Lloh17:
	ldr	x24, [x24, _DMA_STARTED@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_5:
	ldp	x9, x8, [x19, #8]
	ldr	w2, [x9, x8, lsl #2]
	cbnz	w2, LBB0_7
; %bb.6:
	ldr	w2, [x19, #4]
	str	w2, [x9, x8, lsl #2]
LBB0_7:
	ldr	x9, [x23]
	str	x9, [x19, #32]
	ldr	x9, [x21, #16]
	ldr	x9, [x9, #8]
	ldr	x10, [x19, #24]
	ldrsw	x11, [x19, #4]
	madd	x1, x8, x11, x10
	mov	x0, x20
	mov	w3, #1
	blr	x9
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	ldp	w9, w10, [x21]
	mul	w1, w10, w9
	mov	x0, x20
	blr	x8
LBB0_9:
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_10:
	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
	ret
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_reorganize_buffers
	ldr	x8, [x21, #16]
	ldr	x8, [x8, #16]
	ldr	w1, [x19, #4]
	ldr	w2, [x19, #44]
	mov	x0, x20
	blr	x8
	cbnz	x0, LBB0_10
; %bb.12:
	ldr	w8, [x19]
Lloh18:
	adrp	x9, _DMA_NODMA@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DMA_NODMA@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.13:
	ldr	x1, [x19, #24]
	ldr	w2, [x19, #40]
Lloh21:
	adrp	x8, _DMA_MODE_WRITE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DMA_MODE_WRITE@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_local_start_dma
	ldr	w8, [x19]
LBB0_14:
	ldr	w9, [x24]
	orr	w8, w8, w9
	str	w8, [x19]
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_audio_devs,8,3                 ; @audio_devs
	.comm	_PCM_ENABLE_OUTPUT,4,2          ; @PCM_ENABLE_OUTPUT
	.comm	_DMODE_OUTPUT,8,3               ; @DMODE_OUTPUT
	.comm	_DMA_ACTIVE,4,2                 ; @DMA_ACTIVE
	.comm	_DMA_AUTOMODE,4,2               ; @DMA_AUTOMODE
	.comm	_DMA_NODMA,4,2                  ; @DMA_NODMA
	.comm	_DMA_STARTED,4,2                ; @DMA_STARTED
	.comm	_DMA_MODE_WRITE,4,2             ; @DMA_MODE_WRITE
.subsections_via_symbols
