	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lzh_decode_init
_lzh_decode_init:                       ## @lzh_decode_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r15
	testq	%r15, %r15
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movl	$1, %edi
	movl	$80, %esi
	callq	_calloc
	movq	%rax, %r15
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_11
LBB0_2:
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r15)
	testq	%r14, %r14
	je	LBB0_9
## %bb.3:
	cmpb	$108, (%r14)
	jne	LBB0_9
## %bb.4:
	cmpb	$104, 1(%r14)
	jne	LBB0_9
## %bb.5:
	movsbl	2(%r14), %ecx
	cmpl	$53, %ecx
	je	LBB0_12
## %bb.6:
	cmpl	$55, %ecx
	je	LBB0_13
## %bb.7:
	cmpl	$54, %ecx
	jne	LBB0_9
## %bb.8:
	movl	$15, %r14d
	movb	$1, %bl
	xorl	%r13d, %r13d
	jmp	LBB0_14
LBB0_11:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	$13, %r14d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_14
LBB0_13:
	movl	$16, %r14d
	movb	$1, %r13b
	xorl	%ebx, %ebx
LBB0_14:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, (%r15)
	movabsq	$562945658585088, %rax          ## imm = 0x1FFFF00020000
	movq	%rax, 4(%r15)
	movq	72(%r15), %rax
	movl	$131072, %esi                   ## imm = 0x20000
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:
	movl	$131072, %edi                   ## imm = 0x20000
	callq	_malloc
	movq	%rax, 72(%r15)
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	movl	4(%r15), %esi
LBB0_17:
	movl	$1, %edx
	movl	%r14d, %ecx
	shll	%cl, %edx
	leaq	(%rax,%rsi,4), %rdi
	leaq	(,%rdx,4), %rax
	subq	%rax, %rdi
	movl	$32, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	incl	%r14d
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%r15)
	movl	%r14d, 12(%r15)
	orb	%r13b, %bl
	movzbl	%bl, %eax
	orl	$4, %eax
	movl	%eax, 16(%r15)
	movq	_PT_BITLEN_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, 48(%r15)
	movl	$5, 20(%r15)
	leaq	28(%r15), %rdi
	movups	%xmm0, 32(%r15)
	movq	_LT_BITLEN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edx
	callq	_lzh_huffman_init
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_20
## %bb.18:
	movl	$9, 28(%r15)
	leaq	24(%r15), %rdi
	movl	(%r14), %esi
	movl	$16, %edx
	callq	_lzh_huffman_init
	cmpq	(%rbx), %rax
	jne	LBB0_20
## %bb.19:
	movl	$0, (%r15)
	jmp	LBB0_10
LBB0_20:
	movl	(%r12), %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_FAILED,4,2             ## @ARCHIVE_FAILED
	.comm	_PT_BITLEN_SIZE,4,2             ## @PT_BITLEN_SIZE
	.comm	_LT_BITLEN_SIZE,4,2             ## @LT_BITLEN_SIZE
	.comm	_ARCHIVE_OK,8,3                 ## @ARCHIVE_OK
	.no_dead_strip	_lzh_decode_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function lzh_decode_init
lCPI0_0:
	.long	131072                          ; 0x20000
	.long	131071                          ; 0x1ffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_lzh_decode_init:                       ; @lzh_decode_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	ldr	x19, [x0]
	cbnz	x19, LBB0_2
; %bb.1:
	mov	x21, x0
	mov	w0, #1
	mov	w1, #80
	bl	_calloc
	mov	x19, x0
	str	x0, [x21]
	cbz	x0, LBB0_9
LBB0_2:
Lloh0:
	adrp	x8, _ARCHIVE_FAILED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_FAILED@GOTPAGEOFF]
	ldr	w9, [x8]
	str	w9, [x19]
	cbz	x20, LBB0_10
; %bb.3:
	ldrb	w9, [x20]
	cmp	w9, #108
	b.ne	LBB0_10
; %bb.4:
	ldrb	w9, [x20, #1]
	cmp	w9, #104
	b.ne	LBB0_10
; %bb.5:
	ldrsb	w9, [x20, #2]
	cmp	w9, #53
	b.eq	LBB0_12
; %bb.6:
	cmp	w9, #55
	b.eq	LBB0_13
; %bb.7:
	cmp	w9, #54
	b.ne	LBB0_10
; %bb.8:
	mov	w21, #0
	mov	w23, #15
	mov	w22, #1
	b	LBB0_14
LBB0_9:
Lloh2:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
LBB0_11:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w22, #0
	mov	w21, #0
	mov	w23, #13
	b	LBB0_14
LBB0_13:
	mov	w22, #0
	mov	w23, #16
	mov	w21, #1
LBB0_14:
Lloh4:
	adrp	x20, _ARCHIVE_FATAL@GOTPAGE
Lloh5:
	ldr	x20, [x20, _ARCHIVE_FATAL@GOTPAGEOFF]
	ldr	w8, [x20]
	str	w8, [x19]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x19, #4]
	ldr	x0, [x19, #72]
	cbz	x0, LBB0_16
; %bb.15:
	mov	w8, #131072
	b	LBB0_18
LBB0_16:
	mov	w0, #131072
	bl	_malloc
	str	x0, [x19, #72]
	cbz	x0, LBB0_21
; %bb.17:
	ldr	w8, [x19, #4]
LBB0_18:
	mov	w9, #1
	lsl	w2, w9, w23
	add	x8, x0, x8, lsl #2
	sub	x0, x8, w2, uxtw #2
	mov	w1, #32
	bl	_memset
	add	w8, w23, #1
	stp	xzr, xzr, [x19, #56]
	orr	w9, w22, w21
	cmp	w9, #0
	mov	w9, #4
	cinc	w9, w9, ne
	stp	w8, w9, [x19, #12]
Lloh8:
	adrp	x21, _PT_BITLEN_SIZE@GOTPAGE
Lloh9:
	ldr	x21, [x21, _PT_BITLEN_SIZE@GOTPAGEOFF]
	ldr	w8, [x21]
	str	w8, [x19, #48]
	mov	w8, #5
	str	w8, [x19, #20]
	add	x0, x19, #28
	stp	xzr, xzr, [x19, #32]
Lloh10:
	adrp	x8, _LT_BITLEN_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LT_BITLEN_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w2, #16
	bl	_lzh_huffman_init
Lloh13:
	adrp	x22, _ARCHIVE_OK@GOTPAGE
Lloh14:
	ldr	x22, [x22, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_21
; %bb.19:
	mov	w8, #9
	str	w8, [x19, #28]
	add	x0, x19, #24
	ldr	w1, [x21]
	mov	w2, #16
	bl	_lzh_huffman_init
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_21
; %bb.20:
	str	wzr, [x19]
	b	LBB0_11
LBB0_21:
	ldr	w0, [x20]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_FAILED,4,2             ; @ARCHIVE_FAILED
	.comm	_PT_BITLEN_SIZE,4,2             ; @PT_BITLEN_SIZE
	.comm	_LT_BITLEN_SIZE,4,2             ; @LT_BITLEN_SIZE
	.comm	_ARCHIVE_OK,8,3                 ; @ARCHIVE_OK
	.no_dead_strip	_lzh_decode_init
.subsections_via_symbols
