	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_file                      ## -- Begin function copy_file
	.p2align	4, 0x90
_copy_file:                             ## @copy_file
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	_lflag@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_sflag@GOTPCREL(%rip), %rcx
	movl	$-1, %r12d
	orq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	(%r15), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_open
	movl	%eax, %r12d
	cmpl	$-1, %eax
	je	LBB0_2
LBB0_3:
	movq	8(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.19:
	movq	_lflag@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_sflag@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-1, %ebx
	movq	%rcx, %rdx
	orq	%rax, %rdx
	jne	LBB0_23
## %bb.20:
	movq	_to@GOTPCREL(%rip), %rax
	movq	_O_WRONLY@GOTPCREL(%rip), %rcx
	movq	_O_TRUNC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_S_ISUID@GOTPCREL(%rip), %rcx
	movq	_S_ISGID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	(%rax), %rdi
LBB0_21:
	notl	%edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	andl	(%rax), %edx
LBB0_22:
	callq	_open
	movl	%eax, %ebx
	movq	_lflag@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_sflag@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_23:
	movq	%rcx, %rdx
	orq	%rax, %rdx
	setne	%dl
	jne	LBB0_25
## %bb.24:
	cmpl	$-1, %ebx
	je	LBB0_61
LBB0_25:
	testb	%dl, %dl
	je	LBB0_26
## %bb.46:
	testq	%rcx, %rcx
	je	LBB0_49
## %bb.47:
	movq	(%r15), %rdi
	movq	_to@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	callq	_link
	testq	%rax, %rax
	jne	LBB0_51
## %bb.48:
	xorl	%eax, %eax
	jmp	LBB0_52
LBB0_4:
	movq	_nflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.5:
	movq	_vflag@GOTPCREL(%rip), %rax
	movl	$1, %ebx
	cmpq	$0, (%rax)
	je	LBB0_63
## %bb.6:
	movq	_to@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	jmp	LBB0_63
LBB0_2:
	movq	(%r15), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_warn
	movl	$1, %ebx
	jmp	LBB0_65
LBB0_26:
	cmpq	$0, _copy_file.buf(%rip)
	jne	LBB0_32
## %bb.27:
	movq	__SC_PHYS_PAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_sysconf
	movq	_PHYSPAGES_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_29
## %bb.28:
	movq	_BUFSIZE_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MAXPHYS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$3, %esi
	callq	_MIN
	movq	%rax, %rdi
	jmp	LBB0_30
LBB0_7:
	movq	_iflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.8:
	movq	%r15, %r13
	movq	_stderr@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_to@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rcx
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%eax, %eax
	callq	_getchar
	movl	%eax, %r15d
	cmpl	$10, %eax
	je	LBB0_12
## %bb.9:
	movq	_EOF@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %r15d
	je	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_getchar
	cmpl	$10, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	(%rbx), %eax
	jne	LBB0_10
LBB0_12:
	andl	$-33, %r15d
	cmpl	$89, %r15d
	movq	%r13, %r15
	jne	LBB0_13
LBB0_14:
	movq	_fflag@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.15:
	movq	_to@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_unlink
	movq	_lflag@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_sflag@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-1, %ebx
	movq	%rcx, %rdx
	orq	%rax, %rdx
	jne	LBB0_23
## %bb.16:
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_S_ISUID@GOTPCREL(%rip), %rax
	movq	_S_ISGID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	(%r14), %rdi
	jmp	LBB0_21
LBB0_49:
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_53
## %bb.50:
	movq	(%r15), %rdi
	movq	_to@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	callq	_symlink
	testq	%rax, %rax
	jne	LBB0_51
	jmp	LBB0_53
LBB0_13:
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_62
LBB0_17:
	movq	_lflag@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_sflag@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$-1, %ebx
	movq	%rcx, %rdx
	orq	%rax, %rdx
	jne	LBB0_23
## %bb.18:
	movq	_to@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	xorl	%edx, %edx
	jmp	LBB0_22
LBB0_29:
	movq	_BUFSIZE_SMALL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_30:
	movq	%rdi, _copy_file.bufsize(%rip)
	callq	_malloc
	movq	%rax, _copy_file.buf(%rip)
	testq	%rax, %rax
	jne	LBB0_32
## %bb.31:
	leaq	L_.str.5(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_32:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movl	%r12d, -80(%rbp)                ## 4-byte Spill
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_33 Depth=1
	movq	%r13, %rbx
	movq	%r15, %rcx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_43:                                ##   in Loop: Header=BB0_33 Depth=1
	cmpq	%r14, %rbx
	movl	-80(%rbp), %r12d                ## 4-byte Reload
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_44
LBB0_33:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_38 Depth 2
	movq	%rcx, %r15
	movq	_copy_file.buf(%rip), %rsi
	movq	_copy_file.bufsize(%rip), %rdx
	movl	%r12d, %edi
	callq	_read
	testl	%eax, %eax
	jle	LBB0_34
## %bb.35:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	_copy_file.buf(%rip), %r12
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	%eax, %r13d
	movl	%ebx, %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_write
	movq	%rax, %r14
	testq	%rax, %rax
	jle	LBB0_36
## %bb.37:                              ##   in Loop: Header=BB0_33 Depth=1
	movq	_info@GOTPCREL(%rip), %rax
	movq	%r15, %rcx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_38:                                ##   Parent Loop BB0_33 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addq	%r14, %rcx
	cmpq	$0, (%rax)
	je	LBB0_40
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=2
	movq	$0, (%rax)
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	movq	(%r15), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	_to@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movslq	4(%rax), %rsi
	movq	%rcx, %rbx
	movq	%rcx, %rdi
	callq	_cp_pct
	movl	-84(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str.6(%rip), %rsi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_fprintf
	movq	%rbx, %rcx
LBB0_40:                                ##   in Loop: Header=BB0_38 Depth=2
	movq	%r13, %rbx
	subq	%r14, %rbx
	jle	LBB0_41
## %bb.42:                              ##   in Loop: Header=BB0_38 Depth=2
	addq	%r14, %r12
	movq	%rcx, %r14
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_write
	movq	%r14, %rcx
	movq	%rax, %r14
	movq	_info@GOTPCREL(%rip), %rax
	movq	%rbx, %r13
	testq	%r14, %r14
	jg	LBB0_38
	jmp	LBB0_43
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_33 Depth=1
	movq	%r13, %rbx
	jmp	LBB0_43
LBB0_34:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_45
LBB0_44:
	movq	_to@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_warn
	movl	$1, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	-76(%rbp), %eax                 ## 4-byte Reload
LBB0_45:
	testl	%eax, %eax
	jns	LBB0_53
LBB0_51:
	movq	(%r15), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_warn
	movl	$1, %eax
LBB0_52:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_53:
	movq	_lflag@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_sflag@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	je	LBB0_55
## %bb.54:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_63
LBB0_55:
	movq	_pflag@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_56
## %bb.57:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %r15d
	movl	%ebx, %esi
	callq	_setfile
	testq	%rax, %rax
	movl	$1, %r13d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmovnel	%r13d, %ebx
	cmpq	$0, (%r14)
	je	LBB0_59
## %bb.58:
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_preserve_fd_acls
	testq	%rax, %rax
	cmovel	%ebx, %r13d
	movl	%r13d, %ebx
LBB0_59:
	movl	%r15d, %edi
	jmp	LBB0_60
LBB0_56:
	movl	%ebx, %edi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_60:
	callq	_close
	testq	%rax, %rax
	je	LBB0_63
LBB0_61:
	movq	_to@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_warn
LBB0_62:
	movl	$1, %ebx
LBB0_63:
	cmpl	$-1, %r12d
	je	LBB0_65
## %bb.64:
	movl	%r12d, %edi
	callq	_close
LBB0_65:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_copy_file.buf,8,3 ## @copy_file.buf
.zerofill __DATA,__bss,_copy_file.bufsize,8,3 ## @copy_file.bufsize
	.comm	_lflag,8,3                      ## @lflag
	.comm	_sflag,8,3                      ## @sflag
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_nflag,8,3                      ## @nflag
	.comm	_vflag,8,3                      ## @vflag
L_.str.1:                               ## @.str.1
	.asciz	"%s not overwritten\n"

	.comm	_to,8,3                         ## @to
	.comm	_iflag,8,3                      ## @iflag
	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"overwrite %s? %s"

L_.str.3:                               ## @.str.3
	.asciz	"(y/n [n]) "

	.comm	_EOF,4,2                        ## @EOF
L_.str.4:                               ## @.str.4
	.asciz	"not overwritten\n"

	.comm	_fflag,8,3                      ## @fflag
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_S_ISUID,4,2                    ## @S_ISUID
	.comm	_S_ISGID,4,2                    ## @S_ISGID
	.comm	__SC_PHYS_PAGES,4,2             ## @_SC_PHYS_PAGES
	.comm	_PHYSPAGES_THRESHOLD,8,3        ## @PHYSPAGES_THRESHOLD
	.comm	_BUFSIZE_MAX,4,2                ## @BUFSIZE_MAX
	.comm	_MAXPHYS,4,2                    ## @MAXPHYS
	.comm	_BUFSIZE_SMALL,8,3              ## @BUFSIZE_SMALL
L_.str.5:                               ## @.str.5
	.asciz	"Not enough memory"

	.comm	_info,8,3                       ## @info
L_.str.6:                               ## @.str.6
	.asciz	"%s -> %s %3d%%\n"

	.comm	_pflag,8,3                      ## @pflag
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_YESNO,8,3                      ## @YESNO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_file                      ; -- Begin function copy_file
	.p2align	2
_copy_file:                             ; @copy_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x20, _lflag@GOTPAGE
Lloh1:
	ldr	x20, [x20, _lflag@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x23, _sflag@GOTPAGE
Lloh3:
	ldr	x23, [x23, _sflag@GOTPAGEOFF]
	ldr	x9, [x23]
	orr	x8, x8, x9
	cbz	x8, LBB0_2
; %bb.1:
	mov	w25, #-1
	b	LBB0_3
LBB0_2:
	ldr	x0, [x21]
Lloh4:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_open
	mov	x25, x0
	cmn	w0, #1
	b.eq	LBB0_16
LBB0_3:
	ldr	x8, [x21, #8]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	cbz	w19, LBB0_6
; %bb.4:
	ldr	x8, [x20]
	ldr	x9, [x23]
	orr	x10, x8, x9
	cbz	x10, LBB0_9
LBB0_5:
	mov	w22, #-1
	b	LBB0_12
LBB0_6:
Lloh7:
	adrp	x8, _nflag@GOTPAGE
Lloh8:
	ldr	x8, [x8, _nflag@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.7:
Lloh10:
	adrp	x8, _vflag@GOTPAGE
Lloh11:
	ldr	x8, [x8, _vflag@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cbz	x8, LBB0_55
; %bb.8:
Lloh13:
	adrp	x8, _to@GOTPAGE
Lloh14:
	ldr	x8, [x8, _to@GOTPAGEOFF]
Lloh15:
	ldr	x1, [x8]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	b	LBB0_55
LBB0_9:
Lloh18:
	adrp	x8, _to@GOTPAGE
Lloh19:
	ldr	x8, [x8, _to@GOTPAGEOFF]
Lloh20:
	ldr	x0, [x8]
LBB0_10:
Lloh21:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
Lloh24:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh25:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _O_CREAT@GOTPAGE
Lloh28:
	ldr	x10, [x10, _O_CREAT@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh29:
	ldr	w9, [x10]
	orr	w1, w8, w9
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _S_ISUID@GOTPAGE
Lloh31:
	ldr	x9, [x9, _S_ISUID@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
Lloh33:
	adrp	x10, _S_ISGID@GOTPAGE
Lloh34:
	ldr	x10, [x10, _S_ISGID@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w2, w8, w9
LBB0_11:
	bl	_open
	mov	x22, x0
	ldr	x8, [x20]
	ldr	x9, [x23]
LBB0_12:
	orr	x10, x8, x9
	cmp	x10, #0
	cset	w10, ne
	ccmn	w22, #1, #0, eq
	b.eq	LBB0_54
; %bb.13:
	tbz	w10, #0, LBB0_17
; %bb.14:
	cbz	x8, LBB0_29
; %bb.15:
	ldr	x0, [x21]
Lloh36:
	adrp	x21, _to@GOTPAGE
Lloh37:
	ldr	x21, [x21, _to@GOTPAGEOFF]
	ldr	x1, [x21]
	bl	_link
	cbnz	x0, LBB0_48
	b	LBB0_31
LBB0_16:
	ldr	x1, [x21]
Lloh38:
	adrp	x0, l_.str@PAGE
Lloh39:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	mov	w24, #1
	b	LBB0_58
LBB0_17:
	adrp	x19, _copy_file.buf@PAGE
	ldr	x8, [x19, _copy_file.buf@PAGEOFF]
	cbnz	x8, LBB0_38
; %bb.18:
Lloh40:
	adrp	x8, __SC_PHYS_PAGES@GOTPAGE
Lloh41:
	ldr	x8, [x8, __SC_PHYS_PAGES@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	bl	_sysconf
Lloh43:
	adrp	x8, _PHYSPAGES_THRESHOLD@GOTPAGE
Lloh44:
	ldr	x8, [x8, _PHYSPAGES_THRESHOLD@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_35
; %bb.19:
Lloh46:
	adrp	x8, _BUFSIZE_MAX@GOTPAGE
Lloh47:
	ldr	x8, [x8, _BUFSIZE_MAX@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
Lloh49:
	adrp	x8, _MAXPHYS@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MAXPHYS@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	lsl	w1, w8, #3
	bl	_MIN
	b	LBB0_36
LBB0_20:
	mov	x22, x20
Lloh52:
	adrp	x8, _iflag@GOTPAGE
Lloh53:
	ldr	x8, [x8, _iflag@GOTPAGEOFF]
Lloh54:
	ldr	x8, [x8]
	cbz	x8, LBB0_26
; %bb.21:
	mov	x24, x21
Lloh55:
	adrp	x20, _stderr@GOTPAGE
Lloh56:
	ldr	x20, [x20, _stderr@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh57:
	adrp	x8, _to@GOTPAGE
Lloh58:
	ldr	x8, [x8, _to@GOTPAGEOFF]
Lloh59:
	ldr	x8, [x8]
Lloh60:
	adrp	x9, l_.str.3@PAGE
Lloh61:
	add	x9, x9, l_.str.3@PAGEOFF
	stp	x8, x9, [sp]
Lloh62:
	adrp	x1, l_.str.2@PAGE
Lloh63:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	bl	_getchar
	mov	x19, x0
	cmp	w0, #10
	b.eq	LBB0_25
; %bb.22:
Lloh64:
	adrp	x21, _EOF@GOTPAGE
Lloh65:
	ldr	x21, [x21, _EOF@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w19, w8
	b.eq	LBB0_25
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	bl	_getchar
	cmp	w0, #10
	b.eq	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_23
LBB0_25:
	and	w8, w19, #0xffffffdf
	cmp	w8, #89
	mov	x21, x24
	b.ne	LBB0_32
LBB0_26:
Lloh66:
	adrp	x8, _fflag@GOTPAGE
Lloh67:
	ldr	x8, [x8, _fflag@GOTPAGEOFF]
Lloh68:
	ldr	x8, [x8]
	cbz	x8, LBB0_33
; %bb.27:
Lloh69:
	adrp	x19, _to@GOTPAGE
Lloh70:
	ldr	x19, [x19, _to@GOTPAGEOFF]
	ldr	x0, [x19]
	bl	_unlink
	mov	x20, x22
	ldr	x8, [x22]
	ldr	x9, [x23]
	orr	x10, x8, x9
	cbnz	x10, LBB0_5
; %bb.28:
	ldr	x0, [x19]
	b	LBB0_10
LBB0_29:
	cbz	x9, LBB0_31
; %bb.30:
	ldr	x0, [x21]
Lloh71:
	adrp	x21, _to@GOTPAGE
Lloh72:
	ldr	x21, [x21, _to@GOTPAGEOFF]
	ldr	x1, [x21]
	bl	_symlink
	cbnz	x0, LBB0_48
LBB0_31:
	mov	w24, #0
	b	LBB0_49
LBB0_32:
	ldr	w0, [x20]
Lloh73:
	adrp	x1, l_.str.4@PAGE
Lloh74:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
	b	LBB0_55
LBB0_33:
	mov	x20, x22
	ldr	x8, [x22]
	ldr	x9, [x23]
	orr	x10, x8, x9
	cbnz	x10, LBB0_5
; %bb.34:
Lloh75:
	adrp	x8, _to@GOTPAGE
Lloh76:
	ldr	x8, [x8, _to@GOTPAGEOFF]
Lloh77:
	adrp	x9, _O_WRONLY@GOTPAGE
Lloh78:
	ldr	x9, [x9, _O_WRONLY@GOTPAGEOFF]
Lloh79:
	ldr	x0, [x8]
Lloh80:
	ldr	w8, [x9]
Lloh81:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh82:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh83:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	w2, #0
	b	LBB0_11
LBB0_35:
Lloh84:
	adrp	x8, _BUFSIZE_SMALL@GOTPAGE
Lloh85:
	ldr	x8, [x8, _BUFSIZE_SMALL@GOTPAGEOFF]
Lloh86:
	ldr	x0, [x8]
LBB0_36:
	adrp	x8, _copy_file.bufsize@PAGE
	str	x0, [x8, _copy_file.bufsize@PAGEOFF]
	bl	_malloc
	str	x0, [x19, _copy_file.buf@PAGEOFF]
	cbnz	x0, LBB0_38
; %bb.37:
Lloh87:
	adrp	x1, l_.str.5@PAGE
Lloh88:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_38:
	mov	x24, #0
Lloh89:
	adrp	x20, _info@GOTPAGE
Lloh90:
	ldr	x20, [x20, _info@GOTPAGEOFF]
	str	w25, [sp, #36]                  ; 4-byte Folded Spill
	b	LBB0_41
LBB0_39:                                ;   in Loop: Header=BB0_41 Depth=1
	mov	x28, x19
LBB0_40:                                ;   in Loop: Header=BB0_41 Depth=1
	cmp	x28, x27
	ldr	w25, [sp, #36]                  ; 4-byte Folded Reload
	adrp	x19, _copy_file.buf@PAGE
	b.ne	LBB0_59
LBB0_41:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_43 Depth 2
	ldr	x1, [x19, _copy_file.buf@PAGEOFF]
Lloh91:
	adrp	x8, _copy_file.bufsize@PAGE
Lloh92:
	ldr	x2, [x8, _copy_file.bufsize@PAGEOFF]
	mov	x0, x25
	bl	_read
	mov	x23, x0
	cmp	w0, #1
	b.lt	LBB0_47
; %bb.42:                               ;   in Loop: Header=BB0_41 Depth=1
	ldr	x26, [x19, _copy_file.buf@PAGEOFF]
	mov	w19, w23
	mov	x0, x22
	mov	x1, x26
	mov	x2, x19
	bl	_write
	mov	x27, x0
	cmp	x0, #1
	str	w23, [sp, #32]                  ; 4-byte Folded Spill
	b.lt	LBB0_39
LBB0_43:                                ;   Parent Loop BB0_41 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x24, x27, x24
	ldr	x8, [x20]
	cbz	x8, LBB0_45
; %bb.44:                               ;   in Loop: Header=BB0_43 Depth=2
	str	xzr, [x20]
Lloh93:
	adrp	x8, _stderr@GOTPAGE
Lloh94:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh95:
	ldr	w28, [x8]
	mov	x23, x22
	ldr	x22, [x21]
Lloh96:
	adrp	x8, _to@GOTPAGE
Lloh97:
	ldr	x8, [x8, _to@GOTPAGEOFF]
Lloh98:
	ldr	x25, [x8]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldrsw	x1, [x8, #4]
	mov	x0, x24
	bl	_cp_pct
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x25, x0, [sp, #8]
	str	x22, [sp]
	mov	x22, x23
	mov	x0, x28
Lloh99:
	adrp	x1, l_.str.6@PAGE
Lloh100:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
LBB0_45:                                ;   in Loop: Header=BB0_43 Depth=2
	subs	x28, x19, x27
	b.le	LBB0_39
; %bb.46:                               ;   in Loop: Header=BB0_43 Depth=2
	add	x26, x26, x27
	mov	x0, x22
	mov	x1, x26
	mov	x2, x28
	bl	_write
	mov	x27, x0
	mov	x19, x28
	cmp	x0, #0
	b.gt	LBB0_43
	b	LBB0_40
LBB0_47:
	mov	w24, #0
Lloh101:
	adrp	x20, _lflag@GOTPAGE
Lloh102:
	ldr	x20, [x20, _lflag@GOTPAGEOFF]
	tbz	w23, #31, LBB0_49
LBB0_48:
	ldr	x1, [x21]
Lloh103:
	adrp	x0, l_.str@PAGE
Lloh104:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	mov	w24, #1
LBB0_49:
	ldr	x8, [x20]
Lloh105:
	adrp	x9, _sflag@GOTPAGE
Lloh106:
	ldr	x9, [x9, _sflag@GOTPAGEOFF]
Lloh107:
	ldr	x9, [x9]
	orr	x8, x8, x9
	cbnz	x8, LBB0_56
; %bb.50:
Lloh108:
	adrp	x19, _pflag@GOTPAGE
Lloh109:
	ldr	x19, [x19, _pflag@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_53
; %bb.51:
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	mov	x1, x22
	bl	_setfile
	cmp	x0, #0
	csinc	w24, w24, wzr, eq
	ldr	x8, [x19]
	cbz	x8, LBB0_53
; %bb.52:
	mov	x0, x25
	mov	x1, x22
	bl	_preserve_fd_acls
	cmp	x0, #0
	csinc	w24, w24, wzr, eq
LBB0_53:
	mov	x0, x22
	bl	_close
	cbz	x0, LBB0_56
LBB0_54:
Lloh110:
	adrp	x8, _to@GOTPAGE
Lloh111:
	ldr	x8, [x8, _to@GOTPAGEOFF]
Lloh112:
	ldr	x1, [x8]
Lloh113:
	adrp	x0, l_.str@PAGE
Lloh114:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
LBB0_55:
	mov	w24, #1
LBB0_56:
	cmn	w25, #1
	b.eq	LBB0_58
; %bb.57:
	mov	x0, x25
	bl	_close
LBB0_58:
	mov	x0, x24
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_59:
Lloh115:
	adrp	x8, _to@GOTPAGE
Lloh116:
	ldr	x8, [x8, _to@GOTPAGEOFF]
Lloh117:
	ldr	x1, [x8]
Lloh118:
	adrp	x0, l_.str@PAGE
Lloh119:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warn
	mov	w24, #1
Lloh120:
	adrp	x20, _lflag@GOTPAGE
Lloh121:
	ldr	x20, [x20, _lflag@GOTPAGEOFF]
	ldr	w23, [sp, #32]                  ; 4-byte Folded Reload
	tbz	w23, #31, LBB0_49
	b	LBB0_48
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh79
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.loh AdrpAdd	Lloh87, Lloh88
	.loh AdrpLdrGot	Lloh89, Lloh90
	.loh AdrpLdr	Lloh91, Lloh92
	.loh AdrpAdd	Lloh99, Lloh100
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGot	Lloh101, Lloh102
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGot	Lloh108, Lloh109
	.loh AdrpAdd	Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGot	Lloh120, Lloh121
	.loh AdrpAdd	Lloh118, Lloh119
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_copy_file.buf,8,3 ; @copy_file.buf
.zerofill __DATA,__bss,_copy_file.bufsize,8,3 ; @copy_file.bufsize
	.comm	_lflag,8,3                      ; @lflag
	.comm	_sflag,8,3                      ; @sflag
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_nflag,8,3                      ; @nflag
	.comm	_vflag,8,3                      ; @vflag
l_.str.1:                               ; @.str.1
	.asciz	"%s not overwritten\n"

	.comm	_to,8,3                         ; @to
	.comm	_iflag,8,3                      ; @iflag
	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"overwrite %s? %s"

l_.str.3:                               ; @.str.3
	.asciz	"(y/n [n]) "

	.comm	_EOF,4,2                        ; @EOF
l_.str.4:                               ; @.str.4
	.asciz	"not overwritten\n"

	.comm	_fflag,8,3                      ; @fflag
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_S_ISUID,4,2                    ; @S_ISUID
	.comm	_S_ISGID,4,2                    ; @S_ISGID
	.comm	__SC_PHYS_PAGES,4,2             ; @_SC_PHYS_PAGES
	.comm	_PHYSPAGES_THRESHOLD,8,3        ; @PHYSPAGES_THRESHOLD
	.comm	_BUFSIZE_MAX,4,2                ; @BUFSIZE_MAX
	.comm	_MAXPHYS,4,2                    ; @MAXPHYS
	.comm	_BUFSIZE_SMALL,8,3              ; @BUFSIZE_SMALL
l_.str.5:                               ; @.str.5
	.asciz	"Not enough memory"

	.comm	_info,8,3                       ; @info
l_.str.6:                               ; @.str.6
	.asciz	"%s -> %s %3d%%\n"

	.comm	_pflag,8,3                      ; @pflag
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_YESNO,8,3                      ; @YESNO
.subsections_via_symbols
