	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lha_read_file_header_1
_lha_read_file_header_1:                ## @lha_read_file_header_1
	.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, %r15
	movq	%rdi, %r14
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_H1_FIXED_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %rbx
	movq	_H1_HEADER_SIZE_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	(%rbx,%rax), %al
	addb	$2, %al
	movb	%al, (%r15)
	movq	_H1_HEADER_SUM_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movb	(%rbx,%rax), %al
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	movq	_H1_COMP_SIZE_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_archive_le32dec
	movq	%rax, 8(%r15)
	movq	_H1_ORIG_SIZE_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_archive_le32dec
	movq	%rax, 32(%r15)
	movq	_H1_DOS_TIME_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	addq	%rbx, %rdi
	callq	_lha_dos_time
	movl	%eax, 28(%r15)
	movq	_H1_NAME_LEN_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movzbl	(%rbx,%rax), %ebx
	cmpl	$230, %ebx
	ja	LBB0_8
## %bb.2:
	movzbl	(%r15), %esi
	movl	(%r12), %eax
	addl	%ebx, %eax
	movl	%esi, %ecx
	subl	%eax, %ecx
	js	LBB0_8
## %bb.3:
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_14
## %bb.4:
	movq	%rax, %r12
	movq	_H1_FILE_NAME_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.5:
	movl	%ebx, %eax
	leaq	(%r12,%rsi), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$-1, (%rcx,%rdx)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_7
LBB0_9:
	leaq	24(%r15), %rdi
	addq	%r12, %rsi
	movl	%ebx, %edx
	callq	_archive_strncpy
	movq	_H1_FILE_NAME_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	addq	%r12, %rdi
	addq	%rbx, %rdi
	callq	_archive_le16dec
	movl	%eax, 20(%r15)
	movq	_CRC_IS_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r15)
	movzbl	(%r15), %ecx
	addl	$-2, %ecx
	xorl	%edi, %edi
	movq	%r12, %rsi
	movl	$2, %edx
	callq	_lha_calcsum
	movl	%eax, %ebx
	movzbl	(%r15), %esi
	addl	$-2, %esi
	movq	%r14, %rdi
	callq	___archive_read_consume
	movq	8(%r15), %r8
	addq	$2, %r8
	leaq	-56(%rbp), %r9
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	$2, %ecx
	callq	_lha_read_file_extended_header
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_13
## %bb.10:
	cmpl	%r13d, %eax
	cmovgel	%r13d, %eax
	movq	8(%r15), %rcx
	subq	-56(%rbp), %rcx
	addq	$2, %rcx
	movq	%rcx, 8(%r15)
	cmpb	-41(%rbp), %bl                  ## 1-byte Folded Reload
	je	LBB0_13
## %bb.11:
	movq	_ARCHIVE_ERRNO_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_12
LBB0_14:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_truncated_error                ## TAILCALL
LBB0_8:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_12:
	movq	%r14, %rdi
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_H1_FIXED_SIZE,4,2              ## @H1_FIXED_SIZE
	.comm	_H1_HEADER_SIZE_OFFSET,8,3      ## @H1_HEADER_SIZE_OFFSET
	.comm	_H1_HEADER_SUM_OFFSET,8,3       ## @H1_HEADER_SUM_OFFSET
	.comm	_H1_COMP_SIZE_OFFSET,4,2        ## @H1_COMP_SIZE_OFFSET
	.comm	_H1_ORIG_SIZE_OFFSET,4,2        ## @H1_ORIG_SIZE_OFFSET
	.comm	_H1_DOS_TIME_OFFSET,4,2         ## @H1_DOS_TIME_OFFSET
	.comm	_H1_NAME_LEN_OFFSET,8,3         ## @H1_NAME_LEN_OFFSET
	.comm	_H1_FILE_NAME_OFFSET,4,2        ## @H1_FILE_NAME_OFFSET
	.comm	_CRC_IS_SET,4,2                 ## @CRC_IS_SET
	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ## @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LHa header sum error"

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

	.no_dead_strip	_lha_read_file_header_1
.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_1
_lha_read_file_header_1:                ; @lha_read_file_header_1
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x8, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x22, _H1_FIXED_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _H1_FIXED_SIZE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x2, #0
	bl	___archive_read_ahead
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x0
Lloh5:
	adrp	x8, _H1_HEADER_SIZE_OFFSET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _H1_HEADER_SIZE_OFFSET@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldrb	w8, [x0, x8]
	add	w8, w8, #2
	strb	w8, [x20]
Lloh8:
	adrp	x8, _H1_HEADER_SUM_OFFSET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _H1_HEADER_SUM_OFFSET@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldrb	w24, [x0, x8]
Lloh11:
	adrp	x8, _H1_COMP_SIZE_OFFSET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _H1_COMP_SIZE_OFFSET@GOTPAGEOFF]
Lloh13:
	ldrsw	x8, [x8]
	add	x0, x0, x8
	bl	_archive_le32dec
	str	x0, [x20, #8]
Lloh14:
	adrp	x8, _H1_ORIG_SIZE_OFFSET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _H1_ORIG_SIZE_OFFSET@GOTPAGEOFF]
Lloh16:
	ldrsw	x8, [x8]
	add	x0, x21, x8
	bl	_archive_le32dec
	str	x0, [x20, #32]
Lloh17:
	adrp	x8, _H1_DOS_TIME_OFFSET@GOTPAGE
Lloh18:
	ldr	x8, [x8, _H1_DOS_TIME_OFFSET@GOTPAGEOFF]
Lloh19:
	ldrsw	x8, [x8]
	add	x0, x21, x8
	bl	_lha_dos_time
	str	w0, [x20, #28]
Lloh20:
	adrp	x8, _H1_NAME_LEN_OFFSET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _H1_NAME_LEN_OFFSET@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldrb	w21, [x21, x8]
	cmp	w21, #230
	b.hi	LBB0_12
; %bb.2:
	ldrb	w1, [x20]
	ldr	w8, [x22]
	add	w8, w8, w21
	sub	w8, w1, w8
	tbnz	w8, #31, LBB0_12
; %bb.3:
	mov	x0, x19
	mov	x2, #0
	bl	___archive_read_ahead
	cbz	x0, LBB0_11
; %bb.4:
	mov	x22, x0
Lloh23:
	adrp	x25, _H1_FILE_NAME_OFFSET@GOTPAGE
Lloh24:
	ldr	x25, [x25, _H1_FILE_NAME_OFFSET@GOTPAGEOFF]
	ldrsw	x8, [x25]
	cbz	w21, LBB0_8
; %bb.5:
	add	x9, x22, x8
	mov	x10, x21
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w11, [x9]
	cmp	w11, #255
	b.eq	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x9, x9, #1
	subs	x10, x10, #1
	b.ne	LBB0_6
LBB0_8:
	add	x0, x20, #24
	add	x1, x22, x8
	mov	x2, x21
	bl	_archive_strncpy
	ldrsw	x8, [x25]
	add	x8, x22, x8
	add	x0, x8, x21
	bl	_archive_le16dec
Lloh25:
	adrp	x8, _CRC_IS_SET@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CRC_IS_SET@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
	stp	w8, w0, [x20, #16]
	ldrb	w8, [x20]
	sub	w3, w8, #2
	mov	w0, #0
	mov	x1, x22
	mov	w2, #2
	bl	_lha_calcsum
	mov	x21, x0
	ldrb	w8, [x20]
	sub	w1, w8, #2
	mov	x0, x19
	bl	___archive_read_consume
	ldr	x8, [x20, #8]
	add	x4, x8, #2
	add	x5, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	mov	w3, #2
	bl	_lha_read_file_extended_header
Lloh28:
	adrp	x8, _ARCHIVE_WARN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmp	w0, w8
	b.lt	LBB0_14
; %bb.9:
	cmp	w0, w23
	csel	w0, w0, w23, lt
	ldr	x8, [sp, #8]
	ldr	x9, [x20, #8]
	sub	x8, x9, x8
	add	x8, x8, #2
	str	x8, [x20, #8]
	cmp	w21, w24
	b.eq	LBB0_14
; %bb.10:
Lloh31:
	adrp	x8, _ARCHIVE_ERRNO_MISC@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ARCHIVE_ERRNO_MISC@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x2, l_.str@PAGE
Lloh35:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_13
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_truncated_error
LBB0_12:
Lloh36:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x2, l_.str.1@PAGE
Lloh40:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_archive_set_error
Lloh41:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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 AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_H1_FIXED_SIZE,4,2              ; @H1_FIXED_SIZE
	.comm	_H1_HEADER_SIZE_OFFSET,8,3      ; @H1_HEADER_SIZE_OFFSET
	.comm	_H1_HEADER_SUM_OFFSET,8,3       ; @H1_HEADER_SUM_OFFSET
	.comm	_H1_COMP_SIZE_OFFSET,4,2        ; @H1_COMP_SIZE_OFFSET
	.comm	_H1_ORIG_SIZE_OFFSET,4,2        ; @H1_ORIG_SIZE_OFFSET
	.comm	_H1_DOS_TIME_OFFSET,4,2         ; @H1_DOS_TIME_OFFSET
	.comm	_H1_NAME_LEN_OFFSET,8,3         ; @H1_NAME_LEN_OFFSET
	.comm	_H1_FILE_NAME_OFFSET,4,2        ; @H1_FILE_NAME_OFFSET
	.comm	_CRC_IS_SET,4,2                 ; @CRC_IS_SET
	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
	.comm	_ARCHIVE_ERRNO_MISC,4,2         ; @ARCHIVE_ERRNO_MISC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LHa header sum error"

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

	.no_dead_strip	_lha_read_file_header_1
.subsections_via_symbols
