	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _archive_write_header
__archive_write_header:                 ## @_archive_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	%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, %r12
	movq	%rdi, %r15
	leaq	16(%rdi), %rbx
	movq	_ARCHIVE_WRITE_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARCHIVE_STATE_DATA@GOTPCREL(%rip), %r13
	movq	_ARCHIVE_STATE_HEADER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%r13), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_archive_check_magic
	movq	%rbx, %rdi
	callq	_archive_clear_error
	cmpq	$0, (%r15)
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_archive_write_finish_entry
	movl	%eax, %r14d
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_5
## %bb.2:
	movq	_ARCHIVE_STATE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_3:
	movl	%eax, (%rbx)
	jmp	LBB0_18
LBB0_4:
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_archive_set_error
	movq	_ARCHIVE_STATE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_18
LBB0_5:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_7
## %bb.6:
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_18
LBB0_7:
	cmpq	$0, 32(%r15)
	je	LBB0_13
## %bb.8:
	movq	%r12, %rdi
	callq	_archive_entry_dev_is_set
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	%r12, %rdi
	callq	_archive_entry_ino_is_set
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%r12, %rdi
	callq	_archive_entry_dev
	cmpq	24(%r15), %rax
	jne	LBB0_13
## %bb.11:
	movq	%r12, %rdi
	callq	_archive_entry_ino64
	cmpq	8(%r15), %rax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_archive_set_error
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_18
LBB0_13:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	*(%r15)
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_17
## %bb.15:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.16:
	movq	_ARCHIVE_STATE_FATAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx)
LBB0_17:
	movl	%eax, %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	cmpl	%r14d, %eax
	cmovll	%eax, %r14d
	movl	(%r13), %eax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_WRITE_MAGIC,4,2        ## @ARCHIVE_WRITE_MAGIC
	.comm	_ARCHIVE_STATE_DATA,4,2         ## @ARCHIVE_STATE_DATA
	.comm	_ARCHIVE_STATE_HEADER,4,2       ## @ARCHIVE_STATE_HEADER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"archive_write_header"

L_.str.1:                               ## @.str.1
	.asciz	"Format must be set before you can write to an archive."

	.comm	_ARCHIVE_STATE_FATAL,8,3        ## @ARCHIVE_STATE_FATAL
	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
L_.str.2:                               ## @.str.2
	.asciz	"Can't add archive to itself"

	.comm	_ARCHIVE_FAILED,4,2             ## @ARCHIVE_FAILED
	.no_dead_strip	__archive_write_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _archive_write_header
__archive_write_header:                 ; @_archive_write_header
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x22, x0
	add	x19, x0, #16
Lloh0:
	adrp	x8, _ARCHIVE_WRITE_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_WRITE_MAGIC@GOTPAGEOFF]
Lloh2:
	adrp	x23, _ARCHIVE_STATE_DATA@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ARCHIVE_STATE_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	ldr	w8, [x23]
Lloh5:
	adrp	x9, _ARCHIVE_STATE_HEADER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ARCHIVE_STATE_HEADER@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_archive_check_magic
	mov	x0, x19
	bl	_archive_clear_error
	ldr	x8, [x22]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_archive_write_finish_entry
	mov	x20, x0
Lloh10:
	adrp	x24, _ARCHIVE_FATAL@GOTPAGE
Lloh11:
	ldr	x24, [x24, _ARCHIVE_FATAL@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
Lloh12:
	adrp	x8, _ARCHIVE_STATE_FATAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ARCHIVE_STATE_FATAL@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	str	w8, [x19]
	b	LBB0_15
LBB0_3:
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #-1
	bl	_archive_set_error
Lloh17:
	adrp	x8, _ARCHIVE_STATE_FATAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ARCHIVE_STATE_FATAL@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	w8, [x19]
Lloh20:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh22:
	ldr	w20, [x8]
	b	LBB0_15
LBB0_4:
Lloh23:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _ARCHIVE_WARN@GOTPAGE
Lloh27:
	ldr	x9, [x9, _ARCHIVE_WARN@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	cmp	w20, w8
	ccmp	w20, w9, #4, lt
	b.ne	LBB0_15
; %bb.5:
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_11
; %bb.6:
	mov	x0, x21
	bl	_archive_entry_dev_is_set
	cbz	x0, LBB0_11
; %bb.7:
	mov	x0, x21
	bl	_archive_entry_ino_is_set
	cbz	x0, LBB0_11
; %bb.8:
	mov	x0, x21
	bl	_archive_entry_dev
	ldr	x8, [x22, #24]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.9:
	mov	x0, x21
	bl	_archive_entry_ino64
	ldr	x8, [x22, #8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
Lloh29:
	adrp	x2, l_.str.2@PAGE
Lloh30:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_archive_set_error
Lloh31:
	adrp	x8, _ARCHIVE_FAILED@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ARCHIVE_FAILED@GOTPAGEOFF]
Lloh33:
	ldr	w20, [x8]
	b	LBB0_15
LBB0_11:
	ldr	x8, [x22]
	mov	x0, x22
	mov	x1, x21
	blr	x8
Lloh34:
	adrp	x8, _ARCHIVE_FAILED@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ARCHIVE_FAILED@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_14
; %bb.12:
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.13:
Lloh37:
	adrp	x8, _ARCHIVE_STATE_FATAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ARCHIVE_STATE_FATAL@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	str	w8, [x19]
LBB0_14:
	mov	x20, x0
LBB0_15:
	mov	x0, x20
LBB0_16:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
	cmp	w0, w20
	csel	w0, w0, w20, lt
	ldr	w8, [x23]
	str	w8, [x19]
	b	LBB0_16
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_WRITE_MAGIC,4,2        ; @ARCHIVE_WRITE_MAGIC
	.comm	_ARCHIVE_STATE_DATA,4,2         ; @ARCHIVE_STATE_DATA
	.comm	_ARCHIVE_STATE_HEADER,4,2       ; @ARCHIVE_STATE_HEADER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"archive_write_header"

l_.str.1:                               ; @.str.1
	.asciz	"Format must be set before you can write to an archive."

	.comm	_ARCHIVE_STATE_FATAL,8,3        ; @ARCHIVE_STATE_FATAL
	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
l_.str.2:                               ; @.str.2
	.asciz	"Can't add archive to itself"

	.comm	_ARCHIVE_FAILED,4,2             ; @ARCHIVE_FAILED
	.no_dead_strip	__archive_write_header
.subsections_via_symbols
