	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function asfrtp_parse_packet
_asfrtp_parse_packet:                   ## @asfrtp_parse_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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%rdi, %r15
	movq	16(%rdi), %r12
	movq	8(%r12), %rdi
	movl	$-1, %eax
	testq	%rdi, %rdi
	je	LBB0_34
## %bb.1:
	movq	%rcx, %r14
	movq	%rsi, %rbx
	movl	16(%rbp), %ecx
	leaq	16(%rsi), %r13
	testl	%ecx, %ecx
	jle	LBB0_27
## %bb.2:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	cmpl	$4, %ecx
	jb	LBB0_34
## %bb.3:
	movl	%ecx, %r13d
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movl	32(%rbp), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_av_freep
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	xorl	%r14d, %r14d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_ffio_init_context
	movq	%r15, %rdi
	callq	_avio_tell
	addl	$4, %eax
	cmpl	%r13d, %eax
	jge	LBB0_25
## %bb.4:
	leaq	8(%rbx), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_7 Depth=1
	addl	(%r13), %r12d
	movslq	%r15d, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r15
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_FFMIN
	movl	%r12d, %edi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_memcpy
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_avio_skip
	movq	%r13, %rbx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movq	-120(%rbp), %r14                ## 8-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	callq	_avio_tell
	addl	$4, %eax
	movl	%r14d, %r12d
	cmpl	%r13d, %eax
	jge	LBB0_25
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_avio_tell
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_avio_r8
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_avio_rb24
	movl	%eax, %r14d
	testb	$32, %r13b
	jne	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	testb	$16, %r13b
	jne	LBB0_18
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	testb	$8, %r13b
	je	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_avio_skip
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	callq	_avio_tell
	movl	%eax, %r15d
	testb	$64, %r13b
	jne	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	callq	_avio_tell
	cmpl	%eax, %r14d
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_ffio_free_dyn_buf
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	testl	%r14d, %r14d
	je	LBB0_21
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_22
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_avio_skip
	testb	$16, %r13b
	je	LBB0_9
LBB0_18:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_avio_skip
	testb	$8, %r13b
	jne	LBB0_10
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_7 Depth=1
	addl	%ebx, %r14d
	subl	%r15d, %r14d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	subl	%r15d, %ebx
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_FFMIN
	testq	%rax, %rax
	js	LBB0_36
## %bb.20:                              ##   in Loop: Header=BB0_7 Depth=1
	leal	(%r14,%r12), %esi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%rsi, -120(%rbp)                ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_av_reallocp
	testl	%eax, %eax
	jns	LBB0_5
	jmp	LBB0_34
LBB0_21:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_7 Depth=1
	movslq	%r15d, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movl	%r13d, %ebx
	subl	%r15d, %ebx
	movl	%ebx, %edx
	callq	_avio_write
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_avio_skip
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movq	_RTP_FLAG_MARKER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_36
## %bb.23:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_avio_close_dyn_buf
	movl	%eax, %r14d
	movq	$0, 8(%rbx)
	jmp	LBB0_6
LBB0_24:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_avio_open_dyn_buf
	testl	%eax, %eax
	jns	LBB0_16
	jmp	LBB0_34
LBB0_25:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_init_packetizer
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %eax
	addl	%eax, 16(%rbx)
	movq	$0, 24(%rbx)
	movq	8(%r12), %rdi
	movq	%r15, 8(%rdi)
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%r15, %r13
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	%r14, %rdi
	callq	_av_packet_unref
	movq	8(%r12), %rdi
LBB0_27:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_30 Depth 2
	movq	%r14, %rsi
	callq	_ff_read_packet
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_avio_tell
	movl	%eax, (%r12)
	testl	%ebx, %ebx
	jne	LBB0_32
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_26
## %bb.29:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	8(%r15), %rcx
	movq	8(%r12), %rdx
	movq	(%rdx), %rdx
	movq	(%r14), %rsi
	movq	(%rdx,%rsi,8), %rdx
	movq	(%rdx), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_30:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rcx,%rsi,8), %rdi
	cmpq	%rdx, (%rdi)
	je	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=2
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_30
	jmp	LBB0_26
LBB0_32:
	cmpl	$1, %ebx
	movl	$-1, %eax
	cmovnel	%ebx, %eax
	jmp	LBB0_34
LBB0_33:
	movq	%rsi, (%r14)
	movl	$1, %eax
	jmp	LBB0_34
LBB0_36:
	movl	$-1, %eax
LBB0_34:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_RTP_FLAG_MARKER,4,2            ## @RTP_FLAG_MARKER
	.no_dead_strip	_asfrtp_parse_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function asfrtp_parse_packet
_asfrtp_parse_packet:                   ; @asfrtp_parse_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x0
	ldr	x20, [x0, #16]
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x23, x6
	mov	x25, x3
	mov	x22, x1
	add	x21, x1, #16
	cmp	w6, #1
	b.lt	LBB0_28
; %bb.2:
	cmp	w23, #4
	b.hs	LBB0_4
LBB0_3:
	mov	w0, #-1
	b	LBB0_35
LBB0_4:
	mov	x24, x5
	stp	x26, x25, [sp]                  ; 16-byte Folded Spill
	ldr	w8, [x29, #16]
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
	mov	x0, x22
	bl	_av_freep
	mov	x0, x21
	mov	x1, x24
	mov	x2, x23
	mov	w3, #0
	mov	x4, #0
	mov	x5, #0
	mov	x6, #0
	mov	x7, #0
	bl	_ffio_init_context
	mov	x0, x21
	bl	_avio_tell
	mov	w27, #0
	add	w8, w0, #4
	cmp	w8, w23
	b.ge	LBB0_26
; %bb.5:
	mov	w25, #0
	add	x8, x22, #8
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x22]
	add	w25, w8, w25
	add	x26, x24, w26, sxtw #2
	mov	x0, x19
	mov	x1, x28
	bl	_FFMIN
	mov	x2, x0
	mov	x0, x25
	mov	x1, x26
	bl	_memcpy
	mov	x0, x21
	mov	x1, x19
	bl	_avio_skip
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_avio_tell
	add	w8, w0, #4
	mov	x25, x27
	cmp	w8, w23
	b.ge	LBB0_26
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_avio_tell
	mov	x28, x0
	mov	x0, x21
	bl	_avio_r8
	mov	x19, x0
	mov	x0, x21
	bl	_avio_rb24
	mov	x27, x0
	tbnz	w19, #5, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	tbnz	w19, #4, LBB0_19
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	tbz	w19, #3, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	mov	w1, #4
	bl	_avio_skip
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_avio_tell
	mov	x26, x0
	tbnz	w19, #6, LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	ldr	x0, [x19]
	cbz	x0, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_avio_tell
	cmp	w27, w0
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_ffio_free_dyn_buf
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w27, LBB0_22
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x19]
	cbnz	x0, LBB0_23
	b	LBB0_36
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	mov	w1, #4
	bl	_avio_skip
	tbz	w19, #4, LBB0_10
LBB0_19:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	mov	w1, #4
	bl	_avio_skip
	tbnz	w19, #3, LBB0_11
	b	LBB0_12
LBB0_20:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w8, w27, w28
	sub	w19, w8, w26
	sub	w28, w23, w26
	mov	x0, x19
	mov	x1, x28
	bl	_FFMIN
	tbnz	x0, #63, LBB0_3
; %bb.21:                               ;   in Loop: Header=BB0_8 Depth=1
	add	w27, w19, w25
	mov	x0, x22
	mov	x1, x27
	bl	_av_reallocp
	tbz	w0, #31, LBB0_6
	b	LBB0_35
LBB0_22:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x19]
	cbz	x0, LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x1, x24, w26, sxtw #2
	sub	w19, w23, w26
	mov	x2, x19
	bl	_avio_write
	mov	x0, x21
	mov	x1, x19
	bl	_avio_skip
Lloh0:
	adrp	x8, _RTP_FLAG_MARKER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTP_FLAG_MARKER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [sp, #28]                   ; 4-byte Folded Reload
	tst	w8, w9
	b.eq	LBB0_3
; %bb.24:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x22, #8]
	mov	x1, x22
	bl	_avio_close_dyn_buf
	mov	x27, x0
	str	xzr, [x22, #8]
	b	LBB0_7
LBB0_25:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_avio_open_dyn_buf
	tbz	w0, #31, LBB0_17
	b	LBB0_35
LBB0_26:
	ldr	w1, [x22]
	mov	x0, x21
	mov	x2, x27
	bl	_init_packetizer
	ldr	w8, [x20]
	ldr	w9, [x22, #16]
	add	w8, w9, w8
	str	w8, [x22, #16]
	str	xzr, [x22, #24]
	ldr	x0, [x20, #8]
	str	x21, [x0, #8]
	ldp	x26, x25, [sp]                  ; 16-byte Folded Reload
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	mov	x0, x25
	bl	_av_packet_unref
	ldr	x0, [x20, #8]
LBB0_28:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_31 Depth 2
	mov	x1, x25
	bl	_ff_read_packet
	mov	x19, x0
	mov	x0, x21
	bl	_avio_tell
	str	w0, [x20]
	cbnz	w19, LBB0_33
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.30:                               ;   in Loop: Header=BB0_28 Depth=1
	mov	x9, #0
	ldr	x10, [x26, #8]
	ldr	x11, [x20, #8]
	ldr	x11, [x11]
	ldr	x12, [x25]
	ldr	x11, [x11, x12, lsl #3]
	ldr	x11, [x11]
LBB0_31:                                ;   Parent Loop BB0_28 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x10, x9, lsl #3]
	ldr	x12, [x12]
	cmp	x12, x11
	b.eq	LBB0_34
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=2
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_31
	b	LBB0_27
LBB0_33:
	cmp	w19, #1
	csinv	w0, w19, wzr, ne
	b	LBB0_35
LBB0_34:
	str	x9, [x25]
	mov	w0, #1
LBB0_35:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_36:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_RTP_FLAG_MARKER,4,2            ; @RTP_FLAG_MARKER
	.no_dead_strip	_asfrtp_parse_packet
.subsections_via_symbols
