	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_play_buf
_copy_play_buf:                         ## @copy_play_buf
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	24(%rdi), %rax
	movq	(%rax), %r14
	movq	(%r14), %r15
	movq	24(%r14), %rax
	movq	24(%rsi), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %r8
	movl	(%rdi), %r13d
	movl	(%rsi), %ebx
	movq	(%rax), %rax
	movq	_SNDRV_PCM_STATE_DRAINING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	jne	LBB0_1
## %bb.2:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	%r14, %rdi
	callq	_snd_pcm_playback_hw_avail
	movq	8(%r14), %rsi
	cmpq	%rsi, %rax
	jge	LBB0_3
## %bb.4:
	movq	16(%r14), %rax
	movl	(%rax), %r10d
	movq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_5
## %bb.6:
	movq	%r10, %rax
	xorl	%edx, %edx
	idivq	%rsi
	jmp	LBB0_7
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_9
LBB0_3:
	movq	%r15, %rdi
	jmp	LBB0_8
LBB0_5:
	movl	%r10d, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_7:
	movq	%r15, %rdi
	movl	%r10d, %ecx
	subl	%edx, %ecx
	movl	(%r15), %eax
	movl	4(%r15), %r8d
	xorl	%r9d, %r9d
	xorl	%edx, %edx
	divl	%r8d
	addl	%ecx, %eax
	subl	%eax, %r10d
	cmovael	%r9d, %esi
	leal	(%r10,%rsi), %eax
	imull	%r8d, %eax
	movl	%r12d, %ecx
	subl	%eax, %ecx
	cmovbl	%r9d, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmovbel	%r12d, %eax
	movl	%eax, %r12d
LBB0_8:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
LBB0_9:
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	8(%rdi), %eax
	leal	(%r12,%r13), %ecx
	movl	%eax, %edx
	subl	%r13d, %edx
	cmpl	%eax, %ecx
	cmovbel	%r12d, %edx
	movl	8(%rsi), %eax
	leal	(%rdx,%rbx), %ecx
	movl	%eax, %r14d
	subl	%ebx, %r14d
	cmpl	%eax, %ecx
	cmovbel	%edx, %r14d
	leaq	(%r8,%rbx), %rdi
	leaq	(%r15,%r13), %rsi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edx
	callq	_memcpy
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	$0, 16(%rdi)
	subl	%r14d, %r12d
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	addl	%r14d, %r13d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %ecx
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
	addl	%r14d, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	movl	%edx, %r13d
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%esi
	leal	(%r12,%r13), %eax
	movl	%ecx, %edi
	subl	%r13d, %edi
	cmpl	%ecx, %eax
	cmovbel	%r12d, %edi
	movl	%edx, %ebx
	leal	(%rdi,%rbx), %eax
	movl	%esi, %r14d
	subl	%edx, %r14d
	cmpl	%esi, %eax
	cmovbel	%edi, %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax), %rdi
	movq	%r13, %rsi
	addq	%r15, %rsi
	jmp	LBB0_11
LBB0_12:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	testl	%esi, %esi
	je	LBB0_14
## %bb.13:
	movq	%rdi, %rbx
	callq	_clear_capture_buf
	movq	$0, 16(%rbx)
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_PCM_STATE_DRAINING,8,3   ## @SNDRV_PCM_STATE_DRAINING
	.no_dead_strip	_copy_play_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_play_buf
_copy_play_buf:                         ; @copy_play_buf
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldr	x21, [x8]
	ldr	x24, [x21]
	ldr	x8, [x1, #24]
	ldr	x8, [x8]
	ldr	x25, [x8]
	ldr	w26, [x0]
	ldr	w27, [x1]
	ldr	x8, [x21, #24]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _SNDRV_PCM_STATE_DRAINING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SNDRV_PCM_STATE_DRAINING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_snd_pcm_playback_hw_avail
	ldr	x8, [x21, #8]
	cmp	x0, x8
	b.ge	LBB0_3
; %bb.2:
	ldr	x9, [x21, #16]
	ldr	w9, [x9]
	sdiv	x10, x9, x8
	ldp	w11, w12, [x20]
	udiv	w11, w11, w12
	madd	w10, w10, w8, w11
	subs	w9, w9, w10
	csel	w8, w8, wzr, lo
	add	w8, w9, w8
	mul	w8, w8, w12
	subs	w9, w22, w8
	csel	w21, wzr, w9, lo
	cmp	w8, w22
	csel	w22, w8, w22, lo
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
	ldr	w8, [x20, #8]
	ldr	w9, [x19, #8]
	sub	w10, w8, w26
	add	w11, w22, w26
	cmp	w11, w8
	csel	w8, w10, w22, hi
	sub	w10, w9, w27
	add	w11, w8, w27
	cmp	w11, w9
	csel	w23, w10, w8, hi
	add	x0, x25, x27
	add	x1, x24, x26
	mov	x2, x23
	bl	_memcpy
	str	xzr, [x19, #16]
	subs	w22, w22, w23
	b.eq	LBB0_7
; %bb.5:
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w23, w26
	ldr	w9, [x20, #8]
	udiv	w10, w8, w9
	msub	w26, w10, w9, w8
	add	w8, w23, w27
	ldr	w10, [x19, #8]
	udiv	w11, w8, w10
	msub	w27, w11, w10, w8
	sub	w8, w9, w26
	add	w11, w22, w26
	cmp	w11, w9
	csel	w8, w8, w22, hi
	sub	w9, w10, w27
	add	w11, w8, w27
	cmp	w11, w10
	csel	w23, w9, w8, hi
	add	x0, x25, x27
	add	x1, x24, x26
	mov	x2, x23
	bl	_memcpy
	str	xzr, [x19, #16]
	subs	w22, w22, w23
	b.ne	LBB0_6
LBB0_7:
	cbz	w21, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x21
	bl	_clear_capture_buf
	str	xzr, [x19, #16]
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_PCM_STATE_DRAINING,8,3   ; @SNDRV_PCM_STATE_DRAINING
	.no_dead_strip	_copy_play_buf
.subsections_via_symbols
