	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lzx_huffman_init
_lzx_huffman_init:                      ## @lzx_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, %rbx
	movq	%rdi, %r15
	movq	16(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	cmpl	%ebx, (%r15)
	jne	LBB0_3
## %bb.2:
	shlq	$2, %rbx
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_memset
	jmp	LBB0_5
LBB0_3:
	callq	_free
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movl	%ebx, (%r15)
LBB0_5:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rbx
	cmpq	$0, 8(%r15)
	jne	LBB0_10
## %bb.6:
	movl	$4, %edi
	movl	%r14d, %ecx
	shlq	%cl, %rdi
	callq	_malloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	%r14d, 4(%r15)
	jmp	LBB0_10
LBB0_9:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rbx
LBB0_10:
	movl	(%rbx), %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	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_lzx_huffman_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lzx_huffman_init
_lzx_huffman_init:                      ; @lzx_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	x0, [x0, #16]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, w21
	b.ne	LBB0_3
; %bb.2:
	lsl	x2, x21, #2
	mov	w1, #0
	bl	_memset
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_7
	b	LBB0_5
LBB0_3:
	bl	_free
	mov	x0, x21
	mov	w1, #4
	bl	_calloc
	str	x0, [x20, #16]
	cbz	x0, LBB0_8
; %bb.4:
	str	w21, [x20]
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_7
LBB0_5:
	mov	w8, #4
	lsl	x0, x8, x19
	bl	_malloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_8
; %bb.6:
	str	w19, [x20, #4]
LBB0_7:
Lloh0:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh2:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh3:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_lzx_huffman_init
.subsections_via_symbols
