	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtp_parse_mp4_au
_rtp_parse_mp4_au:                      ## @rtp_parse_mp4_au
	.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
	cmpl	$1, %edx
	jle	LBB0_1
## %bb.2:
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_AV_RB16
	movl	%eax, %r12d
	movq	_RTP_MAX_PACKET_LENGTH@GOTPCREL(%rip), %rax
	movl	$-1, %r14d
	cmpl	(%rax), %r12d
	jg	LBB0_14
## %bb.3:
	leal	7(%r12), %eax
	leal	14(%r12), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$3, %edx
	movl	%edx, (%r15)
	addl	$-2, %ebx
	cmpl	%edx, %ebx
	jge	LBB0_4
LBB0_1:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	addq	$8, %r13
	shll	$3, %edx
	leaq	-44(%rbp), %rdi
	movq	%r13, %rsi
	callq	_init_get_bits
	movl	8(%r15), %ecx
	addl	4(%r15), %ecx
	jle	LBB0_14
## %bb.5:
	movl	%r12d, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	LBB0_14
## %bb.6:
	movl	%eax, 12(%r15)
	movq	24(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	cmpl	%eax, 16(%r15)
	jge	LBB0_11
LBB0_8:
	callq	_av_free
	movl	12(%r15), %edi
	shll	$2, %edi
	callq	_av_malloc
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movl	12(%r15), %eax
	movl	%eax, 16(%r15)
LBB0_11:
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jle	LBB0_14
## %bb.12:
	leaq	-44(%rbp), %r12
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %esi
	movq	%r12, %rdi
	callq	_get_bits_long
	movq	24(%r15), %rcx
	movq	%rax, 8(%rcx,%rbx)
	movl	8(%r15), %esi
	movq	%r12, %rdi
	callq	_get_bits_long
	movq	24(%r15), %rcx
	movq	%rax, (%rcx,%rbx)
	incq	%r13
	movslq	12(%r15), %rax
	addq	$16, %rbx
	cmpq	%rax, %r13
	jl	LBB0_13
	jmp	LBB0_14
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r14d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_RTP_MAX_PACKET_LENGTH,4,2      ## @RTP_MAX_PACKET_LENGTH
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_rtp_parse_mp4_au
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtp_parse_mp4_au
_rtp_parse_mp4_au:                      ; @rtp_parse_mp4_au
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cmp	w2, #1
	b.le	LBB0_4
; %bb.1:
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_AV_RB16
Lloh0:
	adrp	x8, _RTP_MAX_PACKET_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTP_MAX_PACKET_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_3
LBB0_2:
	mov	w0, #-1
	b	LBB0_5
LBB0_3:
	mov	x20, x0
	add	w8, w0, #7
	add	w9, w0, #14
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	str	w8, [x19]
	sub	w9, w22, #2
	cmp	w9, w8
	b.ge	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_5:
	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
	add	sp, sp, #64
	ret
LBB0_6:
	add	x1, x21, #8
	lsl	w2, w8, #3
	add	x0, sp, #12
	bl	_init_get_bits
	ldp	w8, w9, [x19, #4]
	add	w9, w9, w8
	cmp	w9, #1
	b.lt	LBB0_2
; %bb.7:
	sdiv	w8, w20, w9
	msub	w9, w8, w9, w20
	cbnz	w9, LBB0_2
; %bb.8:
	str	w8, [x19, #12]
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w9, [x19, #16]
	cmp	w9, w8
	b.ge	LBB0_12
LBB0_10:
	bl	_av_free
	ldr	w8, [x19, #12]
	lsl	w0, w8, #2
	bl	_av_malloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_15
; %bb.11:
	ldr	w8, [x19, #12]
	str	w8, [x19, #16]
LBB0_12:
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.13:
	mov	x20, #0
	mov	x21, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #4]
	add	x0, sp, #12
	bl	_get_bits_long
	ldr	x8, [x19, #24]
	add	x8, x8, x20
	str	x0, [x8, #8]
	ldr	w1, [x19, #8]
	add	x0, sp, #12
	bl	_get_bits_long
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19, #24]
	str	x8, [x9, x20]
	add	x21, x21, #1
	ldrsw	x8, [x19, #12]
	add	x20, x20, #16
	cmp	x21, x8
	b.lt	LBB0_14
	b	LBB0_5
LBB0_15:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_5
LBB0_16:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_RTP_MAX_PACKET_LENGTH,4,2      ; @RTP_MAX_PACKET_LENGTH
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_rtp_parse_mp4_au
.subsections_via_symbols
