	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lha_read_file_header_0
_lha_read_file_header_0:                ## @lha_read_file_header_0
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_H0_FIXED_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %rbx
	movq	_H0_HEADER_SIZE_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	(%rbx,%rax), %al
	addb	$2, %al
	movb	%al, (%r13)
	movq	_H0_HEADER_SUM_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	(%rbx,%rax), %al
	movb	%al, -42(%rbp)                  ## 1-byte Spill
	movq	_H0_COMP_SIZE_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_archive_le32dec
	movq	%rax, 64(%r13)
	movq	_H0_ORIG_SIZE_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_archive_le32dec
	movq	%rax, 56(%r13)
	movq	_H0_DOS_TIME_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_lha_dos_time
	movq	%rax, 32(%r13)
	movq	_H0_NAME_LEN_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzbl	(%rbx,%rax), %r12d
	cmpl	$222, %r12d
	setae	%al
	movzbl	(%r13), %esi
	movl	(%r15), %ecx
	addl	%r12d, %ecx
	movl	%esi, %ebx
	subl	%ecx, %ebx
	sets	%cl
	orb	%al, %cl
	cmpb	$1, %cl
	jne	LBB0_5
## %bb.2:
	cmpl	$-2, %ebx
	je	LBB0_5
## %bb.3:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:
	movq	%rax, %r15
	leaq	48(%r13), %rdi
	movq	_H0_FILE_NAME_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	addq	%r15, %rsi
	movl	%r12d, %edx
	callq	_archive_strncpy
	testl	%ebx, %ebx
	js	LBB0_8
## %bb.7:
	movq	_H0_FILE_NAME_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%r15, %rax
	movl	%r12d, %edi
	addq	%rax, %rdi
	callq	_archive_le16dec
	movq	%rax, 40(%r13)
	movq	_CRC_IS_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r13)
LBB0_8:
	movzbl	(%r13), %ecx
	addl	$-2, %ecx
	xorl	%edi, %edi
	movq	%r15, %rsi
	movl	$2, %edx
	callq	_lha_calcsum
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_12
## %bb.9:
	movq	_H0_FILE_NAME_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	addl	$2, %eax
	cltq
	cmpb	$85, (%r15,%rax)
	jne	LBB0_12
## %bb.10:
	cmpl	$12, %ebx
	jne	LBB0_12
## %bb.11:
	addq	%rax, %r15
	leaq	2(%r15), %rdi
	callq	_archive_le32dec
	movq	%rax, 32(%r13)
	leaq	6(%r15), %rdi
	callq	_archive_le16dec
	movq	%rax, 24(%r13)
	leaq	8(%r15), %rdi
	callq	_archive_le16dec
	movq	%rax, 16(%r13)
	addq	$10, %r15
	movq	%r15, %rdi
	callq	_archive_le16dec
	movq	%rax, 8(%r13)
	movq	_UNIX_MODE_IS_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r13)
LBB0_12:
	movzbl	(%r13), %esi
	movq	%r14, %rdi
	callq	___archive_read_consume
	movb	-41(%rbp), %al                  ## 1-byte Reload
	cmpb	-42(%rbp), %al                  ## 1-byte Folded Reload
	jne	LBB0_13
## %bb.14:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_16:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_truncated_error                ## TAILCALL
LBB0_13:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_4:
	movq	%r14, %rdi
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_H0_FIXED_SIZE,4,2              ## @H0_FIXED_SIZE
	.comm	_H0_HEADER_SIZE_OFFSET,8,3      ## @H0_HEADER_SIZE_OFFSET
	.comm	_H0_HEADER_SUM_OFFSET,8,3       ## @H0_HEADER_SUM_OFFSET
	.comm	_H0_COMP_SIZE_OFFSET,4,2        ## @H0_COMP_SIZE_OFFSET
	.comm	_H0_ORIG_SIZE_OFFSET,4,2        ## @H0_ORIG_SIZE_OFFSET
	.comm	_H0_DOS_TIME_OFFSET,4,2         ## @H0_DOS_TIME_OFFSET
	.comm	_H0_NAME_LEN_OFFSET,8,3         ## @H0_NAME_LEN_OFFSET
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid LHa header"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_H0_FILE_NAME_OFFSET,4,2        ## @H0_FILE_NAME_OFFSET
	.comm	_CRC_IS_SET,4,2                 ## @CRC_IS_SET
	.comm	_UNIX_MODE_IS_SET,4,2           ## @UNIX_MODE_IS_SET
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
L_.str.1:                               ## @.str.1
	.asciz	"LHa header sum error"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_lha_read_file_header_0
.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_0
_lha_read_file_header_0:                ; @lha_read_file_header_0
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _H0_FIXED_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _H0_FIXED_SIZE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x2, #0
	bl	___archive_read_ahead
	cbz	x0, LBB0_10
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x8, _H0_HEADER_SIZE_OFFSET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _H0_HEADER_SIZE_OFFSET@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldrb	w8, [x0, x8]
	add	w8, w8, #2
	strb	w8, [x20]
Lloh5:
	adrp	x8, _H0_HEADER_SUM_OFFSET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _H0_HEADER_SUM_OFFSET@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldrb	w24, [x0, x8]
Lloh8:
	adrp	x8, _H0_COMP_SIZE_OFFSET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _H0_COMP_SIZE_OFFSET@GOTPAGEOFF]
Lloh10:
	ldrsw	x8, [x8]
	add	x0, x0, x8
	bl	_archive_le32dec
	str	x0, [x20, #64]
Lloh11:
	adrp	x8, _H0_ORIG_SIZE_OFFSET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _H0_ORIG_SIZE_OFFSET@GOTPAGEOFF]
Lloh13:
	ldrsw	x8, [x8]
	add	x0, x21, x8
	bl	_archive_le32dec
	str	x0, [x20, #56]
Lloh14:
	adrp	x8, _H0_DOS_TIME_OFFSET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _H0_DOS_TIME_OFFSET@GOTPAGEOFF]
Lloh16:
	ldrsw	x8, [x8]
	add	x0, x21, x8
	bl	_lha_dos_time
Lloh17:
	adrp	x8, _H0_NAME_LEN_OFFSET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _H0_NAME_LEN_OFFSET@GOTPAGEOFF]
	str	x0, [x20, #32]
Lloh19:
	ldr	x8, [x8]
	ldrb	w21, [x21, x8]
	ldrb	w1, [x20]
	ldr	w8, [x22]
	add	w8, w8, w21
	sub	w25, w1, w8
	cmp	w25, #0
	mov	w8, #221
	ccmp	w21, w8, #2, ge
	ccmn	w25, #2, #4, hi
	b.ne	LBB0_11
; %bb.2:
	mov	x0, x19
	mov	x2, #0
	bl	___archive_read_ahead
	cbz	x0, LBB0_10
; %bb.3:
	mov	x23, x0
	add	x0, x20, #48
Lloh20:
	adrp	x26, _H0_FILE_NAME_OFFSET@GOTPAGE
Lloh21:
	ldr	x26, [x26, _H0_FILE_NAME_OFFSET@GOTPAGEOFF]
	ldrsw	x8, [x26]
	add	x1, x23, x8
	mov	x2, x21
	bl	_archive_strncpy
	tbnz	w25, #31, LBB0_5
; %bb.4:
	ldrsw	x8, [x26]
	add	x8, x23, x8
	add	x0, x8, w21, uxtw
	bl	_archive_le16dec
	str	x0, [x20, #40]
Lloh22:
	adrp	x8, _CRC_IS_SET@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CRC_IS_SET@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
LBB0_5:
	ldrb	w8, [x20]
	sub	w3, w8, #2
	mov	w0, #0
	mov	x1, x23
	mov	w2, #2
	bl	_lha_calcsum
	mov	x22, x0
	cmp	w25, #1
	b.lt	LBB0_8
; %bb.6:
	ldr	w8, [x26]
	add	w8, w21, w8
	add	w8, w8, #2
	add	x21, x23, w8, sxtw
	ldrb	w8, [x21]
	cmp	w8, #85
	ccmp	w25, #12, #0, eq
	b.ne	LBB0_8
; %bb.7:
	add	x0, x21, #2
	bl	_archive_le32dec
	str	x0, [x20, #32]
	add	x0, x21, #6
	bl	_archive_le16dec
	str	x0, [x20, #24]
	add	x0, x21, #8
	bl	_archive_le16dec
	str	x0, [x20, #16]
	add	x0, x21, #10
	bl	_archive_le16dec
	str	x0, [x20, #8]
Lloh25:
	adrp	x8, _UNIX_MODE_IS_SET@GOTPAGE
Lloh26:
	ldr	x8, [x8, _UNIX_MODE_IS_SET@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [x20, #4]
	orr	w8, w9, w8
	str	w8, [x20, #4]
LBB0_8:
	ldrb	w1, [x20]
	mov	x0, x19
	bl	___archive_read_consume
	cmp	w22, w24
	b.ne	LBB0_12
; %bb.9:
Lloh28:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_truncated_error
LBB0_11:
Lloh30:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x2, l_.str@PAGE
Lloh34:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh35:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x2, l_.str.1@PAGE
Lloh39:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_archive_set_error
Lloh40:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_H0_FIXED_SIZE,4,2              ; @H0_FIXED_SIZE
	.comm	_H0_HEADER_SIZE_OFFSET,8,3      ; @H0_HEADER_SIZE_OFFSET
	.comm	_H0_HEADER_SUM_OFFSET,8,3       ; @H0_HEADER_SUM_OFFSET
	.comm	_H0_COMP_SIZE_OFFSET,4,2        ; @H0_COMP_SIZE_OFFSET
	.comm	_H0_ORIG_SIZE_OFFSET,4,2        ; @H0_ORIG_SIZE_OFFSET
	.comm	_H0_DOS_TIME_OFFSET,4,2         ; @H0_DOS_TIME_OFFSET
	.comm	_H0_NAME_LEN_OFFSET,8,3         ; @H0_NAME_LEN_OFFSET
	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid LHa header"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_H0_FILE_NAME_OFFSET,4,2        ; @H0_FILE_NAME_OFFSET
	.comm	_CRC_IS_SET,4,2                 ; @CRC_IS_SET
	.comm	_UNIX_MODE_IS_SET,4,2           ; @UNIX_MODE_IS_SET
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
l_.str.1:                               ; @.str.1
	.asciz	"LHa header sum error"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_lha_read_file_header_0
.subsections_via_symbols
