	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_write_client_close
_archive_write_client_close:            ## @archive_write_client_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, %r14
	movq	8(%rdi), %r13
	movq	16(%rdi), %r12
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r15
	movq	(%r13), %rdi
	movq	8(%r13), %r8
	cmpq	%r8, %rdi
	je	LBB0_8
## %bb.1:
	movl	16(%r13), %ecx
	subl	20(%r13), %ecx
	movl	(%r12), %ebx
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.3:
	leal	(%rbx,%rcx), %esi
	decl	%esi
	movl	%esi, %eax
	cltd
	idivl	%ebx
	subl	%edx, %esi
	movl	4(%r12), %ebx
	jmp	LBB0_4
LBB0_2:
	movl	4(%r12), %ebx
	movl	%ebx, %esi
LBB0_4:
	cmpl	%ebx, %esi
	cmovll	%esi, %ebx
	movl	%ebx, %edx
	subl	%ecx, %edx
	jle	LBB0_6
## %bb.5:
	xorl	%esi, %esi
	callq	_memset
	movq	8(%r13), %r8
	movl	%ebx, %ecx
LBB0_6:
	leaq	32(%r12), %rdi
	movq	24(%r12), %rsi
	movq	%r8, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	*8(%r12)
	testl	%eax, %eax
	jg	LBB0_8
## %bb.7:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %r15
LBB0_8:
	movl	(%r15), %r15d
	movq	40(%r12), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	32(%r12), %rdi
	movq	24(%r12), %rsi
	callq	*%rax
LBB0_10:
	movq	8(%r13), %rdi
	callq	_free
	movq	%r13, %rdi
	callq	_free
	movq	$0, (%r14)
	movq	$0, 24(%r12)
	movq	16(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	16(%r12), %rdi
	callq	_free
	movq	$0, 16(%r12)
LBB0_12:
	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_FATAL,4,2              ## @ARCHIVE_FATAL
	.no_dead_strip	_archive_write_client_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_client_close
_archive_write_client_close:            ; @archive_write_client_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	x19, x0
	ldp	x20, x22, [x0, #8]
Lloh0:
	adrp	x21, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ARCHIVE_OK@GOTPAGEOFF]
	ldp	x0, x2, [x20]
	cmp	x0, x2
	b.ne	LBB0_2
; %bb.1:
	ldr	w21, [x21]
	ldr	x8, [x22, #40]
	cbnz	x8, LBB0_8
	b	LBB0_9
LBB0_2:
	ldp	w8, w9, [x20, #16]
	sub	w3, w8, w9
	ldr	w8, [x22]
	cmp	w8, #0
	b.le	LBB0_4
; %bb.3:
	add	w9, w8, w3
	sub	w9, w9, #1
	sdiv	w9, w9, w8
	mul	w9, w9, w8
	ldr	w8, [x22, #4]
	b	LBB0_5
LBB0_4:
	ldr	w8, [x22, #4]
	mov	x9, x8
LBB0_5:
	cmp	w9, w8
	csel	w23, w9, w8, lt
	subs	w8, w23, w3
	b.le	LBB0_7
; %bb.6:
	mov	w1, #0
	mov	x2, x8
	bl	_memset
	ldr	x2, [x20, #8]
	mov	x3, x23
LBB0_7:
	ldr	x8, [x22, #8]
	add	x0, x22, #32
	ldr	x1, [x22, #24]
	blr	x8
Lloh2:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
	cmp	w0, #1
	csel	x8, x8, x21, lt
	ldr	w21, [x8]
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_9
LBB0_8:
	add	x0, x22, #32
	ldr	x1, [x22, #24]
	blr	x8
LBB0_9:
	ldr	x0, [x20, #8]
	bl	_free
	mov	x0, x20
	bl	_free
	str	xzr, [x19]
	str	xzr, [x22, #24]
	ldr	x19, [x22, #16]
	cbz	x19, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	bl	_memset
	ldr	x0, [x22, #16]
	bl	_free
	str	xzr, [x22, #16]
LBB0_11:
	mov	x0, x21
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.no_dead_strip	_archive_write_client_close
.subsections_via_symbols
