	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xemaclite_aligned_write
_xemaclite_aligned_write:               ## @xemaclite_aligned_write
	.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 $edx killed $edx def $rdx
	cmpl	$4, %edx
	jb	LBB0_5
## %bb.1:
	leal	-4(%rdx), %r10d
	testb	$4, %r10b
	je	LBB0_2
## %bb.3:
	cmpl	$4, %r10d
	jae	LBB0_4
LBB0_6:
	testl	%r10d, %r10d
	jne	LBB0_7
LBB0_26:
	popq	%rbp
	retq
LBB0_2:
	movl	(%rdi), %eax
	movl	%eax, -8(%rbp)
	movl	4(%rdi), %eax
	addq	$8, %rdi
	movl	%eax, -4(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, (%rsi)
	addq	$8, %rsi
	movl	%r10d, %edx
	cmpl	$4, %r10d
	jb	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi), %eax
	movl	%eax, -8(%rbp)
	movl	4(%rdi), %eax
	movl	%eax, -4(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, (%rsi)
	movl	8(%rdi), %eax
	movl	%eax, -8(%rbp)
	movl	12(%rdi), %eax
	addq	$16, %rdi
	movl	%eax, -4(%rbp)
	movq	-8(%rbp), %rax
	movq	%rax, 8(%rsi)
	addq	$16, %rsi
	addl	$-8, %edx
	cmpl	$3, %edx
	ja	LBB0_4
LBB0_5:
	movl	%edx, %r10d
	testl	%r10d, %r10d
	je	LBB0_26
LBB0_7:
	leaq	-8(%rbp), %rcx
	leal	-1(%r10), %r9d
	cmpl	$7, %r9d
	jb	LBB0_18
## %bb.8:
	movq	%rcx, %rax
	subq	%rdi, %rax
	cmpq	$32, %rax
	jb	LBB0_18
## %bb.9:
	incq	%r9
	movq	%r9, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rax
	movq	%rax, %rcx
	shrq	$3, %rcx
	incq	%rcx
	movl	%ecx, %r11d
	andl	$3, %r11d
	cmpq	$24, %rax
	jae	LBB0_11
## %bb.10:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_11:
	andq	$-4, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rdi,%rax,4), %xmm0
	movups	16(%rdi,%rax,4), %xmm1
	movups	%xmm0, -8(%rbp,%rax,4)
	movups	%xmm1, 8(%rbp,%rax,4)
	movups	32(%rdi,%rax,4), %xmm0
	movups	48(%rdi,%rax,4), %xmm1
	movups	%xmm0, 24(%rbp,%rax,4)
	movups	%xmm1, 40(%rbp,%rax,4)
	movups	64(%rdi,%rax,4), %xmm0
	movups	80(%rdi,%rax,4), %xmm1
	movups	%xmm0, 56(%rbp,%rax,4)
	movups	%xmm1, 72(%rbp,%rax,4)
	movups	96(%rdi,%rax,4), %xmm0
	movups	112(%rdi,%rax,4), %xmm1
	movups	%xmm0, 88(%rbp,%rax,4)
	movups	%xmm1, 104(%rbp,%rax,4)
	addq	$32, %rax
	addq	$-4, %rcx
	jne	LBB0_12
LBB0_13:
	testq	%r11, %r11
	je	LBB0_16
## %bb.14:
	leaq	(%rdi,%rax,4), %rcx
	addq	$16, %rcx
	leaq	8(,%rax,4), %rax
	addq	%rbp, %rax
	shlq	$5, %r11
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rcx,%rdx), %xmm0
	movups	(%rcx,%rdx), %xmm1
	movups	%xmm0, -16(%rax,%rdx)
	movups	%xmm1, (%rax,%rdx)
	addq	$32, %rdx
	cmpq	%rdx, %r11
	jne	LBB0_15
LBB0_16:
	cmpq	%r8, %r9
	je	LBB0_25
## %bb.17:
	leaq	-8(,%r8,4), %rcx
	addq	%rbp, %rcx
	leaq	(%rdi,%r8,4), %rdi
	subl	%r8d, %r10d
LBB0_18:
	leal	-1(%r10), %r8d
	testb	$7, %r10b
	je	LBB0_22
## %bb.19:
	movl	%r10d, %r9d
	andl	$7, %r9d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdi), %edx
	addq	$4, %rdi
	movl	%edx, (%rcx)
	addq	$4, %rcx
	incq	%rax
	cmpl	%eax, %r9d
	jne	LBB0_20
## %bb.21:
	subl	%eax, %r10d
LBB0_22:
	cmpl	$7, %r8d
	jb	LBB0_25
## %bb.23:
	movl	%r10d, %r8d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rdx,4), %eax
	movl	%eax, (%rcx,%rdx,4)
	movl	4(%rdi,%rdx,4), %eax
	movl	%eax, 4(%rcx,%rdx,4)
	movl	8(%rdi,%rdx,4), %eax
	movl	%eax, 8(%rcx,%rdx,4)
	movl	12(%rdi,%rdx,4), %eax
	movl	%eax, 12(%rcx,%rdx,4)
	movl	16(%rdi,%rdx,4), %eax
	movl	%eax, 16(%rcx,%rdx,4)
	movl	20(%rdi,%rdx,4), %eax
	movl	%eax, 20(%rcx,%rdx,4)
	movl	24(%rdi,%rdx,4), %eax
	movl	%eax, 24(%rcx,%rdx,4)
	movl	28(%rdi,%rdx,4), %eax
	movl	%eax, 28(%rcx,%rdx,4)
	addq	$8, %rdx
	cmpl	%edx, %r8d
	jne	LBB0_24
LBB0_25:
	movq	$0, (%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_xemaclite_aligned_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xemaclite_aligned_write
_xemaclite_aligned_write:               ; @xemaclite_aligned_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #16
	.cfi_def_cfa_offset 16
	cmp	w2, #4
	b.lo	LBB0_3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x0], #8
	str	d0, [x1], #8
	sub	w2, w2, #4
	cmp	w2, #3
	b.hi	LBB0_1
; %bb.2:
	str	d0, [sp, #8]
LBB0_3:
	cbz	w2, LBB0_13
; %bb.4:
	add	x8, sp, #8
	sub	w9, w2, #1
	cmp	w9, #15
	b.lo	LBB0_9
; %bb.5:
	sub	x10, x8, x0
	cmp	x10, #64
	b.lo	LBB0_10
; %bb.6:
	add	x10, x9, #1
	and	x11, x10, #0x1fffffff0
	lsl	x9, x11, #2
	add	x12, sp, #8
	add	x8, x12, x9
	add	x9, x0, x9
	sub	w2, w2, w11
	add	x12, x12, #32
	add	x13, x0, #32
	mov	x14, x11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x13, #-32]
	ldp	q2, q3, [x13], #64
	stp	q0, q1, [x12, #-32]
	stp	q2, q3, [x12], #64
	subs	x14, x14, #16
	b.ne	LBB0_7
; %bb.8:
	cmp	x10, x11
	b.ne	LBB0_11
	b	LBB0_12
LBB0_9:
	mov	x9, x0
	b	LBB0_11
LBB0_10:
	mov	x9, x0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #4
	str	w10, [x8], #4
	subs	w2, w2, #1
	b.ne	LBB0_11
LBB0_12:
	str	xzr, [x1]
LBB0_13:
	add	sp, sp, #16
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_xemaclite_aligned_write
.subsections_via_symbols
