	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rawvideo_writer_open           ## -- Begin function rawvideo_writer_open
	.p2align	4, 0x90
_rawvideo_writer_open:                  ## @rawvideo_writer_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movl	24(%rax), %edi
	callq	_vc_uri_path_extension
	movq	%rax, -32(%rbp)
	movq	(%r14), %rax
	movl	24(%rax), %edi
	leaq	L_.str(%rip), %rdx
	leaq	-32(%rbp), %rcx
	xorl	%esi, %esi
	callq	_vc_uri_find_query
	movq	-32(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	movl	$1, %r15d
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testq	%rax, %rax
	je	LBB0_5
LBB0_1:
	movq	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	xorl	%r15d, %r15d
LBB0_6:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_LOG_DEBUG
	movl	$8, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r14), %rax
	movq	%rbx, 16(%rax)
	movq	%rbx, %rcx
	addq	$4, %rcx
	movq	%rcx, 8(%r14)
	movl	%r15d, (%rbx)
	movq	_rawvideo_writer_close@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	_rawvideo_writer_write@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movq	_rawvideo_writer_control@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_LOG_DEBUG
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ## @VC_CONTAINER_ERROR_FORMAT_INVALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"container"

	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,4,2 ## @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
L_.str.1:                               ## @.str.1
	.asciz	"y4m"

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

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

L_.str.4:                               ## @.str.4
	.asciz	"using rawvideo writer"

	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_rawvideo_writer_close,4,2      ## @rawvideo_writer_close
	.comm	_rawvideo_writer_write,4,2      ## @rawvideo_writer_write
	.comm	_rawvideo_writer_control,4,2    ## @rawvideo_writer_control
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
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
	.globl	_rawvideo_writer_open           ; -- Begin function rawvideo_writer_open
	.p2align	2
_rawvideo_writer_open:                  ; @rawvideo_writer_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	w0, [x8, #24]
	bl	_vc_uri_path_extension
	str	x0, [sp, #8]
	ldr	x8, [x19]
	ldr	w0, [x8, #24]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	add	x3, sp, #8
	mov	w1, #0
	bl	_vc_uri_find_query
	ldr	x20, [sp, #8]
	cbz	x20, LBB0_4
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_5
; %bb.2:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_5
; %bb.3:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_strcasecmp
	cbz	x0, LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	mov	w21, #1
	b	LBB0_7
LBB0_6:
	mov	w21, #0
LBB0_7:
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_LOG_DEBUG
	mov	w0, #8
	bl	_malloc
	cbz	x0, LBB0_11
; %bb.8:
	mov	x20, x0
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x19]
	str	x20, [x8, #16]
	str	w21, [x20], #4
	str	x20, [x19, #8]
Lloh12:
	adrp	x9, _rawvideo_writer_close@GOTPAGE
Lloh13:
	ldr	x9, [x9, _rawvideo_writer_close@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	str	w9, [x8, #8]
Lloh15:
	adrp	x9, _rawvideo_writer_write@GOTPAGE
Lloh16:
	ldr	x9, [x9, _rawvideo_writer_write@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _rawvideo_writer_control@GOTPAGE
Lloh19:
	ldr	x10, [x10, _rawvideo_writer_control@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	stp	w10, w9, [x8]
Lloh21:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
LBB0_9:
	ldr	w20, [x8]
LBB0_10:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
LBB0_11:
Lloh23:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh25:
	ldr	w20, [x8]
	str	x20, [sp]
Lloh26:
	adrp	x1, l_.str.5@PAGE
Lloh27:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_LOG_DEBUG
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ; @VC_CONTAINER_ERROR_FORMAT_INVALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"container"

	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,4,2 ; @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
l_.str.1:                               ; @.str.1
	.asciz	"y4m"

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

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

l_.str.4:                               ; @.str.4
	.asciz	"using rawvideo writer"

	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_rawvideo_writer_close,4,2      ; @rawvideo_writer_close
	.comm	_rawvideo_writer_write,4,2      ; @rawvideo_writer_write
	.comm	_rawvideo_writer_control,4,2    ; @rawvideo_writer_control
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
l_.str.5:                               ; @.str.5
	.asciz	"rawvideo: error opening stream (%i)"

.subsections_via_symbols
