	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_write_shar_close
_archive_write_shar_close:              ## @archive_write_shar_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	8(%rdi), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	leaq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_archive_strcat
	movl	8(%rbx), %edx
	movl	12(%rbx), %esi
	movq	%r14, %rdi
	callq	___archive_write_output
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_archive_write_set_bytes_in_last_block
	jmp	LBB0_5
LBB0_1:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_3:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rbx
LBB0_5:
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"exit\n"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.no_dead_strip	_archive_write_shar_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_shar_close
_archive_write_shar_close:              ; @archive_write_shar_close
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x21, [x0, #8]
	ldr	x8, [x21]
Lloh0:
	adrp	x20, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ARCHIVE_OK@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x19, x0
	add	x0, x21, #8
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_archive_strcat
	ldp	w2, w1, [x21, #8]
	mov	x0, x19
	bl	___archive_write_output
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #1
	bl	_archive_write_set_bytes_in_last_block
Lloh4:
	adrp	x20, _ARCHIVE_OK@GOTPAGE
Lloh5:
	ldr	x20, [x20, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x20, _ARCHIVE_FATAL@GOTPAGE
Lloh7:
	ldr	x20, [x20, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"exit\n"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.no_dead_strip	_archive_write_shar_close
.subsections_via_symbols
