	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _7z_write_header
__7z_write_header:                      ## @_7z_write_header
	.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, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	$0, 24(%rbx)
	movq	$0, (%rbx)
	cmpq	$0, 64(%rbx)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_archive_string_conversion_to_charset
	movq	%rax, 64(%rbx)
	testq	%rax, %rax
	je	LBB0_26
LBB0_2:
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_file_new
	movl	%eax, %r14d
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	movq	-40(%rbp), %rsi
	cmpl	(%rax), %r14d
	jge	LBB0_5
## %bb.3:
	testq	%rsi, %rsi
	je	LBB0_28
## %bb.4:
	movq	%rsi, %rdi
	callq	_file_free
	jmp	LBB0_28
LBB0_5:
	cmpq	$0, (%rsi)
	je	LBB0_19
LBB0_6:
	movl	8(%rsi), %eax
	movq	_MTIME_IS_SET@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	48(%rbx), %rax
	movq	_MTIME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	incl	(%rax,%rcx,4)
	movl	8(%rsi), %eax
LBB0_8:
	movq	_CTIME_IS_SET@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movq	48(%rbx), %rax
	movq	_CTIME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	incl	(%rax,%rcx,4)
	movl	8(%rsi), %eax
LBB0_10:
	movq	_ATIME_IS_SET@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movq	48(%rbx), %rax
	movq	_ATIME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	incl	(%rax,%rcx,4)
LBB0_12:
	movl	8(%rbx), %ecx
	movl	12(%rbx), %eax
	incl	%ecx
	movl	%ecx, 8(%rbx)
	movl	24(%rsi), %edx
	movl	44(%rbx), %edi
	addl	%edi, %edx
	addl	$2, %edx
	movl	%edx, 44(%rbx)
	cmpq	$0, (%rsi)
	je	LBB0_22
## %bb.13:
	subl	%eax, %ecx
	cmpl	$1, %ecx
	jne	LBB0_16
## %bb.14:
	movl	32(%rbx), %edx
	movl	36(%rbx), %esi
	movq	%r15, %rdi
	callq	__7z_compression_init_encoder
	movq	-40(%rbp), %rsi
	testl	%eax, %eax
	js	LBB0_25
## %bb.15:
	movl	%eax, %r14d
LBB0_16:
	movq	%rbx, %rdi
	callq	_file_register
	movq	-40(%rbp), %rax
	movq	%rax, 24(%rbx)
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	$0, 16(%rbx)
	movq	%r12, %rdi
	callq	_archive_entry_filetype
	movq	_AE_IFLNK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
## %bb.17:
	movq	%r12, %rdi
	callq	_archive_entry_symlink
	movq	%rax, %r12
	movq	-40(%rbp), %rax
	movq	(%rax), %rdx
	movq	_ARCHIVE_Z_RUN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_compress_out
	movq	%rax, %r15
	testq	%rax, %rax
	js	LBB0_29
## %bb.18:
	movq	16(%rbx), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_crc32
	movq	%rax, 16(%rbx)
	subq	%r15, (%rbx)
	jmp	LBB0_28
LBB0_19:
	cmpq	$0, 16(%rsi)
	je	LBB0_6
## %bb.20:
	leaq	56(%rbx), %rdi
	callq	___archive_rb_tree_insert_node
	movq	-40(%rbp), %rsi
	testl	%eax, %eax
	jne	LBB0_6
## %bb.21:
	movq	%rsi, %rdi
	callq	_file_free
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_22:
	incl	%eax
	movl	%eax, 12(%rbx)
	cmpq	$0, 16(%rsi)
	je	LBB0_24
## %bb.23:
	incl	40(%rbx)
	jmp	LBB0_28
LBB0_24:
	movq	%rbx, %rdi
	callq	_file_register_empty
	jmp	LBB0_28
LBB0_25:
	movq	%rsi, %rdi
	callq	_file_free
LBB0_26:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_27:
	movl	(%rax), %r14d
LBB0_28:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movl	%r15d, %r14d
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UTF-16LE"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_MTIME_IS_SET,4,2               ## @MTIME_IS_SET
	.comm	_MTIME,8,3                      ## @MTIME
	.comm	_CTIME_IS_SET,4,2               ## @CTIME_IS_SET
	.comm	_CTIME,8,3                      ## @CTIME
	.comm	_ATIME_IS_SET,4,2               ## @ATIME_IS_SET
	.comm	_ATIME,8,3                      ## @ATIME
	.comm	_AE_IFLNK,8,3                   ## @AE_IFLNK
	.comm	_ARCHIVE_Z_RUN,4,2              ## @ARCHIVE_Z_RUN
	.no_dead_strip	__7z_write_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _7z_write_header
__7z_write_header:                      ; @_7z_write_header
	.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	x22, x1
	mov	x21, x0
	ldr	x20, [x0, #8]
	str	xzr, [x20, #24]
	str	xzr, [x20]
	ldr	x8, [x20, #64]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #1
	bl	_archive_string_conversion_to_charset
	str	x0, [x20, #64]
	cbz	x0, LBB0_26
LBB0_2:
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x22
	bl	_file_new
	mov	x19, x0
Lloh2:
	adrp	x8, _ARCHIVE_WARN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x1, [sp, #8]
	cmp	w0, w8
	b.ge	LBB0_5
; %bb.3:
	cbz	x1, LBB0_28
; %bb.4:
	mov	x0, x1
	bl	_file_free
	b	LBB0_28
LBB0_5:
	ldr	x8, [x1]
	cbz	x8, LBB0_19
LBB0_6:
	ldr	w8, [x1, #8]
Lloh5:
	adrp	x9, _MTIME_IS_SET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MTIME_IS_SET@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	x8, [x20, #48]
Lloh8:
	adrp	x9, _MTIME@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MTIME@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	ldr	w8, [x1, #8]
LBB0_8:
Lloh11:
	adrp	x9, _CTIME_IS_SET@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CTIME_IS_SET@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x20, #48]
Lloh14:
	adrp	x9, _CTIME@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CTIME@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	ldr	w8, [x1, #8]
LBB0_10:
Lloh17:
	adrp	x9, _ATIME_IS_SET@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ATIME_IS_SET@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	x8, [x20, #48]
Lloh20:
	adrp	x9, _ATIME@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ATIME@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
LBB0_12:
	ldp	w9, w8, [x20, #8]
	add	w9, w9, #1
	str	w9, [x20, #8]
	ldr	w10, [x1, #24]
	ldr	w11, [x20, #44]
	add	w10, w10, w11
	add	w10, w10, #2
	str	w10, [x20, #44]
	ldr	x10, [x1]
	cbz	x10, LBB0_22
; %bb.13:
	sub	w8, w9, w8
	cmp	w8, #1
	b.ne	LBB0_16
; %bb.14:
	ldp	w2, w1, [x20, #32]
	mov	x0, x21
	bl	__7z_compression_init_encoder
	ldr	x1, [sp, #8]
	tbnz	w0, #31, LBB0_25
; %bb.15:
	mov	x19, x0
LBB0_16:
	mov	x0, x20
	bl	_file_register
	ldr	x8, [sp, #8]
	ldr	x9, [x8]
	str	x9, [x20]
	stp	xzr, x8, [x20, #16]
	mov	x0, x22
	bl	_archive_entry_filetype
Lloh23:
	adrp	x8, _AE_IFLNK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _AE_IFLNK@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_28
; %bb.17:
	mov	x0, x22
	bl	_archive_entry_symlink
	mov	x22, x0
	ldr	x8, [sp, #8]
	ldr	x2, [x8]
Lloh26:
	adrp	x8, _ARCHIVE_Z_RUN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ARCHIVE_Z_RUN@GOTPAGEOFF]
Lloh28:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_compress_out
	mov	x21, x0
	tbnz	x0, #63, LBB0_29
; %bb.18:
	ldr	x0, [x20, #16]
	mov	x1, x22
	mov	x2, x21
	bl	_crc32
	str	x0, [x20, #16]
	ldr	x8, [x20]
	sub	x8, x8, x21
	str	x8, [x20]
	b	LBB0_28
LBB0_19:
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_6
; %bb.20:
	add	x0, x20, #56
	bl	___archive_rb_tree_insert_node
	ldr	x1, [sp, #8]
	cbnz	w0, LBB0_6
; %bb.21:
	mov	x0, x1
	bl	_file_free
Lloh29:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_27
LBB0_22:
	add	w8, w8, #1
	str	w8, [x20, #12]
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_24
; %bb.23:
	ldr	w8, [x20, #40]
	add	w8, w8, #1
	str	w8, [x20, #40]
	b	LBB0_28
LBB0_24:
	mov	x0, x20
	bl	_file_register_empty
	b	LBB0_28
LBB0_25:
	mov	x0, x1
	bl	_file_free
LBB0_26:
Lloh31:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_27:
	ldr	w19, [x8]
LBB0_28:
	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
	ret
LBB0_29:
	mov	x19, x21
	b	LBB0_28
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UTF-16LE"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_MTIME_IS_SET,4,2               ; @MTIME_IS_SET
	.comm	_MTIME,8,3                      ; @MTIME
	.comm	_CTIME_IS_SET,4,2               ; @CTIME_IS_SET
	.comm	_CTIME,8,3                      ; @CTIME
	.comm	_ATIME_IS_SET,4,2               ; @ATIME_IS_SET
	.comm	_ATIME,8,3                      ; @ATIME
	.comm	_AE_IFLNK,8,3                   ; @AE_IFLNK
	.comm	_ARCHIVE_Z_RUN,4,2              ; @ARCHIVE_Z_RUN
	.no_dead_strip	__7z_write_header
.subsections_via_symbols
