	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lha_read_file_header_3
_lha_read_file_header_3:                ## @lha_read_file_header_3
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_H3_FIXED_SIZE@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	movq	_H3_FIELD_LEN_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_archive_le16dec
	cmpl	$4, %eax
	jne	LBB0_6
## %bb.2:
	movq	_H3_HEADER_SIZE_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_archive_le32dec
	movq	%rax, (%r15)
	movq	_H3_COMP_SIZE_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_archive_le32dec
	movq	%rax, 48(%r15)
	movq	_H3_ORIG_SIZE_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_archive_le32dec
	movq	%rax, 40(%r15)
	movq	_H3_TIME_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_archive_le32dec
	movq	%rax, 32(%r15)
	movq	_H3_CRC_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_archive_le16dec
	movl	%eax, 8(%r15)
	movq	_CRC_IS_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r15)
	movq	(%r12), %rdx
	leaq	4(%rdx), %rax
	cmpq	%rax, (%r15)
	jge	LBB0_3
LBB0_6:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_7:
	movq	%r14, %rdi
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r14, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_truncated_error                ## TAILCALL
LBB0_3:
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_lha_crc16
	movq	%rax, -40(%rbp)
	movq	(%r12), %rsi
	movq	%r14, %rdi
	callq	___archive_read_consume
	movq	(%r15), %r8
	subq	(%r12), %r8
	leaq	-40(%rbp), %rdx
	leaq	-48(%rbp), %r9
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$4, %ecx
	callq	_lha_read_file_extended_header
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_8
## %bb.4:
	movq	-40(%rbp), %rcx
	cmpq	16(%r15), %rcx
	je	LBB0_8
## %bb.5:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_H3_FIXED_SIZE,8,3              ## @H3_FIXED_SIZE
	.comm	_H3_FIELD_LEN_OFFSET,4,2        ## @H3_FIELD_LEN_OFFSET
	.comm	_H3_HEADER_SIZE_OFFSET,4,2      ## @H3_HEADER_SIZE_OFFSET
	.comm	_H3_COMP_SIZE_OFFSET,4,2        ## @H3_COMP_SIZE_OFFSET
	.comm	_H3_ORIG_SIZE_OFFSET,4,2        ## @H3_ORIG_SIZE_OFFSET
	.comm	_H3_TIME_OFFSET,4,2             ## @H3_TIME_OFFSET
	.comm	_H3_CRC_OFFSET,4,2              ## @H3_CRC_OFFSET
	.comm	_CRC_IS_SET,4,2                 ## @CRC_IS_SET
	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LHa header CRC error"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid LHa header"

	.no_dead_strip	_lha_read_file_header_3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lha_read_file_header_3
_lha_read_file_header_3:                ; @lha_read_file_header_3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _H3_FIXED_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _H3_FIXED_SIZE@GOTPAGEOFF]
	ldr	x1, [x22]
	mov	x2, #0
	bl	___archive_read_ahead
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x8, _H3_FIELD_LEN_OFFSET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _H3_FIELD_LEN_OFFSET@GOTPAGEOFF]
Lloh4:
	ldrsw	x8, [x8]
	add	x0, x0, x8
	bl	_archive_le16dec
	cmp	w0, #4
	b.ne	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _H3_HEADER_SIZE_OFFSET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _H3_HEADER_SIZE_OFFSET@GOTPAGEOFF]
Lloh7:
	ldrsw	x8, [x8]
	add	x0, x21, x8
	bl	_archive_le32dec
	str	x0, [x20]
Lloh8:
	adrp	x8, _H3_COMP_SIZE_OFFSET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _H3_COMP_SIZE_OFFSET@GOTPAGEOFF]
Lloh10:
	ldrsw	x8, [x8]
	add	x0, x21, x8
	bl	_archive_le32dec
	str	x0, [x20, #48]
Lloh11:
	adrp	x8, _H3_ORIG_SIZE_OFFSET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _H3_ORIG_SIZE_OFFSET@GOTPAGEOFF]
Lloh13:
	ldrsw	x8, [x8]
	add	x0, x21, x8
	bl	_archive_le32dec
	str	x0, [x20, #40]
Lloh14:
	adrp	x8, _H3_TIME_OFFSET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _H3_TIME_OFFSET@GOTPAGEOFF]
Lloh16:
	ldrsw	x8, [x8]
	add	x0, x21, x8
	bl	_archive_le32dec
	str	x0, [x20, #32]
Lloh17:
	adrp	x8, _H3_CRC_OFFSET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _H3_CRC_OFFSET@GOTPAGEOFF]
Lloh19:
	ldrsw	x8, [x8]
	add	x0, x21, x8
	bl	_archive_le16dec
	str	w0, [x20, #8]
Lloh20:
	adrp	x8, _CRC_IS_SET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CRC_IS_SET@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x20, #24]
	orr	w8, w9, w8
	str	w8, [x20, #24]
	ldr	x8, [x20]
	ldr	x2, [x22]
	add	x9, x2, #4
	cmp	x8, x9
	b.ge	LBB0_7
LBB0_3:
Lloh23:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x2, l_.str.1@PAGE
Lloh27:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_archive_set_error
Lloh28:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_truncated_error
LBB0_7:
	mov	w0, #0
	mov	x1, x21
	bl	_lha_crc16
	str	x0, [sp]
	ldr	x1, [x22]
	mov	x0, x19
	bl	___archive_read_consume
	ldr	x8, [x20]
	ldr	x9, [x22]
	sub	x4, x8, x9
	mov	x2, sp
	add	x5, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	w3, #4
	bl	_lha_read_file_extended_header
Lloh31:
	adrp	x8, _ARCHIVE_WARN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lt	LBB0_5
; %bb.8:
	ldr	x8, [sp]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.9:
Lloh34:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
Lloh37:
	adrp	x2, l_.str@PAGE
Lloh38:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_H3_FIXED_SIZE,8,3              ; @H3_FIXED_SIZE
	.comm	_H3_FIELD_LEN_OFFSET,4,2        ; @H3_FIELD_LEN_OFFSET
	.comm	_H3_HEADER_SIZE_OFFSET,4,2      ; @H3_HEADER_SIZE_OFFSET
	.comm	_H3_COMP_SIZE_OFFSET,4,2        ; @H3_COMP_SIZE_OFFSET
	.comm	_H3_ORIG_SIZE_OFFSET,4,2        ; @H3_ORIG_SIZE_OFFSET
	.comm	_H3_TIME_OFFSET,4,2             ; @H3_TIME_OFFSET
	.comm	_H3_CRC_OFFSET,4,2              ; @H3_CRC_OFFSET
	.comm	_CRC_IS_SET,4,2                 ; @CRC_IS_SET
	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LHa header CRC error"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid LHa header"

	.no_dead_strip	_lha_read_file_header_3
.subsections_via_symbols
