	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avc1_packetizer_open           ## -- Begin function avc1_packetizer_open
	.p2align	4, 0x90
_avc1_packetizer_open:                  ## @avc1_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	24(%rdi), %rax
	movq	_VC_CONTAINER_CODEC_H264@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	16(%r15), %rdx
	cmpq	%rcx, (%rdx)
	jne	LBB0_8
LBB0_2:
	movq	8(%rax), %rcx
	movq	_VC_CONTAINER_VARIANT_H264_AVC1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.3:
	movq	16(%r15), %rcx
	movq	8(%rcx), %rcx
	movq	_VC_CONTAINER_VARIANT_H264_DEFAULT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
LBB0_4:
	movq	_VC_CONTAINER_ES_FORMAT_FLAG_FRAMED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%rax)
	je	LBB0_8
## %bb.5:
	movl	$4, %edi
	callq	_malloc
	movq	%rax, %r14
	movq	(%r15), %rax
	movq	%r14, 16(%rax)
	testq	%r14, %r14
	je	LBB0_11
## %bb.6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	16(%r15), %rdi
	movq	24(%r15), %rsi
	xorl	%edx, %edx
	callq	_vc_container_format_copy
	movq	%r15, %rdi
	callq	_avc1_packetizer_codecconfig
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_12
## %bb.7:
	movq	_VC_CONTAINER_VARIANT_H264_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%r15), %rcx
	movq	%rax, 8(%rcx)
	movq	_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_avc1_packetizer_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, 8(%rcx)
	movq	_avc1_packetizer_packetize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_avc1_packetizer_reset@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	callq	_LOG_DEBUG
	movq	(%r12), %rbx
	jmp	LBB0_10
LBB0_8:
	movq	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rbx
LBB0_10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_12:
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_CODEC_H264,8,3    ## @VC_CONTAINER_CODEC_H264
	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,8,3 ## @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
	.comm	_VC_CONTAINER_VARIANT_H264_AVC1,8,3 ## @VC_CONTAINER_VARIANT_H264_AVC1
	.comm	_VC_CONTAINER_VARIANT_H264_DEFAULT,8,3 ## @VC_CONTAINER_VARIANT_H264_DEFAULT
	.comm	_VC_CONTAINER_ES_FORMAT_FLAG_FRAMED,4,2 ## @VC_CONTAINER_ES_FORMAT_FLAG_FRAMED
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ## @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.comm	_MAX_FRAME_SIZE,4,2             ## @MAX_FRAME_SIZE
	.comm	_avc1_packetizer_close,4,2      ## @avc1_packetizer_close
	.comm	_avc1_packetizer_packetize,4,2  ## @avc1_packetizer_packetize
	.comm	_avc1_packetizer_reset,4,2      ## @avc1_packetizer_reset
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"using avc1 video packetizer"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avc1_packetizer_open           ; -- Begin function avc1_packetizer_open
	.p2align	2
_avc1_packetizer_open:                  ; @avc1_packetizer_open
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, #24]
	ldr	x10, [x8]
Lloh0:
	adrp	x9, _VC_CONTAINER_CODEC_H264@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VC_CONTAINER_CODEC_H264@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x10, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	x10, [x19, #16]
	ldr	x10, [x10]
	cmp	x10, x9
	b.ne	LBB0_8
LBB0_2:
	ldr	x9, [x8, #8]
Lloh3:
	adrp	x10, _VC_CONTAINER_VARIANT_H264_AVC1@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VC_CONTAINER_VARIANT_H264_AVC1@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_4
; %bb.3:
	ldr	x9, [x19, #16]
	ldr	x9, [x9, #8]
Lloh6:
	adrp	x10, _VC_CONTAINER_VARIANT_H264_DEFAULT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _VC_CONTAINER_VARIANT_H264_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_8
LBB0_4:
	ldr	w8, [x8, #16]
Lloh9:
	adrp	x9, _VC_CONTAINER_ES_FORMAT_FLAG_FRAMED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VC_CONTAINER_ES_FORMAT_FLAG_FRAMED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.5:
	mov	w0, #4
	bl	_malloc
	ldr	x8, [x19]
	str	x0, [x8, #16]
	cbz	x0, LBB0_11
; %bb.6:
	mov	x20, x0
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldp	x0, x1, [x19, #16]
	mov	w2, #0
	bl	_vc_container_format_copy
	mov	x0, x19
	bl	_avc1_packetizer_codecconfig
Lloh12:
	adrp	x22, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh13:
	ldr	x22, [x22, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.7:
Lloh14:
	adrp	x8, _VC_CONTAINER_VARIANT_H264_DEFAULT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VC_CONTAINER_VARIANT_H264_DEFAULT@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	str	x8, [x9, #8]
Lloh17:
	adrp	x8, _MAX_FRAME_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _avc1_packetizer_close@GOTPAGE
Lloh21:
	ldr	x9, [x9, _avc1_packetizer_close@GOTPAGEOFF]
	str	w8, [x19, #8]
Lloh22:
	ldr	w8, [x9]
	ldr	x9, [x19]
	str	w8, [x9, #8]
Lloh23:
	adrp	x8, _avc1_packetizer_packetize@GOTPAGE
Lloh24:
	ldr	x8, [x8, _avc1_packetizer_packetize@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x10, _avc1_packetizer_reset@GOTPAGE
Lloh27:
	ldr	x10, [x10, _avc1_packetizer_reset@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	stp	w10, w8, [x9]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	bl	_LOG_DEBUG
	ldr	x21, [x22]
	b	LBB0_10
LBB0_8:
Lloh31:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGE
Lloh32:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGEOFF]
LBB0_9:
	ldr	x21, [x8]
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh33:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
	b	LBB0_9
LBB0_12:
	mov	x21, x0
	mov	x0, x20
	bl	_free
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_CODEC_H264,8,3    ; @VC_CONTAINER_CODEC_H264
	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,8,3 ; @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
	.comm	_VC_CONTAINER_VARIANT_H264_AVC1,8,3 ; @VC_CONTAINER_VARIANT_H264_AVC1
	.comm	_VC_CONTAINER_VARIANT_H264_DEFAULT,8,3 ; @VC_CONTAINER_VARIANT_H264_DEFAULT
	.comm	_VC_CONTAINER_ES_FORMAT_FLAG_FRAMED,4,2 ; @VC_CONTAINER_ES_FORMAT_FLAG_FRAMED
	.comm	_VC_CONTAINER_ERROR_OUT_OF_MEMORY,8,3 ; @VC_CONTAINER_ERROR_OUT_OF_MEMORY
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_MAX_FRAME_SIZE,4,2             ; @MAX_FRAME_SIZE
	.comm	_avc1_packetizer_close,4,2      ; @avc1_packetizer_close
	.comm	_avc1_packetizer_packetize,4,2  ; @avc1_packetizer_packetize
	.comm	_avc1_packetizer_reset,4,2      ; @avc1_packetizer_reset
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"using avc1 video packetizer"

.subsections_via_symbols
