	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zip_source_pkware              ## -- Begin function zip_source_pkware
	.p2align	4, 0x90
_zip_source_pkware:                     ## @zip_source_pkware
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%r8, %rbx
	testq	%r8, %r8
	je	LBB0_3
## %bb.2:
	movq	_ZIP_EM_TRAD_PKWARE@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jne	LBB0_3
## %bb.5:
	movq	_ZIP_CODEC_ENCODE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_ZIP_ER_ENCRNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ZIP_ER_INVAL@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	__zip_error_set
LBB0_11:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rsi, %r15
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r12
	movq	8(%rax), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	_KEY0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	movq	_KEY1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_KEY2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movq	%rbx, %rdi
	callq	_strlen
	movq	%r12, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	movl	$1, %r8d
	callq	_decrypt
	movq	_pkware_decrypt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rcx
	callq	_zip_source_layered
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	callq	_pkware_free
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_8:
	movq	_ZIP_ER_MEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_ZIP_EM_TRAD_PKWARE,8,3         ## @ZIP_EM_TRAD_PKWARE
	.comm	_ZIP_ER_INVAL,4,2               ## @ZIP_ER_INVAL
	.comm	_ZIP_CODEC_ENCODE,4,2           ## @ZIP_CODEC_ENCODE
	.comm	_ZIP_ER_ENCRNOTSUPP,4,2         ## @ZIP_ER_ENCRNOTSUPP
	.comm	_ZIP_ER_MEMORY,4,2              ## @ZIP_ER_MEMORY
	.comm	_KEY0,4,2                       ## @KEY0
	.comm	_KEY1,4,2                       ## @KEY1
	.comm	_KEY2,4,2                       ## @KEY2
	.comm	_pkware_decrypt,4,2             ## @pkware_decrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zip_source_pkware              ; -- Begin function zip_source_pkware
	.p2align	2
_zip_source_pkware:                     ; @zip_source_pkware
	.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, x0
	cbz	x1, LBB0_5
; %bb.1:
	mov	x21, x4
	cbz	x4, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _ZIP_EM_TRAD_PKWARE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZIP_EM_TRAD_PKWARE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ne	LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _ZIP_CODEC_ENCODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZIP_CODEC_ENCODE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_9
; %bb.4:
Lloh6:
	adrp	x8, _ZIP_ER_ENCRNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ZIP_ER_ENCRNOTSUPP@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _ZIP_ER_INVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ZIP_ER_INVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	__zip_error_set
LBB0_7:
	mov	x0, #0
LBB0_8:
	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
LBB0_9:
	mov	x20, x1
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_12
; %bb.10:
	mov	x22, x0
	ldr	x8, [x0, #8]
Lloh10:
	adrp	x9, _KEY0@GOTPAGE
Lloh11:
	ldr	x9, [x9, _KEY0@GOTPAGEOFF]
	stp	xzr, xzr, [x8]
Lloh12:
	ldr	w8, [x9]
	ldr	x9, [x0]
	str	w8, [x9]
Lloh13:
	adrp	x8, _KEY1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KEY1@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x10, _KEY2@GOTPAGE
Lloh17:
	ldr	x10, [x10, _KEY2@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	stp	w8, w10, [x9, #4]
	mov	x0, x21
	bl	_strlen
	mov	x3, x0
	mov	x0, x22
	mov	x1, #0
	mov	x2, x21
	mov	w4, #1
	bl	_decrypt
Lloh19:
	adrp	x8, _pkware_decrypt@GOTPAGE
Lloh20:
	ldr	x8, [x8, _pkware_decrypt@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x3, x22
	bl	_zip_source_layered
	cbnz	x0, LBB0_8
; %bb.11:
	mov	x0, x22
	bl	_pkware_free
	b	LBB0_7
LBB0_12:
Lloh22:
	adrp	x8, _ZIP_ER_MEMORY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ZIP_ER_MEMORY@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ZIP_EM_TRAD_PKWARE,8,3         ; @ZIP_EM_TRAD_PKWARE
	.comm	_ZIP_ER_INVAL,4,2               ; @ZIP_ER_INVAL
	.comm	_ZIP_CODEC_ENCODE,4,2           ; @ZIP_CODEC_ENCODE
	.comm	_ZIP_ER_ENCRNOTSUPP,4,2         ; @ZIP_ER_ENCRNOTSUPP
	.comm	_ZIP_ER_MEMORY,4,2              ; @ZIP_ER_MEMORY
	.comm	_KEY0,4,2                       ; @KEY0
	.comm	_KEY1,4,2                       ; @KEY1
	.comm	_KEY2,4,2                       ; @KEY2
	.comm	_pkware_decrypt,4,2             ; @pkware_decrypt
.subsections_via_symbols
