	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkware_decrypt
_pkware_decrypt:                        ## @pkware_decrypt
	.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
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%rsi, %r15
	addl	$-128, %r8d
	cmpl	$5, %r8d
	ja	LBB0_10
## %bb.1:
	movq	%rdx, %r14
	xorl	%ebx, %ebx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r8,4), %rdx
	addq	%rax, %rdx
	jmpq	*%rdx
LBB0_6:
	movq	_ZIP_EM_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	_ZIP_STAT_ENCRYPTION_METHOD@GOTPCREL(%rip), %rax
	movl	(%r14), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	_ZIP_STAT_COMP_SIZE@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.7:
	movq	_HEADERLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%eax, 4(%r14)
	jmp	LBB0_11
LBB0_10:
	movq	_ZIP_ER_INVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	movl	$0, 4(%rcx)
	movl	$-1, %ebx
	jmp	LBB0_11
LBB0_3:
	movq	%r14, %rsi
	movl	%ecx, %edx
	callq	_zip_source_read
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r14, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_decrypt
	jmp	LBB0_11
LBB0_2:
	movq	%r15, %rsi
	callq	_decrypt_header
	movl	%eax, %ebx
	sarl	$31, %ebx
	jmp	LBB0_11
LBB0_9:
	movq	%r15, %rdi
	callq	_pkware_free
	jmp	LBB0_11
LBB0_8:
	movq	(%r15), %rsi
	movl	$8, %ebx
	movq	%r14, %rdi
	movl	$8, %edx
	callq	_memcpy
	jmp	LBB0_11
LBB0_4:
	movq	_ZIP_SOURCE_ERR_LOWER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_ZIP_SOURCE_ERR_LOWER,4,2       ## @ZIP_SOURCE_ERR_LOWER
	.comm	_ZIP_EM_NONE,4,2                ## @ZIP_EM_NONE
	.comm	_ZIP_STAT_ENCRYPTION_METHOD,4,2 ## @ZIP_STAT_ENCRYPTION_METHOD
	.comm	_ZIP_STAT_COMP_SIZE,4,2         ## @ZIP_STAT_COMP_SIZE
	.comm	_HEADERLEN,4,2                  ## @HEADERLEN
	.comm	_ZIP_ER_INVAL,4,2               ## @ZIP_ER_INVAL
	.no_dead_strip	_pkware_decrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkware_decrypt
_pkware_decrypt:                        ; @pkware_decrypt
	.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	x21, x1
	sub	w8, w4, #128
	cmp	w8, #5
	b.hi	LBB0_4
; %bb.1:
	mov	x20, x2
	mov	w19, #0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _ZIP_EM_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ZIP_EM_NONE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #8]
Lloh5:
	adrp	x8, _ZIP_STAT_ENCRYPTION_METHOD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ZIP_STAT_ENCRYPTION_METHOD@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh8:
	adrp	x9, _ZIP_STAT_COMP_SIZE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ZIP_STAT_COMP_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.3:
	mov	w19, #0
Lloh11:
	adrp	x8, _HEADERLEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HEADERLEN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	sub	w8, w9, w8
	str	w8, [x20, #4]
	b	LBB0_12
LBB0_4:
Lloh14:
	adrp	x8, _ZIP_ER_INVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ZIP_ER_INVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	x9, [x21]
	stp	w8, wzr, [x9]
	mov	w19, #-1
	b	LBB0_12
LBB0_5:
	mov	x1, x20
	mov	x2, x3
	bl	_zip_source_read
	tbnz	w0, #31, LBB0_11
; %bb.6:
	mov	x19, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x20
	mov	x3, x19
	mov	w4, #0
	bl	_decrypt
	b	LBB0_12
LBB0_7:
	mov	x1, x21
	bl	_decrypt_header
	asr	w19, w0, #31
	b	LBB0_12
LBB0_8:
	mov	x0, x21
	bl	_pkware_free
	mov	w19, #0
	b	LBB0_12
LBB0_9:
	ldr	x1, [x21]
	mov	w19, #8
	mov	x0, x20
	mov	w2, #8
	bl	_memcpy
	b	LBB0_12
LBB0_10:
	mov	w19, #0
	b	LBB0_12
LBB0_11:
Lloh17:
	adrp	x8, _ZIP_SOURCE_ERR_LOWER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ZIP_SOURCE_ERR_LOWER@GOTPAGEOFF]
Lloh19:
	ldr	w19, [x8]
LBB0_12:
	mov	x0, x19
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
                                        ; -- End function
	.comm	_ZIP_SOURCE_ERR_LOWER,4,2       ; @ZIP_SOURCE_ERR_LOWER
	.comm	_ZIP_EM_NONE,4,2                ; @ZIP_EM_NONE
	.comm	_ZIP_STAT_ENCRYPTION_METHOD,4,2 ; @ZIP_STAT_ENCRYPTION_METHOD
	.comm	_ZIP_STAT_COMP_SIZE,4,2         ; @ZIP_STAT_COMP_SIZE
	.comm	_HEADERLEN,4,2                  ; @HEADERLEN
	.comm	_ZIP_ER_INVAL,4,2               ; @ZIP_ER_INVAL
	.no_dead_strip	_pkware_decrypt
.subsections_via_symbols
