	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reduce_add_sub
_reduce_add_sub:                        ## @reduce_add_sub
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rcx
	xorl	%r15d, %r15d
	movq	_m@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	addl	(%rax,%r15,8), %ebx
	movl	(%rcx,%r15,4), %edi
	movl	%ebx, %esi
	callq	_lt
	movq	(%r14), %rcx
	movl	(%rcx,%r15,4), %edx
	subl	%ebx, %edx
	movb	%dl, -80(%rbp,%r15)
	incq	%r15
	movl	%eax, %ebx
	cmpq	$32, %r15
	jne	LBB0_1
## %bb.2:
	decl	%eax
	movd	%eax, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	pmovzxbd	-80(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	movdqu	(%rcx), %xmm2
	movdqu	16(%rcx), %xmm3
	movdqu	32(%rcx), %xmm4
	movdqu	48(%rcx), %xmm5
	movdqa	%xmm0, %xmm6
	pandn	%xmm2, %xmm6
	pand	%xmm0, %xmm1
	por	%xmm6, %xmm1
	movdqu	%xmm1, (%rcx)
	pmovzxbd	-76(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	movdqa	%xmm0, %xmm2
	pandn	%xmm3, %xmm2
	pand	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movdqu	%xmm1, 16(%rcx)
	pmovzxbd	-72(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	movdqa	%xmm0, %xmm2
	pandn	%xmm4, %xmm2
	pand	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movdqu	%xmm1, 32(%rcx)
	pmovzxbd	-68(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	movdqa	%xmm0, %xmm2
	pandn	%xmm5, %xmm2
	pand	%xmm0, %xmm1
	por	%xmm2, %xmm1
	movdqu	%xmm1, 48(%rcx)
	movdqu	64(%rcx), %xmm1
	pmovzxbd	-64(%rbp), %xmm2                ## xmm2 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	movdqa	%xmm0, %xmm3
	pandn	%xmm1, %xmm3
	pand	%xmm0, %xmm2
	por	%xmm3, %xmm2
	movdqu	%xmm2, 64(%rcx)
	movdqu	80(%rcx), %xmm1
	pmovzxbd	-60(%rbp), %xmm2                ## xmm2 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	movdqa	%xmm0, %xmm3
	pandn	%xmm1, %xmm3
	pand	%xmm0, %xmm2
	por	%xmm3, %xmm2
	movdqu	%xmm2, 80(%rcx)
	movdqu	96(%rcx), %xmm1
	pmovzxbd	-56(%rbp), %xmm2                ## xmm2 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	movdqa	%xmm0, %xmm3
	pandn	%xmm1, %xmm3
	pand	%xmm0, %xmm2
	por	%xmm3, %xmm2
	movdqu	%xmm2, 96(%rcx)
	pmovzxbd	-52(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero,mem[1],zero,zero,zero,mem[2],zero,zero,zero,mem[3],zero,zero,zero
	movdqu	112(%rcx), %xmm2
	pand	%xmm0, %xmm1
	pandn	%xmm2, %xmm0
	por	%xmm1, %xmm0
	movdqu	%xmm0, 112(%rcx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_m,8,3                          ## @m
	.no_dead_strip	_reduce_add_sub
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reduce_add_sub
_reduce_add_sub:                        ; @reduce_add_sub
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	x21, #0
	mov	w0, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x19]
Lloh3:
	adrp	x22, _m@GOTPAGE
Lloh4:
	ldr	x22, [x22, _m@GOTPAGEOFF]
	mov	x23, sp
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	ldr	x9, [x9, x21, lsl #3]
	add	w20, w0, w9
	lsl	x24, x21, #2
	ldr	w0, [x8, x24]
	mov	x1, x20
	bl	_lt
	ldr	x8, [x19]
	ldr	w9, [x8, x24]
	sub	w9, w9, w20
	strb	w9, [x23, x21]
	add	x21, x21, #1
	cmp	x21, #32
	b.ne	LBB0_1
; %bb.2:
	sub	w9, w0, #1
	dup.4s	v0, w9
	ldp	q2, q1, [x8, #32]
	ldp	q4, q3, [x8]
	ldp	q5, q6, [sp]
	ushll2.8h	v7, v5, #0
	ushll.8h	v5, v5, #0
	ushll.4s	v16, v5, #0
	bit.16b	v4, v16, v0
	ushll2.4s	v16, v7, #0
	ushll.4s	v7, v7, #0
	ushll2.4s	v5, v5, #0
	bit.16b	v3, v5, v0
	bit.16b	v2, v7, v0
	bit.16b	v1, v16, v0
	stp	q2, q1, [x8, #32]
	stp	q4, q3, [x8]
	ldp	q2, q1, [x8, #96]
	ldp	q4, q3, [x8, #64]
	ushll2.8h	v5, v6, #0
	ushll2.4s	v7, v5, #0
	ushll.4s	v5, v5, #0
	ushll.8h	v6, v6, #0
	ushll2.4s	v16, v6, #0
	ushll.4s	v6, v6, #0
	bit.16b	v4, v6, v0
	bit.16b	v3, v16, v0
	bit.16b	v2, v5, v0
	bsl.16b	v0, v7, v1
	stp	q2, q0, [x8, #96]
	stp	q4, q3, [x8, #64]
	ldr	x8, [sp, #40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_m,8,3                          ; @m
	.no_dead_strip	_reduce_add_sub
.subsections_via_symbols
