	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rawvideo_write_header
_rawvideo_write_header:                 ## @rawvideo_write_header
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$160, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %r14
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %r8d
	leaq	L_.str(%rip), %rdx
	leaq	-160(%rbp), %rdi
	movl	$128, %esi
	xorl	%eax, %eax
	callq	_snprintf
	cmpl	$128, %eax
	jae	LBB0_1
## %bb.2:
	leaq	-160(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_WRITE_BYTES
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdx
	movl	8(%rdx), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.3:
	movl	12(%rdx), %r8d
	testl	%r8d, %r8d
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdx
	leaq	-160(%rbp), %rdi
	movl	$128, %esi
	xorl	%eax, %eax
	callq	_snprintf
	cmpl	$128, %eax
	jae	LBB0_1
## %bb.5:
	leaq	-160(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_WRITE_BYTES
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdx
LBB0_6:
	movl	16(%rdx), %ecx
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.7:
	movl	20(%rdx), %r8d
	testl	%r8d, %r8d
	je	LBB0_10
## %bb.8:
	leaq	L_.str.2(%rip), %rdx
	leaq	-160(%rbp), %rdi
	movl	$128, %esi
	xorl	%eax, %eax
	callq	_snprintf
	cmpl	$128, %eax
	jae	LBB0_1
## %bb.9:
	leaq	-160(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_WRITE_BYTES
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
LBB0_10:
	movl	(%rax), %edi
	leaq	-168(%rbp), %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_to_yuv4mpeg2
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	-168(%rbp), %rcx
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_13
LBB0_12:
	movl	$1, (%r14)
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rcx
	leaq	L_.str.4(%rip), %rdx
LBB0_13:
	leaq	-160(%rbp), %rdi
	movl	$128, %esi
	xorl	%eax, %eax
	callq	_snprintf
	cmpl	$128, %eax
	jb	LBB0_14
LBB0_1:
	movq	_VC_CONTAINER_ERROR_OUT_OF_RESOURCES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	addq	$160, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	leaq	-160(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_WRITE_BYTES
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	__WRITE_U8
	movl	$1, 4(%r14)
	movq	%rbx, %rdi
	callq	_STREAM_STATUS
	jmp	LBB0_15
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"YUV4MPEG2 W%i H%i"

	.comm	_VC_CONTAINER_ERROR_OUT_OF_RESOURCES,4,2 ## @VC_CONTAINER_ERROR_OUT_OF_RESOURCES
L_.str.1:                               ## @.str.1
	.asciz	" F%i:%i"

L_.str.2:                               ## @.str.2
	.asciz	" A%i:%i"

L_.str.3:                               ## @.str.3
	.asciz	" C%s"

L_.str.4:                               ## @.str.4
	.asciz	" C%4.4s"

	.no_dead_strip	_rawvideo_write_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rawvideo_write_header
_rawvideo_write_header:                 ; @rawvideo_write_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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, #-24]
	ldp	x9, x8, [x0]
	ldr	x20, [x8]
	ldr	x8, [x9]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	ldp	w9, w8, [x8]
	stp	x9, x8, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #24
	mov	w1, #128
	bl	_snprintf
	cmp	w0, #128
	b.hs	LBB0_13
; %bb.1:
	mov	x2, x0
	add	x1, sp, #24
	mov	x0, x19
	bl	_WRITE_BYTES
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	ldr	w10, [x9, #8]
	cbz	w10, LBB0_5
; %bb.2:
	ldr	w11, [x9, #12]
	cbz	w11, LBB0_5
; %bb.3:
	stp	x10, x11, [sp]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #24
	mov	w1, #128
	bl	_snprintf
	cmp	w0, #128
	b.hs	LBB0_13
; %bb.4:
	mov	x2, x0
	add	x1, sp, #24
	mov	x0, x19
	bl	_WRITE_BYTES
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
LBB0_5:
	ldr	w10, [x9, #16]
	cbz	w10, LBB0_9
; %bb.6:
	ldr	w9, [x9, #20]
	cbz	w9, LBB0_9
; %bb.7:
	stp	x10, x9, [sp]
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #24
	mov	w1, #128
	bl	_snprintf
	cmp	w0, #128
	b.hs	LBB0_13
; %bb.8:
	mov	x2, x0
	add	x1, sp, #24
	mov	x0, x19
	bl	_WRITE_BYTES
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
LBB0_9:
	ldr	w0, [x8]
	add	x1, sp, #16
	mov	w2, #0
	mov	w3, #0
	bl	_to_yuv4mpeg2
	cbz	x0, LBB0_11
; %bb.10:
	ldr	x8, [sp, #16]
	str	x8, [sp]
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_11:
	mov	w8, #1
	str	w8, [x20]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	x8, [sp]
Lloh11:
	adrp	x2, l_.str.4@PAGE
Lloh12:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_12:
	add	x0, sp, #24
	mov	w1, #128
	bl	_snprintf
	mov	x2, x0
	cmp	w0, #128
	b.lo	LBB0_16
LBB0_13:
Lloh13:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_RESOURCES@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_RESOURCES@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_14:
	ldur	x8, [x29, #-24]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_16:
	add	x1, sp, #24
	mov	x0, x19
	bl	_WRITE_BYTES
	mov	x0, x19
	mov	w1, #10
	bl	__WRITE_U8
	mov	w8, #1
	str	w8, [x20, #4]
	mov	x0, x19
	bl	_STREAM_STATUS
	b	LBB0_14
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"YUV4MPEG2 W%i H%i"

	.comm	_VC_CONTAINER_ERROR_OUT_OF_RESOURCES,4,2 ; @VC_CONTAINER_ERROR_OUT_OF_RESOURCES
l_.str.1:                               ; @.str.1
	.asciz	" F%i:%i"

l_.str.2:                               ; @.str.2
	.asciz	" A%i:%i"

l_.str.3:                               ; @.str.3
	.asciz	" C%s"

l_.str.4:                               ; @.str.4
	.asciz	" C%4.4s"

	.no_dead_strip	_rawvideo_write_header
.subsections_via_symbols
