	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_readzip                        ## -- Begin function readzip
	.p2align	4, 0x90
_readzip:                               ## @readzip
	.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
	movq	(%rdi), %rax
	cmpq	8(%rdi), %rax
	jge	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	shlq	$2, %rax
	addq	160(%rdi), %rax
	movq	_ZIPCENSIG@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_read_dword
	movq	%rax, 152(%rbx)
	movq	(%rbx), %rax
	shlq	$2, %rax
	addq	160(%rbx), %rax
	movq	_ZIPCVER@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, 148(%rbx)
	movq	_ZIPCOS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, 144(%rbx)
	movq	_ZIPCVXT@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, 140(%rbx)
	movq	_ZIPCEXOS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, 136(%rbx)
	movq	_ZIPCFLG@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_read_word
	movq	%rax, 128(%rbx)
	movq	(%rbx), %rax
	shlq	$2, %rax
	addq	160(%rbx), %rax
	movq	_ZIPCMTHD@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_read_word
	movq	%rax, 120(%rbx)
	movq	(%rbx), %rax
	shlq	$2, %rax
	addq	160(%rbx), %rax
	movq	_ZIPCTIM@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_read_word
	movq	%rax, 112(%rbx)
	movq	(%rbx), %rax
	shlq	$2, %rax
	addq	160(%rbx), %rax
	movq	_ZIPCDAT@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_read_word
	movq	%rax, 104(%rbx)
	movq	(%rbx), %rax
	shlq	$2, %rax
	addq	160(%rbx), %rax
	movq	_ZIPCCRC@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_read_dword
	movq	%rax, 96(%rbx)
	movq	(%rbx), %rax
	shlq	$2, %rax
	addq	160(%rbx), %rax
	movq	_ZIPCSIZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_read_dword
	movq	%rax, 88(%rbx)
	movq	(%rbx), %rax
	shlq	$2, %rax
	addq	160(%rbx), %rax
	movq	_ZIPCUNC@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_read_dword
	movq	%rax, 80(%rbx)
	movq	(%rbx), %rax
	shlq	$2, %rax
	addq	160(%rbx), %rax
	movq	_ZIPCFNL@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_read_word
	movl	%eax, 16(%rbx)
	movq	(%rbx), %rax
	shlq	$2, %rax
	addq	160(%rbx), %rax
	movq	_ZIPCXTL@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_read_word
	movq	%rax, 24(%rbx)
	movq	(%rbx), %rax
	shlq	$2, %rax
	addq	160(%rbx), %rax
	movq	_ZIPCCML@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_read_word
	movq	%rax, 32(%rbx)
	movq	(%rbx), %rax
	shlq	$2, %rax
	addq	160(%rbx), %rax
	movq	_ZIPDSK@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_read_word
	movq	%rax, 72(%rbx)
	movq	(%rbx), %rax
	shlq	$2, %rax
	addq	160(%rbx), %rax
	movq	_ZIPINT@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_read_word
	movq	%rax, 64(%rbx)
	movq	(%rbx), %rax
	shlq	$2, %rax
	addq	160(%rbx), %rax
	movq	_ZIPEXT@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_read_dword
	movq	%rax, 56(%rbx)
	movq	(%rbx), %rax
	shlq	$2, %rax
	addq	160(%rbx), %rax
	movq	_ZIPOFST@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rdi
	callq	_read_dword
	movq	%rax, 48(%rbx)
	movq	_ZIPCFN@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	addq	(%rbx), %rax
	movslq	16(%rbx), %rcx
	addq	%rax, %rcx
	cmpq	8(%rbx), %rcx
	jle	LBB0_4
## %bb.2:
	movq	_ERROR_CORRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	168(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	callq	_errormsg
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_4:
	leaq	16(%rbx), %r14
	movq	40(%rbx), %rdi
	callq	_free
	movl	16(%rbx), %edi
	incl	%edi
	callq	_malloc
	movq	%rax, 40(%rbx)
	movq	(%rbx), %rcx
	shlq	$2, %rcx
	addq	160(%rbx), %rcx
	movq	(%r15), %rdx
	leaq	(%rcx,%rdx,4), %rsi
	movl	16(%rbx), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movq	40(%rbx), %rax
	movslq	16(%rbx), %rcx
	movb	$0, (%rax,%rcx)
	movslq	16(%rbx), %rax
	addq	(%r15), %rax
	addq	24(%rbx), %rax
	addq	32(%rbx), %rax
	addq	%rax, (%rbx)
LBB0_5:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZIPCENSIG,4,2                  ## @ZIPCENSIG
	.comm	_ZIPCVER,4,2                    ## @ZIPCVER
	.comm	_ZIPCOS,4,2                     ## @ZIPCOS
	.comm	_ZIPCVXT,4,2                    ## @ZIPCVXT
	.comm	_ZIPCEXOS,4,2                   ## @ZIPCEXOS
	.comm	_ZIPCFLG,4,2                    ## @ZIPCFLG
	.comm	_ZIPCMTHD,4,2                   ## @ZIPCMTHD
	.comm	_ZIPCTIM,4,2                    ## @ZIPCTIM
	.comm	_ZIPCDAT,4,2                    ## @ZIPCDAT
	.comm	_ZIPCCRC,4,2                    ## @ZIPCCRC
	.comm	_ZIPCSIZ,4,2                    ## @ZIPCSIZ
	.comm	_ZIPCUNC,4,2                    ## @ZIPCUNC
	.comm	_ZIPCFNL,4,2                    ## @ZIPCFNL
	.comm	_ZIPCXTL,4,2                    ## @ZIPCXTL
	.comm	_ZIPCCML,4,2                    ## @ZIPCCML
	.comm	_ZIPDSK,4,2                     ## @ZIPDSK
	.comm	_ZIPINT,4,2                     ## @ZIPINT
	.comm	_ZIPEXT,4,2                     ## @ZIPEXT
	.comm	_ZIPOFST,4,2                    ## @ZIPOFST
	.comm	_ZIPCFN,8,3                     ## @ZIPCFN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid filename length in directory"

	.comm	_ERROR_CORRUPT,4,2              ## @ERROR_CORRUPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_readzip                        ; -- Begin function readzip
	.p2align	2
_readzip:                               ; @readzip
	.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
	ldp	x8, x9, [x0]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #160]
	add	x8, x9, x8, lsl #2
Lloh0:
	adrp	x9, _ZIPCENSIG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ZIPCENSIG@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_read_dword
	ldr	x8, [x19, #160]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #2
Lloh3:
	adrp	x9, _ZIPCVER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ZIPCVER@GOTPAGEOFF]
Lloh5:
	ldrsw	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	str	w9, [x19, #148]
Lloh6:
	adrp	x9, _ZIPCOS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ZIPCOS@GOTPAGEOFF]
Lloh8:
	ldrsw	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	str	w9, [x19, #144]
Lloh9:
	adrp	x9, _ZIPCVXT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ZIPCVXT@GOTPAGEOFF]
Lloh11:
	ldrsw	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	str	w9, [x19, #140]
Lloh12:
	adrp	x9, _ZIPCEXOS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ZIPCEXOS@GOTPAGEOFF]
Lloh14:
	ldrsw	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	str	x0, [x19, #152]
	str	w9, [x19, #136]
Lloh15:
	adrp	x9, _ZIPCFLG@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ZIPCFLG@GOTPAGEOFF]
Lloh17:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_read_word
	str	x0, [x19, #128]
	ldr	x8, [x19, #160]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #2
Lloh18:
	adrp	x9, _ZIPCMTHD@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ZIPCMTHD@GOTPAGEOFF]
Lloh20:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_read_word
	str	x0, [x19, #120]
	ldr	x8, [x19, #160]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #2
Lloh21:
	adrp	x9, _ZIPCTIM@GOTPAGE
Lloh22:
	ldr	x9, [x9, _ZIPCTIM@GOTPAGEOFF]
Lloh23:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_read_word
	str	x0, [x19, #112]
	ldr	x8, [x19, #160]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #2
Lloh24:
	adrp	x9, _ZIPCDAT@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ZIPCDAT@GOTPAGEOFF]
Lloh26:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_read_word
	str	x0, [x19, #104]
	ldr	x8, [x19, #160]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #2
Lloh27:
	adrp	x9, _ZIPCCRC@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ZIPCCRC@GOTPAGEOFF]
Lloh29:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_read_dword
	str	x0, [x19, #96]
	ldr	x8, [x19, #160]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #2
Lloh30:
	adrp	x9, _ZIPCSIZ@GOTPAGE
Lloh31:
	ldr	x9, [x9, _ZIPCSIZ@GOTPAGEOFF]
Lloh32:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_read_dword
	str	x0, [x19, #88]
	ldr	x8, [x19, #160]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #2
Lloh33:
	adrp	x9, _ZIPCUNC@GOTPAGE
Lloh34:
	ldr	x9, [x9, _ZIPCUNC@GOTPAGEOFF]
Lloh35:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_read_dword
	str	x0, [x19, #80]
	ldr	x8, [x19, #160]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #2
Lloh36:
	adrp	x9, _ZIPCFNL@GOTPAGE
Lloh37:
	ldr	x9, [x9, _ZIPCFNL@GOTPAGEOFF]
Lloh38:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_read_word
	mov	x20, x19
	str	w0, [x20, #16]!
	ldr	x8, [x19, #160]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #2
Lloh39:
	adrp	x9, _ZIPCXTL@GOTPAGE
Lloh40:
	ldr	x9, [x9, _ZIPCXTL@GOTPAGEOFF]
Lloh41:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_read_word
	str	x0, [x19, #24]
	ldr	x8, [x19, #160]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #2
Lloh42:
	adrp	x9, _ZIPCCML@GOTPAGE
Lloh43:
	ldr	x9, [x9, _ZIPCCML@GOTPAGEOFF]
Lloh44:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_read_word
	str	x0, [x19, #32]
	ldr	x8, [x19, #160]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #2
Lloh45:
	adrp	x9, _ZIPDSK@GOTPAGE
Lloh46:
	ldr	x9, [x9, _ZIPDSK@GOTPAGEOFF]
Lloh47:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_read_word
	str	x0, [x19, #72]
	ldr	x8, [x19, #160]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #2
Lloh48:
	adrp	x9, _ZIPINT@GOTPAGE
Lloh49:
	ldr	x9, [x9, _ZIPINT@GOTPAGEOFF]
Lloh50:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_read_word
	str	x0, [x19, #64]
	ldr	x8, [x19, #160]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #2
Lloh51:
	adrp	x9, _ZIPEXT@GOTPAGE
Lloh52:
	ldr	x9, [x9, _ZIPEXT@GOTPAGEOFF]
Lloh53:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_read_dword
	str	x0, [x19, #56]
	ldr	x8, [x19, #160]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #2
Lloh54:
	adrp	x9, _ZIPOFST@GOTPAGE
Lloh55:
	ldr	x9, [x9, _ZIPOFST@GOTPAGEOFF]
Lloh56:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_read_dword
	str	x0, [x19, #48]
Lloh57:
	adrp	x21, _ZIPCFN@GOTPAGE
Lloh58:
	ldr	x21, [x21, _ZIPCFN@GOTPAGEOFF]
	ldr	x8, [x21]
	ldrsw	x9, [x20]
	ldp	x10, x11, [x19]
	add	x8, x8, x10
	add	x8, x8, x9
	cmp	x8, x11
	b.le	LBB0_4
; %bb.2:
Lloh59:
	adrp	x8, _ERROR_CORRUPT@GOTPAGE
Lloh60:
	ldr	x8, [x8, _ERROR_CORRUPT@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	ldr	w2, [x19, #168]
Lloh62:
	adrp	x0, l_.str@PAGE
Lloh63:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errormsg
LBB0_3:
	mov	x20, #0
	b	LBB0_5
LBB0_4:
	ldr	x0, [x19, #40]
	bl	_free
	ldr	w8, [x19, #16]
	add	w0, w8, #1
	bl	_malloc
	str	x0, [x19, #40]
	ldr	x8, [x19, #160]
	ldr	x9, [x19]
	add	x8, x8, x9, lsl #2
	ldr	x9, [x21]
	add	x1, x8, x9, lsl #2
	ldr	w2, [x19, #16]
	bl	_memcpy
	ldr	x8, [x19, #40]
	ldrsw	x9, [x19, #16]
	strb	wzr, [x8, x9]
	ldr	x8, [x21]
	ldrsw	x9, [x19, #16]
	ldp	x10, x11, [x19, #24]
	add	x8, x8, x9
	add	x8, x8, x10
	ldr	x9, [x19]
	add	x8, x8, x11
	add	x8, x8, x9
	str	x8, [x19]
LBB0_5:
	mov	x0, x20
	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	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_ZIPCENSIG,4,2                  ; @ZIPCENSIG
	.comm	_ZIPCVER,4,2                    ; @ZIPCVER
	.comm	_ZIPCOS,4,2                     ; @ZIPCOS
	.comm	_ZIPCVXT,4,2                    ; @ZIPCVXT
	.comm	_ZIPCEXOS,4,2                   ; @ZIPCEXOS
	.comm	_ZIPCFLG,4,2                    ; @ZIPCFLG
	.comm	_ZIPCMTHD,4,2                   ; @ZIPCMTHD
	.comm	_ZIPCTIM,4,2                    ; @ZIPCTIM
	.comm	_ZIPCDAT,4,2                    ; @ZIPCDAT
	.comm	_ZIPCCRC,4,2                    ; @ZIPCCRC
	.comm	_ZIPCSIZ,4,2                    ; @ZIPCSIZ
	.comm	_ZIPCUNC,4,2                    ; @ZIPCUNC
	.comm	_ZIPCFNL,4,2                    ; @ZIPCFNL
	.comm	_ZIPCXTL,4,2                    ; @ZIPCXTL
	.comm	_ZIPCCML,4,2                    ; @ZIPCCML
	.comm	_ZIPDSK,4,2                     ; @ZIPDSK
	.comm	_ZIPINT,4,2                     ; @ZIPINT
	.comm	_ZIPEXT,4,2                     ; @ZIPEXT
	.comm	_ZIPOFST,4,2                    ; @ZIPOFST
	.comm	_ZIPCFN,8,3                     ; @ZIPCFN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid filename length in directory"

	.comm	_ERROR_CORRUPT,4,2              ; @ERROR_CORRUPT
.subsections_via_symbols
