	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mpga_packetizer_open           ## -- Begin function mpga_packetizer_open
	.p2align	4, 0x90
_mpga_packetizer_open:                  ## @mpga_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %rax
	movq	_VC_CONTAINER_CODEC_MPGA@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_3
## %bb.1:
	movq	_VC_CONTAINER_CODEC_MP4A@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movl	$4, %edi
	callq	_malloc
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	%r14, 16(%rax)
	testq	%r14, %r14
	je	LBB0_4
## %bb.5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	16(%rbx), %rsi
	movq	(%rsi), %rax
	cmpq	(%r15), %rax
	jne	LBB0_6
## %bb.7:
	movq	_mpga_read_header@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_adts_read_header@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movl	24(%rbx), %edi
	xorl	%edx, %edx
	callq	_vc_container_format_copy
	movq	_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_mpga_packetizer_close@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movq	_mpga_packetizer_packetize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_mpga_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
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VC_CONTAINER_CODEC_MPGA,8,3    ## @VC_CONTAINER_CODEC_MPGA
	.comm	_VC_CONTAINER_CODEC_MP4A,8,3    ## @VC_CONTAINER_CODEC_MP4A
	.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	_mpga_read_header,4,2           ## @mpga_read_header
	.comm	_adts_read_header,4,2           ## @adts_read_header
	.comm	_MAX_FRAME_SIZE,4,2             ## @MAX_FRAME_SIZE
	.comm	_mpga_packetizer_close,4,2      ## @mpga_packetizer_close
	.comm	_mpga_packetizer_packetize,4,2  ## @mpga_packetizer_packetize
	.comm	_mpga_packetizer_reset,4,2      ## @mpga_packetizer_reset
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"using mpeg audio 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	_mpga_packetizer_open           ; -- Begin function mpga_packetizer_open
	.p2align	2
_mpga_packetizer_open:                  ; @mpga_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
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
Lloh0:
	adrp	x21, _VC_CONTAINER_CODEC_MPGA@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VC_CONTAINER_CODEC_MPGA@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh2:
	adrp	x10, _VC_CONTAINER_CODEC_MP4A@GOTPAGE
Lloh3:
	ldr	x10, [x10, _VC_CONTAINER_CODEC_MP4A@GOTPAGEOFF]
Lloh4:
	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	x20, x0
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x1, [x19, #16]
	ldr	x8, [x1]
Lloh5:
	adrp	x9, _mpga_read_header@GOTPAGE
Lloh6:
	ldr	x9, [x9, _mpga_read_header@GOTPAGEOFF]
Lloh7:
	adrp	x10, _adts_read_header@GOTPAGE
Lloh8:
	ldr	x10, [x10, _adts_read_header@GOTPAGEOFF]
	ldr	x11, [x21]
	cmp	x8, x11
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x20]
	ldr	w0, [x19, #24]
	mov	w2, #0
	bl	_vc_container_format_copy
Lloh9:
	adrp	x8, _MAX_FRAME_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _mpga_packetizer_close@GOTPAGE
Lloh13:
	ldr	x9, [x9, _mpga_packetizer_close@GOTPAGEOFF]
	str	w8, [x19, #8]
Lloh14:
	ldr	w8, [x9]
	ldr	x9, [x19]
	str	w8, [x9, #8]
Lloh15:
	adrp	x8, _mpga_packetizer_packetize@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mpga_packetizer_packetize@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x10, _mpga_packetizer_reset@GOTPAGE
Lloh19:
	ldr	x10, [x10, _mpga_packetizer_reset@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	stp	w10, w8, [x9]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	bl	_LOG_DEBUG
Lloh23:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh25:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh27:
	adrp	x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_OUT_OF_MEMORY@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_VC_CONTAINER_CODEC_MPGA,8,3    ; @VC_CONTAINER_CODEC_MPGA
	.comm	_VC_CONTAINER_CODEC_MP4A,8,3    ; @VC_CONTAINER_CODEC_MP4A
	.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	_mpga_read_header,4,2           ; @mpga_read_header
	.comm	_adts_read_header,4,2           ; @adts_read_header
	.comm	_MAX_FRAME_SIZE,4,2             ; @MAX_FRAME_SIZE
	.comm	_mpga_packetizer_close,4,2      ; @mpga_packetizer_close
	.comm	_mpga_packetizer_packetize,4,2  ; @mpga_packetizer_packetize
	.comm	_mpga_packetizer_reset,4,2      ; @mpga_packetizer_reset
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"using mpeg audio packetizer"

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