	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp4_payload_handler
_mp4_payload_handler:                   ## @mp4_payload_handler
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	(%rax), %r14
	movq	8(%r14), %r12
	movl	(%r14), %edi
	movq	_TRACK_NEW_PACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_BIT_IS_SET
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mp4_new_rtp_packet
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
LBB0_2:
	cmpq	$0, (%r12)
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_mp4_next_au_header
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
LBB0_4:
	addq	$16, %r14
	testq	%r13, %r13
	je	LBB0_6
## %bb.5:
	movl	16(%r12), %eax
	addl	%eax, 24(%r13)
	movl	8(%r12), %eax
	addl	%eax, 20(%r13)
LBB0_6:
	movq	(%r12), %rbx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_BITS_BYTES_AVAILABLE
	movq	%rax, %r15
	cmpq	%rax, %rbx
	cmovlq	%rbx, %r15
	testq	%r13, %r13
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_11
## %bb.7:
	movq	_VC_CONTAINER_READ_FLAG_SKIP@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	je	LBB0_8
LBB0_11:
	leaq	L_.str(%rip), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_BITS_SKIP_BYTES
	jmp	LBB0_12
LBB0_8:
	movq	_VC_CONTAINER_READ_FLAG_INFO@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	jne	LBB0_10
## %bb.9:
	movq	(%r13), %rax
	cmpq	%rax, %r15
	cmovgeq	%rax, %r15
	movl	16(%r13), %ecx
	leaq	L_.str(%rip), %r8
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_BITS_COPY_BYTES
LBB0_10:
	movq	%r15, 8(%r13)
LBB0_12:
	movq	_VC_CONTAINER_READ_FLAG_INFO@GOTPCREL(%rip), %rax
	testq	%rbx, (%rax)
	jne	LBB0_14
## %bb.13:
	subq	%r15, (%r12)
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_BITS_VALID
	testq	%rax, %rax
	jne	LBB0_15
## %bb.16:
	movq	_VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_15:
	movq	_VC_CONTAINER_SUCCESS@GOTPCREL(%rip), %rax
LBB0_17:
	movq	(%rax), %rax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACK_NEW_PACKET,4,2           ## @TRACK_NEW_PACKET
	.comm	_VC_CONTAINER_SUCCESS,8,3       ## @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_READ_FLAG_SKIP,8,3 ## @VC_CONTAINER_READ_FLAG_SKIP
	.comm	_VC_CONTAINER_READ_FLAG_INFO,8,3 ## @VC_CONTAINER_READ_FLAG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Packet data"

	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,8,3 ## @VC_CONTAINER_ERROR_FORMAT_INVALID
	.no_dead_strip	_mp4_payload_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp4_payload_handler
_mp4_payload_handler:                   ; @mp4_payload_handler
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x22, x2
	mov	x19, x0
	ldr	x8, [x1]
	ldr	x23, [x8]
	ldr	x20, [x23, #8]
	ldr	w0, [x23]
Lloh0:
	adrp	x8, _TRACK_NEW_PACKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRACK_NEW_PACKET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_BIT_IS_SET
	mov	x24, x0
Lloh3:
	adrp	x25, _VC_CONTAINER_SUCCESS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _VC_CONTAINER_SUCCESS@GOTPAGEOFF]
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x23
	bl	_mp4_new_rtp_packet
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_15
LBB0_2:
	ldr	x8, [x20]
	cbnz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	bl	_mp4_next_au_header
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_15
LBB0_4:
	add	x23, x23, #16
	cbz	x22, LBB0_6
; %bb.5:
	ldur	q0, [x20, #8]
	ldur	d1, [x22, #20]
	xtn.2s	v0, v0
	add.2s	v0, v1, v0
	stur	d0, [x22, #20]
LBB0_6:
	ldr	x24, [x20]
	mov	x0, x19
	mov	x1, x23
	bl	_BITS_BYTES_AVAILABLE
	cmp	x24, x0
	csel	x24, x24, x0, lt
Lloh5:
	adrp	x26, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGE
Lloh6:
	ldr	x26, [x26, _VC_CONTAINER_READ_FLAG_INFO@GOTPAGEOFF]
	cbz	x22, LBB0_8
; %bb.7:
Lloh7:
	adrp	x8, _VC_CONTAINER_READ_FLAG_SKIP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VC_CONTAINER_READ_FLAG_SKIP@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	tst	x8, x21
	b.eq	LBB0_9
LBB0_8:
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_BITS_SKIP_BYTES
	b	LBB0_12
LBB0_9:
	ldr	x8, [x26]
	tst	x8, x21
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [x22]
	cmp	x24, x8
	csel	x24, x24, x8, lt
	ldr	w3, [x22, #16]
Lloh12:
	adrp	x4, l_.str@PAGE
Lloh13:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_BITS_COPY_BYTES
LBB0_11:
	str	x24, [x22, #8]
LBB0_12:
	ldr	x8, [x26]
	tst	x8, x21
	b.ne	LBB0_14
; %bb.13:
	ldr	x8, [x20]
	sub	x8, x8, x24
	str	x8, [x20]
LBB0_14:
	mov	x0, x19
	mov	x1, x23
	bl	_BITS_VALID
Lloh14:
	adrp	x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VC_CONTAINER_ERROR_FORMAT_INVALID@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x25, eq
	ldr	x0, [x8]
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACK_NEW_PACKET,4,2           ; @TRACK_NEW_PACKET
	.comm	_VC_CONTAINER_SUCCESS,8,3       ; @VC_CONTAINER_SUCCESS
	.comm	_VC_CONTAINER_READ_FLAG_SKIP,8,3 ; @VC_CONTAINER_READ_FLAG_SKIP
	.comm	_VC_CONTAINER_READ_FLAG_INFO,8,3 ; @VC_CONTAINER_READ_FLAG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Packet data"

	.comm	_VC_CONTAINER_ERROR_FORMAT_INVALID,8,3 ; @VC_CONTAINER_ERROR_FORMAT_INVALID
	.no_dead_strip	_mp4_payload_handler
.subsections_via_symbols
