	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calculate_sign_huff
_calculate_sign_huff:                   ## @calculate_sign_huff
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movl	%esi, %ecx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rsi
	movq	8(%rax,%rcx), %r8
	movl	%edx, %edx
	leaq	(%rdx,%rdx,2), %r10
	movl	(%r8,%r10,4), %ecx
	subl	(%rsi,%rdx,4), %ecx
	movl	4(%r8,%r10,4), %esi
	movl	$2, %eax
	subl	%esi, %eax
	xorl	%r9d, %r9d
	cmpl	$1, %esi
	movl	$0, %edx
	sbbl	%edx, %edx
	orl	%eax, %edx
	addl	%ecx, %edx
	movl	$-7, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	testl	%esi, %esi
	cmovlel	%r9d, %edi
	addl	8(%r8,%r10,4), %edi
	movl	$-1, %eax
	movl	%edx, %ecx
	shll	%cl, %eax
	testl	%edx, %edx
	cmovsl	%r9d, %eax
	addl	%edi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_calculate_sign_huff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calculate_sign_huff
_calculate_sign_huff:                   ; @calculate_sign_huff
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	add	x8, x8, w1, uxtw #4
	mov	w9, #12
	ldp	x8, x10, [x8]
	umaddl	x9, w2, w9, x10
	ldr	w8, [x8, w2, uxtw #2]
	ldp	w10, w11, [x9]
	mov	w12, #2
	sub	w12, w12, w11
	cmp	w11, #0
	csinv	w11, w12, wzr, ne
	sub	w8, w10, w8
	add	w10, w11, w8
	ldr	w9, [x9, #8]
	mov	w11, #-7
	lsl	w8, w11, w8
	csel	w8, w8, wzr, gt
	mov	w11, #-1
	lsl	w11, w11, w10
	cmp	w10, #0
	csel	w10, wzr, w11, lt
	add	w8, w8, w9
	add	w0, w8, w10
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_calculate_sign_huff
.subsections_via_symbols
