	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_huffman
_alloc_huffman:                         ## @alloc_huffman
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %r14
	movl	4(%rdi), %eax
	leal	15(%rax), %ecx
	addl	$30, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	movl	12(%rdi), %ecx
	sarl	$4, %eax
	movl	%eax, (%rdi)
	leal	15(%rcx), %edx
	addl	$30, %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$4, %ecx
	movl	%ecx, 8(%rdi)
	movl	16(%rdi), %edx
	cmpl	$128, %edx
	je	LBB0_5
## %bb.1:
	cmpl	$130, %edx
	je	LBB0_2
## %bb.3:
	cmpl	$129, %edx
	jne	LBB0_6
## %bb.4:
	movl	$512, %r15d                     ## imm = 0x200
	jmp	LBB0_7
LBB0_5:
	movl	$768, %r15d                     ## imm = 0x300
	jmp	LBB0_7
LBB0_2:
	movl	$384, %r15d                     ## imm = 0x180
	jmp	LBB0_7
LBB0_6:
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_av_assert0
	movl	(%rbx), %eax
	movl	8(%rbx), %ecx
LBB0_7:
	imull	%eax, %ecx
	movslq	%ecx, %rdi
	imulq	%r15, %rdi
	movl	$4, %esi
	callq	_av_malloc_array
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_alloc_huffman
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_huffman
_alloc_huffman:                         ; @alloc_huffman
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #4]
	add	w9, w8, #15
	add	w8, w8, #30
	cmp	w9, #0
	csel	w8, w8, w9, lt
	ldp	w9, w10, [x0, #12]
	add	w11, w9, #15
	add	w9, w9, #30
	cmp	w11, #0
	csel	w9, w9, w11, lt
	ldr	x20, [x0, #24]
	asr	w8, w8, #4
	str	w8, [x0]
	asr	w9, w9, #4
	str	w9, [x0, #8]
	cmp	w10, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w10, #130
	b.eq	LBB0_5
; %bb.2:
	cmp	w10, #129
	b.ne	LBB0_6
; %bb.3:
	mov	w10, #512
	b	LBB0_7
LBB0_4:
	mov	w10, #768
	b	LBB0_7
LBB0_5:
	mov	w10, #384
	b	LBB0_7
LBB0_6:
	mov	x19, x0
	mov	w0, #0
	bl	_av_assert0
	mov	x10, #0
	ldr	w8, [x19]
	ldr	w9, [x19, #8]
LBB0_7:
	mul	w8, w9, w8
	sxtw	x8, w8
	mul	x0, x10, x8
	mov	w1, #4
	bl	_av_malloc_array
	str	w0, [x20]
	cbz	w0, LBB0_9
; %bb.8:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_alloc_huffman
.subsections_via_symbols
