	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_huffman_tables
_store_huffman_tables:                  ## @store_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	%rsi, %r14
	movq	%rdi, %r15
	movl	$3, %eax
	cmpl	$3, (%rdi)
	jl	LBB0_3
## %bb.1:
	movl	4(%r15), %eax
	movl	8(%r15), %ecx
	leal	(%rax,%rcx,2), %eax
	incl	%eax
	testl	%eax, %eax
	jle	LBB0_2
LBB0_3:
	movl	%eax, %r12d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%r13,4), %edi
	movq	40(%r15), %rax
	movl	(%rax,%r13,4), %esi
	movl	24(%r15), %edx
	xorl	%ecx, %ecx
	callq	_ff_huff_gen_len_table
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	32(%r15), %rax
	movl	(%rax,%r13,4), %edi
	movq	16(%r15), %rax
	movl	(%rax,%r13,4), %esi
	movl	24(%r15), %edx
	callq	_ff_huffyuv_generate_bits_table
	testq	%rax, %rax
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%r13,4), %esi
	movslq	%ebx, %rbx
	leaq	(%r14,%rbx,4), %rdx
	movq	%r15, %rdi
	callq	_store_table
	addl	%eax, %ebx
	incq	%r13
	cmpq	%r13, %r12
	jne	LBB0_4
	jmp	LBB0_9
LBB0_5:
	movl	%eax, %ebx
	jmp	LBB0_9
LBB0_7:
	movl	$-1, %ebx
	jmp	LBB0_9
LBB0_2:
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_store_huffman_tables
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_huffman_tables
_store_huffman_tables:                  ; @store_huffman_tables
	.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, x1
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #3
	b.lt	LBB0_3
; %bb.1:
	ldp	w8, w9, [x20, #4]
	add	w8, w8, w9, lsl #1
	add	w8, w8, #1
	cmp	w8, #1
	b.ge	LBB0_4
; %bb.2:
	mov	w21, #0
	b	LBB0_10
LBB0_3:
	mov	w8, #3
LBB0_4:
	mov	x22, #0
	mov	w21, #0
	mov	w23, w8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	lsl	x24, x22, #2
	ldr	w0, [x8, x24]
	ldr	x8, [x20, #40]
	ldr	w1, [x8, x24]
	ldr	w2, [x20, #24]
	mov	w3, #0
	bl	_ff_huff_gen_len_table
	tbnz	w0, #31, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #32]
	ldr	w0, [x8, x24]
	ldr	x8, [x20, #16]
	ldr	w1, [x8, x24]
	ldr	w2, [x20, #24]
	bl	_ff_huffyuv_generate_bits_table
	tbnz	x0, #63, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x20, #16]
	ldr	w1, [x8, x22, lsl #2]
	add	x2, x19, w21, sxtw #2
	mov	x0, x20
	bl	_store_table
	add	w21, w21, w0
	add	x22, x22, #1
	cmp	x23, x22
	b.ne	LBB0_5
	b	LBB0_10
LBB0_8:
	mov	x21, x0
	b	LBB0_10
LBB0_9:
	mov	w21, #-1
LBB0_10:
	mov	x0, x21
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_store_huffman_tables
.subsections_via_symbols
