	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_bytes
_copy_bytes:                            ## @copy_bytes
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movq	%rcx, %r12
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movl	%edi, -72(%rbp)                 ## 4-byte Spill
	movl	%r9d, -64(%rbp)
	testl	%r8d, %r8d
	je	LBB0_2
## %bb.1:
	movl	%r8d, -68(%rbp)
	jmp	LBB0_3
LBB0_2:
	movl	%r12d, -68(%rbp)
LBB0_3:
	movq	_bytes@GOTPCREL(%rip), %r15
	movq	_ttyout@GOTPCREL(%rip), %rbx
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
                                        ##         Child Loop BB0_11 Depth 4
                                        ##         Child Loop BB0_15 Depth 4
                                        ##     Child Loop BB0_19 Depth 2
	testl	%r8d, %r8d
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	-128(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_18
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
                                        ##         Child Loop BB0_11 Depth 4
                                        ##         Child Loop BB0_15 Depth 4
	movq	_errno@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movl	-68(%rbp), %eax
	movl	%eax, -52(%rbp)
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_11 Depth 4
                                        ##         Child Loop BB0_15 Depth 4
	cmpl	$0, -52(%rbp)
	jle	LBB0_17
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=3
	movl	-52(%rbp), %esi
	movq	%r12, %r13
	movl	%r12d, %edi
	callq	_MIN
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_read
	movl	%eax, -44(%rbp)
	cmpl	$0, -44(%rbp)
	jle	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=3
	movl	-44(%rbp), %eax
	addl	%eax, (%r15)
	movl	-44(%rbp), %eax
	subl	%eax, -52(%rbp)
	cmpl	$0, -44(%rbp)
	jle	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=3
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ##       Parent Loop BB0_7 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movl	-44(%rbp), %edx
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_write
	movl	%eax, -48(%rbp)
	cmpl	$0, -48(%rbp)
	js	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=4
	movl	-48(%rbp), %eax
	subl	%eax, -44(%rbp)
	movslq	-48(%rbp), %rax
	addq	%rax, %r12
	cmpl	$0, -44(%rbp)
	jg	LBB0_11
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=3
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	movq	%r13, %r12
	je	LBB0_7
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=3
	movl	(%r15), %eax
	cmpl	-64(%rbp), %eax
	movl	-60(%rbp), %r13d                ## 4-byte Reload
	jl	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_6 Depth=2
                                        ##       Parent Loop BB0_7 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movl	(%rbx), %esi
	movl	$35, %edi
	callq	_putc
	addl	%r13d, -64(%rbp)
	movl	(%r15), %eax
	cmpl	-64(%rbp), %eax
	jge	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_7 Depth=3
	movl	(%rbx), %edi
	callq	_fflush
	jmp	LBB0_7
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	-112(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movq	%r13, %rdi
	leaq	-128(%rbp), %rsi
	leaq	-96(%rbp), %rdx
	callq	_timersub
	cmpq	$0, -96(%rbp)
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	jg	LBB0_4
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$1000000, %edi                  ## imm = 0xF4240
	subq	-88(%rbp), %rdi
	callq	_usleep
	leaq	-112(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	leaq	-112(%rbp), %rdi
	leaq	-128(%rbp), %rsi
	leaq	-96(%rbp), %rdx
	callq	_timersub
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	cmpq	$0, -96(%rbp)
	jle	LBB0_19
	jmp	LBB0_4
LBB0_20:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	je	LBB0_25
## %bb.21:
	cmpl	$0, (%r15)
	jle	LBB0_25
## %bb.22:
	movl	(%r15), %eax
	cmpl	%ecx, %eax
	jge	LBB0_24
## %bb.23:
	movl	(%rbx), %esi
	movl	$35, %edi
	callq	_putc
LBB0_24:
	movl	(%rbx), %esi
	movl	$10, %edi
	callq	_putc
	movl	(%rbx), %edi
	callq	_fflush
LBB0_25:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r14d, (%rax)
	movl	-44(%rbp), %eax
	cmpl	$-1, %eax
	je	LBB0_26
## %bb.27:
	movl	-48(%rbp), %ecx
	xorl	%eax, %eax
	cmpl	$-1, %ecx
	sete	%al
	addl	%eax, %eax
	jmp	LBB0_28
LBB0_26:
	movl	$1, %eax
LBB0_28:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_bytes,4,2                      ## @bytes
	.comm	_ttyout,4,2                     ## @ttyout
	.no_dead_strip	_copy_bytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_bytes
_copy_bytes:                            ; @copy_bytes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	str	w5, [sp, #76]
	cbz	w4, LBB0_2
; %bb.1:
	str	w20, [sp, #8]
	b	LBB0_3
LBB0_2:
	str	w21, [sp, #8]
LBB0_3:
Lloh0:
	adrp	x26, _errno@GOTPAGE
Lloh1:
	ldr	x26, [x26, _errno@GOTPAGEOFF]
Lloh2:
	adrp	x28, _bytes@GOTPAGE
Lloh3:
	ldr	x28, [x28, _bytes@GOTPAGEOFF]
Lloh4:
	adrp	x27, _ttyout@GOTPAGE
Lloh5:
	ldr	x27, [x27, _ttyout@GOTPAGEOFF]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_8 Depth 3
                                        ;         Child Loop BB0_11 Depth 4
                                        ;         Child Loop BB0_14 Depth 4
                                        ;     Child Loop BB0_19 Depth 2
	cbz	w20, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #48
	mov	x1, #0
	bl	_gettimeofday
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	cbnz	w20, LBB0_19
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_8 Depth 3
                                        ;         Child Loop BB0_11 Depth 4
                                        ;         Child Loop BB0_14 Depth 4
	str	wzr, [x26]
	str	wzr, [sp, #68]
	str	wzr, [sp, #72]
	ldr	w8, [sp, #8]
	str	w8, [sp, #12]
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_6
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_11 Depth 4
                                        ;         Child Loop BB0_14 Depth 4
	ldr	w1, [sp, #12]
	mov	x0, x21
	bl	_MIN
	mov	x2, x0
	mov	x0, x24
	mov	x1, x22
	bl	_read
	str	w0, [sp, #72]
	ldr	w8, [sp, #72]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=3
	ldr	w8, [sp, #72]
	ldr	w9, [x28]
	add	w8, w9, w8
	str	w8, [x28]
	ldr	w8, [sp, #72]
	ldr	w9, [sp, #12]
	sub	w8, w9, w8
	str	w8, [sp, #12]
	ldr	w8, [sp, #72]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=3
	mov	x25, x22
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ;       Parent Loop BB0_8 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	w2, [sp, #72]
	mov	x0, x23
	mov	x1, x25
	bl	_write
	str	w0, [sp, #68]
	ldr	w8, [sp, #68]
	tbnz	w8, #31, LBB0_20
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=4
	ldr	w8, [sp, #68]
	ldr	w9, [sp, #72]
	sub	w8, w9, w8
	str	w8, [sp, #72]
	ldrsw	x8, [sp, #68]
	add	x25, x25, x8
	ldr	w8, [sp, #72]
	cmp	w8, #0
	b.gt	LBB0_11
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=3
	cbz	w19, LBB0_17
LBB0_14:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ;       Parent Loop BB0_8 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	w8, [x28]
	ldr	w9, [sp, #76]
	cmp	w8, w9
	b.lt	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=4
	ldr	w1, [x27]
	mov	w0, #35
	bl	_putc
	ldr	w8, [sp, #76]
	add	w8, w8, w19
	str	w8, [sp, #76]
	b	LBB0_14
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=3
	ldr	w0, [x27]
	bl	_fflush
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=3
	ldr	w8, [sp, #12]
	cmp	w8, #0
	b.gt	LBB0_8
	b	LBB0_6
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	ldr	x8, [sp, #24]
	mov	w9, #16960
	movk	w9, #15, lsl #16
	sub	x0, x9, x8
	bl	_usleep
LBB0_19:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #32
	mov	x1, #0
	bl	_gettimeofday
	add	x0, sp, #32
	add	x1, sp, #48
	add	x2, sp, #16
	bl	_timersub
	ldr	x8, [sp, #16]
	cmp	x8, #0
	b.le	LBB0_18
	b	LBB0_4
LBB0_20:
	ldr	w20, [x26]
	cbz	w19, LBB0_25
; %bb.21:
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.22:
	ldr	w8, [x28]
	cmp	w8, w19
	b.ge	LBB0_24
; %bb.23:
	ldr	w1, [x27]
	mov	w0, #35
	bl	_putc
LBB0_24:
	ldr	w1, [x27]
	mov	w0, #10
	bl	_putc
	ldr	w0, [x27]
	bl	_fflush
LBB0_25:
	str	w20, [x26]
	ldr	w8, [sp, #72]
	cmn	w8, #1
	b.eq	LBB0_27
; %bb.26:
	ldr	w8, [sp, #68]
	cmn	w8, #1
	cset	w8, eq
	lsl	w0, w8, #1
	b	LBB0_28
LBB0_27:
	mov	w0, #1
LBB0_28:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_bytes,4,2                      ; @bytes
	.comm	_ttyout,4,2                     ; @ttyout
	.no_dead_strip	_copy_bytes
.subsections_via_symbols
