	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function make_kn
LCPI0_0:
	.space	16,1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_make_kn:                               ## @make_kn
	.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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movb	(%rsi), %r8b
	cmpl	$2, %edx
	jl	LBB0_1
## %bb.2:
	leal	-1(%rdx), %r9d
	cmpl	$32, %r9d
	jb	LBB0_3
## %bb.4:
	movq	%rsi, %rax
	notq	%rax
	addq	%rdi, %rax
	cmpq	$32, %rax
	jae	LBB0_5
LBB0_3:
	xorl	%r15d, %r15d
	movl	%r8d, %eax
LBB0_8:
	movq	%r15, %r10
	notq	%r10
	testb	$1, %r9b
	je	LBB0_10
## %bb.9:
	movq	%r15, %r11
	orq	$1, %r11
	movb	(%rsi,%r11), %r14b
	movl	%r14d, %ebx
	shrb	$7, %bl
	addb	%al, %al
	orb	%bl, %al
	movb	%al, (%rdi,%r15)
	movl	%r14d, %eax
	movq	%r11, %r15
LBB0_10:
	addq	%r9, %r10
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movzbl	1(%rsi,%r15), %ecx
	movl	%ecx, %ebx
	shrb	$7, %bl
	addb	%al, %al
	orb	%bl, %al
	movb	%al, (%rdi,%r15)
	movzbl	2(%rsi,%r15), %eax
	addb	%cl, %cl
	movl	%eax, %ebx
	shrb	$7, %bl
	orb	%cl, %bl
	movb	%bl, 1(%rdi,%r15)
	leaq	2(%r15), %rcx
	movq	%rcx, %r15
	cmpq	%rcx, %r9
	jne	LBB0_11
	jmp	LBB0_12
LBB0_1:
	xorl	%r9d, %r9d
	movl	%r8d, %eax
LBB0_12:
	addb	%al, %al
	cmpl	$16, %edx
	movl	$135, %ecx
	movl	$27, %edx
	cmovel	%ecx, %edx
	sarb	$7, %r8b
	andb	%dl, %r8b
	xorb	%al, %r8b
	movb	%r8b, (%rdi,%r9)
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%r9d, %r15d
	andl	$-32, %r15d
	movzbl	%r8b, %eax
	movd	%eax, %xmm0
	pslldq	$15, %xmm0                      ## xmm0 = zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,zero,xmm0[0]
	xorl	%eax, %eax
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	1(%rsi,%rax), %xmm2
	movdqa	%xmm2, %xmm3
	palignr	$15, %xmm0, %xmm3               ## xmm3 = xmm0[15],xmm3[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
	movdqu	17(%rsi,%rax), %xmm0
	movdqa	%xmm0, %xmm4
	palignr	$15, %xmm2, %xmm4               ## xmm4 = xmm2[15],xmm4[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]
	psrlw	$7, %xmm2
	pand	%xmm1, %xmm2
	paddb	%xmm3, %xmm3
	por	%xmm2, %xmm3
	movdqa	%xmm0, %xmm2
	psrlw	$7, %xmm2
	pand	%xmm1, %xmm2
	paddb	%xmm4, %xmm4
	por	%xmm2, %xmm4
	movdqu	%xmm3, (%rdi,%rax)
	movdqu	%xmm4, 16(%rdi,%rax)
	addq	$32, %rax
	cmpq	%rax, %r15
	jne	LBB0_6
## %bb.7:
	pextrb	$15, %xmm0, %eax
	cmpq	%r9, %r15
	jne	LBB0_8
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_make_kn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_kn
_make_kn:                               ; @make_kn
	.cfi_startproc
; %bb.0:
	ldrsb	w8, [x1]
	cmp	w2, #2
	b.lt	LBB0_6
; %bb.1:
	sub	w9, w2, #1
	cmp	w9, #64
	b.lo	LBB0_3
; %bb.2:
	mvn	x10, x1
	add	x10, x10, x0
	cmp	x10, #64
	b.hs	LBB0_8
LBB0_3:
	mov	x10, #0
	mov	x11, x8
LBB0_4:
	add	x12, x0, x10
	sub	x13, x9, x10
	add	x10, x10, x1
	add	x10, x10, #1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x14, x11
	ldrb	w11, [x10], #1
	lsl	w15, w11, #24
	extr	w14, w14, w15, #31
	strb	w14, [x12], #1
	subs	x13, x13, #1
	b.ne	LBB0_5
	b	LBB0_7
LBB0_6:
	mov	x9, #0
	mov	x11, x8
LBB0_7:
	mov	w10, #27
	mov	w12, #-121
	cmp	w2, #16
	csel	w10, w12, w10, eq
	and	w8, w10, w8, lsr #7
	eor	w8, w8, w11, lsl #1
	strb	w8, [x0, x9]
	ret
LBB0_8:
	and	x10, x9, #0xffffffc0
	dup.16b	v0, w8
	add	x11, x0, #32
	add	x12, x1, #33
	mov	x13, x10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x12, #-32]
	ext.16b	v3, v0, v1, #15
	ldp	q4, q0, [x12], #64
	ext.16b	v5, v1, v2, #15
	ext.16b	v6, v2, v4, #15
	ext.16b	v7, v4, v0, #15
	shl.16b	v3, v3, #1
	ushr.16b	v1, v1, #1
	ushr.16b	v1, v1, #6
	orr.16b	v1, v3, v1
	shl.16b	v3, v5, #1
	ushr.16b	v2, v2, #1
	ushr.16b	v2, v2, #6
	orr.16b	v2, v3, v2
	shl.16b	v3, v6, #1
	ushr.16b	v4, v4, #1
	ushr.16b	v4, v4, #6
	orr.16b	v3, v3, v4
	shl.16b	v4, v7, #1
	ushr.16b	v5, v0, #1
	ushr.16b	v5, v5, #6
	stp	q1, q2, [x11, #-32]
	orr.16b	v1, v4, v5
	stp	q3, q1, [x11], #64
	subs	x13, x13, #64
	b.ne	LBB0_9
; %bb.10:
	umov.b	w11, v0[15]
	cmp	x10, x9
	b.ne	LBB0_4
	b	LBB0_7
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_make_kn
.subsections_via_symbols
