	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function al_get_buffer
_al_get_buffer:                         ## @al_get_buffer
	.cfi_startproc
## %bb.0:
	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	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	jne	LBB0_5
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 16(%rbx)
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_retro_sleep
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_al_unqueue_buffers
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	leaq	-1(%rax), %rdx
	movq	%rdx, (%rbx)
	movl	-4(%rcx,%rax,4), %eax
	movl	%eax, (%r14)
	movl	$1, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_al_get_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function al_get_buffer
_al_get_buffer:                         ; @al_get_buffer
	.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, x1
	mov	x20, x0
	ldr	x8, [x0]
	cbnz	x8, LBB0_4
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	bl	_retro_sleep
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_al_unqueue_buffers
	cbz	x0, LBB0_1
LBB0_4:
	ldp	x9, x8, [x20]
	sub	x9, x9, #1
	str	x9, [x20]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x19]
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w0, #0
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_al_get_buffer
.subsections_via_symbols
