	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_authentication_code
_check_authentication_code:             ## @check_authentication_code
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %rdi
	cmpq	$0, 8(%rdi)
	je	LBB0_7
## %bb.1:
	movq	%rsi, %rbx
	movq	$20, -120(%rbp)
	leaq	-112(%rbp), %rsi
	leaq	-120(%rbp), %rdx
	callq	_archive_hmac_sha1_final
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.2:
	movq	_AUTH_CODE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	movq	_AUTH_CODE_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	-112(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_memcmp
	movl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	___archive_read_consume
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.5:
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rbx
	leaq	L_.str.1(%rip), %rdx
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_7:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_8
LBB0_3:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rbx
	leaq	L_.str(%rip), %rdx
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_archive_set_error
	movl	(%rbx), %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	addq	$104, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AUTH_CODE_SIZE,4,2             ## @AUTH_CODE_SIZE
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Truncated ZIP file data"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
L_.str.1:                               ## @.str.1
	.asciz	"ZIP bad Authentication code"

	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_check_authentication_code
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_authentication_code
_check_authentication_code:             ; @check_authentication_code
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x8, [x0, #8]
	ldr	x0, [x8]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x20, x1
	mov	w8, #20
	str	x8, [sp]
	add	x1, sp, #8
	mov	x2, sp
	bl	_archive_hmac_sha1_final
Lloh3:
	adrp	x21, _AUTH_CODE_SIZE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _AUTH_CODE_SIZE@GOTPAGEOFF]
	cbnz	x20, LBB0_3
; %bb.2:
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, #0
	bl	___archive_read_ahead
	mov	x20, x0
	cbz	x0, LBB0_6
LBB0_3:
	ldr	w2, [x21]
	add	x0, sp, #8
	mov	x1, x20
	bl	_memcmp
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	bl	___archive_read_consume
	cbz	w20, LBB0_5
; %bb.4:
Lloh5:
	adrp	x20, _ARCHIVE_WARN@GOTPAGE
Lloh6:
	ldr	x20, [x20, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh9:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh11:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	b	LBB0_8
LBB0_6:
Lloh14:
	adrp	x20, _ARCHIVE_FATAL@GOTPAGE
Lloh15:
	ldr	x20, [x20, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
Lloh18:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
LBB0_7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_archive_set_error
	ldr	w0, [x20]
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AUTH_CODE_SIZE,4,2             ; @AUTH_CODE_SIZE
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Truncated ZIP file data"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
l_.str.1:                               ; @.str.1
	.asciz	"ZIP bad Authentication code"

	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_check_authentication_code
.subsections_via_symbols
