	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy
_copy:                                  ## @copy
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_format@GOTPCREL(%rip), %r14
	cmpb	$112, (%r14)
	jne	LBB0_2
## %bb.1:
	movq	_title@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	cmoveq	%rbx, %rsi
	movl	$84, %edi
	callq	_card
LBB0_2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	_ncopies@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	movq	_dfname@GOTPCREL(%rip), %r12
	movq	_inchar@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r14), %edi
	movq	(%r12), %rax
	movslq	(%r13), %rcx
	leaq	(%rcx,%rax), %rsi
	addq	$-2, %rsi
	callq	_card
	incl	%ebx
	cmpl	(%r15), %ebx
	jl	LBB0_4
LBB0_5:
	movq	_dfname@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_inchar@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rcx,%rax), %rsi
	addq	$-2, %rsi
	movl	$85, %edi
	callq	_card
	movl	$78, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_card
	movq	(%rbx), %rdi
	callq	_nfile
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_read
	testl	%eax, %eax
	jle	LBB0_6
## %bb.7:
	movl	%eax, %r14d
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r14d, %r15d
	movl	%r12d, %r13d
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_read
	movl	%eax, %r14d
	movl	%r13d, %r12d
	testl	%eax, %eax
	jle	LBB0_17
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_write
	cmpl	%r14d, %eax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	addl	%r15d, %r14d
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %r15d
	subl	%edx, %r15d
	jl	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	leal	1(%r12), %r13d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%eax, %r12d
	jl	LBB0_12
## %bb.15:
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %r12d
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_6:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_9:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	L_.str(%rip), %rdi
LBB0_16:
	movq	_progname@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_printf
	movl	%r12d, %r13d
LBB0_17:
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_close
	orl	%r13d, %r15d
	jne	LBB0_20
## %bb.18:
	movq	_progname@GOTPCREL(%rip), %rax
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	leaq	L_.str.3(%rip), %rcx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmoveq	%rcx, %rdx
	movq	(%rax), %rsi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.19:
	leaq	L_.str.2(%rip), %rdi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
LBB0_20:
	movq	_nact@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.comm	_format,1,0                     ## @format
	.comm	_title,8,3                      ## @title
	.comm	_ncopies,4,2                    ## @ncopies
	.comm	_dfname,8,3                     ## @dfname
	.comm	_inchar,4,2                     ## @inchar
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s: temp file write error\n"

	.comm	_progname,8,3                   ## @progname
L_.str.1:                               ## @.str.1
	.asciz	"%s: %s: copy file is too large\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: %s: empty input file\n"

L_.str.3:                               ## @.str.3
	.asciz	"stdin"

	.comm	_nact,4,2                       ## @nact
	.no_dead_strip	_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy
_copy:                                  ; @copy
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x26, _BUFSIZ@GOTPAGE
Lloh4:
	ldr	x26, [x26, _BUFSIZ@GOTPAGEOFF]
	ldr	w8, [x26]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh7:
	adrp	x23, _format@GOTPAGE
Lloh8:
	ldr	x23, [x23, _format@GOTPAGEOFF]
	ldrb	w8, [x23]
	cmp	w8, #112
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _title@GOTPAGE
Lloh10:
	ldr	x8, [x8, _title@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x8, #0
	csel	x1, x19, x8, eq
	mov	w0, #84
	bl	_card
LBB0_2:
Lloh12:
	adrp	x25, _ncopies@GOTPAGE
Lloh13:
	ldr	x25, [x25, _ncopies@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh14:
	adrp	x24, _dfname@GOTPAGE
Lloh15:
	ldr	x24, [x24, _dfname@GOTPAGEOFF]
Lloh16:
	adrp	x27, _inchar@GOTPAGE
Lloh17:
	ldr	x27, [x27, _inchar@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w28, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x23]
	ldr	x8, [x24]
	ldrsw	x9, [x27]
	add	x8, x9, x8
	sub	x1, x8, #2
	bl	_card
	add	w28, w28, #1
	ldr	w8, [x25]
	cmp	w28, w8
	b.lt	LBB0_4
LBB0_5:
	ldr	x8, [x24]
	ldrsw	x9, [x27]
	add	x8, x9, x8
	sub	x1, x8, #2
	mov	w0, #85
	bl	_card
	mov	w0, #78
	mov	x1, x19
	bl	_card
	ldr	x0, [x24]
	bl	_nfile
	mov	x23, x0
	ldr	w2, [x26]
	mov	x0, x20
	mov	x1, x22
	bl	_read
	cmp	w0, #1
	b.lt	LBB0_14
; %bb.6:
	mov	x25, x0
	mov	w28, #0
	mov	w27, #0
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x27, x8
	mov	x24, x28
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_read
	mov	x25, x0
	mov	x28, x24
	cmp	w0, #0
	b.le	LBB0_17
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	mov	x2, x25
	bl	_write
	cmp	w0, w25
	b.ne	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w2, [x26]
	add	w8, w25, w27
	subs	w27, w8, w2
	b.lt	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	add	w24, w28, #1
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w28, w8
	b.lt	LBB0_8
; %bb.13:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_14:
	mov	w27, #0
	mov	w24, #0
	b	LBB0_17
LBB0_15:
	mov	x24, x28
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
LBB0_16:
Lloh22:
	adrp	x8, _progname@GOTPAGE
Lloh23:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh24:
	ldr	x1, [x8]
	mov	x2, x19
	bl	_printf
LBB0_17:
	mov	x0, x23
	bl	_close
	orr	w8, w27, w24
	cbnz	w8, LBB0_20
; %bb.18:
Lloh25:
	adrp	x8, _progname@GOTPAGE
Lloh26:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh27:
	adrp	x9, l_.str.3@PAGE
Lloh28:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh29:
	ldr	x1, [x8]
	cmp	w20, #0
	csel	x2, x9, x19, eq
	ldur	x8, [x29, #-88]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.19:
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_printf
LBB0_20:
Lloh35:
	adrp	x8, _nact@GOTPAGE
Lloh36:
	ldr	x8, [x8, _nact@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldur	x8, [x29, #-88]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.comm	_format,1,0                     ; @format
	.comm	_title,8,3                      ; @title
	.comm	_ncopies,4,2                    ; @ncopies
	.comm	_dfname,8,3                     ; @dfname
	.comm	_inchar,4,2                     ; @inchar
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s: temp file write error\n"

	.comm	_progname,8,3                   ; @progname
l_.str.1:                               ; @.str.1
	.asciz	"%s: %s: copy file is too large\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: %s: empty input file\n"

l_.str.3:                               ; @.str.3
	.asciz	"stdin"

	.comm	_nact,4,2                       ; @nact
	.no_dead_strip	_copy
.subsections_via_symbols
