	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function roq_read_packet
_roq_read_packet:                       ## @roq_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r12
	movq	_RoQ_CHUNK_PREAMBLE_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r15, %rdi
	callq	_avio_feof
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %edx
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.40:
	movl	%edx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rax
	addq	$2, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_avio_read
	cmpl	(%r13), %eax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_AV_RL16
	movq	%rax, %r14
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_AV_RL32
	movq	_INT_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	ja	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ffio_limit
	cmpl	$132, %r14d
	jne	LBB0_8
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-1, (%r12)
	je	LBB0_19
## %bb.38:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_avio_skip
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_39
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	movl	4(%r12), %ecx
	movq	%rax, %rdi
	movl	$63, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	movl	(%r14), %eax
	movl	%eax, (%r12)
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r14), %rcx
	movl	%eax, 32(%rcx)
	movq	_AV_CODEC_ID_ROQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rcx)
	movl	$0, 24(%rcx)
	movl	(%r13), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_avio_read
	cmpl	(%r13), %eax
	jne	LBB0_3
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_AV_RL16
	movq	%rax, 32(%r12)
	movq	8(%r14), %rcx
	movq	%rax, 48(%rcx)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_AV_RL16
	movq	%rax, 24(%r12)
	movq	8(%r14), %rcx
	movq	%rax, 40(%rcx)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_39:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_avio_feof
	testq	%rax, %rax
	je	LBB0_2
	jmp	LBB0_3
LBB0_8:
	leal	-128(%r14), %ecx
	cmpl	$2, %ecx
	jb	LBB0_23
## %bb.9:
	cmpl	$130, %r14d
	je	LBB0_30
## %bb.10:
	cmpl	$131, %r14d
	jne	LBB0_37
## %bb.11:
	cmpl	$0, (%r12)
	js	LBB0_6
## %bb.12:
	movq	%r15, %rdi
	movl	%eax, %r14d
	callq	_avio_tell
	movq	%r15, %rbx
	movl	%r14d, %r15d
	movl	%eax, %r14d
	subl	(%r13), %r14d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_avio_skip
	movl	(%r13), %edx
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_avio_read
	cmpl	(%r13), %eax
	jne	LBB0_3
## %bb.13:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_AV_RL32
                                        ## kill: def $eax killed $eax def $rax
	movl	(%r13), %ecx
	addl	%r15d, %eax
	leal	(%rax,%rcx,2), %r15d
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	ja	LBB0_6
## %bb.14:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_avio_seek
	movq	%rbx, %rdi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_av_get_packet
	cmpl	%r15d, %eax
	jne	LBB0_3
## %bb.15:
	movl	%r15d, %edx
	movl	(%r12), %eax
	movl	%eax, (%rbx)
	movl	20(%r12), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 20(%r12)
	movl	%eax, 4(%rbx)
	jmp	LBB0_16
LBB0_23:
	cmpl	$-1, 8(%r12)
	je	LBB0_25
## %bb.24:
	xorl	%ecx, %ecx
	jmp	LBB0_31
LBB0_30:
	movb	$1, %cl
	cmpl	$0, (%r12)
	jns	LBB0_31
	jmp	LBB0_6
LBB0_37:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %ecx
	callq	_av_log
LBB0_6:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_16
LBB0_25:
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_avformat_new_stream
	testq	%rax, %rax
	je	LBB0_20
## %bb.26:
	movq	%rax, %rbx
	movq	_RoQ_AUDIO_SAMPLE_RATE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movq	%rax, %rdi
	movl	$32, %esi
	movl	$1, %edx
	callq	_avpriv_set_pts_info
	movl	(%rbx), %eax
	movl	%eax, 8(%r12)
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	8(%rbx), %rax
	movl	%ecx, 32(%rax)
	movq	_AV_CODEC_ID_ROQ_DPCM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rax)
	movl	$0, 24(%rax)
	xorl	%ecx, %ecx
	cmpl	$128, %r14d
	sete	%cl
	jne	LBB0_27
## %bb.28:
	movq	_AV_CH_LAYOUT_STEREO@GOTPCREL(%rip), %rdx
	jmp	LBB0_29
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_27:
	movq	_AV_CH_LAYOUT_MONO@GOTPCREL(%rip), %rdx
LBB0_29:
	incl	%ecx
	movl	%ecx, (%rax)
	movl	(%rdx), %edx
	movl	%edx, 20(%rax)
	movl	%ecx, 12(%r12)
	movl	(%r15), %edx
	movl	%edx, 4(%rax)
	movl	$16, 8(%rax)
	shll	$4, %ecx
	imull	%ecx, %edx
	movl	%edx, 12(%rax)
	movl	%ecx, 16(%rax)
	xorl	%ecx, %ecx
	movl	-56(%rbp), %eax                 ## 4-byte Reload
LBB0_31:
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movq	%r13, %rbx
	movl	(%r13), %esi
	addl	%eax, %esi
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%eax, %r14d
	callq	_av_new_packet
	testl	%eax, %eax
	jne	LBB0_3
## %bb.32:
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movl	8(%r15), %edi
	movl	(%rbx), %edx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	cmpb	$0, -64(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_34
## %bb.33:
	movl	(%r12), %eax
	movl	%eax, (%r15)
	movl	20(%r12), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 20(%r12)
	movl	%eax, 4(%r15)
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_35
LBB0_34:
	movl	8(%r12), %eax
	movl	%eax, (%r15)
	movl	16(%r12), %ecx
	movl	%ecx, 4(%r15)
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	12(%r12)
	addl	%ecx, %eax
	movl	%eax, 16(%r12)
LBB0_35:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_avio_tell
	movl	%eax, 12(%r15)
	movslq	8(%r15), %rax
	movslq	(%r13), %rsi
	addq	%rax, %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_avio_read
	cmpl	%ebx, %eax
	movl	%ebx, %edx
	je	LBB0_16
## %bb.36:
	movq	%r15, %rdi
	callq	_av_packet_unref
	jmp	LBB0_3
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RoQ_CHUNK_PREAMBLE_SIZE,4,2    ## @RoQ_CHUNK_PREAMBLE_SIZE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_ROQ,4,2            ## @AV_CODEC_ID_ROQ
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_RoQ_AUDIO_SAMPLE_RATE,4,2      ## @RoQ_AUDIO_SAMPLE_RATE
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ## @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_ROQ_DPCM,4,2       ## @AV_CODEC_ID_ROQ_DPCM
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ## @AV_CH_LAYOUT_STEREO
	.comm	_AV_CH_LAYOUT_MONO,4,2          ## @AV_CH_LAYOUT_MONO
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"  unknown RoQ chunk (%04X)\n"

	.no_dead_strip	_roq_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function roq_read_packet
_roq_read_packet:                       ; @roq_read_packet
	.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
	sub	sp, sp, #16
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldp	x20, x26, [x0]
Lloh3:
	adrp	x27, _RoQ_CHUNK_PREAMBLE_SIZE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _RoQ_CHUNK_PREAMBLE_SIZE@GOTPAGEOFF]
	ldr	w8, [x27]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	mov	x0, x20
	bl	_avio_feof
	cbz	x0, LBB0_5
LBB0_1:
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
LBB0_3:
	ldur	x8, [x29, #-88]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_38
; %bb.4:
	mov	x0, x21
	sub	sp, x29, #80
	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
LBB0_5:
	add	x24, x22, #2
Lloh12:
	adrp	x28, _INT_MAX@GOTPAGE
Lloh13:
	ldr	x28, [x28, _INT_MAX@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x22
	bl	_avio_read
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_AV_RL16
	mov	x25, x0
	mov	x0, x24
	bl	_AV_RL32
	ldr	w8, [x28]
	cmp	w0, w8
	b.hi	LBB0_28
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x0
	mov	x0, x20
	bl	_ffio_limit
	cmp	w25, #132
	b.ne	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x26]
	cmn	w8, #1
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x27]
	mov	x0, x20
	bl	_avio_skip
	b	LBB0_14
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_34
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x0
	ldr	w3, [x26, #4]
	mov	w1, #63
	mov	w2, #1
	bl	_avpriv_set_pts_info
	ldr	w8, [x21]
	str	w8, [x26]
Lloh14:
	adrp	x8, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	x9, [x21, #8]
	str	w8, [x9, #32]
Lloh17:
	adrp	x8, _AV_CODEC_ID_ROQ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_CODEC_ID_ROQ@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	stp	wzr, w8, [x9, #24]
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x22
	bl	_avio_read
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_1
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_AV_RL16
	str	x0, [x26, #32]
	ldr	x8, [x21, #8]
	str	x0, [x8, #48]
	mov	x0, x24
	bl	_AV_RL16
	str	x0, [x26, #24]
	ldr	x8, [x21, #8]
	str	x0, [x8, #40]
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x23]
	bl	_avio_feof
	cbz	x0, LBB0_6
	b	LBB0_1
LBB0_15:
	mov	x21, x0
	sub	w8, w25, #128
	cmp	w8, #2
	b.lo	LBB0_23
; %bb.16:
	cmp	w25, #130
	b.eq	LBB0_25
; %bb.17:
	cmp	w25, #131
	b.ne	LBB0_27
; %bb.18:
	ldr	w8, [x26]
	tbnz	w8, #31, LBB0_28
; %bb.19:
	mov	x0, x20
	bl	_avio_tell
	mov	x23, x0
	ldr	w25, [x27]
	mov	x0, x20
	mov	x1, x21
	bl	_avio_skip
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x22
	bl	_avio_read
	ldr	w8, [x27]
	cmp	w0, w8
	b.ne	LBB0_1
; %bb.20:
	mov	x0, x24
	bl	_AV_RL32
	ldr	w8, [x27]
	add	w9, w0, w21
	add	w21, w9, w8, lsl #1
	ldr	w8, [x28]
	cmp	w21, w8
	b.hi	LBB0_28
; %bb.21:
	sub	w1, w23, w25
Lloh20:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_avio_seek
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_av_get_packet
	cmp	w0, w21
	b.ne	LBB0_1
; %bb.22:
	ldr	w8, [x26]
	ldr	w9, [x26, #20]
	add	w10, w9, #1
	str	w10, [x26, #20]
	stp	w8, w9, [x19]
	b	LBB0_3
LBB0_23:
	ldr	w8, [x26, #8]
	cmn	w8, #1
	b.eq	LBB0_29
; %bb.24:
	mov	w24, #0
	b	LBB0_31
LBB0_25:
	ldr	w8, [x26]
	tbnz	w8, #31, LBB0_28
; %bb.26:
	mov	w24, #1
	b	LBB0_31
LBB0_27:
Lloh23:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str@PAGE
Lloh27:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	mov	x3, x25
	bl	_av_log
LBB0_28:
Lloh28:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh30:
	ldr	w21, [x8]
	b	LBB0_3
LBB0_29:
	mov	x0, x23
	mov	x1, #0
	bl	_avformat_new_stream
	cbz	x0, LBB0_34
; %bb.30:
	mov	x23, x0
Lloh31:
	adrp	x28, _RoQ_AUDIO_SAMPLE_RATE@GOTPAGE
Lloh32:
	ldr	x28, [x28, _RoQ_AUDIO_SAMPLE_RATE@GOTPAGEOFF]
	ldr	w3, [x28]
	mov	w1, #32
	mov	w2, #1
	bl	_avpriv_set_pts_info
	mov	w24, #0
	ldr	w8, [x23]
	str	w8, [x26, #8]
Lloh33:
	adrp	x8, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	x9, [x23, #8]
	str	w8, [x9, #32]
	cmp	w25, #128
Lloh36:
	adrp	x8, _AV_CH_LAYOUT_STEREO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AV_CH_LAYOUT_STEREO@GOTPAGEOFF]
Lloh38:
	adrp	x10, _AV_CH_LAYOUT_MONO@GOTPAGE
Lloh39:
	ldr	x10, [x10, _AV_CH_LAYOUT_MONO@GOTPAGEOFF]
	csel	x8, x8, x10, eq
Lloh40:
	adrp	x10, _AV_CODEC_ID_ROQ_DPCM@GOTPAGE
Lloh41:
	ldr	x10, [x10, _AV_CODEC_ID_ROQ_DPCM@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	stp	wzr, w10, [x9, #24]
	mov	w10, #1
	cinc	w10, w10, eq
	str	w10, [x9]
	ldr	w8, [x8]
	str	w8, [x9, #20]
	str	w10, [x26, #12]
	ldr	w8, [x28]
	mov	w11, #16
	stp	w8, w11, [x9, #4]
	lsl	w10, w10, #4
	mul	w8, w10, w8
	stp	w8, w10, [x9, #12]
LBB0_31:
	ldr	w8, [x27]
	add	w1, w8, w21
	mov	x0, x19
	bl	_av_new_packet
	cbnz	w0, LBB0_1
; %bb.32:
	ldr	w0, [x19, #8]
	ldr	w2, [x27]
	mov	x1, x22
	bl	_memcpy
	cbz	w24, LBB0_35
; %bb.33:
	ldr	w8, [x26]
	ldr	w9, [x26, #20]
	add	w10, w9, #1
	str	w10, [x26, #20]
	stp	w8, w9, [x19]
	b	LBB0_36
LBB0_34:
Lloh43:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_35:
	ldp	w10, w8, [x26, #12]
	ldr	w9, [x26, #8]
	stp	w9, w8, [x19]
	udiv	w9, w21, w10
	add	w8, w9, w8
	str	w8, [x26, #16]
LBB0_36:
	mov	x0, x20
	bl	_avio_tell
	str	w0, [x19, #12]
	ldrsw	x8, [x19, #8]
	ldrsw	x9, [x27]
	add	x1, x9, x8
	mov	x0, x20
	mov	x2, x21
	bl	_avio_read
	cmp	w0, w21
	b.eq	LBB0_3
; %bb.37:
	mov	x0, x19
	bl	_av_packet_unref
	b	LBB0_1
LBB0_38:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_RoQ_CHUNK_PREAMBLE_SIZE,4,2    ; @RoQ_CHUNK_PREAMBLE_SIZE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVMEDIA_TYPE_VIDEO,4,2         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AV_CODEC_ID_ROQ,4,2            ; @AV_CODEC_ID_ROQ
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_RoQ_AUDIO_SAMPLE_RATE,4,2      ; @RoQ_AUDIO_SAMPLE_RATE
	.comm	_AVMEDIA_TYPE_AUDIO,4,2         ; @AVMEDIA_TYPE_AUDIO
	.comm	_AV_CODEC_ID_ROQ_DPCM,4,2       ; @AV_CODEC_ID_ROQ_DPCM
	.comm	_AV_CH_LAYOUT_STEREO,4,2        ; @AV_CH_LAYOUT_STEREO
	.comm	_AV_CH_LAYOUT_MONO,4,2          ; @AV_CH_LAYOUT_MONO
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"  unknown RoQ chunk (%04X)\n"

	.no_dead_strip	_roq_read_packet
.subsections_via_symbols
