	.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_aes_ct64_skey_expand
LCPI0_0:
	.space	16,17
LCPI0_1:
	.long	4044427537                      ## 0xf1111111
	.long	4044427537                      ## 0xf1111111
	.long	4044427537                      ## 0xf1111111
	.long	4044427537                      ## 0xf1111111
LCPI0_2:
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_br_aes_ct64_skey_expand
	.p2align	4, 0x90
_br_aes_ct64_skey_expand:               ## @br_aes_ct64_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
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	addl	%esi, %esi
	addl	$2, %esi
	je	LBB0_9
## %bb.1:
	movl	%esi, %r8d
	cmpl	$4, %esi
	jb	LBB0_2
## %bb.3:
	movq	%r8, %rax
	shlq	$4, %rax
	addq	%rdi, %rax
	cmpq	%rdx, %rax
	jbe	LBB0_5
## %bb.4:
	leaq	(%rdx,%r8,4), %rax
	cmpq	%rdi, %rax
	jbe	LBB0_5
LBB0_2:
	xorl	%r11d, %r11d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%r11,4), %eax
	movl	%eax, %ecx
	andl	$286331153, %ecx                ## imm = 0x11111111
	movl	%eax, %esi
	shrl	%esi
	andl	$286331153, %esi                ## imm = 0x11111111
	movl	%eax, %ebx
	shrl	$2, %ebx
	andl	$286331153, %ebx                ## imm = 0x11111111
	sarl	$3, %eax
	andl	$-250539759, %eax               ## imm = 0xF1111111
	leal	(%rcx,%rcx,4), %ecx
	leal	(%rcx,%rcx,2), %r9d
	movl	%r14d, %ecx
	movl	%r9d, (%rdi,%rcx,4)
	leal	(%rsi,%rsi,4), %ecx
	leal	(%rcx,%rcx,2), %ecx
	leal	1(%r14), %esi
	movl	%ecx, (%rdi,%rsi,4)
	leal	(%rbx,%rbx,4), %ecx
	leal	(%rcx,%rcx,2), %ecx
	leal	2(%r14), %esi
	movl	%ecx, (%rdi,%rsi,4)
	leal	(%rax,%rax,4), %eax
	leal	(%rax,%rax,2), %eax
	leal	3(%r14), %ecx
	movl	%eax, (%rdi,%rcx,4)
	incq	%r11
	addl	$4, %r14d
	cmpq	%r11, %r8
	jne	LBB0_8
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movl	%r8d, %r11d
	andl	$-4, %r11d
	leal	(,%r11,4), %r14d
	xorl	%r10d, %r10d
	movdqa	LCPI0_0(%rip), %xmm9            ## xmm9 = [286331153,286331153,286331153,286331153]
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4044427537,4044427537,4044427537,4044427537]
	movdqa	LCPI0_2(%rip), %xmm10           ## xmm10 = [15,15,15,15]
	movq	%r11, %r9
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%r10), %xmm4
	movdqa	%xmm4, %xmm3
	pand	%xmm9, %xmm3
	movdqa	%xmm4, %xmm6
	psrld	$1, %xmm6
	pand	%xmm9, %xmm6
	movdqa	%xmm4, %xmm5
	psrld	$2, %xmm5
	pand	%xmm9, %xmm5
	psrad	$3, %xmm4
	pand	%xmm8, %xmm4
	pmulld	%xmm10, %xmm3
	pmulld	%xmm10, %xmm6
	pmulld	%xmm10, %xmm5
	pmulld	%xmm10, %xmm4
	movl	%r10d, %eax
	andl	$-16, %eax
	movdqa	%xmm3, %xmm7
	punpckhdq	%xmm6, %xmm7            ## xmm7 = xmm7[2],xmm6[2],xmm7[3],xmm6[3]
	pshufd	$170, %xmm4, %xmm1              ## xmm1 = xmm4[2,2,2,2]
	pblendw	$63, %xmm5, %xmm1               ## xmm1 = xmm5[0,1,2,3,4,5],xmm1[6,7]
	pblendw	$15, %xmm7, %xmm1               ## xmm1 = xmm7[0,1,2,3],xmm1[4,5,6,7]
	movdqa	%xmm5, %xmm0
	punpckldq	%xmm4, %xmm0            ## xmm0 = xmm0[0],xmm4[0],xmm0[1],xmm4[1]
	pshufd	$85, %xmm3, %xmm2               ## xmm2 = xmm3[1,1,1,1]
	punpckldq	%xmm6, %xmm3            ## xmm3 = xmm3[0],xmm6[0],xmm3[1],xmm6[1]
	punpcklqdq	%xmm0, %xmm3            ## xmm3 = xmm3[0],xmm0[0]
	pblendw	$12, %xmm6, %xmm2               ## xmm2 = xmm2[0,1],xmm6[2,3],xmm2[4,5,6,7]
	pblendw	$240, %xmm0, %xmm2              ## xmm2 = xmm2[0,1,2,3],xmm0[4,5,6,7]
	punpckhdq	%xmm4, %xmm5            ## xmm5 = xmm5[2],xmm4[2],xmm5[3],xmm4[3]
	punpckhqdq	%xmm5, %xmm7            ## xmm7 = xmm7[1],xmm5[1]
	movdqu	%xmm7, 48(%rdi,%rax,4)
	movdqu	%xmm2, 16(%rdi,%rax,4)
	movdqu	%xmm3, (%rdi,%rax,4)
	movdqu	%xmm1, 32(%rdi,%rax,4)
	addq	$16, %r10
	addq	$-4, %r9
	jne	LBB0_6
## %bb.7:
	cmpq	%r8, %r11
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_aes_ct64_skey_expand        ; -- Begin function br_aes_ct64_skey_expand
	.p2align	2
_br_aes_ct64_skey_expand:               ; @br_aes_ct64_skey_expand
	.cfi_startproc
; %bb.0:
	lsl	w8, w1, #1
	adds	w9, w8, #2
	b.eq	LBB0_9
; %bb.1:
	cmp	w9, #4
	b.lo	LBB0_6
; %bb.2:
	add	x8, x2, x9, lsl #2
	add	x10, x0, x9, lsl #4
	cmp	x10, x2
	ccmp	x8, x0, #0, hi
	b.hi	LBB0_6
; %bb.3:
	mov	x11, #0
	and	x10, x9, #0xfffffffc
	lsl	w8, w10, #2
	sub	x12, x0, #12
	movi.16b	v0, #17
	mov	w13, #4369
	movk	w13, #61713, lsl #16
	dup.4s	v1, w13
	movi.4s	v2, #15
	mov	x13, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	q3, [x2, x11]
	and.16b	v4, v3, v0
	ushr.4s	v5, v3, #1
	and.16b	v5, v5, v0
	ushr.4s	v6, v3, #2
	and.16b	v6, v6, v0
	sshr.4s	v3, v3, #3
	and.16b	v3, v3, v1
	mul.4s	v16, v4, v2
	mul.4s	v17, v5, v2
	mul.4s	v18, v6, v2
	mul.4s	v19, v3, v2
	and	x14, x11, #0xfffffff0
	add	x14, x12, x14, lsl #2
	add	x14, x14, #12
	st4.4s	{ v16, v17, v18, v19 }, [x14]
	add	x11, x11, #16
	subs	x13, x13, #4
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x9
	b.ne	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	x10, #0
	mov	w8, #0
LBB0_7:
	mov	w11, #286331153
	sub	x9, x9, x10
	mov	w12, #4369
	movk	w12, #61713, lsl #16
	add	x10, x2, x10, lsl #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x10], #4
	and	w14, w11, w13, lsr #1
	and	w15, w13, w11
	and	w16, w11, w13, lsr #2
	lsl	w17, w15, #4
	sub	w15, w17, w15
	str	w15, [x0, w8, uxtw #2]
	and	w13, w12, w13, asr #3
	lsl	w15, w14, #4
	sub	w14, w15, w14
	add	w15, w8, #1
	str	w14, [x0, w15, uxtw #2]
	lsl	w14, w16, #4
	sub	w14, w14, w16
	add	w15, w8, #2
	str	w14, [x0, w15, uxtw #2]
	lsl	w14, w13, #4
	sub	w13, w14, w13
	add	w14, w8, #3
	str	w13, [x0, w14, uxtw #2]
	add	w8, w8, #4
	subs	x9, x9, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
