	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_audio_stream_data
_parse_audio_stream_data:               ## @parse_audio_stream_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
	movl	%edx, %r15d
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r12
	movq	24(%r12), %rax
	movq	(%rax), %r13
	movq	%r13, %rdi
	movl	%edx, %esi
	callq	_bytes_to_frames
	movl	%eax, %r14d
	leaq	40(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movslq	%r14d, %rax
	movq	(%r12), %rcx
	addq	%rax, %rcx
	movq	%rcx, (%r12)
	subq	(%r13), %rcx
	jl	LBB0_2
## %bb.1:
	movq	%rcx, (%r12)
LBB0_2:
	addq	%rax, 8(%r12)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	16(%r12), %rdi
	movslq	%r15d, %r14
	leaq	(%rdi,%r14), %rax
	movq	8(%r13), %rbx
	cmpq	%rbx, %rax
	jle	LBB0_3
## %bb.4:
	subq	%rdi, %rbx
	addl	16(%r13), %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	subl	%ebx, %r15d
	movslq	%ebx, %rax
	movq	%r14, %rsi
	leaq	(%r14,%rax,4), %rsi
	movq	$0, 16(%r12)
	movslq	%r15d, %r14
	xorl	%edi, %edi
	jmp	LBB0_5
LBB0_3:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_5:
	addl	16(%r13), %edi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	%r15d, %edx
	callq	_memcpy
	addq	%r14, 16(%r12)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r12), %rax
	subq	24(%r13), %rax
	jge	LBB0_6
## %bb.8:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_6:
	movq	%rax, 8(%r12)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	cmpq	$0, 32(%r12)
	je	LBB0_7
## %bb.9:
	movq	24(%r12), %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_pcm_period_elapsed         ## TAILCALL
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_parse_audio_stream_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_audio_stream_data
_parse_audio_stream_data:               ; @parse_audio_stream_data
	.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
	mov	x22, x2
	mov	x21, x1
	ldr	x24, [x0]
	ldr	x8, [x24, #24]
	ldr	x20, [x8]
	mov	x0, x20
	mov	x1, x2
	bl	_bytes_to_frames
	mov	x23, x0
	add	x19, x24, #40
	mov	x0, x19
	bl	_spin_lock_irqsave
	sxtw	x8, w23
	ldr	x9, [x24]
	ldr	x10, [x20]
	add	x11, x9, x8
	subs	x9, x11, x10
	str	x11, [x24]
	b.lt	LBB0_2
; %bb.1:
	str	x9, [x24]
LBB0_2:
	ldr	x9, [x24, #8]
	add	x8, x9, x8
	str	x8, [x24, #8]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	x8, [x24, #16]
	sxtw	x23, w22
	ldr	x9, [x20, #8]
	add	x10, x8, x23
	cmp	x10, x9
	b.le	LBB0_4
; %bb.3:
	sub	x23, x9, x8
	ldr	w9, [x20, #16]
	add	w0, w9, w8
	mov	x1, x21
	mov	x2, x23
	bl	_memcpy
	mov	x8, #0
	sub	w22, w22, w23
	lsl	x9, x23, #32
	add	x21, x21, x9, asr #30
	str	xzr, [x24, #16]
	sxtw	x23, w22
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_4:
	ldr	w9, [x20, #16]
	add	w0, w9, w8
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x24, #16]
	add	x8, x8, x23
	str	x8, [x24, #16]
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x24, #8]
	ldr	x9, [x20, #24]
	subs	x8, x8, x9
	b.ge	LBB0_6
; %bb.5:
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
LBB0_6:
	str	x8, [x24, #8]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	x8, [x24, #32]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x0, [x24, #24]
	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
	b	_snd_pcm_period_elapsed
LBB0_8:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_parse_audio_stream_data
.subsections_via_symbols
