	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lha_end_of_entry
_lha_end_of_entry:                      ## @lha_end_of_entry
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movq	_ARCHIVE_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$0, (%rbx)
	jne	LBB0_5
## %bb.1:
	movq	_CRC_IS_SET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rbx)
	je	LBB0_4
## %bb.2:
	movq	8(%rbx), %rcx
	cmpq	16(%rbx), %rcx
	je	LBB0_4
## %bb.3:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_archive_set_error
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movl	$1, (%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_EOF,4,2                ## @ARCHIVE_EOF
	.comm	_CRC_IS_SET,4,2                 ## @CRC_IS_SET
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LHa data CRC error"

	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
	.no_dead_strip	_lha_end_of_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lha_end_of_entry
_lha_end_of_entry:                      ; @lha_end_of_entry
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x0
	ldr	x9, [x0, #8]
	ldr	x19, [x9]
Lloh0:
	adrp	x9, _ARCHIVE_EOF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ARCHIVE_EOF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	ldr	w9, [x19]
	cbnz	w9, LBB0_5
; %bb.1:
	ldr	w9, [x19, #4]
Lloh3:
	adrp	x10, _CRC_IS_SET@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CRC_IS_SET@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.2:
	ldp	x9, x10, [x19, #8]
	cmp	x9, x10
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x9, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x8
	bl	_archive_set_error
Lloh11:
	adrp	x8, _ARCHIVE_WARN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
LBB0_4:
	mov	w8, #1
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_EOF,4,2                ; @ARCHIVE_EOF
	.comm	_CRC_IS_SET,4,2                 ; @CRC_IS_SET
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LHa data CRC error"

	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
	.no_dead_strip	_lha_end_of_entry
.subsections_via_symbols
