	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_common_header
_parse_common_header:                   ## @parse_common_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	44(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_get_bits_long
	movq	_DCA_SYNCWORD_XLL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_27
## %bb.1:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_get_bits
	testl	%eax, %eax
	jle	LBB0_3
## %bb.2:
	incl	%eax
	movl	40(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
LBB0_10:
	callq	_avpriv_request_sample
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_27:
	movl	40(%r14), %edi
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	movl	40(%r14), %edi
	leal	8(,%rax,8), %r15d
	movq	%rbx, %rsi
	movl	$32, %edx
	movl	%r15d, %ecx
	callq	_ff_dca_check_crc
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	40(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_23:
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_24
LBB0_5:
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %esi
	movq	%rbx, %rdi
	callq	_get_bits_long
	movl	%eax, 56(%r14)
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:
	movq	_DCA_XLL_PBR_BUFFER_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_7
## %bb.8:
	incl	%eax
	movl	%eax, 56(%r14)
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movl	%edx, (%r14)
	movq	_DCA_XLL_CHSETS_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_9
## %bb.11:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, %r12d
	movl	$1, %eax
	movl	%r12d, %ecx
	shll	%cl, %eax
	movl	%eax, 4(%r14)
	cmpl	$1025, %eax                     ## imm = 0x401
	jl	LBB0_13
## %bb.12:
	movl	40(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_23
LBB0_7:
	movl	40(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.3(%rip), %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
LBB0_24:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %r12d
LBB0_26:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	40(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_10
LBB0_13:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movl	$1, %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	movl	$1, %edx
	movl	%esi, 12(%r14)
	cmpl	$513, %esi                      ## imm = 0x201
	jl	LBB0_17
## %bb.16:
	movl	40(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	jmp	LBB0_23
LBB0_14:
	movl	40(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_23
LBB0_17:
	addl	%r12d, %eax
	movl	%eax, %ecx
	shll	%cl, %edx
	movl	%eax, 16(%r14)
	movl	%edx, 20(%r14)
	cmpl	$65537, %edx                    ## imm = 0x10001
	jl	LBB0_19
## %bb.18:
	movl	40(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdx
	jmp	LBB0_23
LBB0_19:
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_get_bits
	incl	%eax
	movl	%eax, 24(%r14)
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_get_bits
	movl	%eax, 28(%r14)
	movq	%rbx, %rdi
	callq	_get_bits1
	movq	%rax, 48(%r14)
	movq	%rbx, %rdi
	movl	$5, %esi
	callq	_get_bits
	incl	%eax
	movl	%eax, 32(%r14)
	xorl	%r12d, %r12d
	cmpq	$0, 48(%r14)
	movl	$0, %eax
	je	LBB0_21
## %bb.20:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_get_bits
LBB0_21:
	movl	%eax, 36(%r14)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_ff_dca_seek_bits
	testq	%rax, %rax
	je	LBB0_26
## %bb.22:
	movl	40(%r14), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.9(%rip), %rdx
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_DCA_SYNCWORD_XLL,4,2           ## @DCA_SYNCWORD_XLL
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid XLL sync word\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.1:                               ## @.str.1
	.asciz	"XLL stream version %d"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"Invalid XLL common header checksum\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_DCA_XLL_PBR_BUFFER_MAX,4,2     ## @DCA_XLL_PBR_BUFFER_MAX
L_.str.3:                               ## @.str.3
	.asciz	"Invalid XLL frame size (%d bytes)\n"

	.comm	_DCA_XLL_CHSETS_MAX,4,2         ## @DCA_XLL_CHSETS_MAX
L_.str.4:                               ## @.str.4
	.asciz	"%d XLL channel sets"

L_.str.5:                               ## @.str.5
	.asciz	"Too many segments per XLL frame\n"

L_.str.6:                               ## @.str.6
	.asciz	"Too few samples per XLL segment\n"

L_.str.7:                               ## @.str.7
	.asciz	"Too many samples per XLL segment\n"

L_.str.8:                               ## @.str.8
	.asciz	"Too many samples per XLL frame\n"

L_.str.9:                               ## @.str.9
	.asciz	"Read past end of XLL common header\n"

	.no_dead_strip	_parse_common_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_common_header
_parse_common_header:                   ; @parse_common_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	add	x20, x0, #44
	mov	x0, x20
	mov	w1, #32
	bl	_get_bits_long
Lloh0:
	adrp	x8, _DCA_SYNCWORD_XLL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCA_SYNCWORD_XLL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:
	add	w2, w0, #1
	ldr	w0, [x19, #40]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	bl	_avpriv_request_sample
Lloh5:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
	b	LBB0_14
LBB0_4:
	ldr	w0, [x19, #40]
Lloh7:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh12:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	b	_AVERROR
LBB0_5:
	mov	x0, x20
	mov	w1, #8
	bl	_get_bits
	ldr	w8, [x19, #40]
	lsl	w9, w0, #3
	add	w21, w9, #8
	mov	x0, x8
	mov	x1, x20
	mov	w2, #32
	mov	x3, x21
	bl	_ff_dca_check_crc
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x19, #40]
Lloh15:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.2@PAGE
Lloh19:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_7:
	mov	x0, x20
	mov	w1, #5
	bl	_get_bits
	add	w1, w0, #1
	mov	x0, x20
	bl	_get_bits_long
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x19, #56]
	tbnz	w0, #31, LBB0_12
; %bb.8:
Lloh20:
	adrp	x8, _DCA_XLL_PBR_BUFFER_MAX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DCA_XLL_PBR_BUFFER_MAX@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_12
; %bb.9:
	add	w8, w0, #1
	str	w8, [x19, #56]
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	add	w2, w0, #1
	str	w2, [x19]
Lloh23:
	adrp	x8, _DCA_XLL_CHSETS_MAX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DCA_XLL_CHSETS_MAX@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_16
; %bb.10:
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	mov	w8, #1
	lsl	w8, w8, w0
	str	w8, [x19, #4]
	cmp	w8, #1025
	b.lt	LBB0_17
; %bb.11:
	ldr	w0, [x19, #40]
Lloh26:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str.5@PAGE
Lloh30:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_13
LBB0_12:
	ldr	w8, [x19, #40]
Lloh31:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh32:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x9]
	str	x0, [sp]
Lloh34:
	adrp	x2, l_.str.3@PAGE
Lloh35:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x8
LBB0_13:
	bl	_av_log
Lloh36:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
LBB0_15:
	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
	add	sp, sp, #64
	ret
LBB0_16:
	ldr	w0, [x19, #40]
Lloh38:
	adrp	x1, l_.str.4@PAGE
Lloh39:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_3
LBB0_17:
	mov	x22, x0
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	str	w0, [x19, #8]
	cbz	w0, LBB0_20
; %bb.18:
	mov	w8, #1
	lsl	w9, w8, w0
	str	w9, [x19, #12]
	cmp	w9, #513
	b.lt	LBB0_21
; %bb.19:
	ldr	w0, [x19, #40]
Lloh40:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x2, l_.str.7@PAGE
Lloh44:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_13
LBB0_20:
	ldr	w0, [x19, #40]
Lloh45:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
Lloh48:
	adrp	x2, l_.str.6@PAGE
Lloh49:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_13
LBB0_21:
	add	w9, w0, w22
	lsl	w8, w8, w9
	stp	w9, w8, [x19, #16]
	cmp	w8, #16, lsl #12                ; =65536
	b.le	LBB0_23
; %bb.22:
	ldr	w0, [x19, #40]
Lloh50:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh51:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh52:
	ldr	w1, [x8]
Lloh53:
	adrp	x2, l_.str.8@PAGE
Lloh54:
	add	x2, x2, l_.str.8@PAGEOFF
	b	LBB0_13
LBB0_23:
	mov	x0, x20
	mov	w1, #5
	bl	_get_bits
	add	w8, w0, #1
	str	w8, [x19, #24]
	mov	x0, x20
	mov	w1, #2
	bl	_get_bits
	str	w0, [x19, #28]
	mov	x0, x20
	bl	_get_bits1
	str	x0, [x19, #48]
	mov	x0, x20
	mov	w1, #5
	bl	_get_bits
	add	w8, w0, #1
	str	w8, [x19, #32]
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_25
; %bb.24:
	mov	x0, x20
	mov	w1, #4
	bl	_get_bits
	b	LBB0_26
LBB0_25:
	mov	w0, #0
LBB0_26:
	str	w0, [x19, #36]
	mov	x0, x20
	mov	x1, x21
	bl	_ff_dca_seek_bits
	cbz	x0, LBB0_15
; %bb.27:
	ldr	w0, [x19, #40]
Lloh55:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh56:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
Lloh58:
	adrp	x2, l_.str.9@PAGE
Lloh59:
	add	x2, x2, l_.str.9@PAGEOFF
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_DCA_SYNCWORD_XLL,4,2           ; @DCA_SYNCWORD_XLL
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid XLL sync word\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.1:                               ; @.str.1
	.asciz	"XLL stream version %d"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"Invalid XLL common header checksum\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_DCA_XLL_PBR_BUFFER_MAX,4,2     ; @DCA_XLL_PBR_BUFFER_MAX
l_.str.3:                               ; @.str.3
	.asciz	"Invalid XLL frame size (%d bytes)\n"

	.comm	_DCA_XLL_CHSETS_MAX,4,2         ; @DCA_XLL_CHSETS_MAX
l_.str.4:                               ; @.str.4
	.asciz	"%d XLL channel sets"

l_.str.5:                               ; @.str.5
	.asciz	"Too many segments per XLL frame\n"

l_.str.6:                               ; @.str.6
	.asciz	"Too few samples per XLL segment\n"

l_.str.7:                               ; @.str.7
	.asciz	"Too many samples per XLL segment\n"

l_.str.8:                               ; @.str.8
	.asciz	"Too many samples per XLL frame\n"

l_.str.9:                               ; @.str.9
	.asciz	"Read past end of XLL common header\n"

	.no_dead_strip	_parse_common_header
.subsections_via_symbols
