	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_winzip_aes_encryption_supported
_is_winzip_aes_encryption_supported:    ## @is_winzip_aes_encryption_supported
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_DERIVED_KEY_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_ENCRYPTION_WINZIP_AES128@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	%r14d, (%rax)
	setne	%bl
	leaq	8(,%rbx,8), %r12
	leaq	-128(%rbp), %rdi
	movq	%r12, %rsi
	callq	_archive_random
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	shlq	$4, %rbx
	addq	$16, %rbx
	leaq	(%rbx,%rbx), %rax
	orq	$2, %rax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdi
	leaq	-128(%rbp), %rdx
	movl	$1, %esi
	movq	%r12, %rcx
	movl	$1000, %r8d                     ## imm = 0x3E8
	movq	%r15, %r9
	pushq	%rax
	callq	_archive_pbkdf2_sha1
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	leaq	-136(%rbp), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_archive_encrypto_aes_ctr_init
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	leaq	(%r15,%rbx,4), %rsi
	leaq	-132(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_archive_hmac_sha1_init
	movl	%eax, %ebx
	leaq	-136(%rbp), %rdi
	callq	_archive_encrypto_aes_ctr_release
	testl	%ebx, %ebx
	jne	LBB0_5
## %bb.4:
	leaq	-132(%rbp), %rdi
	callq	_archive_hmac_sha1_cleanup
	movl	$1, %r14d
LBB0_5:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_DERIVED_KEY_BUF_SIZE,4,2   ## @MAX_DERIVED_KEY_BUF_SIZE
	.comm	_ENCRYPTION_WINZIP_AES128,4,2   ## @ENCRYPTION_WINZIP_AES128
	.comm	_ARCHIVE_OK,8,3                 ## @ARCHIVE_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"p"

	.no_dead_strip	_is_winzip_aes_encryption_supported
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_winzip_aes_encryption_supported
_is_winzip_aes_encryption_supported:    ; @is_winzip_aes_encryption_supported
	.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
	sub	sp, sp, #96
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _MAX_DERIVED_KEY_BUF_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_DERIVED_KEY_BUF_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh8:
	adrp	x8, _ENCRYPTION_WINZIP_AES128@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENCRYPTION_WINZIP_AES128@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w0
	mov	w8, #16
	mov	w9, #8
	csel	x21, x9, x8, eq
	mov	w9, #32
	csel	x20, x8, x9, eq
	sub	x0, x29, #112
	mov	x1, x21
	bl	_archive_random
Lloh11:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	lsl	x8, x20, #1
	orr	x6, x8, #0x2
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	sub	x2, x29, #112
	mov	w1, #1
	mov	x3, x21
	mov	w4, #1000
	mov	x5, x19
	bl	_archive_pbkdf2_sha1
	cbnz	w0, LBB0_4
; %bb.2:
	sub	x0, x29, #116
	mov	x1, x19
	mov	x2, x20
	bl	_archive_encrypto_aes_ctr_init
	cbnz	w0, LBB0_4
; %bb.3:
	add	x1, x19, x20, lsl #2
	sub	x0, x29, #120
	mov	x2, x20
	bl	_archive_hmac_sha1_init
	mov	x19, x0
	sub	x0, x29, #116
	bl	_archive_encrypto_aes_ctr_release
	cbz	w19, LBB0_7
LBB0_4:
	mov	w0, #0
LBB0_5:
	mov	sp, x22
	ldur	x8, [x29, #-40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
	sub	sp, x29, #32
	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_7:
	sub	x0, x29, #120
	bl	_archive_hmac_sha1_cleanup
	mov	w0, #1
	b	LBB0_5
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DERIVED_KEY_BUF_SIZE,4,2   ; @MAX_DERIVED_KEY_BUF_SIZE
	.comm	_ENCRYPTION_WINZIP_AES128,4,2   ; @ENCRYPTION_WINZIP_AES128
	.comm	_ARCHIVE_OK,8,3                 ; @ARCHIVE_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"p"

	.no_dead_strip	_is_winzip_aes_encryption_supported
.subsections_via_symbols
