	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zipx_ppmd8_init
_zipx_ppmd8_init:                       ## @zipx_ppmd8_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, %rbx
	movq	%rdi, %r14
	cmpl	$0, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	___archive_ppmd8_functions@GOTPCREL(%rip), %rax
	leaq	40(%rbx), %rdi
	callq	*32(%rax)
	movl	$0, (%rbx)
LBB0_2:
	movq	___archive_ppmd8_functions@GOTPCREL(%rip), %rax
	leaq	40(%rbx), %r15
	movq	%r15, %rdi
	callq	*24(%rax)
	movq	$0, 64(%rbx)
	leaq	48(%rbx), %rax
	movq	%rax, 40(%rbx)
	movq	%r14, 56(%rbx)
	movq	_ppmd_read@GOTPCREL(%rip), %rax
	movq	%rax, 48(%rbx)
	movq	$0, 16(%rbx)
	movq	%r14, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r12
	movq	%r14, %rdi
	movl	$2, %esi
	callq	___archive_read_consume
	movq	%r12, %rdi
	callq	_archive_le16dec
	movl	%eax, %r12d
	andl	$15, %eax
	leal	1(%rax), %ecx
	movl	%r12d, %r13d
	sarl	$12, %r13d
	cmpl	$12287, %r12d                   ## imm = 0x2FFF
	jg	LBB0_11
## %bb.4:
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	shll	$16, %r12d
	andl	$267386880, %r12d               ## imm = 0xFF00000
	addl	$1048576, %r12d                 ## imm = 0x100000
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	___archive_ppmd8_functions@GOTPCREL(%rip), %rax
	callq	*16(%rax)
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	movl	$1, (%rbx)
	movq	%r15, %rdi
	movq	___archive_ppmd8_functions@GOTPCREL(%rip), %r12
	callq	*8(%r12)
	testl	%eax, %eax
	je	LBB0_15
## %bb.7:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	callq	*(%r12)
	movq	32(%rbx), %rdi
	callq	_free
	movl	$262144, 4(%rbx)                ## imm = 0x40000
	movl	$262144, %edi                   ## imm = 0x40000
	callq	_malloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:
	movl	$1, 8(%rbx)
	movl	16(%rbx), %eax
	movl	24(%rbx), %ecx
	addl	%ecx, %eax
	addl	$2, %eax
	movl	%eax, 24(%rbx)
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_9:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_10:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_archive_set_error
LBB0_13:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_archive_set_error
	jmp	LBB0_13
LBB0_15:
	movq	_ARCHIVE_ERRNO_PROGRAMMER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_10
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	___archive_ppmd8_functions,40,3 ## @__archive_ppmd8_functions
	.comm	_ppmd_read,4,2                  ## @ppmd_read
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Truncated file data in PPMd8 stream"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid parameter set in PPMd8 stream (order=%d, restore=%d)"

	.comm	_ARCHIVE_FAILED,4,2             ## @ARCHIVE_FAILED
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"Unable to allocate memory for PPMd8 stream: %d bytes"

	.comm	_ARCHIVE_ERRNO_PROGRAMMER,4,2   ## @ARCHIVE_ERRNO_PROGRAMMER
L_.str.3:                               ## @.str.3
	.asciz	"PPMd8 stream range decoder initialization error"

L_.str.4:                               ## @.str.4
	.asciz	"No memory for PPMd8 decompression"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_zipx_ppmd8_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zipx_ppmd8_init
_zipx_ppmd8_init:                       ; @zipx_ppmd8_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x25, ___archive_ppmd8_functions@GOTPAGE
Lloh1:
	ldr	x25, [x25, ___archive_ppmd8_functions@GOTPAGEOFF]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x25, #32]
	add	x0, x20, #40
	blr	x8
	str	wzr, [x20]
LBB0_2:
	ldr	x8, [x25, #24]
	add	x21, x20, #40
	mov	x0, x21
	blr	x8
Lloh2:
	adrp	x8, _ppmd_read@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ppmd_read@GOTPAGEOFF]
	mov	x9, x20
	str	x8, [x9, #48]!
	str	x9, [x20, #40]
	stp	x19, xzr, [x9, #8]
	stur	xzr, [x9, #-32]
	mov	x0, x19
	mov	w1, #2
	mov	x2, #0
	bl	___archive_read_ahead
	cbz	x0, LBB0_9
; %bb.3:
	mov	x22, x0
	mov	x0, x19
	mov	w1, #2
	bl	___archive_read_consume
	mov	x0, x22
	bl	_archive_le16dec
	and	w8, w0, #0xf
	add	w22, w8, #1
	asr	w23, w0, #12
	cmp	w0, #3, lsl #12                 ; =12288
	b.ge	LBB0_10
; %bb.4:
	cbz	w8, LBB0_10
; %bb.5:
	ldr	x8, [x25, #16]
	lsl	w9, w0, #16
	and	w9, w9, #0xff00000
	add	w24, w9, #256, lsl #12          ; =1048576
	mov	x0, x21
	mov	x1, x24
	blr	x8
	cbz	w0, LBB0_11
; %bb.6:
	mov	w8, #1
	str	w8, [x20]
	ldr	x8, [x25, #8]
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_12
; %bb.7:
	ldr	x8, [x25]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	blr	x8
	ldr	x0, [x20, #32]
	bl	_free
	mov	w8, #262144
	str	w8, [x20, #4]
	mov	w0, #262144
	bl	_malloc
	str	x0, [x20, #32]
	cbz	x0, LBB0_13
; %bb.8:
	mov	w8, #1
	str	w8, [x20, #8]
	ldr	w8, [x20, #16]
	ldr	w9, [x20, #24]
	add	w8, w8, w9
	add	w8, w8, #2
	str	w8, [x20, #24]
Lloh4:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_15
LBB0_9:
Lloh6:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_14
LBB0_10:
Lloh11:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	stp	x22, x23, [sp]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
Lloh16:
	adrp	x8, _ARCHIVE_FAILED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ARCHIVE_FAILED@GOTPAGEOFF]
	b	LBB0_15
LBB0_11:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	str	x24, [sp]
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_12:
Lloh23:
	adrp	x8, _ARCHIVE_ERRNO_PROGRAMMER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ARCHIVE_ERRNO_PROGRAMMER@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str.3@PAGE
Lloh27:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x2, l_.str.4@PAGE
Lloh32:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_14:
	mov	x0, x19
	bl	_archive_set_error
Lloh33:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	___archive_ppmd8_functions,40,3 ; @__archive_ppmd8_functions
	.comm	_ppmd_read,4,2                  ; @ppmd_read
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Truncated file data in PPMd8 stream"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid parameter set in PPMd8 stream (order=%d, restore=%d)"

	.comm	_ARCHIVE_FAILED,4,2             ; @ARCHIVE_FAILED
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"Unable to allocate memory for PPMd8 stream: %d bytes"

	.comm	_ARCHIVE_ERRNO_PROGRAMMER,4,2   ; @ARCHIVE_ERRNO_PROGRAMMER
l_.str.3:                               ; @.str.3
	.asciz	"PPMd8 stream range decoder initialization error"

l_.str.4:                               ; @.str.4
	.asciz	"No memory for PPMd8 decompression"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_zipx_ppmd8_init
.subsections_via_symbols
