	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _archive_write_close
__archive_write_close:                  ## @_archive_write_close
	.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	%rdi, %rbx
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r13
	movl	(%r13), %r15d
	leaq	16(%rdi), %r14
	movq	_ARCHIVE_WRITE_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARCHIVE_STATE_ANY@GOTPCREL(%rip), %rax
	movq	_ARCHIVE_STATE_FATAL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_archive_check_magic
	movl	16(%rbx), %eax
	movq	_ARCHIVE_STATE_NEW@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_2
## %bb.1:
	movq	_ARCHIVE_STATE_CLOSED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_2
## %bb.3:
	movq	%rcx, %r13
	movq	%r14, %rdi
	callq	_archive_clear_error
	movl	(%r14), %eax
	movq	_ARCHIVE_STATE_DATA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.4:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	*%rax
	movl	%eax, %r15d
LBB0_6:
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	*%rcx
	cmpl	%r15d, %eax
	cmovll	%eax, %r15d
LBB0_8:
	movl	20(%rbx), %edi
	callq	___archive_write_close_filter
	cmpl	%r15d, %eax
	cmovll	%eax, %r15d
	movl	16(%rbx), %eax
	cmpl	(%r12), %eax
	je	LBB0_10
## %bb.9:
	movl	(%r13), %eax
	movl	%eax, (%r14)
	jmp	LBB0_10
LBB0_2:
	movl	(%r13), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %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	_ARCHIVE_WRITE_MAGIC,4,2        ## @ARCHIVE_WRITE_MAGIC
	.comm	_ARCHIVE_STATE_ANY,4,2          ## @ARCHIVE_STATE_ANY
	.comm	_ARCHIVE_STATE_FATAL,4,2        ## @ARCHIVE_STATE_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"archive_write_close"

	.comm	_ARCHIVE_STATE_NEW,4,2          ## @ARCHIVE_STATE_NEW
	.comm	_ARCHIVE_STATE_CLOSED,4,2       ## @ARCHIVE_STATE_CLOSED
	.comm	_ARCHIVE_STATE_DATA,4,2         ## @ARCHIVE_STATE_DATA
	.no_dead_strip	__archive_write_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _archive_write_close
__archive_write_close:                  ; @_archive_write_close
	.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	x20, x0
Lloh0:
	adrp	x24, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w21, [x24]
	add	x19, x0, #16
Lloh2:
	adrp	x8, _ARCHIVE_WRITE_MAGIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ARCHIVE_WRITE_MAGIC@GOTPAGEOFF]
Lloh4:
	adrp	x9, _ARCHIVE_STATE_ANY@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ARCHIVE_STATE_ANY@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	ldr	w8, [x9]
Lloh8:
	adrp	x22, _ARCHIVE_STATE_FATAL@GOTPAGE
Lloh9:
	ldr	x22, [x22, _ARCHIVE_STATE_FATAL@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w2, w9, w8
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_archive_check_magic
	ldr	w8, [x20, #16]
Lloh12:
	adrp	x9, _ARCHIVE_STATE_NEW@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ARCHIVE_STATE_NEW@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x23, _ARCHIVE_STATE_CLOSED@GOTPAGE
Lloh16:
	ldr	x23, [x23, _ARCHIVE_STATE_CLOSED@GOTPAGEOFF]
	ldr	w10, [x23]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x24]
	b	LBB0_9
LBB0_2:
	mov	x0, x19
	bl	_archive_clear_error
	ldr	w8, [x19]
Lloh17:
	adrp	x9, _ARCHIVE_STATE_DATA@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ARCHIVE_STATE_DATA@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x20]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x20
	blr	x8
	mov	x21, x0
LBB0_5:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x20
	blr	x8
	cmp	w0, w21
	csel	w21, w0, w21, lt
LBB0_7:
	ldr	w0, [x20, #20]
	bl	___archive_write_close_filter
	cmp	w0, w21
	csel	w0, w0, w21, lt
	ldr	w8, [x20, #16]
	ldr	w9, [x22]
	cmp	w8, w9
	b.eq	LBB0_9
; %bb.8:
	ldr	w8, [x23]
	str	w8, [x19]
LBB0_9:
	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
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_WRITE_MAGIC,4,2        ; @ARCHIVE_WRITE_MAGIC
	.comm	_ARCHIVE_STATE_ANY,4,2          ; @ARCHIVE_STATE_ANY
	.comm	_ARCHIVE_STATE_FATAL,4,2        ; @ARCHIVE_STATE_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"archive_write_close"

	.comm	_ARCHIVE_STATE_NEW,4,2          ; @ARCHIVE_STATE_NEW
	.comm	_ARCHIVE_STATE_CLOSED,4,2       ; @ARCHIVE_STATE_CLOSED
	.comm	_ARCHIVE_STATE_DATA,4,2         ; @ARCHIVE_STATE_DATA
	.no_dead_strip	__archive_write_close
.subsections_via_symbols
