	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_expected_header
_find_expected_header:                  ## @find_expected_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
	xorl	%eax, %eax
	cmpl	$4096, %esi                     ## imm = 0x1000
	jg	LBB0_16
## %bb.1:
	movq	%rcx, %r14
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	(%rdi), %r13d
	movq	%rcx, %rdi
	movl	$1, %esi
	callq	_AV_WB24
	movq	8(%rbx), %rcx
	movq	_AV_CODEC_ID_MPEG4@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_4
## %bb.2:
	movl	$3, %eax
	testl	%r12d, %r12d
	jne	LBB0_16
## %bb.3:
	movl	$182, 12(%r14)
	movl	$4, %eax
	jmp	LBB0_16
LBB0_4:
	movq	_AV_CODEC_ID_MPEG1VIDEO@GOTPCREL(%rip), %rdx
	movl	$3, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_16
## %bb.5:
	movq	_AV_CODEC_ID_MPEG2VIDEO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_16
## %bb.6:
	movq	_AV_CODEC_ID_H264@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_16
## %bb.7:
	movq	_AV_CODEC_ID_MP3@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, %rcx
	je	LBB0_9
## %bb.8:
	movq	_AV_CODEC_ID_MP2@GOTPCREL(%rip), %rdx
	movl	$0, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_16
LBB0_9:
	xorl	%edx, %edx
	cmpq	%rsi, %rcx
	sete	%dl
	xorl	%eax, %eax
	cmpl	$28000, %r13d                   ## imm = 0x6D60
	setl	%al
	xorl	%ecx, %ecx
	cmpl	$14000, %r13d                   ## imm = 0x36B0
	setl	%cl
	addl	%eax, %ecx
	movl	%r13d, %esi
	shll	%cl, %esi
	xorl	%edi, %edi
	cmpl	$46050, %esi                    ## imm = 0xB3E2
	setge	%dil
	cmpl	$38050, %esi                    ## imm = 0x94A2
	movl	$2, %ebx
	cmovlq	%rbx, %rdi
	leal	2(%rdx), %r8d
	movq	_avpriv_mpa_freq_tab@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movl	(%rsi,%rdi,4), %esi
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %esi
	movq	_avpriv_mpa_bitrate_tab@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%rax,8), %rcx
	incl	%edx
	movq	(%rcx,%rdx,8), %rdi
	movl	%eax, %ecx
	shll	%cl, %esi
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	imull	$144000, (%rdi,%rax,4), %eax    ## imm = 0x23280
	cltd
	idivl	%esi
	cmpl	%r15d, %eax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	imull	$144000, (%rdi,%rbx,2), %eax    ## imm = 0x23280
	cltd
	idivl	%esi
	incl	%eax
	cmpl	%r15d, %eax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	addq	$2, %rbx
	incl	%ecx
	cmpl	$30, %ebx
	jne	LBB0_10
## %bb.13:
	movl	$30, %ebx
	jmp	LBB0_15
LBB0_14:
	incl	%ebx
LBB0_15:
	xorl	%esi, %esi
	cmpl	$28000, %r13d                   ## imm = 0x6D60
	setge	%sil
	shll	$17, %r8d
	movl	$524288, %eax                   ## imm = 0x80000
	subl	%r8d, %eax
	shll	$19, %esi
	orl	%eax, %esi
	orl	$-983040, %esi                  ## imm = 0xFFF10000
	movq	%r14, %rdi
	callq	_AV_WB32
	xorl	%eax, %eax
	cmpl	$30, %ebx
	setne	%al
	testl	%r15d, %r15d
	leal	-1(%rax,%rax,2), %ecx
	movl	$2, %eax
	cmovgl	%ecx, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_MPEG4,8,3          ## @AV_CODEC_ID_MPEG4
	.comm	_AV_CODEC_ID_MPEG1VIDEO,8,3     ## @AV_CODEC_ID_MPEG1VIDEO
	.comm	_AV_CODEC_ID_MPEG2VIDEO,8,3     ## @AV_CODEC_ID_MPEG2VIDEO
	.comm	_AV_CODEC_ID_H264,8,3           ## @AV_CODEC_ID_H264
	.comm	_AV_CODEC_ID_MP3,8,3            ## @AV_CODEC_ID_MP3
	.comm	_AV_CODEC_ID_MP2,8,3            ## @AV_CODEC_ID_MP2
	.comm	_avpriv_mpa_freq_tab,8,3        ## @avpriv_mpa_freq_tab
	.comm	_avpriv_mpa_bitrate_tab,8,3     ## @avpriv_mpa_bitrate_tab
	.no_dead_strip	_find_expected_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_expected_header
_find_expected_header:                  ; @find_expected_header
	.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
	cmp	w1, #1, lsl #12                 ; =4096
	b.le	LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w23, [x0]
	mov	x0, x3
	mov	w1, #1
	bl	_AV_WB24
	ldr	x8, [x22, #8]
Lloh0:
	adrp	x9, _AV_CODEC_ID_MPEG4@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_CODEC_ID_MPEG4@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	cbnz	w21, LBB0_6
; %bb.4:
	mov	w8, #182
	str	w8, [x20, #12]
	mov	w0, #4
	b	LBB0_7
LBB0_5:
Lloh3:
	adrp	x9, _AV_CODEC_ID_MPEG1VIDEO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AV_CODEC_ID_MPEG1VIDEO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _AV_CODEC_ID_MPEG2VIDEO@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AV_CODEC_ID_MPEG2VIDEO@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _AV_CODEC_ID_H264@GOTPAGE
Lloh10:
	ldr	x11, [x11, _AV_CODEC_ID_H264@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_8
LBB0_6:
	mov	w0, #3
LBB0_7:
	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_8:
Lloh12:
	adrp	x9, _AV_CODEC_ID_MP3@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AV_CODEC_ID_MP3@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _AV_CODEC_ID_MP2@GOTPAGE
Lloh16:
	ldr	x10, [x10, _AV_CODEC_ID_MP2@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_1
; %bb.9:
	cmp	x8, x9
	mov	w21, #2
	cinc	w8, w21, eq
	mov	w9, #28000
	cmp	w23, w9
	cset	w10, lt
	mov	w9, #14000
	cmp	w23, w9
	cinc	w9, w10, lt
	lsl	w11, w23, w9
	mov	w12, #46049
	cmp	w11, w12
	cset	w12, gt
	mov	w13, #38050
	cmp	w11, w13
	csel	x11, x21, x12, lt
Lloh18:
	adrp	x12, _avpriv_mpa_freq_tab@GOTPAGE
Lloh19:
	ldr	x12, [x12, _avpriv_mpa_freq_tab@GOTPAGEOFF]
Lloh20:
	ldr	x12, [x12]
	ldr	w11, [x12, x11, lsl #2]
Lloh21:
	adrp	x12, _avpriv_mpa_bitrate_tab@GOTPAGE
Lloh22:
	ldr	x12, [x12, _avpriv_mpa_bitrate_tab@GOTPAGEOFF]
Lloh23:
	ldr	x12, [x12]
	ldr	x12, [x12, w10, uxtw #3]
	asr	w11, w11, w9
	sub	w9, w8, #1
	ldr	x9, [x12, w9, uxtw #3]
	lsl	w10, w11, w10
	mov	w11, #12928
	movk	w11, #2, lsl #16
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	lsr	w12, w21, #1
	ldr	w12, [x9, w12, uxtw #2]
	mul	w12, w12, w11
	sdiv	w12, w12, w10
	and	w13, w21, #0x1
	add	w12, w12, w13
	cmp	w12, w19
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w21, w21, #1
	cmp	w21, #30
	b.ne	LBB0_10
; %bb.12:
	mov	w21, #30
LBB0_13:
	mov	w9, #524288
	sub	w8, w9, w8, lsl #17
	mov	w9, #-983040
	orr	w10, w9, #0x80000
	mov	w11, #28000
	cmp	w23, w11
	csel	w9, w9, w10, lt
	orr	w1, w9, w8
	mov	x0, x20
	bl	_AV_WB32
	cmp	w21, #30
	mov	w8, #2
	csinv	w9, w8, wzr, ne
	cmp	w19, #1
	csel	w0, w8, w9, lt
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_MPEG4,8,3          ; @AV_CODEC_ID_MPEG4
	.comm	_AV_CODEC_ID_MPEG1VIDEO,8,3     ; @AV_CODEC_ID_MPEG1VIDEO
	.comm	_AV_CODEC_ID_MPEG2VIDEO,8,3     ; @AV_CODEC_ID_MPEG2VIDEO
	.comm	_AV_CODEC_ID_H264,8,3           ; @AV_CODEC_ID_H264
	.comm	_AV_CODEC_ID_MP3,8,3            ; @AV_CODEC_ID_MP3
	.comm	_AV_CODEC_ID_MP2,8,3            ; @AV_CODEC_ID_MP2
	.comm	_avpriv_mpa_freq_tab,8,3        ; @avpriv_mpa_freq_tab
	.comm	_avpriv_mpa_bitrate_tab,8,3     ; @avpriv_mpa_bitrate_tab
	.no_dead_strip	_find_expected_header
.subsections_via_symbols
