	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lzh_huffman_init
_lzh_huffman_init:                      ## @lzh_huffman_init
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	cmpq	$0, 32(%rdi)
	jne	LBB0_2
## %bb.1:
	leal	(,%r15,4), %edi
	callq	_malloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_9
LBB0_2:
	cmpq	$0, 24(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_HTBL_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%r14d, %ecx
	cmovgel	%r14d, %ecx
	movl	$4, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_malloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_9
LBB0_4:
	cmpq	$0, 16(%rbx)
	jne	LBB0_7
## %bb.5:
	movq	_HTBL_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r14d, %eax
	jge	LBB0_7
## %bb.6:
	movl	%r14d, %ecx
	subl	%eax, %ecx
	addb	$4, %cl
	movl	$1, %edi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	movl	%edi, (%rbx)
	shll	$2, %edi
	callq	_malloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_9
LBB0_7:
	movl	%r15d, 4(%rbx)
	movl	%r14d, 8(%rbx)
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_9:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_HTBL_BITS,4,2                  ## @HTBL_BITS
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_lzh_huffman_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lzh_huffman_init
_lzh_huffman_init:                      ; @lzh_huffman_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #32]
	cbnz	x8, LBB0_2
; %bb.1:
	lsl	w0, w21, #2
	bl	_malloc
	str	x0, [x20, #32]
	cbz	x0, LBB0_8
LBB0_2:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _HTBL_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HTBL_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	csel	w8, w8, w19, lt
	mov	w9, #4
	lsl	x0, x9, x8
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_malloc
	str	x0, [x20, #24]
	cbz	x0, LBB0_8
LBB0_4:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _HTBL_BITS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HTBL_BITS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ge	LBB0_7
; %bb.6:
	sub	w8, w19, w8
	add	w8, w8, #4
	mov	w9, #1
	lsl	w8, w9, w8
	str	w8, [x20]
	lsl	w0, w8, #2
	bl	_malloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_8
LBB0_7:
	stp	w21, w19, [x20, #4]
Lloh6:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh8:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_HTBL_BITS,4,2                  ; @HTBL_BITS
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_lzh_huffman_init
.subsections_via_symbols
