	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_memmove                   ## -- Begin function grub_memmove
	.p2align	4, 0x90
_grub_memmove:                          ## @grub_memmove
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdi, %rax
	movq	%rdi, %rcx
	subq	%rsi, %rcx
	jae	LBB0_27
## %bb.1:
	testl	%edx, %edx
	je	LBB0_43
## %bb.2:
	leal	-1(%rdx), %edi
	cmpl	$7, %edi
	jb	LBB0_3
## %bb.4:
	cmpq	$32, %rcx
	jb	LBB0_3
## %bb.5:
	leaq	1(%rdi), %r8
	movabsq	$8589934560, %r9                ## imm = 0x1FFFFFFE0
	cmpl	$31, %edi
	jae	LBB0_10
## %bb.6:
	xorl	%r10d, %r10d
	jmp	LBB0_7
LBB0_27:
	testl	%edx, %edx
	je	LBB0_43
## %bb.28:
	movslq	%edx, %r15
	leaq	(%rsi,%r15), %r10
	leaq	(%rax,%r15), %r8
	leal	-1(%rdx), %ecx
	cmpl	$7, %ecx
	jb	LBB0_29
## %bb.30:
	leaq	(%rsi,%r15), %rdi
	subq	%rax, %rdi
	subq	%r15, %rdi
	cmpq	$32, %rdi
	jae	LBB0_31
LBB0_29:
	movq	%r10, %rsi
	movq	%r8, %rcx
LBB0_36:
	leal	-1(%rdx), %r8d
	movl	%edx, %r9d
	andl	$7, %r9d
	je	LBB0_40
## %bb.37:
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rsi), %ebx
	decq	%rsi
	movb	%bl, -1(%rcx)
	decq	%rcx
	incl	%edi
	cmpl	%edi, %r9d
	jne	LBB0_38
## %bb.39:
	subl	%edi, %edx
LBB0_40:
	cmpl	$7, %r8d
	jb	LBB0_43
## %bb.41:
	negl	%edx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_42:                                ## =>This Inner Loop Header: Depth=1
	movzbl	-1(%rsi,%rdi), %ebx
	movb	%bl, -1(%rcx,%rdi)
	movzbl	-2(%rsi,%rdi), %ebx
	movb	%bl, -2(%rcx,%rdi)
	movzbl	-3(%rsi,%rdi), %ebx
	movb	%bl, -3(%rcx,%rdi)
	movzbl	-4(%rsi,%rdi), %ebx
	movb	%bl, -4(%rcx,%rdi)
	movzbl	-5(%rsi,%rdi), %ebx
	movb	%bl, -5(%rcx,%rdi)
	movzbl	-6(%rsi,%rdi), %ebx
	movb	%bl, -6(%rcx,%rdi)
	movzbl	-7(%rsi,%rdi), %ebx
	movb	%bl, -7(%rcx,%rdi)
	movzbl	-8(%rsi,%rdi), %ebx
	movb	%bl, -8(%rcx,%rdi)
	addq	$-8, %rdi
	cmpl	%edi, %edx
	jne	LBB0_42
	jmp	LBB0_43
LBB0_3:
	movq	%rsi, %rdi
	movq	%rax, %r11
	jmp	LBB0_20
LBB0_10:
	movq	%r8, %r10
	andq	%r9, %r10
	leaq	-32(%r10), %rcx
	movq	%rcx, %rdi
	shrq	$5, %rdi
	incq	%rdi
	movl	%edi, %r11d
	andl	$3, %r11d
	cmpq	$96, %rcx
	jae	LBB0_12
## %bb.11:
	xorl	%ecx, %ecx
	jmp	LBB0_14
LBB0_31:
	leaq	1(%rcx), %r9
	movabsq	$8589934560, %r11               ## imm = 0x1FFFFFFE0
	cmpl	$31, %ecx
	jae	LBB0_44
## %bb.32:
	xorl	%edi, %edi
	jmp	LBB0_33
LBB0_12:
	andq	$-4, %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rsi,%rcx), %xmm0
	movups	16(%rsi,%rcx), %xmm1
	movups	%xmm0, (%rax,%rcx)
	movups	%xmm1, 16(%rax,%rcx)
	movups	32(%rsi,%rcx), %xmm0
	movups	48(%rsi,%rcx), %xmm1
	movups	%xmm0, 32(%rax,%rcx)
	movups	%xmm1, 48(%rax,%rcx)
	movups	64(%rsi,%rcx), %xmm0
	movups	80(%rsi,%rcx), %xmm1
	movups	%xmm0, 64(%rax,%rcx)
	movups	%xmm1, 80(%rax,%rcx)
	movups	96(%rsi,%rcx), %xmm0
	movups	112(%rsi,%rcx), %xmm1
	movups	%xmm0, 96(%rax,%rcx)
	movups	%xmm1, 112(%rax,%rcx)
	subq	$-128, %rcx
	addq	$-4, %rdi
	jne	LBB0_13
LBB0_14:
	testq	%r11, %r11
	je	LBB0_17
## %bb.15:
	leaq	(%rax,%rcx), %rdi
	addq	$16, %rdi
	addq	%rsi, %rcx
	addq	$16, %rcx
	shlq	$5, %r11
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rcx,%rbx), %xmm0
	movups	(%rcx,%rbx), %xmm1
	movups	%xmm0, -16(%rdi,%rbx)
	movups	%xmm1, (%rdi,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r11
	jne	LBB0_16
LBB0_17:
	cmpq	%r10, %r8
	je	LBB0_43
## %bb.18:
	testb	$24, %r8b
	je	LBB0_19
LBB0_7:
	addq	$24, %r9
	andq	%r8, %r9
	leaq	(%rsi,%r9), %rdi
	leaq	(%rax,%r9), %r11
	subl	%r9d, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%r10), %rbx
	movq	%rbx, (%rax,%r10)
	addq	$8, %r10
	cmpq	%r10, %r9
	jne	LBB0_8
## %bb.9:
	cmpq	%r9, %r8
	jne	LBB0_20
	jmp	LBB0_43
LBB0_44:
	movq	%r9, %rdi
	andq	%r11, %rdi
	leaq	-32(%rdi), %rcx
	movq	%rcx, %r14
	shrq	$5, %r14
	incq	%r14
	testq	%rcx, %rcx
	je	LBB0_45
## %bb.46:
	movabsq	$1152921504606846972, %rcx      ## imm = 0xFFFFFFFFFFFFFFC
	orq	$2, %rcx
	andq	%r14, %rcx
	leaq	(%rax,%r15), %r12
	addq	$-16, %r12
	leaq	(%rsi,%r15), %rbx
	addq	$-16, %rbx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_47:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rbx,%rsi), %xmm0
	movups	(%rbx,%rsi), %xmm1
	movups	%xmm1, (%r12,%rsi)
	movups	%xmm0, -16(%r12,%rsi)
	movups	-48(%rbx,%rsi), %xmm0
	movups	-32(%rbx,%rsi), %xmm1
	movups	%xmm1, -32(%r12,%rsi)
	movups	%xmm0, -48(%r12,%rsi)
	addq	$-64, %rsi
	addq	$-2, %rcx
	jne	LBB0_47
## %bb.48:
	negq	%rsi
	jmp	LBB0_49
LBB0_45:
	xorl	%esi, %esi
LBB0_49:
	testb	$1, %r14b
	je	LBB0_51
## %bb.50:
	movq	%r10, %rcx
	subq	%rsi, %rcx
	movq	%r8, %rbx
	subq	%rsi, %rbx
	movups	-32(%rcx), %xmm0
	movups	-16(%rcx), %xmm1
	movups	%xmm1, -16(%rbx)
	movups	%xmm0, -32(%rbx)
LBB0_51:
	cmpq	%rdi, %r9
	je	LBB0_43
## %bb.52:
	testb	$24, %r9b
	je	LBB0_53
LBB0_33:
	addq	$24, %r11
	andq	%r9, %r11
	movq	%r10, %rsi
	subq	%r11, %rsi
	movq	%r8, %rcx
	subq	%r11, %rcx
	subl	%r11d, %edx
	negq	%rdi
	movq	%r9, %r14
	andq	$-8, %r14
	negq	%r14
	.p2align	4, 0x90
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	-8(%r10,%rdi), %rbx
	movq	%rbx, -8(%r8,%rdi)
	addq	$-8, %rdi
	cmpq	%rdi, %r14
	jne	LBB0_34
## %bb.35:
	cmpq	%r11, %r9
	jne	LBB0_36
	jmp	LBB0_43
LBB0_19:
	subl	%r10d, %edx
	leaq	(%rax,%r10), %r11
	addq	%r10, %rsi
	movq	%rsi, %rdi
LBB0_20:
	leal	-1(%rdx), %r8d
	testb	$7, %dl
	je	LBB0_24
## %bb.21:
	movl	%edx, %esi
	andl	$7, %esi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%rbx), %ecx
	movb	%cl, (%r11,%rbx)
	incq	%rbx
	cmpl	%ebx, %esi
	jne	LBB0_22
## %bb.23:
	addq	%rbx, %rdi
	addq	%rbx, %r11
	subl	%ebx, %edx
LBB0_24:
	cmpl	$7, %r8d
	jb	LBB0_43
## %bb.25:
	movl	%edx, %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rdi,%rsi), %ecx
	movb	%cl, (%r11,%rsi)
	movzbl	1(%rdi,%rsi), %ecx
	movb	%cl, 1(%r11,%rsi)
	movzbl	2(%rdi,%rsi), %ecx
	movb	%cl, 2(%r11,%rsi)
	movzbl	3(%rdi,%rsi), %ecx
	movb	%cl, 3(%r11,%rsi)
	movzbl	4(%rdi,%rsi), %ecx
	movb	%cl, 4(%r11,%rsi)
	movzbl	5(%rdi,%rsi), %ecx
	movb	%cl, 5(%r11,%rsi)
	movzbl	6(%rdi,%rsi), %ecx
	movb	%cl, 6(%r11,%rsi)
	movzbl	7(%rdi,%rsi), %ecx
	movb	%cl, 7(%r11,%rsi)
	addq	$8, %rsi
	cmpl	%esi, %edx
	jne	LBB0_26
LBB0_43:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_53:
	subl	%edi, %edx
	subq	%rdi, %r8
	subq	%rdi, %r10
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_memmove                   ; -- Begin function grub_memmove
	.p2align	2
_grub_memmove:                          ; @grub_memmove
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
	subs	x8, x0, x1
	b.hs	LBB0_6
; %bb.1:
	cbz	w2, LBB0_19
; %bb.2:
	sub	w9, w2, #1
	cmp	w9, #7
	b.lo	LBB0_9
; %bb.3:
	cmp	x8, #64
	b.lo	LBB0_9
; %bb.4:
	add	x8, x9, #1
	cmp	w9, #63
	b.hs	LBB0_10
; %bb.5:
	mov	x11, #0
	b	LBB0_14
LBB0_6:
	cbz	w2, LBB0_19
; %bb.7:
	sxtw	x8, w2
	sub	x9, x8, #1
	add	x8, x1, x9
	add	x9, x0, x9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x8], #-1
	strb	w10, [x9], #-1
	subs	w2, w2, #1
	b.ne	LBB0_8
	b	LBB0_19
LBB0_9:
	mov	x9, x1
	mov	x10, x0
	b	LBB0_18
LBB0_10:
	and	x11, x8, #0x1ffffffc0
	add	x9, x1, #32
	add	x10, x0, #32
	mov	x12, x11
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x9, #-32]
	ldp	q2, q3, [x9], #64
	stp	q0, q1, [x10, #-32]
	stp	q2, q3, [x10], #64
	subs	x12, x12, #64
	b.ne	LBB0_11
; %bb.12:
	cmp	x8, x11
	b.eq	LBB0_19
; %bb.13:
	tst	x8, #0x38
	b.eq	LBB0_17
LBB0_14:
	and	x12, x8, #0x1fffffff8
	add	x9, x1, x12
	add	x10, x0, x12
	sub	w2, w2, w12
	add	x13, x0, x11
	add	x14, x1, x11
	sub	x11, x11, x12
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x14], #8
	str	d0, [x13], #8
	adds	x11, x11, #8
	b.ne	LBB0_15
; %bb.16:
	cmp	x8, x12
	b.ne	LBB0_18
	b	LBB0_19
LBB0_17:
	sub	w2, w2, w11
	add	x10, x0, x11
	add	x9, x1, x11
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x9], #1
	strb	w8, [x10], #1
	subs	w2, w2, #1
	b.ne	LBB0_18
LBB0_19:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
