	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rcv_reader_open                ## -- Begin function rcv_reader_open
	.p2align	4, 0x90
_rcv_reader_open:                       ## @rcv_reader_open
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-80(%rbp), %rsi
	movl	$32, %edx
	callq	_PEEK_BYTES
	cmpl	$32, %eax
	jne	LBB0_3
## %bb.1:
	cmpl	$197, -68(%rbp)
	jne	LBB0_3
## %bb.2:
	leaq	-64(%rbp), %rdi
	callq	_LI32
	cmpl	$4, %eax
	jne	LBB0_3
## %bb.4:
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	8(%r15), %rax
	movq	%r14, 16(%rax)
	movl	$1, (%r15)
	movq	%r14, %rax
	addq	$8, %rax
	movq	%rax, 24(%r15)
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_vc_container_allocate_track
	movq	24(%r15), %rcx
	movq	%rax, (%rcx)
	movq	24(%r15), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	_VC_CONTAINER_ES_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%rax), %rdx
	movl	%ecx, 4(%rdx)
	movq	_VC_CONTAINER_CODEC_WMV3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rdx)
	movl	$1, (%rax)
	movq	%r15, %rdi
	callq	_rcv_read_header
	movq	%rax, %rbx
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_7
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_LOG_DEBUG
	movq	%r14, %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_vc_container_index_create
	cmpq	(%r12), %rax
	jne	LBB0_11
## %bb.10:
	movl	(%r14), %ebx
	movq	%r15, %rdi
	callq	_STREAM_POSITION
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_vc_container_index_add
LBB0_11:
	movq	%r15, %rdi
	callq	_STREAM_SEEKABLE
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	_VC_CONTAINER_CAPS_CAN_SEEK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
LBB0_13:
	movq	8(%r15), %rax
	movq	_rcv_reader_close@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	_rcv_reader_read@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_rcv_reader_seek@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	(%r12), %rbx
	jmp	LBB0_16
LBB0_3:
	movq	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %rbx
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movq	%rbx, %rax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_6:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_7:
	movq	%r15, %rdi
	callq	_rcv_reader_close
	jmp	LBB0_16
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,8,3 ## @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_VC_CONTAINER_ES_TYPE_VIDEO,4,2 ## @VC_CONTAINER_ES_TYPE_VIDEO
	.comm	_VC_CONTAINER_CODEC_WMV3,4,2    ## @VC_CONTAINER_CODEC_WMV3
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"using rcv reader"

	.comm	_VC_CONTAINER_CAPS_CAN_SEEK,4,2 ## @VC_CONTAINER_CAPS_CAN_SEEK
	.comm	_rcv_reader_read,4,2            ## @rcv_reader_read
	.comm	_rcv_reader_seek,4,2            ## @rcv_reader_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rcv_reader_open                ; -- Begin function rcv_reader_open
	.p2align	2
_rcv_reader_open:                       ; @rcv_reader_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	add	x1, sp, #8
	mov	w2, #32
	bl	_PEEK_BYTES
	cmp	w0, #32
	b.ne	LBB0_11
; %bb.1:
	ldr	w8, [sp, #20]
	cmp	w8, #197
	b.ne	LBB0_11
; %bb.2:
	add	x8, sp, #8
	add	x0, x8, #16
	bl	_LI32
	cmp	w0, #4
	b.ne	LBB0_11
; %bb.3:
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_15
; %bb.4:
	mov	x20, x0
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	x8, [x19, #8]
	str	x20, [x8, #16]
	mov	w21, #1
	str	w21, [x19]
	add	x8, x20, #8
	str	x8, [x19, #24]
	mov	x0, x19
	mov	w1, #0
	bl	_vc_container_allocate_track
	ldr	x8, [x19, #24]
	str	x0, [x8]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_16
; %bb.5:
Lloh3:
	adrp	x9, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	x10, [x8, #8]
Lloh6:
	adrp	x11, _VC_CONTAINER_CODEC_WMV3@GOTPAGE
Lloh7:
	ldr	x11, [x11, _VC_CONTAINER_CODEC_WMV3@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	stp	w11, w9, [x10]
	str	w21, [x8]
	mov	x0, x19
	bl	_rcv_read_header
	mov	x21, x0
Lloh9:
	adrp	x22, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh10:
	ldr	x22, [x22, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_17
; %bb.6:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_LOG_DEBUG
	mov	x0, x20
	mov	w1, #512
	bl	_vc_container_index_create
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
	ldr	w20, [x20]
	mov	x0, x19
	bl	_STREAM_POSITION
	mov	x2, x0
	mov	x0, x20
	mov	x1, #0
	bl	_vc_container_index_add
LBB0_8:
	mov	x0, x19
	bl	_STREAM_SEEKABLE
	cbz	x0, LBB0_10
; %bb.9:
Lloh13:
	adrp	x8, _VC_CONTAINER_CAPS_CAN_SEEK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VC_CONTAINER_CAPS_CAN_SEEK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_10:
	ldr	x8, [x19, #8]
Lloh16:
	adrp	x9, _rcv_reader_close@GOTPAGE
Lloh17:
	ldr	x9, [x9, _rcv_reader_close@GOTPAGEOFF]
	str	x9, [x8, #8]
Lloh18:
	adrp	x9, _rcv_reader_read@GOTPAGE
Lloh19:
	ldr	x9, [x9, _rcv_reader_read@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _rcv_reader_seek@GOTPAGE
Lloh22:
	ldr	x10, [x10, _rcv_reader_seek@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	stp	w10, w9, [x8]
	ldr	x21, [x22]
	b	LBB0_13
LBB0_11:
Lloh24:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGEOFF]
LBB0_12:
	ldr	x21, [x8]
LBB0_13:
	ldr	x8, [sp, #40]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.14:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
LBB0_15:
Lloh29:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
	b	LBB0_12
LBB0_16:
Lloh31:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh32:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh33:
	ldr	x21, [x8]
LBB0_17:
	mov	x0, x19
	bl	_rcv_reader_close
	b	LBB0_13
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,8,3 ; @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_VC_CONTAINER_ES_TYPE_VIDEO,4,2 ; @VC_CONTAINER_ES_TYPE_VIDEO
	.comm	_VC_CONTAINER_CODEC_WMV3,4,2    ; @VC_CONTAINER_CODEC_WMV3
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"using rcv reader"

	.comm	_VC_CONTAINER_CAPS_CAN_SEEK,4,2 ; @VC_CONTAINER_CAPS_CAN_SEEK
	.comm	_rcv_reader_read,4,2            ; @rcv_reader_read
	.comm	_rcv_reader_seek,4,2            ; @rcv_reader_seek
.subsections_via_symbols
