	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_aes_keysched                ## -- Begin function br_aes_keysched
	.p2align	4, 0x90
_br_aes_keysched:                       ## @br_aes_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	cmpq	$16, %rdx
	je	LBB0_1
## %bb.2:
	cmpq	$32, %rdx
	je	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	cmpq	$24, %rdx
	jne	LBB0_18
## %bb.4:
	movl	$12, %eax
	jmp	LBB0_6
LBB0_1:
	movl	$10, %eax
	jmp	LBB0_6
LBB0_5:
	movl	$14, %eax
LBB0_6:
	shrq	$2, %rdx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leal	(,%rax,4), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %r14d
	orl	$4, %r14d
	xorl	%ebx, %ebx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rdi
	addq	%r15, %rdi
	callq	_br_dec32be
	movl	%eax, (%r12,%rbx)
	addq	$4, %rbx
	decq	%r13
	jne	LBB0_7
## %bb.8:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	%ecx, %r14d
	jle	LBB0_17
## %bb.9:
	movslq	%ecx, %rax
	leaq	(%r12,%rax,4), %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	subl	%ecx, %eax
	addl	$4, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %ecx
	shll	$8, %ecx
	sarl	$24, %eax
	orl	%ecx, %eax
	movl	%eax, %edi
	callq	_SubWord
	movq	_Rcon@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%r13d, %edx
	xorl	(%rcx,%rdx,4), %eax
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_10 Depth=1
	xorl	(%r12,%r15,4), %eax
	movl	%eax, (%rbx,%r15,4)
	incl	%r14d
	xorl	%eax, %eax
	cmpl	%ecx, %r14d
	movl	$0, %edx
	cmovel	%edx, %r14d
	sete	%al
	addl	%eax, %r13d
	incq	%r15
	cmpl	%r15d, -56(%rbp)                ## 4-byte Folded Reload
	je	LBB0_17
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%rbx,%r15,4), %eax
	testl	%r14d, %r14d
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$7, %ecx
	jl	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$4, %r14d
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %edi
	callq	_SubWord
	jmp	LBB0_15
LBB0_17:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
LBB0_18:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_keysched                ; -- Begin function br_aes_keysched
	.p2align	2
_br_aes_keysched:                       ; @br_aes_keysched
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	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	w20, #12
	b	LBB0_6
LBB0_4:
	mov	w20, #10
	b	LBB0_6
LBB0_5:
	mov	w20, #14
LBB0_6:
	mov	x23, #0
	lsr	x22, x2, #2
	lsl	w25, w20, #2
	orr	w24, w25, #0x4
	mov	x26, x22
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x21, w23, sxtw
	bl	_br_dec32be
	str	w0, [x19, x23]
	add	x23, x23, #4
	subs	x26, x26, #1
	b.ne	LBB0_7
; %bb.8:
	cmp	w24, w22
	b.le	LBB0_17
; %bb.9:
	mov	w21, #0
	mov	w23, #0
	sxtw	x8, w22
	lsl	x24, x8, #2
	sub	w8, w22, w25
	sub	w25, w8, #4
Lloh0:
	adrp	x26, _Rcon@GOTPAGE
Lloh1:
	ldr	x26, [x26, _Rcon@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	lsl	w8, w0, #8
	orr	w0, w8, w0, asr #24
	bl	_SubWord
	ldr	x8, [x26]
	ldr	w8, [x8, w21, uxtw #2]
	eor	w0, w8, w0
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x19]
	eor	w8, w8, w0
	str	w8, [x19, x24]
	add	w8, w23, #1
	cmp	w8, w22
	csinc	w23, wzr, w23, eq
	cinc	w21, w21, eq
	add	x19, x19, #4
	adds	w25, w25, #1
	b.hs	LBB0_17
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x19, x24
	ldur	w0, [x8, #-4]
	cbz	w23, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w22, #7
	b.lt	LBB0_11
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	cmp	w23, #4
	b.ne	LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_SubWord
	b	LBB0_11
LBB0_16:
	mov	w20, #0
LBB0_17:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_Rcon,8,3                       ; @Rcon
.subsections_via_symbols
