	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zip2gz                         ## -- Begin function zip2gz
	.p2align	4, 0x90
_zip2gz:                                ## @zip2gz
	.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
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_27
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_27
## %bb.2:
	movq	%rdi, %rbx
	movl	(%rsi), %eax
	cmpl	$8, %eax
	je	LBB0_7
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.4:
	movq	8(%rsi), %rax
	movl	$1, %r13d
	cmpq	16(%rsi), %rax
	jne	LBB0_10
LBB0_5:
	movq	%rbx, %rdi
	callq	_seekcompresszip
	testq	%rax, %rax
	jne	LBB0_26
## %bb.13:
	movq	(%rbx), %r15
	movl	$144, %edi
	callq	_ALLOC
	testq	%rax, %rax
	je	LBB0_29
## %bb.14:
	movq	%rax, %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rax)
	movq	$0, 64(%rax)
	movq	_Z_NULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rsi, 88(%r14)
	movq	%rsi, 32(%r14)
	movq	%rsi, 136(%r14)
	movq	%rsi, 40(%r14)
	movq	$0, 24(%r14)
	movq	$0, 72(%r14)
	movq	_Z_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movups	%xmm0, 112(%r14)
	movq	$0, 128(%r14)
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%r14)
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	xorl	%edx, %edx
	callq	_crc32
	movl	%eax, 104(%r14)
	movq	$0, 96(%r14)
	movl	%r13d, 4(%r14)
	movb	$114, 8(%r14)
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edi
	callq	_ALLOC
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_28
## %bb.15:
	movq	%r14, %r13
	addq	$24, %r13
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_strcpy
	movq	_Z_BUFSIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_ALLOC
	movq	%rax, 88(%r14)
	movq	%rax, 32(%r14)
	movq	_MAX_WBITS@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_inflateInit2
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	_Z_NULL@GOTPCREL(%rip), %r12
	jne	LBB0_22
## %bb.16:
	movq	88(%r14), %rdi
	cmpq	(%r12), %rdi
	je	LBB0_22
## %bb.17:
	movl	(%r15), %edx
	movl	%edx, 28(%r14)
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	16(%rbx), %rcx
	movq	%rcx, 72(%r14)
	testq	%rcx, %rcx
	je	LBB0_22
## %bb.18:
	movq	$0, (%rax)
	movl	$1, %esi
	callq	_fread
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_21
## %bb.19:
	movq	72(%r14), %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	_Z_ERRNO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
LBB0_21:
	movl	24(%r14), %eax
	addl	%ebx, %eax
	movl	%eax, 24(%r14)
	movq	88(%r14), %rcx
	movq	%rcx, 32(%r14)
	cmpl	$1, %eax
	jg	LBB0_30
LBB0_22:
	movq	%r14, %rdi
	callq	_destroy
	movq	(%r12), %r14
	jmp	LBB0_27
LBB0_7:
	cmpl	$21, 24(%rsi)
	jl	LBB0_11
## %bb.8:
	movq	_ERROR_UNSUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_25
LBB0_9:
	movq	_ERROR_UNSUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_25
LBB0_10:
	movq	_ERROR_CORRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_25
LBB0_11:
	cmpl	$0, 28(%rsi)
	je	LBB0_23
## %bb.12:
	movq	_ERROR_UNSUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_25
LBB0_23:
	movq	32(%rsi), %rax
	xorl	%r13d, %r13d
	cmpq	8(%rbx), %rax
	je	LBB0_5
## %bb.24:
	movq	_ERROR_UNSUPPORTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	leaq	L_.str.3(%rip), %rdi
LBB0_25:
	callq	_errormsg
LBB0_26:
	xorl	%r14d, %r14d
LBB0_27:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	movq	%r14, %rdi
	callq	_destroy
LBB0_29:
	movq	_Z_NULL@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_27
LBB0_30:
	movq	72(%r14), %rdi
	callq	_ftell
	movslq	24(%r14), %rcx
	subq	%rcx, %rax
	movq	%rax, 80(%r14)
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wrong uncompressed size in store compression"

	.comm	_ERROR_CORRUPT,4,2              ## @ERROR_CORRUPT
L_.str.1:                               ## @.str.1
	.asciz	"Version too new"

	.comm	_ERROR_UNSUPPORTED,4,2          ## @ERROR_UNSUPPORTED
L_.str.2:                               ## @.str.2
	.asciz	"OS not supported"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot span disks"

L_.str.4:                               ## @.str.4
	.asciz	"Compression method unsupported"

	.comm	_Z_NULL,8,3                     ## @Z_NULL
	.comm	_Z_OK,4,2                       ## @Z_OK
	.comm	_EOF,4,2                        ## @EOF
	.comm	_Z_BUFSIZE,4,2                  ## @Z_BUFSIZE
	.comm	_MAX_WBITS,4,2                  ## @MAX_WBITS
	.comm	_errno,8,3                      ## @errno
	.comm	_Z_ERRNO,4,2                    ## @Z_ERRNO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zip2gz                         ; -- Begin function zip2gz
	.p2align	2
_zip2gz:                                ; @zip2gz
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, #0
	cbz	x0, LBB0_28
; %bb.1:
	cbz	x1, LBB0_28
; %bb.2:
	mov	x20, x0
	ldr	w8, [x1]
	cmp	w8, #8
	b.eq	LBB0_17
; %bb.3:
	cbnz	w8, LBB0_19
; %bb.4:
	ldp	x8, x9, [x1, #8]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.5:
	mov	w25, #1
LBB0_6:
	mov	x0, x20
	bl	_seekcompresszip
	cbnz	x0, LBB0_27
; %bb.7:
	ldr	x22, [x20]
	mov	w0, #144
	bl	_ALLOC
	cbz	x0, LBB0_29
; %bb.8:
	mov	x19, x0
	mov	x21, x0
	str	wzr, [x21, #24]!
	stp	xzr, xzr, [x0, #48]
Lloh0:
	adrp	x23, _Z_NULL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _Z_NULL@GOTPAGEOFF]
	stp	xzr, xzr, [x0, #64]
	ldr	x1, [x23]
	str	x1, [x0, #88]
	stp	x1, x1, [x0, #32]
	str	wzr, [x0, #28]
Lloh2:
	adrp	x24, _Z_OK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _Z_OK@GOTPAGEOFF]
	ldr	w8, [x24]
	str	w8, [x0]
	stp	xzr, x1, [x0, #128]
	stp	xzr, xzr, [x0, #112]
Lloh4:
	adrp	x8, _EOF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x0, #108]
	mov	x0, #0
	mov	w2, #0
	bl	_crc32
	str	w0, [x19, #104]
	str	xzr, [x19, #96]
	str	w25, [x19, #4]
	mov	w8, #114
	strb	w8, [x19, #8]
	mov	x0, x22
	bl	_strlen
	add	w0, w0, #1
	bl	_ALLOC
	str	x0, [x19, #16]
	cbz	x0, LBB0_16
; %bb.9:
	mov	x1, x22
	bl	_strcpy
Lloh7:
	adrp	x22, _Z_BUFSIZE@GOTPAGE
Lloh8:
	ldr	x22, [x22, _Z_BUFSIZE@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_ALLOC
	str	x0, [x19, #88]
	str	x0, [x19, #32]
Lloh9:
	adrp	x8, _MAX_WBITS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX_WBITS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w1, w8
	mov	x0, x21
	bl	_inflateInit2
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_16
; %bb.10:
	ldr	x0, [x19, #88]
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_16
; %bb.11:
	ldr	w2, [x22]
	str	w2, [x19, #28]
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	str	xzr, [x8]
	ldr	x3, [x20, #16]
	str	x3, [x19, #72]
	cbz	x3, LBB0_16
; %bb.12:
	str	xzr, [x8]
	mov	w1, #1
	bl	_fread
	mov	x20, x0
	cbnz	x0, LBB0_15
; %bb.13:
	ldr	x0, [x19, #72]
	bl	_ferror
	cbz	x0, LBB0_15
; %bb.14:
Lloh14:
	adrp	x8, _Z_ERRNO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _Z_ERRNO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_15:
	ldr	w8, [x19, #24]
	add	w8, w8, w20
	str	w8, [x19, #24]
	ldr	x9, [x19, #88]
	str	x9, [x19, #32]
	cmp	w8, #1
	b.gt	LBB0_30
LBB0_16:
	mov	x0, x19
	bl	_destroy
	ldr	x19, [x23]
	b	LBB0_28
LBB0_17:
	ldr	w8, [x1, #24]
	cmp	w8, #21
	b.lt	LBB0_21
; %bb.18:
Lloh17:
	adrp	x8, _ERROR_UNSUPPORTED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERROR_UNSUPPORTED@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	x2, [x20]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_26
LBB0_19:
Lloh22:
	adrp	x8, _ERROR_UNSUPPORTED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERROR_UNSUPPORTED@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	x2, [x20]
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_26
LBB0_20:
Lloh27:
	adrp	x8, _ERROR_CORRUPT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ERROR_CORRUPT@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	x2, [x20]
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_26
LBB0_21:
	ldr	w8, [x1, #28]
	cbz	w8, LBB0_23
; %bb.22:
Lloh32:
	adrp	x8, _ERROR_UNSUPPORTED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ERROR_UNSUPPORTED@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	x2, [x20]
Lloh35:
	adrp	x0, l_.str.2@PAGE
Lloh36:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_26
LBB0_23:
	ldr	x8, [x1, #32]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.24:
	mov	w25, #0
	b	LBB0_6
LBB0_25:
Lloh37:
	adrp	x8, _ERROR_UNSUPPORTED@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ERROR_UNSUPPORTED@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	ldr	x2, [x20]
Lloh40:
	adrp	x0, l_.str.3@PAGE
Lloh41:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_26:
	bl	_errormsg
LBB0_27:
	mov	x19, #0
LBB0_28:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_29:
Lloh42:
	adrp	x8, _Z_NULL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _Z_NULL@GOTPAGEOFF]
Lloh44:
	ldr	x19, [x8]
	b	LBB0_28
LBB0_30:
	ldr	x0, [x19, #72]
	bl	_ftell
	ldrsw	x8, [x19, #24]
	sub	x8, x0, x8
	str	x8, [x19, #80]
	b	LBB0_28
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wrong uncompressed size in store compression"

	.comm	_ERROR_CORRUPT,4,2              ; @ERROR_CORRUPT
l_.str.1:                               ; @.str.1
	.asciz	"Version too new"

	.comm	_ERROR_UNSUPPORTED,4,2          ; @ERROR_UNSUPPORTED
l_.str.2:                               ; @.str.2
	.asciz	"OS not supported"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot span disks"

l_.str.4:                               ; @.str.4
	.asciz	"Compression method unsupported"

	.comm	_Z_NULL,8,3                     ; @Z_NULL
	.comm	_Z_OK,4,2                       ; @Z_OK
	.comm	_EOF,4,2                        ; @EOF
	.comm	_Z_BUFSIZE,4,2                  ; @Z_BUFSIZE
	.comm	_MAX_WBITS,4,2                  ; @MAX_WBITS
	.comm	_errno,8,3                      ; @errno
	.comm	_Z_ERRNO,4,2                    ; @Z_ERRNO
.subsections_via_symbols
