	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SNDDMA_Activate                ## -- Begin function SNDDMA_Activate
	.p2align	4, 0x90
_SNDDMA_Activate:                       ## @SNDDMA_Activate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_pDS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_DS_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rdi), %rax
	movq	_g_wv@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DSSCL_PRIORITY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	callq	*(%rax)
	cmpq	%rax, %rbx
	jne	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_Com_Printf
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_SNDDMA_Shutdown                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pDS,8,3                        ## @pDS
	.comm	_DS_OK,8,3                      ## @DS_OK
	.comm	_g_wv,4,2                       ## @g_wv
	.comm	_DSSCL_PRIORITY,4,2             ## @DSSCL_PRIORITY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sound SetCooperativeLevel failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SNDDMA_Activate                ; -- Begin function SNDDMA_Activate
	.p2align	2
_SNDDMA_Activate:                       ; @SNDDMA_Activate
	.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, _pDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pDS@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _DS_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DS_OK@GOTPAGEOFF]
Lloh5:
	ldr	x19, [x8]
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _g_wv@GOTPAGE
Lloh7:
	ldr	x9, [x9, _g_wv@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
Lloh9:
	adrp	x9, _DSSCL_PRIORITY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DSSCL_PRIORITY@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x9]
	blr	x8
	cmp	x19, x0
	b.ne	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:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_Printf
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_SNDDMA_Shutdown
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_pDS,8,3                        ; @pDS
	.comm	_DS_OK,8,3                      ; @DS_OK
	.comm	_g_wv,4,2                       ; @g_wv
	.comm	_DSSCL_PRIORITY,4,2             ; @DSSCL_PRIORITY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sound SetCooperativeLevel failed\n"

.subsections_via_symbols
