	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_copy_and_dup                ## -- Begin function ff_copy_and_dup
	.p2align	4, 0x90
_ff_copy_and_dup:                       ## @ff_copy_and_dup
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_BUFFERSIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movslq	%edx, %rbx
	subq	%rbx, %rax
	leaq	(%rsi,%rax,4), %r15
	movq	_BLOCKSIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_FFMIN
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,4), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_memcpy
	movl	(%r12), %edx
	subl	%ebx, %edx
	jle	LBB0_1
## %bb.2:
	leaq	(%r14,%rbx,4), %rdi
	shll	$2, %edx
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFFERSIZE,4,2                 ## @BUFFERSIZE
	.comm	_BLOCKSIZE,4,2                  ## @BLOCKSIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_copy_and_dup                ; -- Begin function ff_copy_and_dup
	.p2align	2
_ff_copy_and_dup:                       ; @ff_copy_and_dup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _BUFFERSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUFFERSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w8, w8, w2
	add	x21, x1, w8, sxtw #2
Lloh3:
	adrp	x22, _BLOCKSIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _BLOCKSIZE@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x2
	bl	_FFMIN
	lsl	w2, w0, #2
	mov	x0, x20
	mov	x1, x21
	bl	_memcpy
	ldr	w8, [x22]
	subs	w8, w8, w19
	b.le	LBB0_2
; %bb.1:
	add	x0, x20, w19, sxtw #2
	lsl	w2, w8, #2
	mov	x1, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_memcpy
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFFERSIZE,4,2                 ; @BUFFERSIZE
	.comm	_BLOCKSIZE,4,2                  ; @BLOCKSIZE
.subsections_via_symbols
