	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_out
_copy_out:                              ## @copy_out
	.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	%rdx, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	cmpq	$0, (%r12)
	jle	LBB0_2
## %bb.1:
	movl	24(%r12), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_lseek
	testq	%rax, %rax
	js	LBB0_10
LBB0_2:
	testq	%r15, %r15
	je	LBB0_9
## %bb.3:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	subq	%rbx, %r15
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	cmpq	%rax, %r15
	movq	%rax, %rdx
	cmovlq	%r15, %rdx
	movq	16(%r12), %rsi
	subq	%rax, %rsi
	addq	$8, %rsi
	movl	24(%r12), %edi
	callq	_read
	movq	%rax, %rbx
	testq	%rax, %rax
	js	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	subq	%rbx, 8(%r12)
	jne	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	callq	_flush_wbuff
	cmpl	(%r13), %eax
	je	LBB0_4
	jmp	LBB0_16
LBB0_9:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_10:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	jmp	LBB0_13
LBB0_11:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_archive_set_error
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
LBB0_13:
	xorl	%eax, %eax
	callq	_archive_set_error
LBB0_14:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lseek failed"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
L_.str.1:                               ## @.str.1
	.asciz	"Can't read temporary file(%jd)"

L_.str.2:                               ## @.str.2
	.asciz	"Truncated 7-Zip archive"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_copy_out
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_out
_copy_out:                              ; @copy_out
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	w0, [x22, #24]
Lloh0:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_lseek
	tbnz	x0, #63, LBB0_9
LBB0_2:
Lloh3:
	adrp	x23, _ARCHIVE_OK@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ARCHIVE_OK@GOTPAGEOFF]
	cbnz	x20, LBB0_5
LBB0_3:
	ldr	w0, [x23]
	b	LBB0_14
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	x20, x20, x21
	cbz	x20, LBB0_3
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x22, #8]
	cmp	x20, x8
	csel	x2, x20, x8, lt
	sub	x8, x9, x8
	add	x1, x8, #8
	ldr	w0, [x22, #24]
	bl	_read
	mov	x21, x0
	tbnz	x0, #63, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x21, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x22, #8]
	subs	x8, x8, x21
	str	x8, [x22, #8]
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_flush_wbuff
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_4
	b	LBB0_14
LBB0_9:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	str	x21, [sp]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x19
	b	LBB0_13
LBB0_12:
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #0
LBB0_13:
	bl	_archive_set_error
Lloh17:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lseek failed"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
l_.str.1:                               ; @.str.1
	.asciz	"Can't read temporary file(%jd)"

l_.str.2:                               ; @.str.2
	.asciz	"Truncated 7-Zip archive"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_copy_out
.subsections_via_symbols
