	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mlp_read_major_sync         ## -- Begin function ff_mlp_read_major_sync
	.p2align	4, 0x90
_ff_mlp_read_major_sync:                ## @ff_mlp_read_major_sync
	.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
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rdx, %rdi
	callq	_get_bits_count
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_av_assert1
	movq	8(%r13), %rdi
	movl	(%r13), %esi
	sarl	$3, %esi
	callq	_mlp_get_major_sync_size
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leal	(,%rbx,8), %eax
	cmpl	%eax, (%r13)
	jge	LBB0_3
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_3:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%r13), %rdi
	leal	-2(%rbx), %esi
	callq	_ff_mlp_checksum16
	movq	%rax, %r15
	movq	8(%r13), %rax
	movl	%ebx, %ecx
	leaq	(%rcx,%rax), %rdi
	addq	$-2, %rdi
	callq	_AV_RL16
	cmpq	%rax, %r15
	jne	LBB0_4
## %bb.5:
	movq	%r13, %rdi
	movl	$24, %esi
	callq	_get_bits_long
	cmpl	$16282223, %eax                 ## imm = 0xF8726F
	jne	LBB0_6
## %bb.7:
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, (%r14)
	movl	%ebx, 4(%r14)
	cmpl	$186, %eax
	je	LBB0_10
## %bb.8:
	cmpl	$187, %eax
	jne	LBB0_6
## %bb.9:
	movq	_mlp_quants@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_get_bits
	cltq
	movl	(%rbx,%rax,8), %eax
	movl	%eax, 8(%r14)
	movq	(%r15), %rbx
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_get_bits
	cltq
	movq	(%rbx,%rax,8), %rax
	movq	%rax, 96(%r14)
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_mlp_samplerate
	movl	%eax, 12(%r14)
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, %edi
	callq	_mlp_samplerate
	movq	%rax, 88(%r14)
	movq	%r13, %rdi
	movl	$11, %esi
	callq	_skip_bits
	movq	%r13, %rdi
	movl	$5, %esi
	callq	_get_bits
	movl	%eax, 16(%r14)
	movq	_mlp_channels@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movl	(%rcx,%rax,4), %ecx
	movl	%ecx, 108(%r14)
	movq	_mlp_layout@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 104(%r14)
	jmp	LBB0_11
LBB0_4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
LBB0_6:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	$24, 8(%r14)
	movq	$0, 96(%r14)
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_mlp_samplerate
	movl	%eax, 12(%r14)
	movq	$0, 88(%r14)
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_skip_bits
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_get_bits
	movl	%eax, 20(%r14)
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_get_bits
	movl	%eax, 24(%r14)
	movq	%r13, %rdi
	movl	$5, %esi
	callq	_get_bits
	movl	%eax, %ebx
	movl	%eax, 16(%r14)
	movl	%eax, %edi
	callq	_truehd_channels
	movq	%rax, 80(%r14)
	movl	%ebx, %edi
	callq	_truehd_layout
	movq	%rax, 72(%r14)
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_get_bits
	movl	%eax, 28(%r14)
	movq	%r13, %rdi
	movl	$13, %esi
	callq	_get_bits
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_truehd_channels
	movq	%rax, 64(%r14)
	movl	%ebx, %edi
	callq	_truehd_layout
	movq	%rax, 56(%r14)
LBB0_11:
	andb	$7, %r12b
	movl	$40, %eax
	movl	%r12d, %ecx
	shll	%cl, %eax
	movl	%eax, 32(%r14)
	movl	$64, %eax
	shll	%cl, %eax
	movl	%eax, 36(%r14)
	movq	%r13, %rdi
	movl	$48, %esi
	callq	_skip_bits_long
	movq	%r13, %rdi
	callq	_get_bits1
	movl	%eax, 48(%r14)
	movq	%r13, %rdi
	movl	$15, %esi
	callq	_get_bits
	imull	12(%r14), %eax
	addl	$8, %eax
	sarl	$4, %eax
	movl	%eax, 40(%r14)
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, 44(%r14)
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addl	$-132, %esi
	movq	%r13, %rdi
	callq	_skip_bits_long
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"packet too short, unable to read major sync\n"

L_.str.1:                               ## @.str.1
	.asciz	"major sync info header checksum error\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_mlp_quants,8,3                 ## @mlp_quants
	.comm	_mlp_channels,8,3               ## @mlp_channels
	.comm	_mlp_layout,8,3                 ## @mlp_layout
.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 ff_mlp_read_major_sync
lCPI0_0:
	.long	40                              ; 0x28
	.long	64                              ; 0x40
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_mlp_read_major_sync
	.p2align	2
_ff_mlp_read_major_sync:                ; @ff_mlp_read_major_sync
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_get_bits_count
	cmp	x0, #0
	cset	w0, eq
	bl	_av_assert1
	ldr	x0, [x19, #8]
	ldr	w8, [x19]
	asr	w1, w8, #3
	bl	_mlp_get_major_sync_size
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	x22, x0
	ldr	w8, [x19]
	lsl	w24, w0, #3
	cmp	w8, w24
	b.ge	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_av_log
	mov	w0, #-1
	b	LBB0_10
LBB0_3:
	ldr	x0, [x19, #8]
	sub	w1, w22, #2
	bl	_ff_mlp_checksum16
	mov	x23, x0
	ldr	x8, [x19, #8]
	add	x8, x8, w22, uxtw
	sub	x0, x8, #2
	bl	_AV_RL16
	cmp	x23, x0
	b.ne	LBB0_8
; %bb.4:
	mov	x0, x19
	mov	w1, #24
	bl	_get_bits_long
	sub	w8, w0, #3975, lsl #12          ; =16281600
	cmp	w8, #623
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x19
	mov	w1, #8
	bl	_get_bits
	stp	w0, w22, [x20]
	cmp	w0, #186
	b.eq	LBB0_11
; %bb.6:
	cmp	w0, #187
	b.ne	LBB0_9
; %bb.7:
Lloh5:
	adrp	x21, _mlp_quants@GOTPAGE
Lloh6:
	ldr	x21, [x21, _mlp_quants@GOTPAGEOFF]
	ldr	x22, [x21]
	mov	x0, x19
	mov	w1, #4
	bl	_get_bits
	ldr	x8, [x22, w0, sxtw #3]
	str	w8, [x20, #8]
	ldr	x21, [x21]
	mov	x0, x19
	mov	w1, #4
	bl	_get_bits
	ldr	x8, [x21, w0, sxtw #3]
	str	x8, [x20, #96]
	mov	x0, x19
	mov	w1, #4
	bl	_get_bits
	mov	x21, x0
	bl	_mlp_samplerate
	str	w0, [x20, #12]
	mov	x0, x19
	mov	w1, #4
	bl	_get_bits
	bl	_mlp_samplerate
	str	x0, [x20, #88]
	mov	x0, x19
	mov	w1, #11
	bl	_skip_bits
	mov	x0, x19
	mov	w1, #5
	bl	_get_bits
                                        ; kill: def $w0 killed $w0 def $x0
Lloh7:
	adrp	x8, _mlp_channels@GOTPAGE
Lloh8:
	ldr	x8, [x8, _mlp_channels@GOTPAGEOFF]
	str	w0, [x20, #16]
Lloh9:
	ldr	x8, [x8]
	sbfiz	x9, x0, #2, #32
	ldr	w8, [x8, x9]
	str	w8, [x20, #108]
Lloh10:
	adrp	x8, _mlp_layout@GOTPAGE
Lloh11:
	ldr	x8, [x8, _mlp_layout@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldr	w8, [x8, x9]
	str	w8, [x20, #104]
	b	LBB0_12
LBB0_8:
Lloh13:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_av_log
LBB0_9:
Lloh18:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
LBB0_10:
	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_11:
	mov	w8, #24
	str	w8, [x20, #8]
	str	xzr, [x20, #96]
	mov	x0, x19
	mov	w1, #4
	bl	_get_bits
	mov	x21, x0
	bl	_mlp_samplerate
	str	w0, [x20, #12]
	str	xzr, [x20, #88]
	mov	x0, x19
	mov	w1, #4
	bl	_skip_bits
	mov	x0, x19
	mov	w1, #2
	bl	_get_bits
	str	w0, [x20, #20]
	mov	x0, x19
	mov	w1, #2
	bl	_get_bits
	str	w0, [x20, #24]
	mov	x0, x19
	mov	w1, #5
	bl	_get_bits
	mov	x22, x0
	str	w0, [x20, #16]
	bl	_truehd_channels
	str	x0, [x20, #80]
	mov	x0, x22
	bl	_truehd_layout
	str	x0, [x20, #72]
	mov	x0, x19
	mov	w1, #2
	bl	_get_bits
	str	w0, [x20, #28]
	mov	x0, x19
	mov	w1, #13
	bl	_get_bits
	mov	x22, x0
	bl	_truehd_channels
	str	x0, [x20, #64]
	mov	x0, x22
	bl	_truehd_layout
	str	x0, [x20, #56]
LBB0_12:
	and	w8, w21, #0x7
	dup.2s	v0, w8
Lloh21:
	adrp	x8, lCPI0_0@PAGE
Lloh22:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	ushl.2s	v0, v1, v0
	str	d0, [x20, #32]
	mov	x0, x19
	mov	w1, #48
	bl	_skip_bits_long
	mov	x0, x19
	bl	_get_bits1
	str	w0, [x20, #48]
	mov	x0, x19
	mov	w1, #15
	bl	_get_bits
	ldr	w8, [x20, #12]
	orr	w9, wzr, #0x8
	madd	w8, w8, w0, w9
	asr	w8, w8, #4
	str	w8, [x20, #40]
	mov	x0, x19
	mov	w1, #4
	bl	_get_bits
	str	w0, [x20, #44]
	sub	w1, w24, #132
	mov	x0, x19
	bl	_skip_bits_long
	mov	w0, #0
	b	LBB0_10
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdr	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"packet too short, unable to read major sync\n"

l_.str.1:                               ; @.str.1
	.asciz	"major sync info header checksum error\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_mlp_quants,8,3                 ; @mlp_quants
	.comm	_mlp_channels,8,3               ; @mlp_channels
	.comm	_mlp_layout,8,3                 ; @mlp_layout
.subsections_via_symbols
