	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decrypt_header
_decrypt_header:                        ## @decrypt_header
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HEADERLEN@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	%rbx, %rax
	addq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_zip_source_read
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpl	(%r15), %eax
	jne	LBB0_3
## %bb.4:
	movq	%r15, %rbx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r13, %rdx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_decrypt
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_zip_source_stat
	testq	%rax, %rax
	js	LBB0_10
## %bb.5:
	movl	-60(%rbp), %edi
	leaq	-50(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	callq	__zip_u2d_time
	movslq	(%rbx), %rax
	movzwl	-2(%r13,%rax,2), %eax
	testw	%ax, %ax
	je	LBB0_10
## %bb.6:
	movzbl	-49(%rbp), %ecx
	cmpw	%cx, %ax
	je	LBB0_10
## %bb.7:
	movq	_ZIP_ER_WRONGPASSWD@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	(%r14), %rsi
	leaq	8(%rsi), %rdx
	movq	%r12, %rdi
	callq	_zip_source_error
	jmp	LBB0_9
LBB0_3:
	movq	_ZIP_ER_EOF@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movq	%rax, (%rcx)
	movq	$0, 8(%rcx)
LBB0_9:
	movl	$-1, %r15d
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HEADERLEN,4,2                  ## @HEADERLEN
	.comm	_ZIP_ER_EOF,8,3                 ## @ZIP_ER_EOF
	.comm	_ZIP_ER_WRONGPASSWD,8,3         ## @ZIP_ER_WRONGPASSWD
	.no_dead_strip	_decrypt_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decrypt_header
_decrypt_header:                        ; @decrypt_header
	.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, #32
	mov	x19, x1
	mov	x20, x0
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	x22, _HEADERLEN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _HEADERLEN@GOTPAGEOFF]
	ldr	w2, [x22]
	lsl	x8, x2, #1
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x3fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_zip_source_read
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x3, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x21
	mov	w4, #0
	bl	_decrypt
	sub	x1, x29, #48
	mov	x0, x20
	bl	_zip_source_stat
	tbnz	x0, #63, LBB0_5
; %bb.3:
	ldur	w0, [x29, #-44]
	sub	x1, x29, #50
	sub	x2, x29, #52
	bl	__zip_u2d_time
	ldrsw	x8, [x22]
	add	x8, x21, x8, lsl #1
	ldurh	w8, [x8, #-2]
	cbz	w8, LBB0_5
; %bb.4:
	ldurb	w9, [x29, #-49]
	cmp	w8, w9
	b.ne	LBB0_12
LBB0_5:
	mov	w0, #0
	b	LBB0_10
LBB0_6:
	ldr	x1, [x19]
	add	x2, x1, #8
	mov	x0, x20
	bl	_zip_source_error
	b	LBB0_9
LBB0_7:
Lloh7:
	adrp	x8, _ZIP_ER_EOF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ZIP_ER_EOF@GOTPAGEOFF]
LBB0_8:
	ldr	x8, [x8]
	ldr	x9, [x19]
	stp	x8, xzr, [x9]
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldur	x8, [x29, #-40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.11:
	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_12:
Lloh12:
	adrp	x8, _ZIP_ER_WRONGPASSWD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ZIP_ER_WRONGPASSWD@GOTPAGEOFF]
	b	LBB0_8
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HEADERLEN,4,2                  ; @HEADERLEN
	.comm	_ZIP_ER_EOF,8,3                 ; @ZIP_ER_EOF
	.comm	_ZIP_ER_WRONGPASSWD,8,3         ; @ZIP_ER_WRONGPASSWD
	.no_dead_strip	_decrypt_header
.subsections_via_symbols
