	.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_ct_skey_expand
LCPI0_0:
	.long	1431655765                      ## 0x55555555
	.long	1431655765                      ## 0x55555555
	.space	4
	.space	4
LCPI0_1:
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.space	4
	.space	4
LCPI0_2:
	.long	2863311530                      ## 0xaaaaaaaa
	.long	2863311530                      ## 0xaaaaaaaa
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_br_aes_ct_skey_expand
	.p2align	4, 0x90
_br_aes_ct_skey_expand:                 ## @br_aes_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
	shll	$2, %esi
	addl	$4, %esi
	je	LBB0_12
## %bb.1:
	movq	%rdx, %r10
	movl	%esi, %r11d
	leaq	-1(%r11), %rax
	movq	%rax, %r8
	shrq	$32, %r8
	movl	$8, %edx
	mulq	%rdx
	seto	%r9b
	testq	%r8, %r8
	jne	LBB0_6
## %bb.2:
	leaq	(%rdi,%rax), %rdx
	cmpq	%rdi, %rdx
	jb	LBB0_6
## %bb.3:
	testb	%r9b, %r9b
	jne	LBB0_6
## %bb.4:
	leaq	4(%rdi), %rdx
	addq	%rdi, %rax
	addq	$4, %rax
	cmpq	%rdx, %rax
	jb	LBB0_6
## %bb.5:
	testb	%r9b, %r9b
	jne	LBB0_6
## %bb.8:
	leaq	(%rdi,%r11,8), %rax
	cmpq	%r10, %rax
	jbe	LBB0_10
## %bb.9:
	leaq	(%r10,%r11,4), %rax
	cmpq	%rdi, %rax
	jbe	LBB0_10
LBB0_6:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rax,2), %ecx
	movl	%ecx, %edx
	andl	$1431655765, %edx               ## imm = 0x55555555
	leal	(%rdx,%rdx,2), %edx
	movl	%eax, %esi
	movl	%edx, (%rdi,%rsi,4)
	andl	$-1431655766, %ecx              ## imm = 0xAAAAAAAA
	movl	%ecx, %edx
	sarl	%edx
	orl	%ecx, %edx
	leal	1(%rax), %ecx
	movl	%edx, (%rdi,%rcx,4)
	leal	2(%rax), %ecx
	movl	4(%r10,%rax,2), %edx
	movl	%edx, %esi
	andl	$1431655765, %esi               ## imm = 0x55555555
	leal	(%rsi,%rsi,2), %esi
	movl	%esi, (%rdi,%rcx,4)
	andl	$-1431655766, %edx              ## imm = 0xAAAAAAAA
	movl	%edx, %ecx
	sarl	%ecx
	orl	%edx, %ecx
	leal	3(%rax), %edx
	movl	%ecx, (%rdi,%rdx,4)
	addq	$4, %rax
	addq	$-2, %r11
	jne	LBB0_7
	jmp	LBB0_12
LBB0_10:
	movl	$5, %eax
	xorl	%edx, %edx
	movdqa	LCPI0_0(%rip), %xmm8            ## xmm8 = <1431655765,1431655765,u,u>
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = <3,3,u,u>
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = <2863311530,2863311530,u,u>
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r10,%rdx,4), %xmm3            ## xmm3 = mem[0],zero
	movq	8(%r10,%rdx,4), %xmm0           ## xmm0 = mem[0],zero
	movdqa	%xmm3, %xmm5
	pand	%xmm8, %xmm5
	movdqa	%xmm0, %xmm6
	pand	%xmm8, %xmm6
	pmulld	%xmm1, %xmm5
	pmulld	%xmm1, %xmm6
	pand	%xmm2, %xmm3
	pand	%xmm2, %xmm0
	movdqa	%xmm3, %xmm7
	psrad	$1, %xmm7
	movdqa	%xmm0, %xmm4
	psrad	$1, %xmm4
	por	%xmm3, %xmm7
	punpckldq	%xmm7, %xmm5            ## xmm5 = xmm5[0],xmm7[0],xmm5[1],xmm7[1]
	por	%xmm0, %xmm4
	punpckldq	%xmm4, %xmm6            ## xmm6 = xmm6[0],xmm4[0],xmm6[1],xmm4[1]
	leal	-4(%rax), %r8d
	movl	%eax, %ecx
	movdqu	%xmm5, -4(%rdi,%r8,4)
	movdqu	%xmm6, -4(%rdi,%rcx,4)
	addq	$4, %rdx
	addl	$8, %eax
	cmpq	%rdx, %r11
	jne	LBB0_11
LBB0_12:
	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
	.globl	_br_aes_ct_skey_expand          ; -- Begin function br_aes_ct_skey_expand
	.p2align	2
_br_aes_ct_skey_expand:                 ; @br_aes_ct_skey_expand
	.cfi_startproc
; %bb.0:
	lsl	w8, w1, #2
	adds	w8, w8, #4
	b.eq	LBB0_5
; %bb.1:
	cmp	w8, #16
	b.hs	LBB0_6
LBB0_2:
	mov	x10, #0
	mov	w9, #0
LBB0_3:
	add	x11, x2, x10, lsl #2
	sub	x8, x8, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x11], #4
	and	w12, w10, #0x55555555
	orr	w12, w12, w12, lsl #1
	str	w12, [x0, w9, uxtw #2]
	and	w10, w10, #0xaaaaaaaa
	orr	w10, w10, w10, asr #1
	add	w12, w9, #1
	str	w10, [x0, w12, uxtw #2]
	add	w9, w9, #2
	subs	x8, x8, #1
	b.ne	LBB0_4
LBB0_5:
	ret
LBB0_6:
	mov	w9, #0
	mov	x10, #0
	sub	x13, x8, #1
	cmp	xzr, x13, lsr #61
	cset	w11, ne
	lsl	x12, x13, #3
	add	x14, x0, x12
	lsr	x13, x13, #32
	cmp	x13, #0
	ccmp	x14, x0, #0, eq
	b.lo	LBB0_3
; %bb.7:
	tbnz	w11, #0, LBB0_3
; %bb.8:
	add	x13, x0, #4
	add	x12, x13, x12
	cmp	x12, x13
	b.lo	LBB0_3
; %bb.9:
	tbnz	w11, #0, LBB0_3
; %bb.10:
	add	x9, x0, x8, lsl #3
	cmp	x9, x2
	b.ls	LBB0_12
; %bb.11:
	add	x9, x2, x8, lsl #2
	cmp	x9, x0
	b.hi	LBB0_2
LBB0_12:
	and	x10, x8, #0xfffffff0
	lsl	w9, w10, #1
	sub	x11, x0, #4
	add	x12, x2, #32
	mov	w13, #25
	movi.16b	v0, #85
	movi.4s	v1, #3
	movi.16b	v2, #170
	mov	x14, x10
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldp	q3, q4, [x12, #-32]
	and.16b	v5, v3, v0
	and.16b	v6, v4, v0
	ldp	q7, q16, [x12], #64
	and.16b	v17, v7, v0
	and.16b	v18, v16, v0
	mul.4s	v19, v5, v1
	and.16b	v3, v3, v2
	sshr.4s	v5, v3, #1
	orr.16b	v20, v5, v3
	mul.4s	v5, v6, v1
	and.16b	v3, v4, v2
	sshr.4s	v4, v3, #1
	orr.16b	v6, v4, v3
	mul.4s	v3, v17, v1
	and.16b	v7, v7, v2
	sshr.4s	v17, v7, #1
	orr.16b	v4, v17, v7
	mul.4s	v17, v18, v1
	and.16b	v7, v16, v2
	sshr.4s	v16, v7, #1
	sub	w15, w13, #24
	add	x15, x11, w15, uxtw #2
	st2.4s	{ v19, v20 }, [x15]
	sub	w15, w13, #16
	add	x15, x11, w15, uxtw #2
	st2.4s	{ v5, v6 }, [x15]
	sub	w15, w13, #8
	add	x15, x11, w15, uxtw #2
	st2.4s	{ v3, v4 }, [x15]
	orr.16b	v18, v16, v7
	add	x15, x11, w13, uxtw #2
	st2.4s	{ v17, v18 }, [x15]
	add	w13, w13, #32
	subs	x14, x14, #16
	b.ne	LBB0_13
; %bb.14:
	cmp	x10, x8
	b.ne	LBB0_3
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
