	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function br_des_ct_skey_expand
LCPI0_0:
	.space	16,17
LCPI0_1:
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_br_des_ct_skey_expand
	.p2align	4, 0x90
_br_des_ct_skey_expand:                 ## @br_des_ct_skey_expand
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	shll	$4, %esi
	je	LBB0_7
## %bb.1:
	leal	-16(%rsi), %eax
	leaq	(%rdx,%rax,8), %rcx
	addq	$128, %rcx
	cmpq	%rdi, %rcx
	jbe	LBB0_5
## %bb.2:
	leaq	(%rax,%rax,2), %rcx
	leaq	(%rdi,%rcx,8), %rcx
	addq	$384, %rcx                      ## imm = 0x180
	cmpq	%rdx, %rcx
	jbe	LBB0_5
## %bb.3:
	movl	%esi, %r8d
	xorl	%r9d, %r9d
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [286331153,286331153,286331153,286331153]
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [15,15,15,15]
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%r9,8), %esi
	movl	%esi, %eax
	shrl	%eax
	movl	%esi, %ecx
	shrl	$2, %ecx
	movd	%esi, %xmm2
	shrl	$3, %esi
	pinsrd	$1, %eax, %xmm2
	pinsrd	$2, %ecx, %xmm2
	pinsrd	$3, %esi, %xmm2
	pand	%xmm0, %xmm2
	pmulld	%xmm1, %xmm2
	movdqu	%xmm2, (%rdi)
	movl	4(%rdx,%r9,8), %eax
	movl	%eax, %ecx
	andl	$286331153, %ecx                ## imm = 0x11111111
	shrl	%eax
	andl	$286331153, %eax                ## imm = 0x11111111
	leal	(%rcx,%rcx,4), %ecx
	leal	(%rcx,%rcx,2), %ecx
	movl	%ecx, 16(%rdi)
	leal	(%rax,%rax,4), %eax
	leal	(%rax,%rax,2), %eax
	movl	%eax, 20(%rdi)
	incq	%r9
	addq	$24, %rdi
	cmpl	%r9d, %r8d
	jne	LBB0_4
	jmp	LBB0_7
LBB0_5:
	addq	$16, %rax
	xorl	%ecx, %ecx
	movaps	LCPI0_0(%rip), %xmm8            ## xmm8 = [286331153,286331153,286331153,286331153]
	movdqa	LCPI0_1(%rip), %xmm9            ## xmm9 = [15,15,15,15]
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rdx,%rcx,8), %xmm2
	movups	16(%rdx,%rcx,8), %xmm0
	movaps	%xmm2, %xmm4
	shufps	$136, %xmm0, %xmm4              ## xmm4 = xmm4[0,2],xmm0[0,2]
	shufps	$221, %xmm0, %xmm2              ## xmm2 = xmm2[1,3],xmm0[1,3]
	movaps	%xmm4, %xmm3
	andps	%xmm8, %xmm3
	movaps	%xmm4, %xmm7
	psrld	$1, %xmm7
	pand	%xmm8, %xmm7
	movaps	%xmm4, %xmm5
	psrld	$2, %xmm5
	pand	%xmm8, %xmm5
	psrld	$3, %xmm4
	pand	%xmm8, %xmm4
	pmulld	%xmm9, %xmm3
	pmulld	%xmm9, %xmm7
	pmulld	%xmm9, %xmm5
	pmulld	%xmm9, %xmm4
	movaps	%xmm2, %xmm6
	andps	%xmm8, %xmm6
	psrld	$1, %xmm2
	pand	%xmm8, %xmm2
	pmulld	%xmm9, %xmm6
	pmulld	%xmm9, %xmm2
	movdqa	%xmm3, %xmm11
	punpckhdq	%xmm7, %xmm11           ## xmm11 = xmm11[2],xmm7[2],xmm11[3],xmm7[3]
	pshufd	$170, %xmm4, %xmm0              ## xmm0 = xmm4[2,2,2,2]
	pblendw	$63, %xmm5, %xmm0               ## xmm0 = xmm5[0,1,2,3,4,5],xmm0[6,7]
	pblendw	$15, %xmm11, %xmm0              ## xmm0 = xmm11[0,1,2,3],xmm0[4,5,6,7]
	movdqa	%xmm5, %xmm10
	punpckldq	%xmm4, %xmm10           ## xmm10 = xmm10[0],xmm4[0],xmm10[1],xmm4[1]
	punpckldq	%xmm7, %xmm3            ## xmm3 = xmm3[0],xmm7[0],xmm3[1],xmm7[1]
	pshufd	$85, %xmm5, %xmm7               ## xmm7 = xmm5[1,1,1,1]
	pblendw	$12, %xmm4, %xmm7               ## xmm7 = xmm7[0,1],xmm4[2,3],xmm7[4,5,6,7]
	insertps	$104, %xmm6, %xmm7              ## xmm7 = xmm7[0,1],xmm6[1],zero
	insertps	$112, %xmm2, %xmm7              ## xmm7 = xmm7[0,1,2],xmm2[1]
	movdqa	%xmm6, %xmm1
	punpckhdq	%xmm4, %xmm5            ## xmm5 = xmm5[2],xmm4[2],xmm5[3],xmm4[3]
	shufps	$254, %xmm6, %xmm5              ## xmm5 = xmm5[2,3],xmm6[3,3]
	pblendw	$240, %xmm3, %xmm6              ## xmm6 = xmm6[0,1,2,3],xmm3[4,5,6,7]
	punpcklqdq	%xmm10, %xmm3           ## xmm3 = xmm3[0],xmm10[0]
	pshufd	$80, %xmm2, %xmm4               ## xmm4 = xmm2[0,0,1,1]
	pblendw	$243, %xmm6, %xmm4              ## xmm4 = xmm6[0,1],xmm4[2,3],xmm6[4,5,6,7]
	punpckhqdq	%xmm11, %xmm1           ## xmm1 = xmm1[1],xmm11[1]
	pshufd	$250, %xmm2, %xmm6              ## xmm6 = xmm2[2,2,3,3]
	pblendw	$243, %xmm1, %xmm6              ## xmm6 = xmm1[0,1],xmm6[2,3],xmm1[4,5,6,7]
	blendps	$8, %xmm2, %xmm5                ## xmm5 = xmm5[0,1,2],xmm2[3]
	movdqu	%xmm3, (%rdi)
	movups	%xmm5, 80(%rdi)
	movdqu	%xmm6, 64(%rdi)
	movdqu	%xmm0, 48(%rdi)
	movdqu	%xmm4, 16(%rdi)
	movups	%xmm7, 32(%rdi)
	addq	$4, %rcx
	addq	$96, %rdi
	cmpq	%rcx, %rax
	jne	LBB0_6
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function br_des_ct_skey_expand
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	4294967294                      ; 0xfffffffe
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_br_des_ct_skey_expand
	.p2align	2
_br_des_ct_skey_expand:                 ; @br_des_ct_skey_expand
	.cfi_startproc
; %bb.0:
	lsl	w8, w1, #4
	cbz	w8, LBB0_3
; %bb.1:
	mov	w8, #286331153
	neg	w9, w1, lsl #4
Lloh0:
	adrp	x10, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x10, lCPI0_0@PAGEOFF]
	movi.8b	v1, #17
	movi.2s	v2, #15
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x2]
	and	w11, w10, w8
	and	w12, w8, w10, lsr #3
	lsl	w13, w11, #4
	sub	w11, w13, w11
	str	w11, [x0]
	dup.2s	v3, w10
	ushl.2s	v3, v3, v0
	and.8b	v3, v3, v1
	mul.2s	v3, v3, v2
	stur	d3, [x0, #4]
	lsl	w10, w12, #4
	sub	w10, w10, w12
	str	w10, [x0, #12]
	ldr	w10, [x2, #4]
	and	w11, w10, w8
	and	w10, w8, w10, lsr #1
	lsl	w12, w11, #4
	sub	w11, w12, w11
	lsl	w12, w10, #4
	sub	w10, w12, w10
	stp	w11, w10, [x0, #16]
	add	x2, x2, #8
	add	x0, x0, #24
	adds	w9, w9, #1
	b.lo	LBB0_2
LBB0_3:
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
