	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function audio_read_packet
_audio_read_packet:                     ## @audio_read_packet
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	$0, -48(%rbp)
	movl	4(%r12), %esi
	imull	(%r12), %esi
	movq	%r14, %rdi
	callq	_av_new_packet
	testq	%rax, %rax
	js	LBB0_5
## %bb.1:
	movl	(%r12), %edx
	movl	20(%r12), %edi
	movl	8(%r14), %esi
	callq	_snd_pcm_readi
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_2
LBB0_10:
	xorl	%eax, %eax
	callq	_av_gettime
	movl	%eax, %r15d
	movl	20(%r12), %edi
	leaq	-48(%rbp), %rsi
	callq	_snd_pcm_delay
	movl	%ebx, %edi
	addq	-48(%rbp), %rdi
	movl	16(%r12), %edx
	movl	$1000000, %esi                  ## imm = 0xF4240
	callq	_av_rescale
	subl	%eax, %r15d
	movl	8(%r12), %edx
	movl	12(%r12), %edi
	movl	%r15d, %esi
	callq	_ff_timefilter_update
	movl	%eax, 4(%r14)
	movl	%ebx, 8(%r12)
	imull	4(%r12), %ebx
	movl	%ebx, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_EAGAIN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %eax
	addl	%ebx, %eax
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ff_alsa_xrun_recover
	testq	%rax, %rax
	js	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	12(%r12), %edi
	callq	_ff_timefilter_reset
	movl	(%r12), %edx
	movl	20(%r12), %edi
	movl	8(%r14), %esi
	callq	_snd_pcm_readi
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
	jmp	LBB0_10
LBB0_4:
	movq	%r14, %rdi
	callq	_av_packet_unref
	movl	(%r13), %edi
	jmp	LBB0_6
LBB0_8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%ebx, %edi
	callq	_snd_strerror
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %ecx
	callq	_av_log
	movq	%r14, %rdi
	callq	_av_packet_unref
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ALSA read error: %s\n"

	.no_dead_strip	_audio_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function audio_read_packet
_audio_read_packet:                     ; @audio_read_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0]
	str	xzr, [sp, #8]
	ldp	w8, w9, [x22]
	mul	w1, w9, w8
	mov	x0, x19
	bl	_av_new_packet
	tbnz	x0, #63, LBB0_9
; %bb.1:
	ldr	w0, [x22, #20]
	ldr	w1, [x19, #8]
	ldr	w2, [x22]
	bl	_snd_pcm_readi
	mov	x21, x0
	tbnz	w0, #31, LBB0_3
LBB0_2:
	bl	_av_gettime
	mov	x20, x0
	ldr	w0, [x22, #20]
	add	x1, sp, #8
	bl	_snd_pcm_delay
	ldr	x8, [sp, #8]
	add	x0, x8, w21, uxtw
	ldr	w2, [x22, #16]
	mov	w1, #16960
	movk	w1, #15, lsl #16
	bl	_av_rescale
	sub	w1, w20, w0
	ldp	w2, w0, [x22, #8]
	bl	_ff_timefilter_update
	str	w21, [x22, #8]
	ldr	w8, [x22, #4]
	mul	w8, w8, w21
	stp	w8, w0, [x19]
	mov	w0, #0
	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
	add	sp, sp, #80
	ret
LBB0_3:
Lloh0:
	adrp	x23, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EAGAIN@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	cmn	w21, w8
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_ff_alsa_xrun_recover
	tbnz	x0, #63, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x22, #12]
	bl	_ff_timefilter_reset
	ldr	w0, [x22, #20]
	ldr	w1, [x19, #8]
	ldr	w2, [x22]
	bl	_snd_pcm_readi
	mov	x21, x0
	tbnz	w0, #31, LBB0_4
	b	LBB0_2
LBB0_7:
	mov	x0, x19
	bl	_av_packet_unref
	ldr	w0, [x23]
	b	LBB0_10
LBB0_8:
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	mov	x0, x21
	bl	_snd_strerror
	mov	x3, x0
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_av_log
	mov	x0, x19
	bl	_av_packet_unref
LBB0_9:
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_10:
	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
	add	sp, sp, #80
	b	_AVERROR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ALSA read error: %s\n"

	.no_dead_strip	_audio_read_packet
.subsections_via_symbols
