	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function n_fold
_n_fold:                                ## @n_fold
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rdi, %r14
	movl	%esi, %ecx
	cmpq	%r13, %rcx
	jne	LBB0_1
## %bb.23:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_1:
	movl	%esi, %r15d
	movq	%rcx, %rsi
	testl	%r13d, %r13d
	je	LBB0_5
## %bb.2:
	movl	%r15d, %eax
	movl	%r13d, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %esi
	xorl	%edx, %edx
	divl	%esi
	movl	%esi, %eax
	testl	%edx, %edx
	jne	LBB0_3
## %bb.4:
	movl	%esi, %esi
LBB0_5:
	imulq	%r13, %rcx
	movq	%rcx, %rax
	shrq	$32, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.7:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	movq	%rax, %rbx
	jmp	LBB0_8
LBB0_6:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %ebx
LBB0_8:
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	decl	%ebx
	js	LBB0_16
## %bb.9:
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=1
	movzbl	(%r10,%rax), %eax
	movl	%edi, %ecx
	shrl	%cl, %eax
	movzbl	%bl, %ecx
	orl	%eax, %ecx
	movl	%r8d, %edx
	movzbl	(%r14,%rdx), %eax
	addl	%eax, %r12d
	movl	%r12d, %eax
	addl	%ecx, %eax
	movb	%al, (%r14,%rdx)
	movl	%eax, %r12d
	shrl	$8, %r12d
	leal	-1(%r9), %ebx
	testl	%r9d, %r9d
	jle	LBB0_12
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%r15d
	movl	%edx, %r8d
	movl	%ebx, %r9d
	cmpq	%r13, %r9
	jb	LBB0_11
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%r9d, %eax
	xorl	%edx, %edx
	divl	%r13d
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=1
	xorl	%eax, %eax
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	leal	(%rax,%rax,2), %ecx
	leal	(%rax,%rcx,4), %edi
	movl	%edi, %eax
	shrl	$3, %eax
	movl	%r9d, %esi
	subl	%eax, %esi
	andl	$7, %edi
	leal	-1(%rsi), %eax
	cmpq	%r13, %rax
	jb	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r13d
	movl	%edx, %eax
LBB0_20:                                ##   in Loop: Header=BB0_10 Depth=1
	movzbl	(%r10,%rax), %ebx
	movb	$8, %cl
	subb	%dil, %cl
	shll	%cl, %ebx
	movl	%esi, %eax
	cmpq	%r13, %rax
	jb	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r13d
	movl	%edx, %eax
	jmp	LBB0_22
LBB0_12:
	decl	%r15d
	js	LBB0_16
## %bb.13:
	cmpl	$256, %eax                      ## imm = 0x100
	jb	LBB0_16
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %eax
	incb	(%r14,%rax)
	sete	%al
	testl	%r15d, %r15d
	jle	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	decl	%r15d
	testb	%al, %al
	jne	LBB0_14
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_n_fold
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function n_fold
_n_fold:                                ; @n_fold
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x3
	mov	x21, x2
	mov	x19, x0
	mov	w8, w1
	cmp	x8, x3
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_memcpy
LBB0_2:
	mov	x22, x1
	mov	x9, x8
	cbz	w20, LBB0_6
; %bb.3:
	mov	x10, x22
	mov	x11, x20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x11
	udiv	w11, w10, w11
	msub	w11, w11, w9, w10
	mov	x10, x9
	cbnz	w11, LBB0_4
; %bb.5:
	mov	w9, w9
LBB0_6:
	mul	x8, x8, x20
	udiv	x23, x8, x9
	mov	x0, x19
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	subs	w8, w23, #1
	b.mi	LBB0_13
; %bb.7:
	mov	w9, #0
	mov	w10, #13
	mov	w11, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	udiv	w12, w8, w22
	msub	w13, w12, w22, w8
	mov	w12, w8
	udiv	x12, x12, x20
	mul	w12, w12, w10
	sub	w14, w8, w12, lsr #3
	and	w12, w12, #0x7
	sub	w15, w14, #1
	udiv	x16, x15, x20
	msub	x15, x16, x20, x15
	ldrb	w15, [x21, x15]
	sub	w16, w11, w12
	lsl	w15, w15, w16
	udiv	x16, x14, x20
	msub	x14, x16, x20, x14
	ldrb	w14, [x21, x14]
	lsr	w12, w14, w12
	and	w14, w15, #0xff
	orr	w12, w14, w12
	ldrb	w14, [x19, x13]
	add	w9, w9, w14
	add	w12, w9, w12
	strb	w12, [x19, x13]
	lsr	w9, w12, #8
	sub	w13, w8, #1
	cmp	w8, #0
	mov	x8, x13
	b.gt	LBB0_8
; %bb.9:
	subs	w8, w22, #1
	b.mi	LBB0_13
; %bb.10:
	cmp	w12, #256
	b.lo	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	w10, w8
	ldrb	w9, [x19, x10]
	add	w9, w9, #1
	strb	w9, [x19, x10]
	subs	w8, w8, #1
	b.lt	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	lsr	w9, w9, #8
	tbnz	w9, #0, LBB0_11
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_n_fold
.subsections_via_symbols
