	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function al_free
_al_free:                               ## @al_free
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	36(%rdi), %r14
	movl	36(%rdi), %edi
	callq	_alSourceStop
	movl	$1, %edi
	movq	%r14, %rsi
	callq	_alDeleteSources
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.3:
	movl	32(%rbx), %edi
	callq	_alDeleteBuffers
	movq	24(%rbx), %rdi
	jmp	LBB0_4
LBB0_9:
	retq
LBB0_2:
	xorl	%edi, %edi
LBB0_4:
	callq	_free
	movq	16(%rbx), %rdi
	callq	_free
	xorl	%edi, %edi
	callq	_alcMakeContextCurrent
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_alcDestroyContext
LBB0_6:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_alcCloseDevice
LBB0_8:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_al_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function al_free
_al_free:                               ; @al_free
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_3
; %bb.1:
	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
	.cfi_remember_state
	mov	x19, x0
	mov	x20, x0
	ldr	w0, [x20, #36]!
	bl	_alSourceStop
	mov	w0, #1
	mov	x1, x20
	bl	_alDeleteSources
	ldur	x1, [x20, #-12]
	cbz	x1, LBB0_4
; %bb.2:
	ldr	w0, [x19, #32]
	bl	_alDeleteBuffers
	ldr	x0, [x19, #24]
	b	LBB0_5
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
LBB0_4:
	.cfi_restore_state
	mov	x0, #0
LBB0_5:
	bl	_free
	ldr	x0, [x19, #16]
	bl	_free
	mov	x0, #0
	bl	_alcMakeContextCurrent
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.6:
	bl	_alcDestroyContext
LBB0_7:
	ldr	x0, [x19]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_alcCloseDevice
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_al_free
.subsections_via_symbols
