	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audioplay_play_buffer          ## -- Begin function audioplay_play_buffer
	.p2align	4, 0x90
_audioplay_play_buffer:                 ## @audioplay_play_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%edx, %eax
	cltd
	idivl	(%rdi)
	movl	$-1, %r14d
	testl	%edx, %edx
	jne	LBB0_11
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, %r15
	addq	$8, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_sem_wait
	movq	16(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.2:
	xorl	%r14d, %r14d
	cmpq	%r13, 24(%rbx)
	je	LBB0_3
## %bb.4:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rax
	cmpl	%r12d, (%rbx)
	jge	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rcx
	cmpq	%r13, 24(%rbx)
	jne	LBB0_6
	jmp	LBB0_8
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_sem_post
	movl	$-1, %r14d
	jmp	LBB0_11
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movq	%rax, %rbx
	movq	%rcx, %rax
LBB0_8:
	leaq	16(%r15), %rcx
	leaq	16(%rax), %rdx
	testq	%rax, %rax
	movq	16(%rbx), %rax
	cmoveq	%rcx, %rdx
	movq	%rax, (%rdx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_sem_post
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movl	%r12d, 4(%rbx)
	movl	4(%r15), %edi
	callq	_ILC_GET_HANDLE
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_OMX_EmptyThisBuffer
	movq	_OMX_ErrorNone@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OMX_ErrorNone,8,3              ## @OMX_ErrorNone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_audioplay_play_buffer          ; -- Begin function audioplay_play_buffer
	.p2align	2
_audioplay_play_buffer:                 ; @audioplay_play_buffer
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0]
	sdiv	w9, w2, w8
	msub	w8, w9, w8, w2
	cbnz	w8, LBB0_8
; %bb.1:
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
	add	x21, x0, #8
	mov	x0, x21
	bl	_sem_wait
	mov	x8, x20
	ldr	x22, [x8, #16]!
	cbz	x22, LBB0_7
; %bb.2:
	ldr	x9, [x22, #24]
	cmp	x9, x23
	b.eq	LBB0_10
; %bb.3:
	mov	x0, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x22
	ldr	w10, [x22]
	cmp	w10, w19
	b.ge	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x9, #16]
	cbz	x22, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x22, #24]
	mov	x0, x9
	cmp	x10, x23
	b.ne	LBB0_4
	b	LBB0_12
LBB0_7:
	mov	x0, x21
	bl	_sem_post
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x9, #0
	b	LBB0_12
LBB0_11:
	mov	x22, x9
	mov	x9, x0
LBB0_12:
	ldr	x10, [x22, #16]
	add	x11, x9, #16
	cmp	x9, #0
	csel	x8, x8, x11, eq
	str	x10, [x8]
	mov	x0, x21
	bl	_sem_post
	stp	xzr, xzr, [x22, #8]
	str	w19, [x22, #4]
	ldr	w0, [x20, #4]
	bl	_ILC_GET_HANDLE
	mov	x1, x22
	bl	_OMX_EmptyThisBuffer
Lloh0:
	adrp	x8, _OMX_ErrorNone@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OMX_ErrorNone@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_OMX_ErrorNone,8,3              ; @OMX_ErrorNone
.subsections_via_symbols
