	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_emulation_prev
_copy_emulation_prev:                   ## @copy_emulation_prev
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $ecx killed $ecx def $rcx
	leal	-2(%rcx), %r10d
	xorl	%eax, %eax
	cmpl	$3, %ecx
	cmovll	%eax, %r10d
	movslq	%ecx, %r9
	cmpl	%ecx, %r10d
	jge	LBB0_5
## %bb.1:
	cmpq	%r8, %r10
	jae	LBB0_5
## %bb.2:
	incq	%r10
	xorl	%r11d, %r11d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	incl	%eax
	cmpl	$0, -4(%rdx,%r10,4)
	cmovnel	%r11d, %eax
	cmpq	%r9, %r10
	jge	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%r10), %rcx
	cmpq	%r8, %r10
	movq	%rcx, %r10
	jb	LBB0_3
LBB0_5:
	leaq	(%rdx,%r8,4), %rcx
	leaq	(%rdx,%r9,4), %r8
	movq	%r8, %rdx
	testq	%rsi, %rsi
	jle	LBB0_15
## %bb.6:
	leaq	(%rdi,%rsi,4), %r10
	xorl	%r9d, %r9d
	movq	%r8, %rdx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	incl	%eax
	cmpl	$0, (%rdi)
	cmovnel	%r9d, %eax
	addq	$4, %rdi
	addq	$4, %rdx
	cmpq	%r10, %rdi
	jae	LBB0_15
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$2, %eax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	xorl	%eax, %eax
	cmpl	$3, (%rdi)
	jg	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rcx, %rdx
	jae	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$3, (%rdx)
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$4, %rdx
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	%rcx, %rdx
	jae	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	(%rdi), %esi
	movl	%esi, (%rdx)
	jmp	LBB0_14
LBB0_15:
	movq	%rdx, %rsi
	subq	%r8, %rsi
	shrq	$2, %rsi
	movl	%esi, %eax
	negl	%eax
	cmpq	%rcx, %rdx
	cmovbel	%esi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_copy_emulation_prev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_emulation_prev
_copy_emulation_prev:                   ; @copy_emulation_prev
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w3 killed $w3 def $x3
	mov	w8, #0
	subs	w9, w3, #2
	csel	w9, w9, wzr, gt
	sxtw	x10, w3
	cmp	w9, w3
	b.ge	LBB0_5
; %bb.1:
	cmp	x9, x4
	b.hs	LBB0_5
; %bb.2:
	mov	w8, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x2, x9, lsl #2]
	cmp	w11, #0
	csinc	w8, wzr, w8, ne
	add	x9, x9, #1
	cmp	x9, x10
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x9, x4
	b.lo	LBB0_3
LBB0_5:
	add	x9, x2, x4, lsl #2
	add	x10, x2, x10, lsl #2
	cmp	x1, #1
	b.lt	LBB0_16
; %bb.6:
	add	x12, x0, x1, lsl #2
	mov	w13, #3
	mov	x11, x10
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w14, [x0], #4
	cmp	w14, #0
	csinc	w8, wzr, w8, ne
	add	x11, x11, #4
	cmp	x0, x12
	b.hs	LBB0_17
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #2
	b.ne	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x0]
	cmp	w8, #3
	b.gt	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x11, x9
	b.hs	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	str	w13, [x11]
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w8, #0
	add	x11, x11, #4
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	x11, x9
	b.hs	LBB0_7
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w8, #0
	cmp	x11, x9
	b.hs	LBB0_7
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w14, [x0]
	str	w14, [x11]
	b	LBB0_7
LBB0_16:
	mov	x11, x10
LBB0_17:
	sub	x8, x11, x10
	lsr	x8, x8, #2
	cmp	x11, x9
	cneg	w0, w8, hi
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_copy_emulation_prev
.subsections_via_symbols
