	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_audio_data
_handle_audio_data:                     ## @handle_audio_data
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r14
	movq	16(%r14), %rax
	movq	(%rax), %r12
	movl	(%r12), %r13d
	sarl	$3, %r13d
	movl	(%rdi), %ecx
	movl	%ecx, %eax
	cltd
	idivl	%r13d
	movl	%eax, %r15d
	movq	8(%rdi), %rsi
	movl	(%r14), %edi
	movq	_AUDIO_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-4, %eax
	cmpl	%eax, %ecx
	jne	LBB0_2
## %bb.1:
	movq	_AUDIO_TRAILER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cltd
	idivl	%r13d
	subl	%eax, %r15d
LBB0_2:
	leal	(%r15,%rdi), %eax
	movl	4(%r12), %ebx
	cmpl	%ebx, %eax
	jae	LBB0_3
## %bb.4:
	imull	%r13d, %edi
	addq	16(%r12), %rdi
	imull	%r15d, %r13d
	jmp	LBB0_5
LBB0_3:
	subl	%edi, %ebx
	imull	%r13d, %edi
	addq	16(%r12), %rdi
	imull	%r13d, %ebx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edx
	callq	_memcpy
	movq	16(%r12), %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax), %rsi
	imull	%r15d, %r13d
	subl	%ebx, %r13d
LBB0_5:
	movl	%r13d, %edx
	callq	_memcpy
	movq	16(%r14), %rdi
	callq	_snd_pcm_stream_lock
	movl	(%r14), %eax
	addl	%r15d, %eax
	movl	%eax, (%r14)
	subl	4(%r12), %eax
	jb	LBB0_7
## %bb.6:
	movl	%eax, (%r14)
LBB0_7:
	movslq	%r15d, %rax
	addq	8(%r14), %rax
	movq	%rax, 8(%r14)
	subq	8(%r12), %rax
	jl	LBB0_9
## %bb.8:
	movq	%rax, 8(%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
LBB0_9:
	movq	16(%r14), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_pcm_stream_unlock          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AUDIO_BUF_SIZE,4,2             ## @AUDIO_BUF_SIZE
	.comm	_AUDIO_TRAILER_SIZE,4,2         ## @AUDIO_TRAILER_SIZE
	.no_dead_strip	_handle_audio_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_audio_data
_handle_audio_data:                     ; @handle_audio_data
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	ldp	x20, x22, [x0, #8]
	ldr	x8, [x22, #16]
	ldr	x23, [x8]
	ldr	w8, [x23]
	asr	w25, w8, #3
	ldr	w9, [x0]
	sdiv	w24, w9, w25
	ldr	w8, [x22]
Lloh0:
	adrp	x10, _AUDIO_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AUDIO_BUF_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	sub	w10, w10, #4
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _AUDIO_TRAILER_SIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AUDIO_TRAILER_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sdiv	w9, w9, w25
	sub	w24, w24, w9
LBB0_2:
	ldr	w9, [x23, #4]
	add	w10, w24, w8
	cmp	w10, w9
	b.hs	LBB0_4
; %bb.3:
	ldr	x9, [x23, #16]
	mul	w8, w8, w25
	add	x0, x9, x8
	mul	w2, w24, w25
	mov	x1, x20
	b	LBB0_5
LBB0_4:
	sub	w9, w9, w8
	ldr	x10, [x23, #16]
	mul	w8, w8, w25
	add	x0, x10, x8
	mul	w21, w9, w25
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	ldr	x0, [x23, #16]
	add	x1, x20, x21
	neg	w8, w21
	madd	w2, w24, w25, w8
LBB0_5:
	bl	_memcpy
	ldr	x0, [x22, #16]
	bl	_snd_pcm_stream_lock
	ldr	w8, [x22]
	ldr	w9, [x23, #4]
	add	w10, w8, w24
	subs	w8, w10, w9
	str	w10, [x22]
	b.lo	LBB0_7
; %bb.6:
	str	w8, [x22]
LBB0_7:
	ldr	x8, [x22, #8]
	add	x8, x8, w24, sxtw
	str	x8, [x22, #8]
	ldr	x9, [x23, #8]
	subs	x8, x8, x9
	b.lt	LBB0_9
; %bb.8:
	str	x8, [x22, #8]
	mov	w8, #1
	str	w8, [x19]
LBB0_9:
	ldr	x0, [x22, #16]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_snd_pcm_stream_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AUDIO_BUF_SIZE,4,2             ; @AUDIO_BUF_SIZE
	.comm	_AUDIO_TRAILER_SIZE,4,2         ; @AUDIO_TRAILER_SIZE
	.no_dead_strip	_handle_audio_data
.subsections_via_symbols
