	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aout_close_audio
_aout_close_audio:                      ## @aout_close_audio
	.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	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_SDLTRACE
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.1:
	movl	48(%rbx), %edi
	callq	_SDL_LockMutex
	movl	$1, (%rbx)
	movl	52(%rbx), %edi
	callq	_SDL_CondSignal
	movl	48(%rbx), %edi
	callq	_SDL_UnlockMutex
	movq	40(%rbx), %rdi
	xorl	%esi, %esi
	callq	_SDL_WaitThread
	movq	$0, 40(%rbx)
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	movq	(%rdi), %rax
	movq	_SL_PLAYSTATE_STOPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	callq	*(%rax)
LBB0_3:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	movq	(%rdi), %rax
	callq	*(%rax)
	cmpq	$0, 32(%rbx)
	je	LBB0_6
## %bb.5:
	movq	$0, 32(%rbx)
LBB0_6:
	cmpq	$0, 24(%rbx)
	je	LBB0_8
## %bb.7:
	movq	$0, 24(%rbx)
LBB0_8:
	cmpq	$0, 16(%rbx)
	je	LBB0_10
## %bb.9:
	movq	$0, 16(%rbx)
LBB0_10:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:
	movq	(%rdi), %rax
	callq	*(%rax)
	movq	$0, 8(%rbx)
LBB0_12:
	addq	$4, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_freep                          ## TAILCALL
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aout_close_audio()\n"

	.comm	_SL_PLAYSTATE_STOPPED,4,2       ## @SL_PLAYSTATE_STOPPED
	.no_dead_strip	_aout_close_audio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aout_close_audio
_aout_close_audio:                      ; @aout_close_audio
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_SDLTRACE
	ldr	x19, [x19]
	cbz	x19, LBB0_13
; %bb.1:
	ldr	w0, [x19, #48]
	bl	_SDL_LockMutex
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x19, #52]
	bl	_SDL_CondSignal
	ldr	w0, [x19, #48]
	bl	_SDL_UnlockMutex
	ldr	x0, [x19, #40]
	mov	x1, #0
	bl	_SDL_WaitThread
	str	xzr, [x19, #40]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _SL_PLAYSTATE_STOPPED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SL_PLAYSTATE_STOPPED@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	blr	x8
LBB0_3:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_6
; %bb.4:
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.5:
	str	xzr, [x19, #32]
LBB0_6:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_8
; %bb.7:
	str	xzr, [x19, #24]
LBB0_8:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_10
; %bb.9:
	str	xzr, [x19, #16]
LBB0_10:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	str	xzr, [x19, #8]
LBB0_12:
	add	x0, x19, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_freep
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aout_close_audio()\n"

	.comm	_SL_PLAYSTATE_STOPPED,4,2       ; @SL_PLAYSTATE_STOPPED
	.no_dead_strip	_aout_close_audio
.subsections_via_symbols
