	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_huffman_tables
_read_huffman_tables:                   ## @read_huffman_tables
	.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	%rdi, %r12
	shll	$3, %edx
	leaq	-44(%rbp), %rdi
	callq	_init_get_bits
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	movl	$3, %eax
	cmpl	$3, (%r12)
	jl	LBB0_3
## %bb.2:
	movl	4(%r12), %eax
	movl	8(%r12), %ecx
	leal	(%rax,%rcx,2), %eax
	incl	%eax
	testl	%eax, %eax
	jle	LBB0_8
LBB0_3:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r14
	movq	_VLC_BITS@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movl	(%rax,%rbx), %edi
	movl	32(%r12), %edx
	movq	%r14, %rsi
	callq	_read_len_table
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r12), %rax
	movq	24(%r12), %rcx
	movl	(%rax,%rbx), %edi
	movl	(%rcx,%rbx), %esi
	movl	32(%r12), %edx
	callq	_ff_huffyuv_generate_bits_table
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	40(%r12), %rdi
	addq	%rbx, %rdi
	callq	_ff_free_vlc
	movq	40(%r12), %rdi
	addq	%rbx, %rdi
	movl	(%r13), %esi
	movl	32(%r12), %edx
	movq	16(%r12), %rax
	movq	24(%r12), %rcx
	movl	(%rcx,%rbx), %ecx
	movl	(%rax,%rbx), %eax
	movl	$1, %r8d
	movl	$1, %r9d
	pushq	$0
	pushq	$4
	pushq	$4
	pushq	%rax
	callq	_init_vlc
	addq	$32, %rsp
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	$4, %rbx
	decq	%r15
	jne	LBB0_5
LBB0_8:
	movq	%r12, %rdi
	callq	_generate_joint_tables
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:
	leaq	-44(%rbp), %rdi
	callq	_get_bits_count
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ecx
	addl	$14, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VLC_BITS,4,2                   ## @VLC_BITS
	.no_dead_strip	_read_huffman_tables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_huffman_tables
_read_huffman_tables:                   ; @read_huffman_tables
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
	lsl	w2, w2, #3
	add	x0, sp, #12
	bl	_init_get_bits
	tbnz	w0, #31, LBB0_11
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #3
	b.lt	LBB0_3
; %bb.2:
	ldp	w8, w9, [x19, #4]
	add	w8, w8, w9, lsl #1
	add	w8, w8, #1
	cmp	w8, #1
	b.ge	LBB0_4
	b	LBB0_9
LBB0_3:
	mov	w8, #3
LBB0_4:
	mov	x20, #0
Lloh0:
	adrp	x21, _VLC_BITS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VLC_BITS@GOTPAGEOFF]
	mov	w22, #4
	mov	w23, w8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w0, [x8, x20]
	ldr	w2, [x19, #32]
	add	x1, sp, #12
	bl	_read_len_table
	tbnz	w0, #31, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x8, x9, [x19, #16]
	ldr	w0, [x8, x20]
	ldr	w1, [x9, x20]
	ldr	w2, [x19, #32]
	bl	_ff_huffyuv_generate_bits_table
	tbnz	w0, #31, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #40]
	add	x0, x8, x20
	bl	_ff_free_vlc
	ldr	x8, [x19, #40]
	add	x0, x8, x20
	ldr	w1, [x21]
	ldr	w2, [x19, #32]
	ldp	x9, x8, [x19, #16]
	ldr	w3, [x8, x20]
	ldr	w6, [x9, x20]
	str	x22, [sp]
	mov	w4, #1
	mov	w5, #1
	mov	w7, #4
	bl	_init_vlc
	tbnz	w0, #31, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #4
	subs	x23, x23, #1
	b.ne	LBB0_5
LBB0_9:
	mov	x0, x19
	bl	_generate_joint_tables
	tbnz	w0, #31, LBB0_11
; %bb.10:
	add	x0, sp, #12
	bl	_get_bits_count
	add	w8, w0, #7
	add	w9, w0, #14
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #3
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VLC_BITS,4,2                   ; @VLC_BITS
	.no_dead_strip	_read_huffman_tables
.subsections_via_symbols
