	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpgv_packetizer_open           ## -- Begin function mpgv_packetizer_open
	.p2align	4, 0x90
_mpgv_packetizer_open:                  ## @mpgv_packetizer_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	_VC_CONTAINER_CODEC_MP1V@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_VC_CONTAINER_CODEC_MP2V@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movl	$4, %edi
	callq	_malloc
	movq	(%rbx), %rcx
	movq	%rax, 16(%rcx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	24(%rbx), %edi
	movq	16(%rbx), %rsi
	xorl	%edx, %edx
	callq	_vc_container_format_copy
	movq	_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_mpgv_packetizer_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movq	_mpgv_packetizer_packetize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_mpgv_packetizer_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	callq	_LOG_DEBUG
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_CODEC_MP1V,8,3    ## @VC_CONTAINER_CODEC_MP1V
	.comm	_VC_CONTAINER_CODEC_MP2V,8,3    ## @VC_CONTAINER_CODEC_MP2V
	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,4,2 ## @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_MAX_FRAME_SIZE,4,2             ## @MAX_FRAME_SIZE
	.comm	_mpgv_packetizer_close,4,2      ## @mpgv_packetizer_close
	.comm	_mpgv_packetizer_packetize,4,2  ## @mpgv_packetizer_packetize
	.comm	_mpgv_packetizer_reset,4,2      ## @mpgv_packetizer_reset
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"using mpeg video packetizer"

	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpgv_packetizer_open           ; -- Begin function mpgv_packetizer_open
	.p2align	2
_mpgv_packetizer_open:                  ; @mpgv_packetizer_open
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _VC_CONTAINER_CODEC_MP1V@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VC_CONTAINER_CODEC_MP1V@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _VC_CONTAINER_CODEC_MP2V@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VC_CONTAINER_CODEC_MP2V@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	w0, #4
	bl	_malloc
	ldr	x8, [x19]
	str	x0, [x8, #16]
	cbz	x0, LBB0_4
; %bb.2:
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w0, [x19, #24]
	ldr	x1, [x19, #16]
	mov	w2, #0
	bl	_vc_container_format_copy
Lloh6:
	adrp	x8, _MAX_FRAME_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _mpgv_packetizer_close@GOTPAGE
Lloh10:
	ldr	x9, [x9, _mpgv_packetizer_close@GOTPAGEOFF]
	str	w8, [x19, #8]
Lloh11:
	ldr	w8, [x9]
	ldr	x9, [x19]
	str	w8, [x9, #8]
Lloh12:
	adrp	x8, _mpgv_packetizer_packetize@GOTPAGE
Lloh13:
	ldr	x8, [x8, _mpgv_packetizer_packetize@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x10, _mpgv_packetizer_reset@GOTPAGE
Lloh16:
	ldr	x10, [x10, _mpgv_packetizer_reset@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	stp	w10, w8, [x9]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	bl	_LOG_DEBUG
Lloh20:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh22:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh24:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_CODEC_MP1V,8,3    ; @VC_CONTAINER_CODEC_MP1V
	.comm	_VC_CONTAINER_CODEC_MP2V,8,3    ; @VC_CONTAINER_CODEC_MP2V
	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,4,2 ; @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,4,2 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_MAX_FRAME_SIZE,4,2             ; @MAX_FRAME_SIZE
	.comm	_mpgv_packetizer_close,4,2      ; @mpgv_packetizer_close
	.comm	_mpgv_packetizer_packetize,4,2  ; @mpgv_packetizer_packetize
	.comm	_mpgv_packetizer_reset,4,2      ; @mpgv_packetizer_reset
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"using mpeg video packetizer"

	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
.subsections_via_symbols
