	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_avpriv_mpegaudio_decode_header ## -- Begin function avpriv_mpegaudio_decode_header
	.p2align	4, 0x90
_avpriv_mpegaudio_decode_header:        ## @avpriv_mpegaudio_decode_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	%esi, %r12d
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_ff_mpa_check_header
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	%r12d, %r13d
	andl	$1048576, %r13d                 ## imm = 0x100000
	xorl	%eax, %eax
	testl	$524288, %r12d                  ## imm = 0x80000
	sete	%al
	testl	%r13d, %r13d
	movl	$1, %r15d
	cmovel	%r15d, %eax
	shrl	$20, %r13d
	xorl	$1, %r13d
	movl	%eax, (%r14)
	movl	%r12d, %eax
	shrl	$17, %eax
	andl	$3, %eax
	movl	$4, %ecx
	subl	%eax, %ecx
	movl	%ecx, 4(%r14)
	movl	%r12d, %ebx
	shrl	$10, %ebx
	andl	$3, %ebx
	movq	_avpriv_mpa_freq_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_FF_ARRAY_ELEMS
	xorl	%edx, %edx
	cmpl	%eax, %ebx
	cmovll	%ebx, %edx
	movq	_avpriv_mpa_freq_tab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rdx,4), %esi
	movslq	(%r14), %rax
	addl	%eax, %r13d
	movl	%r13d, %ecx
	sarl	%cl, %esi
	leal	(%r13,%r13,2), %ecx
	addl	%edx, %ecx
	movl	%ecx, 8(%r14)
	xorl	%ecx, %ecx
	testl	$65536, %r12d                   ## imm = 0x10000
	sete	%cl
	movl	%ecx, 12(%r14)
	movl	%esi, 16(%r14)
	movl	%r12d, %ecx
	shrl	$12, %ecx
	movl	%r12d, %edx
	shrl	$6, %edx
	andl	$3, %edx
	movl	%edx, 20(%r14)
	movl	%r12d, %edi
	shrl	$4, %edi
	andl	$3, %edi
	movl	%edi, 24(%r14)
	movq	_MPA_MONO@GOTPCREL(%rip), %rdi
	xorl	%ebx, %ebx
	cmpl	(%rdi), %edx
	sete	%bl
	movl	$2, %edx
	subl	%ebx, %edx
	movl	%edx, 28(%r14)
	andl	$15, %ecx
	je	LBB0_9
## %bb.3:
	shrl	$9, %r12d
	andl	$1, %r12d
	movq	_avpriv_mpa_bitrate_tab@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx,%rax,8), %rdx
	movslq	4(%r14), %rdi
	movq	-8(%rdx,%rdi,8), %rdx
	movl	%ecx, %ecx
	movl	(%rdx,%rcx,4), %edx
	imull	$1000, %edx, %ecx               ## imm = 0x3E8
	movl	%ecx, 32(%r14)
	cmpq	$2, %rdi
	je	LBB0_7
## %bb.4:
	cmpl	$1, %edi
	jne	LBB0_6
## %bb.5:
	imull	$12000, %edx, %eax              ## imm = 0x2EE0
	cltd
	idivl	%esi
	addl	%r12d, %eax
	shll	$2, %eax
	jmp	LBB0_8
LBB0_1:
	movl	%eax, %r15d
	jmp	LBB0_9
LBB0_6:
	movl	%eax, %ecx
	shll	%cl, %esi
LBB0_7:
	imull	$144000, %edx, %eax             ## imm = 0x23280
	cltd
	idivl	%esi
	addl	%r12d, %eax
LBB0_8:
	movl	%eax, 36(%r14)
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_avpriv_mpa_freq_tab,8,3        ## @avpriv_mpa_freq_tab
	.comm	_MPA_MONO,4,2                   ## @MPA_MONO
	.comm	_avpriv_mpa_bitrate_tab,8,3     ## @avpriv_mpa_bitrate_tab
	.comm	_MODE_EXT_I_STEREO,4,2          ## @MODE_EXT_I_STEREO
	.comm	_MODE_EXT_MS_STEREO,4,2         ## @MODE_EXT_MS_STEREO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function avpriv_mpegaudio_decode_header
lCPI0_0:
	.long	4294967290                      ; 0xfffffffa
	.long	4294967292                      ; 0xfffffffc
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_avpriv_mpegaudio_decode_header
	.p2align	2
_avpriv_mpegaudio_decode_header:        ; @avpriv_mpegaudio_decode_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
	mov	x21, x1
	mov	x20, x0
	mov	x0, x1
	bl	_ff_mpa_check_header
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	w19, #1
	bic	w8, w19, w21, lsr #19
	ands	w9, w21, #0x100000
	csinc	w8, w8, wzr, ne
	lsr	w9, w9, #20
	eor	w22, w9, #0x1
	ubfx	w9, w21, #17, #2
	mov	w10, #4
	sub	w9, w10, w9
	stp	w8, w9, [x20]
	ubfx	w23, w21, #10, #2
Lloh0:
	adrp	x24, _avpriv_mpa_freq_tab@GOTPAGE
Lloh1:
	ldr	x24, [x24, _avpriv_mpa_freq_tab@GOTPAGEOFF]
	ldr	x0, [x24]
	bl	_FF_ARRAY_ELEMS
	cmp	w23, w0
	csel	w10, w23, wzr, lt
	ldr	x8, [x24]
	ldr	w9, [x8, w10, uxtw #2]
	ldrsw	x8, [x20]
	add	w11, w8, w22
	asr	w9, w9, w11
	add	w11, w11, w11, lsl #1
	add	w10, w11, w10
	bic	w11, w19, w21, lsr #16
	stp	w10, w11, [x20, #8]
	str	w9, [x20, #16]
	ubfx	w10, w21, #12, #4
	dup.2s	v0, w21
Lloh2:
	adrp	x11, lCPI0_0@PAGE
Lloh3:
	ldr	d1, [x11, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v0, v1
	movi.2s	v1, #3
	and.8b	v0, v0, v1
Lloh4:
	adrp	x11, _MPA_MONO@GOTPAGE
Lloh5:
	ldr	x11, [x11, _MPA_MONO@GOTPAGEOFF]
	stur	d0, [x20, #20]
Lloh6:
	ldr	w11, [x11]
	fmov	w12, s0
	cmp	w12, w11
	cinc	w11, w19, ne
	str	w11, [x20, #28]
	cbz	w10, LBB0_4
; %bb.2:
	mov	w19, #0
Lloh7:
	adrp	x11, _avpriv_mpa_bitrate_tab@GOTPAGE
Lloh8:
	ldr	x11, [x11, _avpriv_mpa_bitrate_tab@GOTPAGEOFF]
Lloh9:
	ldr	x11, [x11]
	ldr	x11, [x11, x8, lsl #3]
	ldr	w12, [x20, #4]
	sub	w13, w12, #1
	ldr	x11, [x11, w13, sxtw #3]
	ldr	w10, [x11, w10, uxtw #2]
	mov	w11, #1000
	mul	w11, w10, w11
	mov	w13, #12928
	movk	w13, #2, lsl #16
	mul	w13, w10, w13
	mov	w14, #12000
	mul	w10, w10, w14
	lsl	w8, w9, w8
	sdiv	w8, w13, w8
	sdiv	w13, w13, w9
	sdiv	w9, w10, w9
	ubfx	w10, w21, #9, #1
	add	w13, w13, w10
	add	w8, w8, w10
	add	w9, w9, w10
	lsl	w9, w9, #2
	cmp	w12, #1
	csel	w8, w8, w9, ne
	cmp	w12, #2
	csel	w8, w13, w8, eq
	stp	w11, w8, [x20, #32]
	b	LBB0_4
LBB0_3:
	mov	x19, x0
LBB0_4:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_avpriv_mpa_freq_tab,8,3        ; @avpriv_mpa_freq_tab
	.comm	_MPA_MONO,4,2                   ; @MPA_MONO
	.comm	_avpriv_mpa_bitrate_tab,8,3     ; @avpriv_mpa_bitrate_tab
	.comm	_MODE_EXT_I_STEREO,4,2          ; @MODE_EXT_I_STEREO
	.comm	_MODE_EXT_MS_STEREO,4,2         ; @MODE_EXT_MS_STEREO
.subsections_via_symbols
