	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_templates
_copy_templates:                        ## @copy_templates
	.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
	movl	%edx, (%rdi)
	testl	%edx, %edx
	jle	LBB0_3
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	%edx, %eax
	imulq	$44, %rax, %r15
	addq	$36, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r13
	leaq	(%rbx,%r13), %rdi
	addq	$40, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	(%rbx,%r13), %rdi
	addq	$36, %rdi
	leaq	-4(%r12), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	-8(%r12), %eax
	movl	%eax, 32(%r13,%rbx)
	movl	-36(%r12), %eax
	movl	%eax, (%r13,%rbx)
	movl	-32(%r12), %ecx
	movl	%ecx, 4(%r13,%rbx)
	movl	-28(%r12), %edx
	movl	%edx, 8(%r13,%rbx)
	andl	%eax, %ecx
	andl	%edx, %ecx
	xorl	%eax, %eax
	cmpl	$-1, %ecx
	sete	%al
	movl	%eax, 12(%r13,%rbx)
	movups	-24(%r12), %xmm0
	movups	%xmm0, 16(%r13,%rbx)
	addq	$44, %rbx
	addq	$40, %r12
	cmpq	%rbx, %r15
	jne	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_copy_templates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_templates
_copy_templates:                        ; @copy_templates
	.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
	str	w2, [x0]
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	add	x20, x1, #36
	mov	w8, #44
	umull	x22, w2, w8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x23, x8, x21
	add	x0, x23, #40
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	add	x0, x23, #36
	sub	x1, x20, #4
	mov	w2, #4
	bl	_memcpy
	ldur	w8, [x20, #-8]
	str	w8, [x23, #32]
	ldp	w8, w9, [x20, #-36]
	stp	w8, w9, [x23]
	ldur	w10, [x20, #-28]
	and	w8, w9, w8
	and	w8, w8, w10
	cmn	w8, #1
	cset	w8, eq
	stp	w10, w8, [x23, #8]
	ldur	q0, [x20, #-24]
	str	q0, [x23, #16]
	add	x21, x21, #44
	add	x20, x20, #40
	cmp	x22, x21
	b.ne	LBB0_2
LBB0_3:
	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	_copy_templates
.subsections_via_symbols
