	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SNDDMA_Shutdown                ## -- Begin function SNDDMA_Shutdown
	.p2align	4, 0x90
_SNDDMA_Shutdown:                       ## @SNDDMA_Shutdown
	.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	_sdlPlaybackDevice@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_Com_Printf
	movq	(%rbx), %rdi
	callq	_SDL_CloseAudioDevice
	leaq	L_.str.1(%rip), %rdi
	callq	_Com_Printf
	movq	$0, (%rbx)
LBB0_2:
	movq	_SDL_INIT_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SDL_QuitSubSystem
	movq	_dma@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_free
	movq	$0, (%rbx)
	movq	_dmasize@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_dmapos@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_qfalse@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_snd_inited@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str.2(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_Com_Printf                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_sdlPlaybackDevice,8,3          ## @sdlPlaybackDevice
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Closing SDL audio playback device...\n"

L_.str.1:                               ## @.str.1
	.asciz	"SDL audio playback device closed.\n"

	.comm	_SDL_INIT_AUDIO,4,2             ## @SDL_INIT_AUDIO
	.comm	_dma,8,3                        ## @dma
	.comm	_dmasize,8,3                    ## @dmasize
	.comm	_dmapos,8,3                     ## @dmapos
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_snd_inited,4,2                 ## @snd_inited
L_.str.2:                               ## @.str.2
	.asciz	"SDL audio shut down.\n"

	.comm	_sdlCaptureDevice,8,3           ## @sdlCaptureDevice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SNDDMA_Shutdown                ; -- Begin function SNDDMA_Shutdown
	.p2align	2
_SNDDMA_Shutdown:                       ; @SNDDMA_Shutdown
	.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	x19, _sdlPlaybackDevice@GOTPAGE
Lloh1:
	ldr	x19, [x19, _sdlPlaybackDevice@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_Printf
	ldr	x0, [x19]
	bl	_SDL_CloseAudioDevice
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_Com_Printf
	str	xzr, [x19]
LBB0_2:
Lloh6:
	adrp	x8, _SDL_INIT_AUDIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SDL_INIT_AUDIO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_SDL_QuitSubSystem
Lloh9:
	adrp	x19, _dma@GOTPAGE
Lloh10:
	ldr	x19, [x19, _dma@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_free
	str	xzr, [x19]
Lloh11:
	adrp	x8, _dmasize@GOTPAGE
Lloh12:
	ldr	x8, [x8, _dmasize@GOTPAGEOFF]
Lloh13:
	str	xzr, [x8]
Lloh14:
	adrp	x8, _dmapos@GOTPAGE
Lloh15:
	ldr	x8, [x8, _dmapos@GOTPAGEOFF]
Lloh16:
	str	xzr, [x8]
Lloh17:
	adrp	x8, _qfalse@GOTPAGE
Lloh18:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _snd_inited@GOTPAGE
Lloh21:
	ldr	x9, [x9, _snd_inited@GOTPAGEOFF]
Lloh22:
	str	w8, [x9]
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_Com_Printf
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_sdlPlaybackDevice,8,3          ; @sdlPlaybackDevice
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Closing SDL audio playback device...\n"

l_.str.1:                               ; @.str.1
	.asciz	"SDL audio playback device closed.\n"

	.comm	_SDL_INIT_AUDIO,4,2             ; @SDL_INIT_AUDIO
	.comm	_dma,8,3                        ; @dma
	.comm	_dmasize,8,3                    ; @dmasize
	.comm	_dmapos,8,3                     ; @dmapos
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_snd_inited,4,2                 ; @snd_inited
l_.str.2:                               ; @.str.2
	.asciz	"SDL audio shut down.\n"

	.comm	_sdlCaptureDevice,8,3           ; @sdlCaptureDevice
.subsections_via_symbols
