	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h264_new_rtp_packet
_h264_new_rtp_packet:                   ## @h264_new_rtp_packet
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %r12
	addq	$8, %rbx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rsi
	movl	$8, %edx
	callq	_BITS_READ_U8
	movl	%eax, %r14d
	movq	_NAL_UNIT_FZERO_MASK@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_LOG_DEBUG
	movq	_VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
LBB0_2:
	movl	$5, (%r12)
	movl	%r14d, 4(%r12)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_BITS_BYTES_AVAILABLE
	movl	%eax, 12(%r12)
	movq	_NAL_UNIT_TYPE_MASK@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	andl	%r14d, %edx
	leal	-128(%rdx), %eax
	cmpl	$5, %eax
	ja	LBB0_11
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_LOG_ERROR
	movq	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPCREL(%rip), %rbx
	jmp	LBB0_13
LBB0_11:
	movl	8(%r12), %edi
	movq	_H264F_INSIDE_FRAGMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CLEAR_BIT
	jmp	LBB0_12
LBB0_4:
	movl	8(%r12), %edi
	movq	_H264F_INSIDE_FRAGMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CLEAR_BIT
	movl	$0, 12(%r12)
LBB0_12:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rbx
LBB0_13:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.2(%rip), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$8, %edx
	callq	_BITS_READ_U8
	decl	12(%r12)
	movl	%eax, %ebx
	movq	_FRAGMENT_UNIT_HEADER_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_BIT_IS_CLEAR
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	8(%r12), %edi
	movq	_H264F_INSIDE_FRAGMENT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_BIT_IS_SET
	testl	%eax, %eax
	je	LBB0_9
LBB0_7:
	movl	$0, (%r12)
	movq	_FRAGMENT_UNIT_HEADER_END@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_BIT_IS_SET
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	je	LBB0_13
## %bb.8:
	movl	8(%r12), %edi
	movq	_H264F_INSIDE_FRAGMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CLEAR_BIT
	jmp	LBB0_13
LBB0_9:
	movl	8(%r12), %edi
	movl	(%r15), %esi
	callq	_SET_BIT
	xorl	%r14d, %ebx
	andl	(%r13), %ebx
	xorl	%r14d, %ebx
	movl	%ebx, 4(%r12)
	jmp	LBB0_12
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_4
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nal_unit_header"

	.comm	_NAL_UNIT_FZERO_MASK,4,2        ## @NAL_UNIT_FZERO_MASK
L_.str.1:                               ## @.str.1
	.asciz	"H.264: Invalid NAL unit (top bit of header set)"

	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ## @VC_CONTAINER_ERROR_FORMAT_INVALID
	.comm	_NAL_UNIT_TYPE_MASK,4,2         ## @NAL_UNIT_TYPE_MASK
	.comm	_H264F_INSIDE_FRAGMENT,4,2      ## @H264F_INSIDE_FRAGMENT
L_.str.2:                               ## @.str.2
	.asciz	"fragment_header"

	.comm	_FRAGMENT_UNIT_HEADER_START,4,2 ## @FRAGMENT_UNIT_HEADER_START
	.comm	_FRAGMENT_UNIT_HEADER_END,4,2   ## @FRAGMENT_UNIT_HEADER_END
L_.str.3:                               ## @.str.3
	.asciz	"H.264: Unsupported RTP NAL unit type: %u"

	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,4,2 ## @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
	.comm	_VC_CONTAINER_SUCCESS,4,2       ## @VC_CONTAINER_SUCCESS
	.no_dead_strip	_h264_new_rtp_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h264_new_rtp_packet
_h264_new_rtp_packet:                   ; @h264_new_rtp_packet
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x20, x0
	ldr	x22, [x21], #8
Lloh0:
	adrp	x3, l_.str@PAGE
Lloh1:
	add	x3, x3, l_.str@PAGEOFF
	mov	x1, x21
	mov	w2, #8
	bl	_BITS_READ_U8
Lloh2:
	adrp	x8, _NAL_UNIT_FZERO_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NAL_UNIT_FZERO_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_LOG_DEBUG
Lloh7:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	mov	x19, x0
	mov	w8, #5
	stp	w8, w0, [x22]
	mov	x0, x20
	mov	x1, x21
	bl	_BITS_BYTES_AVAILABLE
	str	w0, [x22, #12]
Lloh9:
	adrp	x23, _NAL_UNIT_TYPE_MASK@GOTPAGE
Lloh10:
	ldr	x23, [x23, _NAL_UNIT_TYPE_MASK@GOTPAGEOFF]
	ldr	w8, [x23]
	and	w2, w8, w19
	sub	w8, w2, #128
	cmp	w8, #5
	b.hi	LBB0_9
; %bb.3:
Lloh11:
	adrp	x9, lJTI0_0@PAGE
Lloh12:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_LOG_ERROR
Lloh15:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	ldr	w0, [x22, #8]
Lloh17:
	adrp	x8, _H264F_INSIDE_FRAGMENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _H264F_INSIDE_FRAGMENT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_CLEAR_BIT
	str	wzr, [x22, #12]
	b	LBB0_10
LBB0_6:
Lloh20:
	adrp	x3, l_.str.2@PAGE
Lloh21:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	w2, #8
	bl	_BITS_READ_U8
	mov	x20, x0
	ldr	w8, [x22, #12]
	sub	w8, w8, #1
	str	w8, [x22, #12]
Lloh22:
	adrp	x8, _FRAGMENT_UNIT_HEADER_START@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FRAGMENT_UNIT_HEADER_START@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_BIT_IS_CLEAR
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	w0, [x22, #8]
Lloh25:
	adrp	x21, _H264F_INSIDE_FRAGMENT@GOTPAGE
Lloh26:
	ldr	x21, [x21, _H264F_INSIDE_FRAGMENT@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_BIT_IS_SET
	cbz	w0, LBB0_12
LBB0_8:
	str	wzr, [x22]
Lloh27:
	adrp	x8, _FRAGMENT_UNIT_HEADER_END@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FRAGMENT_UNIT_HEADER_END@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_BIT_IS_SET
	cbz	w0, LBB0_10
LBB0_9:
	ldr	w0, [x22, #8]
Lloh30:
	adrp	x8, _H264F_INSIDE_FRAGMENT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _H264F_INSIDE_FRAGMENT@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	bl	_CLEAR_BIT
LBB0_10:
Lloh33:
	adrp	x8, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	w0, [x22, #8]
	ldr	w1, [x21]
	bl	_SET_BIT
	ldr	w8, [x23]
	and	w9, w8, w20
	bic	w8, w19, w8
	orr	w8, w9, w8
	str	w8, [x22, #4]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nal_unit_header"

	.comm	_NAL_UNIT_FZERO_MASK,4,2        ; @NAL_UNIT_FZERO_MASK
l_.str.1:                               ; @.str.1
	.asciz	"H.264: Invalid NAL unit (top bit of header set)"

	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,4,2 ; @VC_CONTAINER_ERROR_FORMAT_INVALID
	.comm	_NAL_UNIT_TYPE_MASK,4,2         ; @NAL_UNIT_TYPE_MASK
	.comm	_H264F_INSIDE_FRAGMENT,4,2      ; @H264F_INSIDE_FRAGMENT
l_.str.2:                               ; @.str.2
	.asciz	"fragment_header"

	.comm	_FRAGMENT_UNIT_HEADER_START,4,2 ; @FRAGMENT_UNIT_HEADER_START
	.comm	_FRAGMENT_UNIT_HEADER_END,4,2   ; @FRAGMENT_UNIT_HEADER_END
l_.str.3:                               ; @.str.3
	.asciz	"H.264: Unsupported RTP NAL unit type: %u"

	.comm	_VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED,4,2 ; @VC_CONTAINER_ERROR_FORMAT_NOT_SUPPORTED
	.comm	_VC_CONTAINER_SUCCESS,4,2       ; @VC_CONTAINER_SUCCESS
	.no_dead_strip	_h264_new_rtp_packet
.subsections_via_symbols
