	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function rawvideo_reader_open
LCPI0_0:
	.long	25                              ## 0x19
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_rawvideo_reader_open
	.p2align	4, 0x90
_rawvideo_reader_open:                  ## @rawvideo_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movl	24(%rax), %edi
	callq	_vc_uri_path_extension
	movq	%rax, -136(%rbp)
	movq	8(%r12), %rax
	movl	24(%rax), %edi
	leaq	L_.str(%rip), %rdx
	leaq	-136(%rbp), %rcx
	xorl	%esi, %esi
	callq	_vc_uri_find_query
	leaq	-96(%rbp), %rsi
	movq	%r12, %rdi
	movl	$40, %edx
	callq	_PEEK_BYTES
	cmpl	$40, %eax
	jne	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-96(%rbp), %rdi
	movl	$40, %edx
	callq	_memcmp
	movl	%eax, %r15d
	xorl	%r13d, %r13d
	testl	%eax, %eax
	sete	%bl
	je	LBB0_5
## %bb.3:
	movq	-136(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_5
LBB0_1:
	movq	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPCREL(%rip), %rax
LBB0_20:
	movq	(%rax), %rbx
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movq	%rbx, %rax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_LOG_DEBUG
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	8(%r12), %rax
	movq	%r14, 16(%rax)
	movl	$1, (%r12)
	movq	%r14, %rax
	addq	$16, %rax
	movq	%rax, 16(%r12)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_vc_container_allocate_track
	movq	16(%r12), %rcx
	movq	%rax, (%rcx)
	movq	16(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movb	%bl, -97(%rbp)                  ## 1-byte Spill
	movq	_VC_CONTAINER_ES_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%rax), %rdx
	movl	%ecx, 12(%rdx)
	movl	$1, (%rax)
	movq	(%rdx), %rax
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [25,1,1,1]
	movups	%xmm0, (%rax)
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.14:
	subq	$8, %rsp
	leaq	-108(%rbp), %rax
	leaq	-124(%rbp), %rsi
	leaq	-120(%rbp), %rdx
	leaq	-116(%rbp), %rcx
	leaq	-112(%rbp), %r8
	leaq	-104(%rbp), %r9
	movq	%r12, %rdi
	pushq	%rax
	callq	_rawvideo_parse_uri
	addq	$16, %rsp
	movq	%rax, %rbx
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_9
## %bb.15:
	movl	-124(%rbp), %eax
	movq	16(%r12), %rcx
	movq	(%rcx), %rcx
	movq	8(%rcx), %rdx
	movl	%eax, 8(%rdx)
	movl	-120(%rbp), %ecx
	movq	(%rdx), %rax
	movl	%ecx, 16(%rax)
	movl	-116(%rbp), %r8d
	movl	%r8d, 20(%rax)
	movl	-112(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_18
## %bb.16:
	cmpl	$0, -104(%rbp)
	je	LBB0_18
## %bb.17:
	movl	%esi, (%rax)
	movl	-104(%rbp), %esi
	movl	%esi, 4(%rax)
LBB0_18:
	movl	-108(%rbp), %r10d
	movl	%r10d, 4(%r14)
	jmp	LBB0_19
LBB0_6:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_8:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_9
LBB0_11:
	movq	%r12, %rdi
	callq	_read_yuv4mpeg2_file_header
	movq	%rax, %rbx
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_9
## %bb.12:
	movq	%r12, %rdi
	callq	_STREAM_POSITION
	movl	%eax, 12(%r14)
	movq	%r12, %rdi
	callq	_read_yuv4mpeg2_frame_header
	movq	%rax, %rbx
	cmpq	(%r15), %rax
	jne	LBB0_9
## %bb.13:
	movl	$1, (%r14)
	movq	16(%r12), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdx
	movq	(%rdx), %rax
	movl	16(%rax), %ecx
	movl	20(%rax), %r8d
	movl	4(%r14), %r10d
LBB0_19:
	movb	-97(%rbp), %bl                  ## 1-byte Reload
	movb	%bl, %r13b
	addq	$8, %rdx
	movl	(%rax), %r9d
	movl	4(%rax), %eax
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	pushq	%r10
	pushq	%rax
	callq	_LOG_INFO
	addq	$16, %rsp
	movq	8(%r12), %rax
	movq	_rawvideo_reader_close@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%rax)
	movq	_rawvideo_reader_read@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_rawvideo_reader_seek@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movl	%r13d, 8(%r14)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_9:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_LOG_DEBUG
	movq	%r12, %rdi
	callq	_rawvideo_reader_close
	jmp	LBB0_21
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,8,3 ## @VC_CONTAINER_ERROR_FORMAT_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"container"

	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,8,3 ## @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
L_.str.1:                               ## @.str.1
	.asciz	"YUV4MPEG2 "

L_.str.2:                               ## @.str.2
	.asciz	"yuv"

L_.str.3:                               ## @.str.3
	.asciz	"using raw video reader"

	.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_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
L_.str.4:                               ## @.str.4
	.asciz	"rawvideo %4.4s/%ix%i/fps:%i:%i/size:%i"

	.comm	_rawvideo_reader_read,4,2       ## @rawvideo_reader_read
	.comm	_rawvideo_reader_seek,4,2       ## @rawvideo_reader_seek
L_.str.5:                               ## @.str.5
	.asciz	"rawvideo: error opening stream (%i)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function rawvideo_reader_open
lCPI0_0:
	.long	25                              ; 0x19
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_rawvideo_reader_open
	.p2align	2
_rawvideo_reader_open:                  ; @rawvideo_reader_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x8, [x0, #8]
	ldr	w0, [x8, #24]
	bl	_vc_uri_path_extension
	str	x0, [sp, #40]
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #24]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x3, sp, #40
	mov	w1, #0
	bl	_vc_uri_find_query
	add	x1, sp, #48
	mov	x0, x19
	mov	w2, #40
	bl	_PEEK_BYTES
	cmp	w0, #40
	b.ne	LBB0_4
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #48
	mov	w2, #40
	bl	_memcmp
	mov	x21, x0
	cmp	w0, #0
	cset	w22, eq
	cbz	w0, LBB0_8
; %bb.2:
	ldr	x0, [sp, #40]
	cbz	x0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcasecmp
	cbz	w0, LBB0_8
LBB0_4:
Lloh9:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGEOFF]
LBB0_5:
	ldr	x21, [x8]
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.7:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_8:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_LOG_DEBUG
	mov	w0, #24
	bl	_malloc
	cbz	x0, LBB0_16
; %bb.9:
	mov	x20, x0
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x8, [x19, #8]
	str	x20, [x8, #16]
	mov	w23, #1
	str	w23, [x19]
	add	x8, x20, #16
	str	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #0
	bl	_vc_container_allocate_track
	ldr	x8, [x19, #16]
	str	x0, [x8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_17
; %bb.10:
Lloh16:
	adrp	x9, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGE
Lloh17:
	ldr	x9, [x9, _VC_CONTAINER_ES_TYPE_VIDEO@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	ldr	x10, [x8, #8]
	str	w9, [x10, #12]
	str	w23, [x8]
	ldr	x8, [x10]
Lloh19:
	adrp	x9, lCPI0_0@PAGE
Lloh20:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	str	q0, [x8]
Lloh21:
	adrp	x23, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh22:
	ldr	x23, [x23, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	cbz	w21, LBB0_18
; %bb.11:
	add	x1, sp, #36
	add	x2, sp, #32
	add	x3, sp, #28
	add	x4, sp, #24
	add	x5, sp, #20
	add	x6, sp, #16
	mov	x0, x19
	bl	_rawvideo_parse_uri
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_22
; %bb.12:
	ldp	w3, w9, [sp, #32]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	str	w9, [x8, #8]
	ldr	x9, [x8]
	ldp	w10, w4, [sp, #24]
	stp	w3, w4, [x9, #16]
	cbz	w10, LBB0_15
; %bb.13:
	ldr	w11, [sp, #20]
	cbz	w11, LBB0_15
; %bb.14:
	str	w10, [x9]
	ldr	w10, [sp, #20]
	str	w10, [x9, #4]
LBB0_15:
	ldr	w7, [sp, #16]
	str	w7, [x20, #4]
	b	LBB0_21
LBB0_16:
Lloh23:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
	b	LBB0_5
LBB0_17:
Lloh25:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh27:
	ldr	x21, [x8]
	b	LBB0_23
LBB0_18:
	mov	x0, x19
	bl	_read_yuv4mpeg2_file_header
	mov	x21, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_23
; %bb.19:
	mov	x0, x19
	bl	_STREAM_POSITION
	str	w0, [x20, #12]
	mov	x0, x19
	bl	_read_yuv4mpeg2_frame_header
	mov	x21, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_23
; %bb.20:
	mov	w8, #1
	str	w8, [x20]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldr	x9, [x8]
	ldp	w3, w4, [x9, #16]
	ldr	w7, [x20, #4]
LBB0_21:
	add	x2, x8, #8
	ldp	w5, w6, [x9]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_LOG_INFO
Lloh30:
	adrp	x8, _rawvideo_reader_close@GOTPAGE
Lloh31:
	ldr	x8, [x8, _rawvideo_reader_close@GOTPAGEOFF]
	ldr	x9, [x19, #8]
	str	x8, [x9, #8]
Lloh32:
	adrp	x8, _rawvideo_reader_read@GOTPAGE
Lloh33:
	ldr	x8, [x8, _rawvideo_reader_read@GOTPAGEOFF]
Lloh34:
	adrp	x10, _rawvideo_reader_seek@GOTPAGE
Lloh35:
	ldr	x10, [x10, _rawvideo_reader_seek@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
Lloh37:
	ldr	w10, [x10]
	stp	w10, w8, [x9]
	str	w22, [x20, #8]
	ldr	x21, [x23]
	b	LBB0_6
LBB0_22:
	mov	x21, x0
LBB0_23:
	str	x21, [sp]
Lloh38:
	adrp	x1, l_.str.5@PAGE
Lloh39:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_LOG_DEBUG
	mov	x0, x19
	bl	_rawvideo_reader_close
	b	LBB0_6
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdr	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh36
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,8,3 ; @VC_CONTAINER_ERROR_FORMAT_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"container"

	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,8,3 ; @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
l_.str.1:                               ; @.str.1
	.asciz	"YUV4MPEG2 "

l_.str.2:                               ; @.str.2
	.asciz	"yuv"

l_.str.3:                               ; @.str.3
	.asciz	"using raw video reader"

	.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_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
l_.str.4:                               ; @.str.4
	.asciz	"rawvideo %4.4s/%ix%i/fps:%i:%i/size:%i"

	.comm	_rawvideo_reader_read,4,2       ; @rawvideo_reader_read
	.comm	_rawvideo_reader_seek,4,2       ; @rawvideo_reader_seek
l_.str.5:                               ; @.str.5
	.asciz	"rawvideo: error opening stream (%i)"

.subsections_via_symbols
