	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtp_asf_fix_header
_rtp_asf_fix_header:                    ## @rtp_asf_fix_header
	.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
	movl	$-1, %r14d
	cmpl	$30, %esi
	jb	LBB0_9
## %bb.1:
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_ff_asf_header@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_2
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movslq	%r15d, %rax
	leaq	(%rbx,%rax,4), %r12
	addq	$72, %rbx
	movq	_ff_asf_file_header@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	16(%rbx), %rdi
	callq	_AV_RL64
	movl	%eax, %r15d
	movl	(%r13), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r15d, %rax
	movq	%r12, %rcx
	subq	%rbx, %rcx
	sarq	$2, %rcx
	cmpq	%rax, %rcx
	jl	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rbx,%rax,4), %rbx
	movq	%r12, %rax
	subq	%rbx, %rax
	cmpq	$44, %rax
	ja	LBB0_3
	jmp	LBB0_9
LBB0_6:
	subq	%rbx, %r12
	cmpq	$304, %r12                      ## imm = 0x130
	jl	LBB0_9
## %bb.7:
	leaq	272(%rbx), %r15
	movq	%r15, %rdi
	callq	_AV_RL32
	movq	%rax, %r12
	addq	$288, %rbx                      ## imm = 0x120
	movq	%rbx, %rdi
	callq	_AV_RL32
	cmpq	%rax, %r12
	jne	LBB0_9
## %bb.8:
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_AV_WL32
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_asf_header,4,2              ## @ff_asf_header
	.comm	_ff_asf_file_header,4,2         ## @ff_asf_file_header
	.no_dead_strip	_rtp_asf_fix_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtp_asf_fix_header
_rtp_asf_fix_header:                    ; @rtp_asf_fix_header
	.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
	cmp	w1, #30
	b.lo	LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _ff_asf_header@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ff_asf_header@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #-1
LBB0_3:
	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
LBB0_4:
	add	x21, x19, w20, sxtw #2
	add	x19, x19, #72
Lloh3:
	adrp	x22, _ff_asf_file_header@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ff_asf_file_header@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x19, #16
	bl	_AV_RL64
	mov	x20, x0
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #4
	bl	_memcmp
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x8, w20
	sub	x9, x21, x19
	mov	w0, #-1
	cmp	x8, x9, asr #2
	b.gt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x19, x19, w20, sxtw #2
	sub	x8, x21, x19
	cmp	x8, #44
	b.hi	LBB0_5
	b	LBB0_3
LBB0_8:
	sub	x8, x21, x19
	cmp	x8, #304
	b.lt	LBB0_2
; %bb.9:
	add	x20, x19, #272
	mov	x0, x20
	bl	_AV_RL32
	mov	x21, x0
	add	x0, x19, #288
	bl	_AV_RL32
	cmp	x21, x0
	b.ne	LBB0_2
; %bb.10:
	mov	x0, x20
	mov	w1, #0
	bl	_AV_WL32
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_asf_header,4,2              ; @ff_asf_header
	.comm	_ff_asf_file_header,4,2         ; @ff_asf_file_header
	.no_dead_strip	_rtp_asf_fix_header
.subsections_via_symbols
