	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lzh_decode_huffman_tree
_lzh_decode_huffman_tree:               ## @lzh_decode_huffman_tree
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	4(%rdi), %r9d
	cmpl	%edx, %r9d
	jle	LBB0_2
## %bb.1:
	movl	%edx, %eax
	popq	%rbp
	retq
LBB0_2:
	movq	16(%rdi), %r8
	movl	(%rdi), %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	subl	%r9d, %edx
	cmpl	8(%rdi), %edx
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	decl	%ecx
	btl	%ecx, %esi
	movslq	%edx, %rax
	leaq	(%r8,%rax,8), %rdx
	leaq	4(%r8,%rax,8), %rax
	cmovbq	%rdx, %rax
	movl	(%rax), %edx
	movl	%edx, %eax
	cmpl	%r9d, %edx
	jge	LBB0_3
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lzh_decode_huffman_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lzh_decode_huffman_tree
_lzh_decode_huffman_tree:               ; @lzh_decode_huffman_tree
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #4]
	cmp	w8, w2
	b.gt	LBB0_5
; %bb.1:
	ldr	x9, [x0, #16]
	ldr	w10, [x0]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	subs	w10, w10, #1
	b.lt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w12, [x0, #8]
	sub	w11, w2, w8
	cmp	w11, w12
	b.ge	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x11, x9, w11, sxtw #3
	add	x12, x11, #4
	lsr	w13, w1, w10
	tst	w13, #0x1
	csel	x11, x12, x11, eq
	ldr	w2, [x11]
	cmp	w2, w8
	b.ge	LBB0_2
LBB0_5:
	mov	x0, x2
	ret
LBB0_6:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lzh_decode_huffman_tree
.subsections_via_symbols
