	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _archive_write_finish_entry
__archive_write_finish_entry:           ## @_archive_write_finish_entry
	.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), %rax
	movl	(%rax), %r14d
	leaq	8(%rdi), %r15
	movq	_ARCHIVE_WRITE_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARCHIVE_STATE_HEADER@GOTPCREL(%rip), %r12
	movq	_ARCHIVE_STATE_DATA@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	orl	(%r12), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_archive_check_magic
	movl	(%r13), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	*%rax
	movl	%eax, %r14d
LBB0_3:
	movl	(%r12), %eax
	movl	%eax, (%r15)
	movl	%r14d, %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_HEADER,4,2       ## @ARCHIVE_STATE_HEADER
	.comm	_ARCHIVE_STATE_DATA,4,2         ## @ARCHIVE_STATE_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"archive_write_finish_entry"

	.no_dead_strip	__archive_write_finish_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _archive_write_finish_entry
__archive_write_finish_entry:           ; @_archive_write_finish_entry
	.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, x0
Lloh0:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	add	x19, x0, #8
Lloh3:
	adrp	x8, _ARCHIVE_WRITE_MAGIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARCHIVE_WRITE_MAGIC@GOTPAGEOFF]
Lloh5:
	adrp	x22, _ARCHIVE_STATE_HEADER@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ARCHIVE_STATE_HEADER@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w8, [x22]
Lloh8:
	adrp	x23, _ARCHIVE_STATE_DATA@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ARCHIVE_STATE_DATA@GOTPAGEOFF]
	ldr	w9, [x23]
	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, [x21, #8]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x21]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x21
	blr	x8
	mov	x20, x0
LBB0_3:
	ldr	w8, [x22]
	str	w8, [x19]
	mov	x0, x20
	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 AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_WRITE_MAGIC,4,2        ; @ARCHIVE_WRITE_MAGIC
	.comm	_ARCHIVE_STATE_HEADER,4,2       ; @ARCHIVE_STATE_HEADER
	.comm	_ARCHIVE_STATE_DATA,4,2         ; @ARCHIVE_STATE_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"archive_write_finish_entry"

	.no_dead_strip	__archive_write_finish_entry
.subsections_via_symbols
