	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_block_data
_read_block_data:                       ## @read_block_data
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	24(%rdi), %rsi
	movl	%edx, %r14d
	shlq	$5, %r14
	cmpq	$0, 24(%rsi,%r14)
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_get_bits_count
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_get_bits
	addl	%r12d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	8(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_avpriv_request_sample
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_3:
	movq	(%rsi,%r14), %rax
	movq	8(%rsi,%r14), %rdx
	leaq	(%rdx,%rax), %rcx
	cmpq	(%r13), %rcx
	jle	LBB0_5
## %bb.4:
	movl	8(%r13), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_17
LBB0_5:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rsi,%r14), %rbx
	addq	$8, %rbx
	movq	16(%r13), %rcx
	movq	(%rcx,%rax,8), %rdi
	shll	$3, %edx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	testq	%rax, %rax
	jle	LBB0_6
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_read_huff_channels
	testl	%eax, %eax
	js	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_15 Depth=1
	incl	%r12d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpq	%r12, %rax
	jg	LBB0_15
LBB0_6:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r14), %rdx
	addq	$24, %rdx
	leaq	(%rcx,%r14), %r12
	movl	16(%rcx,%r14), %ebx
	cmpl	20(%rcx,%r14), %ebx
	ja	LBB0_10
## %bb.7:
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	addq	%rcx, %r14
	addq	$20, %r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_filter_channel
	incl	%ebx
	cmpl	(%r14), %ebx
	jbe	LBB0_8
## %bb.9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
LBB0_10:
	addq	%rax, (%r12)
	xorl	%ebx, %ebx
	cmpq	$0, (%rdx)
	je	LBB0_17
## %bb.11:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_get_bits_count
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_13
## %bb.12:
	movl	8(%r13), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	callq	_av_log
LBB0_13:
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_skip_bits
	jmp	LBB0_17
LBB0_16:
	movl	%eax, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Substreams with VLC block size check info"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"too many audio samples in frame\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
L_.str.2:                               ## @.str.2
	.asciz	"block data length mismatch\n"

	.no_dead_strip	_read_block_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_block_data
_read_block_data:                       ; @read_block_data
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x26, [x0, #24]
	mov	w27, w2
	add	x23, x26, x27, lsl #5
	mov	x24, x23
	ldr	x8, [x24, #24]!
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_get_bits_count
	mov	x22, x0
	mov	x0, x19
	mov	w1, #16
	bl	_get_bits
	add	w25, w22, w0
	ldr	w0, [x20, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_avpriv_request_sample
	b	LBB0_3
LBB0_2:
	mov	w25, #0
LBB0_3:
	ldr	x8, [x23]
	mov	x28, x23
	ldr	x9, [x28, #8]!
	ldr	x10, [x20]
	add	x11, x9, x8
	cmp	x11, x10
	b.le	LBB0_5
; %bb.4:
	ldr	w0, [x20, #8]
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_av_log
Lloh7:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	b	LBB0_17
LBB0_5:
	ldr	x10, [x20, #16]
	ldr	x0, [x10, x8, lsl #3]
	lsl	w2, w9, #3
	mov	w1, #0
	bl	_memset
	ldr	x8, [x28]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	w22, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	bl	_read_huff_channels
	tbnz	w0, #31, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w22, w22, #1
	ldr	x8, [x28]
	cmp	x8, x22
	b.gt	LBB0_7
LBB0_9:
	add	x26, x26, x27, lsl #5
	ldr	w9, [x26, #20]!
	ldur	w22, [x26, #-4]
	cmp	w22, w9
	b.hi	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_filter_channel
	add	w22, w22, #1
	ldr	w8, [x26]
	cmp	w22, w8
	b.ls	LBB0_10
; %bb.11:
	ldr	x8, [x28]
LBB0_12:
	ldr	x9, [x23]
	add	x8, x9, x8
	str	x8, [x23]
	ldr	x8, [x24]
	cbz	x8, LBB0_16
; %bb.13:
	mov	x0, x19
	bl	_get_bits_count
	cmp	w0, w25
	b.eq	LBB0_15
; %bb.14:
	ldr	w0, [x20, #8]
Lloh10:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_av_log
LBB0_15:
	mov	x0, x19
	mov	w1, #8
	bl	_skip_bits
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Substreams with VLC block size check info"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"too many audio samples in frame\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
l_.str.2:                               ; @.str.2
	.asciz	"block data length mismatch\n"

	.no_dead_strip	_read_block_data
.subsections_via_symbols
