	.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
	pushq	%rax
	movl	$8200, %eax                     ## imm = 0x2008
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.1:
	movq	%rdx, %rbx
	movl	%esi, %r14d
	movl	%edi, %r15d
	cmpq	$8192, %rdx                     ## imm = 0x2000
	movl	$8192, %r12d                    ## imm = 0x2000
	cmovbq	%rdx, %r12
	leaq	-8240(%rbp), %rsi
	movq	%r12, %rdx
	callq	_readx
	cmpq	%r12, %rax
	je	LBB0_3
## %bb.2:
	movq	_fname@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_errx
LBB0_3:
	leaq	-8240(%rbp), %rsi
	movl	%r14d, %edi
	movq	%r12, %rdx
	callq	_writex
	subq	%r12, %rbx
	je	LBB0_8
## %bb.4:
	leaq	-8240(%rbp), %r12
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r14d, %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_writex
	subq	%r13, %rbx
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$8192, %rbx                     ## imm = 0x2000
	movl	$8192, %r13d                    ## imm = 0x2000
	cmovbq	%rbx, %r13
	movl	%r15d, %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movl	$-1, %ecx
	callq	_readx
	cmpq	%r13, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_fname@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$2, %edi
	leaq	L_.str(%rip), %rsi
	callq	_errx
	jmp	LBB0_7
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$8200, %rsp                     ## imm = 0x2008
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Short read"

	.comm	_fname,4,2                      ## @fname
	.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	w9, #8208
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #16
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	cbz	x2, LBB0_8
; %bb.1:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	w8, #8192
	cmp	x2, #2, lsl #12                 ; =8192
	csel	x22, x2, x8, lo
	add	x1, sp, #8
	mov	x2, x22
	bl	_readx
Lloh5:
	adrp	x23, _fname@GOTPAGE
Lloh6:
	ldr	x23, [x23, _fname@GOTPAGEOFF]
	cmp	x0, x22
	b.eq	LBB0_3
; %bb.2:
	ldr	w2, [x23]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_errx
LBB0_3:
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x22
	bl	_writex
	subs	x24, x21, x22
	b.eq	LBB0_8
; %bb.4:
	mov	w25, #8192
Lloh9:
	adrp	x21, l_.str@PAGE
Lloh10:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x22
	bl	_writex
	subs	x24, x24, x22
	b.eq	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x24, #2, lsl #12                ; =8192
	csel	x22, x24, x25, lo
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x22
	mov	w3, #-1
	bl	_readx
	cmp	x0, x22
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w2, [x23]
	mov	w0, #2
	mov	x1, x21
	bl	_errx
	b	LBB0_5
LBB0_8:
	ldur	x8, [x29, #-72]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #16
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Short read"

	.comm	_fname,4,2                      ; @fname
	.no_dead_strip	_copy
.subsections_via_symbols
