	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_aes_ct64_keysched           ## -- Begin function br_aes_ct64_keysched
	.p2align	4, 0x90
_br_aes_ct64_keysched:                  ## @br_aes_ct64_keysched
	.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
	subq	$328, %rsp                      ## imm = 0x148
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rdx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpq	$16, %r15
	je	LBB0_1
## %bb.2:
	cmpq	$32, %r15
	je	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	cmpq	$24, %r15
	jne	LBB0_17
## %bb.4:
	movq	%rdi, -328(%rbp)                ## 8-byte Spill
	movl	$12, %eax
	jmp	LBB0_6
LBB0_1:
	movq	%rdi, -328(%rbp)                ## 8-byte Spill
	movl	$10, %eax
	jmp	LBB0_6
LBB0_5:
	movq	%rdi, -328(%rbp)                ## 8-byte Spill
	movl	$14, %eax
LBB0_6:
	shrq	$2, %r15
	movq	%rax, -352(%rbp)                ## 8-byte Spill
	leal	(,%rax,4), %eax
	movq	%rax, %r12
	movl	%eax, %r14d
	orl	$4, %r14d
	leaq	-288(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_br_range_dec32le
	movl	%r14d, -340(%rbp)               ## 4-byte Spill
	cmpl	%r15d, %r14d
	jle	LBB0_14
## %bb.7:
	movl	-292(%rbp,%r15,4), %eax
	leaq	-288(,%r15,4), %rcx
	addq	%rbp, %rcx
	movq	%rcx, -360(%rbp)                ## 8-byte Spill
	subl	%r15d, %r12d
	addl	$4, %r12d
	movq	%r12, -336(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %ecx
	shll	$24, %ecx
	sarl	$8, %eax
	orl	%ecx, %eax
	movl	%eax, %edi
	callq	_sub_word
	movq	_Rcon@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r14d, %edx
	xorl	(%rcx,%rdx,4), %eax
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	-288(%rbp,%r13,4), %eax
	movq	-360(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, (%rcx,%r13,4)
	incl	%r12d
	xorl	%ecx, %ecx
	cmpl	%r15d, %r12d
	movl	$0, %edx
	cmovel	%edx, %r12d
	sete	%cl
	addl	%ecx, %r14d
	incq	%r13
	cmpl	%r13d, -336(%rbp)               ## 4-byte Folded Reload
	je	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$7, %r15d
	jb	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$4, %r12d
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, %edi
	callq	_sub_word
	jmp	LBB0_13
LBB0_14:
	movl	-340(%rbp), %eax                ## 4-byte Reload
	movq	%rax, -336(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	movl	$-2004318072, %r15d             ## imm = 0x88888888
	movq	-328(%rbp), %r14                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	leaq	-320(%rbp), %r13
	movq	%r13, %rdi
	leaq	-304(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_br_aes_ct64_interleave_in
	movl	-320(%rbp), %eax
	movl	-304(%rbp), %ecx
	movl	%eax, -316(%rbp)
	movl	%eax, -312(%rbp)
	movl	%eax, -308(%rbp)
	movl	%ecx, -300(%rbp)
	movl	%ecx, -296(%rbp)
	movl	%ecx, -292(%rbp)
	movq	%r13, %rdi
	callq	_br_aes_ct64_ortho
	movl	-320(%rbp), %eax
	movl	$286331153, %edx                ## imm = 0x11111111
	andl	%edx, %eax
	movl	-316(%rbp), %ecx
	movl	$572662306, %esi                ## imm = 0x22222222
	andl	%esi, %ecx
	orl	%eax, %ecx
	movl	-312(%rbp), %eax
	movl	$1145324612, %edi               ## imm = 0x44444444
	andl	%edi, %eax
	orl	%ecx, %eax
	movl	-308(%rbp), %ecx
	andl	%r15d, %ecx
	orl	%eax, %ecx
	movl	%ecx, (%r14,%r12,2)
	movl	-304(%rbp), %eax
	andl	%edx, %eax
	movl	-300(%rbp), %ecx
	andl	%esi, %ecx
	orl	%eax, %ecx
	movl	-296(%rbp), %eax
	andl	%edi, %eax
	orl	%ecx, %eax
	movl	-292(%rbp), %ecx
	andl	%r15d, %ecx
	orl	%eax, %ecx
	movl	%ecx, 4(%r14,%r12,2)
	addq	$4, %r12
	addq	$16, %rbx
	cmpq	-336(%rbp), %r12                ## 8-byte Folded Reload
	jb	LBB0_15
## %bb.16:
	movq	-352(%rbp), %rax                ## 8-byte Reload
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$328, %rsp                      ## imm = 0x148
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_Rcon,8,3                       ## @Rcon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_aes_ct64_keysched           ; -- Begin function br_aes_ct64_keysched
	.p2align	2
_br_aes_ct64_keysched:                  ; @br_aes_ct64_keysched
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #384
	.cfi_def_cfa_offset 384
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #304]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #320]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #336]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #352]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #368]            ; 16-byte Folded Spill
	add	x29, sp, #368
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x8, x1
	mov	x20, x0
Lloh0:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	stur	x9, [x29, #-96]
	cmp	x2, #16
	b.eq	LBB0_4
; %bb.1:
	cmp	x2, #32
	b.eq	LBB0_5
; %bb.2:
	cmp	x2, #24
	b.ne	LBB0_16
; %bb.3:
	mov	w19, #12
	b	LBB0_6
LBB0_4:
	mov	w19, #10
	b	LBB0_6
LBB0_5:
	mov	w19, #14
LBB0_6:
	lsr	x21, x2, #2
	lsl	w26, w19, #2
	orr	w22, w26, #0x4
	add	x23, sp, #32
	add	x0, sp, #32
	mov	x1, x21
	mov	x2, x8
	bl	_br_range_dec32le
	cmp	w22, w21
	b.le	LBB0_14
; %bb.7:
	mov	w24, #0
	mov	w25, #0
	add	x8, x23, x21, lsl #2
	ldur	w0, [x8, #-4]
	sub	w8, w21, w26
	sub	w26, w8, #4
Lloh3:
	adrp	x27, _Rcon@GOTPAGE
Lloh4:
	ldr	x27, [x27, _Rcon@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	lsl	w8, w0, #24
	orr	w0, w8, w0, asr #8
	bl	_sub_word
	ldr	x8, [x27]
	ldr	w8, [x8, w24, uxtw #2]
	eor	w0, w8, w0
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x23]
	eor	w0, w8, w0
	str	w0, [x23, x21, lsl #2]
	add	w8, w25, #1
	cmp	w8, w21
	csinc	w25, wzr, w25, eq
	cinc	w24, w24, eq
	add	x23, x23, #4
	adds	w26, w26, #1
	b.hs	LBB0_14
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cbz	w25, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w21, #7
	b.lo	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w25, #4
	b.ne	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_sub_word
	b	LBB0_9
LBB0_14:
	mov	x23, #0
	mov	w24, #-2004318072
	mov	w25, #1145324612
	mov	w26, #572662306
	mov	w27, #286331153
	mov	x8, sp
	add	x21, x8, #16
	add	x28, x20, #4
	add	x20, sp, #32
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, sp
	mov	x1, x21
	mov	x2, x20
	bl	_br_aes_ct64_interleave_in
	ldr	w8, [sp]
	ldr	w9, [sp, #16]
	stp	w8, w8, [sp, #4]
	str	w8, [sp, #12]
	stp	w9, w9, [sp, #20]
	str	w9, [sp, #28]
	mov	x0, sp
	bl	_br_aes_ct64_ortho
	ldp	w8, w9, [sp]
	and	w8, w8, w27
	and	w9, w9, w26
	orr	w8, w9, w8
	ldp	w9, w10, [sp, #8]
	and	w9, w9, w25
	orr	w8, w8, w9
	and	w9, w10, w24
	orr	w8, w8, w9
	stur	w8, [x28, #-4]
	ldp	w8, w9, [sp, #16]
	and	w8, w8, w27
	and	w9, w9, w26
	orr	w8, w9, w8
	ldp	w9, w10, [sp, #24]
	and	w9, w9, w25
	orr	w8, w8, w9
	and	w9, w10, w24
	orr	w8, w8, w9
	str	w8, [x28], #8
	add	x23, x23, #4
	add	x20, x20, #16
	cmp	x23, x22
	b.lo	LBB0_15
	b	LBB0_17
LBB0_16:
	mov	w19, #0
LBB0_17:
	ldur	x8, [x29, #-96]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x19
	ldp	x29, x30, [sp, #368]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #352]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #336]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #320]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #384
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_Rcon,8,3                       ; @Rcon
.subsections_via_symbols
