	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function horizontal_compose53i
LCPI0_0:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_horizontal_compose53i:                 ## @horizontal_compose53i
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $edx killed $edx def $rdx
	xorl	%r9d, %r9d
	cmpl	$2, %edx
	jl	LBB0_13
## %bb.1:
	leal	1(%rdx), %r8d
	shrl	%r8d
	movl	%edx, %r9d
	shrl	%r9d
	cmpl	$8, %edx
	jae	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	leaq	(%rsi,%r9,8), %rax
	leaq	(%rdi,%r8,4), %r10
	leaq	(%r9,%r8), %rbx
	leaq	(%rdi,%rbx,4), %rbx
	leaq	(%rdi,%r9,4), %rcx
	cmpq	%rsi, %rbx
	seta	%r11b
	cmpq	%rax, %r10
	setb	%bl
	cmpq	%rsi, %rcx
	seta	%cl
	cmpq	%rdi, %rax
	seta	%r10b
	xorl	%eax, %eax
	testb	%bl, %r11b
	jne	LBB0_8
## %bb.4:
	andb	%r10b, %cl
	jne	LBB0_8
## %bb.5:
	movl	%r9d, %eax
	andl	$-4, %eax
	leaq	8(%rdi), %r10
	leaq	(%rdi,%r8,4), %rcx
	addq	$8, %rcx
	movl	%edx, %r11d
	andl	$-8, %r11d
	addq	%r11, %r11
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%r10,%rbx), %xmm0            ## xmm0 = mem[0],zero
	movq	(%r10,%rbx), %xmm1              ## xmm1 = mem[0],zero
	movq	-8(%rcx,%rbx), %xmm2            ## xmm2 = mem[0],zero
	punpckldq	%xmm2, %xmm0            ## xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
	movq	(%rcx,%rbx), %xmm2              ## xmm2 = mem[0],zero
	punpckldq	%xmm2, %xmm1            ## xmm1 = xmm1[0],xmm2[0],xmm1[1],xmm2[1]
	movdqu	%xmm0, (%rsi,%rbx,2)
	movdqu	%xmm1, 16(%rsi,%rbx,2)
	addq	$16, %rbx
	cmpq	%rbx, %r11
	jne	LBB0_6
## %bb.7:
	cmpq	%r9, %rax
	je	LBB0_13
LBB0_8:
	movq	%rax, %rcx
	notq	%rcx
	testb	$1, %r9b
	je	LBB0_10
## %bb.9:
	movl	(%rdi,%rax,4), %ebx
	movl	%ebx, (%rsi,%rax,8)
	leaq	(%rax,%r8), %rbx
	movl	(%rdi,%rbx,4), %ebx
	movl	%ebx, 4(%rsi,%rax,8)
	orq	$1, %rax
LBB0_10:
	addq	%r9, %rcx
	je	LBB0_13
## %bb.11:
	leaq	(%rdi,%r8,4), %rcx
	addq	$4, %rcx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rax,4), %ebx
	movl	%ebx, (%rsi,%rax,8)
	movl	-4(%rcx,%rax,4), %ebx
	movl	%ebx, 4(%rsi,%rax,8)
	movl	4(%rdi,%rax,4), %ebx
	movl	%ebx, 8(%rsi,%rax,8)
	movl	(%rcx,%rax,4), %ebx
	movl	%ebx, 12(%rsi,%rax,8)
	addq	$2, %rax
	cmpq	%rax, %r9
	jne	LBB0_12
LBB0_13:
	testb	$1, %dl
	je	LBB0_15
## %bb.14:
	movl	%r9d, %eax
	movl	(%rdi,%rax,4), %eax
	addl	%r9d, %r9d
	movl	%eax, (%rsi,%r9,4)
LBB0_15:
	movl	(%rsi), %r14d
	movl	4(%rsi), %ecx
	incl	%ecx
	sarl	%ecx
	subl	%ecx, %r14d
	movl	%r14d, (%rdi)
	movl	$2, %ecx
	cmpl	$4, %edx
	jl	LBB0_23
## %bb.16:
	leal	-1(%rdx), %r8d
	cmpq	$5, %r8
	movl	$4, %r9d
	cmovaeq	%r8, %r9
	movl	$4, %ebx
	addq	$-3, %r9
	movl	$2, %ecx
	cmpq	$8, %r9
	jb	LBB0_22
## %bb.17:
	leaq	4(%rdi), %r11
	cmpq	$5, %r8
	cmovaeq	%r8, %rbx
	addq	$-3, %rbx
	movabsq	$4611686018427387902, %r10      ## imm = 0x3FFFFFFFFFFFFFFE
	andq	%rbx, %r10
	leaq	(%rsi,%r10,4), %rbx
	addq	$16, %rbx
	cmpq	%rbx, %r11
	jae	LBB0_19
## %bb.18:
	leaq	(%rdi,%r10,4), %r10
	addq	$12, %r10
	leaq	4(%rsi), %rbx
	cmpq	%r10, %rbx
	jb	LBB0_22
LBB0_19:
	shrq	%r9
	incq	%r9
	movl	%r9d, %ecx
	andl	$3, %ecx
	testq	%rcx, %rcx
	movl	$4, %ebx
	cmovneq	%rcx, %rbx
	subq	%rbx, %r9
	leaq	(%r9,%r9), %rcx
	addq	$2, %rcx
	movd	%r14d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	xorl	%eax, %eax
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [2,2,2,2]
	pcmpeqd	%xmm2, %xmm2
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm3
	movups	4(%rsi,%rax,8), %xmm0
	movups	12(%rsi,%rax,8), %xmm4
	movups	20(%rsi,%rax,8), %xmm5
	movups	28(%rsi,%rax,8), %xmm6
	shufps	$136, %xmm6, %xmm4              ## xmm4 = xmm4[0,2],xmm6[0,2]
	movaps	%xmm0, %xmm6
	shufps	$136, %xmm5, %xmm6              ## xmm6 = xmm6[0,2],xmm5[0,2]
	shufps	$221, %xmm5, %xmm0              ## xmm0 = xmm0[1,3],xmm5[1,3]
	paddd	%xmm6, %xmm4
	paddd	%xmm1, %xmm4
	psrad	$2, %xmm4
	psubd	%xmm4, %xmm0
	movdqa	%xmm0, %xmm4
	palignr	$12, %xmm3, %xmm4               ## xmm4 = xmm3[12,13,14,15],xmm4[0,1,2,3,4,5,6,7,8,9,10,11]
	paddd	%xmm0, %xmm4
	psubd	%xmm2, %xmm4
	psrad	$1, %xmm4
	paddd	%xmm6, %xmm4
	movdqa	%xmm4, %xmm3
	punpckldq	%xmm0, %xmm3            ## xmm3 = xmm3[0],xmm0[0],xmm3[1],xmm0[1]
	punpckhdq	%xmm0, %xmm4            ## xmm4 = xmm4[2],xmm0[2],xmm4[3],xmm0[3]
	movdqu	%xmm4, 20(%rdi,%rax,8)
	movdqu	%xmm3, 4(%rdi,%rax,8)
	addq	$4, %rax
	cmpq	%rax, %r9
	jne	LBB0_20
## %bb.21:
	pextrd	$3, %xmm0, %r14d
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%rsi,%rcx,4), %r9d
	movl	(%rsi,%rcx,4), %eax
	leaq	(,%rcx,4), %rbx
	orq	$4, %rbx
	movl	(%rsi,%rbx), %ebx
	addl	%r9d, %ebx
	addl	$2, %ebx
	sarl	$2, %ebx
	subl	%ebx, %eax
	movl	%eax, (%rdi,%rcx,4)
	leal	(%r14,%rax), %ebx
	incl	%ebx
	sarl	%ebx
	addl	-4(%rsi,%rcx,4), %ebx
	movl	%ebx, -4(%rdi,%rcx,4)
	addq	$2, %rcx
	movl	%eax, %r14d
	cmpq	%r8, %rcx
	jb	LBB0_22
LBB0_23:
	testb	$1, %dl
	jne	LBB0_24
## %bb.25:
	movslq	%ecx, %rax
	leaq	-1(%rax), %r8
	movl	-8(%rdi,%rax,4), %ecx
	jmp	LBB0_26
LBB0_24:
	movl	%ecx, %edx
	movl	(%rsi,%rdx,4), %ebx
	movslq	%ecx, %rax
	leaq	-1(%rax), %r8
	movl	-4(%rsi,%rax,4), %ecx
	incl	%ecx
	sarl	%ecx
	subl	%ecx, %ebx
	movl	%ebx, (%rdi,%rdx,4)
	movl	-8(%rdi,%rax,4), %ecx
	addl	%ebx, %ecx
	incl	%ecx
	sarl	%ecx
LBB0_26:
	addl	-4(%rsi,%rax,4), %ecx
	movl	%ecx, (%rdi,%r8,4)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_horizontal_compose53i
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function horizontal_compose53i
_horizontal_compose53i:                 ; @horizontal_compose53i
	.cfi_startproc
; %bb.0:
	cmp	w2, #2
	b.lt	LBB0_3
; %bb.1:
	add	w8, w2, #1
	lsr	w9, w8, #1
	lsr	w8, w2, #1
	cmp	w2, #16
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	b	LBB0_9
LBB0_3:
	mov	w8, #0
	b	LBB0_11
LBB0_4:
	mov	x10, #0
	add	x12, x1, x8, lsl #3
	add	x13, x0, x9, lsl #2
	add	x11, x8, x9
	add	x14, x0, x11, lsl #2
	add	x11, x0, x8, lsl #2
	cmp	x11, x1
	ccmp	x12, x0, #0, hi
	cset	w11, hi
	cmp	x13, x12
	ccmp	x14, x1, #0, lo
	b.hi	LBB0_9
; %bb.5:
	tbnz	w11, #0, LBB0_9
; %bb.6:
	and	x10, x8, #0x7ffffff8
	add	x11, x1, #32
	lsl	x12, x9, #2
	mov	x13, x10
	mov	x14, x0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x15, x14, x12
	ldp	q0, q2, [x14], #32
	ldp	q1, q3, [x15]
	sub	x15, x11, #32
	st2.4s	{ v0, v1 }, [x15]
	st2.4s	{ v2, v3 }, [x11]
	add	x11, x11, #64
	subs	x13, x13, #8
	b.ne	LBB0_7
; %bb.8:
	cmp	x10, x8
	b.eq	LBB0_11
LBB0_9:
	add	x9, x10, x9
	add	x9, x0, x9, lsl #2
	add	x11, x0, x10, lsl #2
	sub	x12, x8, x10
	add	x10, x1, x10, lsl #3
	add	x10, x10, #4
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x11], #4
	stur	w13, [x10, #-4]
	ldr	w13, [x9], #4
	str	w13, [x10], #8
	subs	x12, x12, #1
	b.ne	LBB0_10
LBB0_11:
	tbz	w2, #0, LBB0_13
; %bb.12:
	ldr	w9, [x0, w8, uxtw #2]
	lsl	w8, w8, #1
	str	w9, [x1, w8, uxtw #2]
LBB0_13:
	ldp	w8, w9, [x1]
	add	w9, w9, #1
	sub	w10, w8, w9, asr #1
	str	w10, [x0]
	cmp	w2, #4
	b.lt	LBB0_18
; %bb.14:
	sub	w8, w2, #1
	mov	w9, #4
	cmp	x8, #4
	csel	x9, x8, x9, hi
	sub	x9, x9, #3
	cmp	x9, #8
	b.lo	LBB0_17
; %bb.15:
	add	x11, x0, #4
	mov	w12, #4
	cmp	x8, #4
	csel	x12, x8, x12, hi
	sub	x12, x12, #3
	and	x12, x12, #0x3ffffffffffffffe
	lsl	x12, x12, #2
	add	x13, x12, x1
	add	x13, x13, #16
	cmp	x11, x13
	b.hs	LBB0_19
; %bb.16:
	add	x12, x12, x0
	add	x12, x12, #12
	add	x13, x1, #4
	cmp	x13, x12
	b.hs	LBB0_19
LBB0_17:
	mov	w9, #2
	b	LBB0_22
LBB0_18:
	mov	w9, #2
	b	LBB0_24
LBB0_19:
	lsr	x12, x9, #1
	add	x9, x12, #1
	ands	x13, x9, #0x3
	mov	w14, #4
	csel	x13, x14, x13, eq
	sub	x9, x9, x13
	lsl	x9, x9, #1
	add	x9, x9, #2
	dup.4s	v1, w10
	add	x10, x1, #12
	mvn	x12, x12
	add	x12, x12, x13
	movi.4s	v2, #2
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	mov.16b	v3, v1
	sub	x13, x10, #8
	ld2.4s	{ v0, v1 }, [x13]
	ld2.4s	{ v4, v5 }, [x10], #32
	add.4s	v4, v0, v4
	add.4s	v4, v4, v2
	sshr.4s	v4, v4, #2
	sub.4s	v1, v1, v4
	ext.16b	v3, v3, v1, #12
	mvn.16b	v4, v1
	sub.4s	v3, v3, v4
	ssra.4s	v0, v3, #1
	st2.4s	{ v0, v1 }, [x11], #32
	adds	x12, x12, #4
	b.ne	LBB0_20
; %bb.21:
	mov.s	w10, v1[3]
LBB0_22:
	lsl	x12, x9, #2
	add	x11, x12, x1
	sub	x11, x11, #4
	add	x12, x0, x12
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldp	w14, w13, [x11]
	lsl	x15, x9, #2
	orr	x15, x15, #0x4
	ldr	w15, [x1, x15]
	add	w14, w14, w15
	add	w14, w14, #2
	sub	w13, w13, w14, asr #2
	str	w13, [x12]
	ldr	w14, [x11], #8
	add	w10, w13, w10
	add	w10, w10, #1
	add	w10, w14, w10, asr #1
	stur	w10, [x12, #-4]
	add	x9, x9, #2
	add	x12, x12, #8
	mov	x10, x13
	cmp	x9, x8
	b.lo	LBB0_23
LBB0_24:
	tbnz	w2, #0, LBB0_26
; %bb.25:
	mov	x8, x9
	sxtw	x8, w8
	sub	x8, x8, #1
	ldr	w10, [x1, x8, lsl #2]
	add	x9, x0, w9, sxtw #2
	ldur	w9, [x9, #-8]
	add	w9, w9, w10
	str	w9, [x0, x8, lsl #2]
	ret
LBB0_26:
	mov	w8, w9
	lsl	x10, x8, #2
	ldr	w11, [x1, x10]
	mov	x8, x9
	sxtw	x8, w8
	sub	x8, x8, #1
	lsl	x12, x8, #2
	ldr	w13, [x1, x12]
	add	w13, w13, #1
	sub	w11, w11, w13, asr #1
	str	w11, [x0, x10]
	ldr	w10, [x1, x12]
	add	x9, x0, w9, sxtw #2
	ldur	w9, [x9, #-8]
	add	w9, w11, w9
	add	w9, w9, #1
	add	w9, w10, w9, asr #1
	str	w9, [x0, x8, lsl #2]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_horizontal_compose53i
.subsections_via_symbols
