	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_traditional_PKWARE_decryption
_init_traditional_PKWARE_decryption:    ## @init_traditional_PKWARE_decryption
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	cmpl	$0, (%r13)
	je	LBB0_2
## %bb.1:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_2:
	movq	%rdi, %rbx
	movq	32(%r13), %rax
	movq	_ZIP_LENGTH_AT_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_5
## %bb.3:
	movq	8(%r13), %rcx
	cmpq	$11, %rcx
	jg	LBB0_5
## %bb.4:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_archive_set_error
	jmp	LBB0_14
LBB0_5:
	movl	$12, %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	___archive_read_next_passphrase
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:
	movq	%rax, %r15
	leaq	40(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$10002, %r12d                   ## imm = 0x2712
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_strlen
	movl	$12, %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%eax, %edx
	movq	%r14, %rcx
	leaq	-56(%rbp), %r9
	callq	_trad_enc_init
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rax
	movq	32(%r13), %rcx
	cmpq	8(%rcx), %rax
	je	LBB0_21
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	decl	%r12d
	je	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, %rdi
	callq	___archive_read_next_passphrase
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_8
## %bb.12:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_16
LBB0_13:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_archive_set_error
LBB0_14:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_15:
	leaq	L_.str.3(%rip), %rdx
LBB0_16:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_18
LBB0_17:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
LBB0_18:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movl	$12, %esi
	movq	%rbx, %rdi
	callq	___archive_read_consume
	movl	$1, (%r13)
	movq	32(%r13), %rax
	movq	_ZIP_LENGTH_AT_END@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_23
## %bb.22:
	addq	$-12, 8(%r13)
LBB0_23:
	addl	$12, 24(%r13)
	movq	$0, 16(%r13)
	movq	%rbx, %rdi
	callq	_zip_alloc_decryption_buffer
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ZIP_LENGTH_AT_END,4,2          ## @ZIP_LENGTH_AT_END
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Truncated Zip encrypted body: only %jd bytes available"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
L_.str.1:                               ## @.str.1
	.asciz	"Truncated ZIP file data"

	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
L_.str.2:                               ## @.str.2
	.asciz	"Incorrect passphrase"

L_.str.3:                               ## @.str.3
	.asciz	"Passphrase required for this entry"

	.comm	_ARCHIVE_FAILED,4,2             ## @ARCHIVE_FAILED
L_.str.4:                               ## @.str.4
	.asciz	"Too many incorrect passphrases"

	.comm	_ENC_HEADER_SIZE,8,3            ## @ENC_HEADER_SIZE
	.no_dead_strip	_init_traditional_PKWARE_decryption
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_traditional_PKWARE_decryption
_init_traditional_PKWARE_decryption:    ; @init_traditional_PKWARE_decryption
	.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
	ldr	x8, [x0, #8]
	ldr	x24, [x8]
	ldr	w8, [x24]
	cbz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_18
LBB0_2:
	mov	x19, x0
	ldr	x8, [x24, #32]
	ldr	w8, [x8]
Lloh2:
	adrp	x25, _ZIP_LENGTH_AT_END@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ZIP_LENGTH_AT_END@GOTPAGEOFF]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x24, #8]
	cmp	x8, #11
	b.gt	LBB0_5
; %bb.4:
Lloh4:
	adrp	x9, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_13
LBB0_5:
	mov	x0, x19
	mov	w1, #12
	mov	x2, #0
	bl	___archive_read_ahead
	cbz	x0, LBB0_12
; %bb.6:
	mov	x20, x0
	mov	x0, x19
	bl	___archive_read_next_passphrase
	cbz	x0, LBB0_14
; %bb.7:
	mov	x23, x0
	add	x22, x24, #40
	mov	w26, #10002
Lloh9:
	adrp	x21, l_.str.2@PAGE
Lloh10:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	add	x5, sp, #8
	mov	x0, x22
	mov	x1, x23
	mov	x3, x20
	mov	w4, #12
	bl	_trad_enc_init
	cbnz	w0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [sp, #8]
	ldr	x9, [x24, #32]
	ldr	x9, [x9, #8]
	cmp	x8, x9
	b.eq	LBB0_20
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	subs	w26, w26, #1
	b.eq	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	___archive_read_next_passphrase
	mov	x23, x0
	cbnz	x0, LBB0_8
	b	LBB0_15
LBB0_12:
Lloh11:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_archive_set_error
Lloh16:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
	b	LBB0_18
LBB0_14:
Lloh18:
	adrp	x21, l_.str.3@PAGE
Lloh19:
	add	x21, x21, l_.str.3@PAGEOFF
LBB0_15:
Lloh20:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	b	LBB0_17
LBB0_16:
Lloh23:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str.4@PAGE
Lloh27:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
LBB0_17:
	bl	_archive_set_error
Lloh28:
	adrp	x8, _ARCHIVE_FAILED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ARCHIVE_FAILED@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
LBB0_19:
	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
LBB0_20:
	mov	x0, x19
	mov	w1, #12
	bl	___archive_read_consume
	mov	w8, #1
	str	w8, [x24]
	ldr	x8, [x24, #32]
	ldr	w8, [x8]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_22
; %bb.21:
	ldr	x8, [x24, #8]
	sub	x8, x8, #12
	str	x8, [x24, #8]
LBB0_22:
	ldr	w8, [x24, #24]
	add	w8, w8, #12
	str	w8, [x24, #24]
	str	xzr, [x24, #16]
	mov	x0, x19
	bl	_zip_alloc_decryption_buffer
	b	LBB0_19
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ZIP_LENGTH_AT_END,4,2          ; @ZIP_LENGTH_AT_END
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Truncated Zip encrypted body: only %jd bytes available"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
l_.str.1:                               ; @.str.1
	.asciz	"Truncated ZIP file data"

	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
l_.str.2:                               ; @.str.2
	.asciz	"Incorrect passphrase"

l_.str.3:                               ; @.str.3
	.asciz	"Passphrase required for this entry"

	.comm	_ARCHIVE_FAILED,4,2             ; @ARCHIVE_FAILED
l_.str.4:                               ; @.str.4
	.asciz	"Too many incorrect passphrases"

	.comm	_ENC_HEADER_SIZE,8,3            ; @ENC_HEADER_SIZE
	.no_dead_strip	_init_traditional_PKWARE_decryption
.subsections_via_symbols
