	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aes_schedule
_aes_schedule:                          ## @aes_schedule
	.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	$40, %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	_AES_BLOCKSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rax
	movq	%rdx, %rcx
	shrq	$2, %rcx
	movslq	(%rdi), %rsi
	incq	%rsi
	imulq	%rax, %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r14
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	cmpq	$4, %rdx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	jae	LBB0_6
## %bb.1:
	xorl	%r12d, %r12d
	jmp	LBB0_2
LBB0_6:
	cmpq	$2, %rcx
	movl	$1, %r12d
	cmovaeq	%rcx, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_read32_be
	movq	%rax, (%r14,%rbx,8)
	incq	%rbx
	addq	$16, %r15
	cmpq	%rbx, %r12
	jne	LBB0_7
LBB0_2:
	cmpq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jae	LBB0_12
## %bb.3:
	leaq	(,%r15,8), %rax
	movq	%r14, %rcx
	subq	%rax, %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rdi
	callq	_rot_word
	movq	_S@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_sub_word
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_round_constant
	xorq	%r15, %rax
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	xorq	(%rcx,%r12,8), %rax
	movq	%rax, (%r14,%r12,8)
	incq	%r12
	incq	%r13
	cmpq	%r12, -56(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rcx
	movq	%r13, %rdx
	movq	-8(%r14,%r12,8), %rax
	xorl	%ebx, %ebx
	cmpq	%r15, %r13
	sete	%bl
	movl	$0, %r13d
	cmovneq	%rdx, %r13
	addq	%rcx, %rbx
	testq	%r13, %r13
	je	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$28, -64(%rbp)                  ## 8-byte Folded Reload
	jb	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$4, %r13
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_S@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_sub_word
	jmp	LBB0_11
LBB0_12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCKSZ,4,2                ## @AES_BLOCKSZ
	.comm	_S,4,2                          ## @S
	.no_dead_strip	_aes_schedule
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aes_schedule
_aes_schedule:                          ; @aes_schedule
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x2
Lloh0:
	adrp	x8, _AES_BLOCKSZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AES_BLOCKSZ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	sbfx	x8, x8, #2, #30
	lsr	x22, x2, #2
	ldrsw	x9, [x0]
	madd	x23, x8, x9, x8
	ldr	x21, [x0, #8]
	cmp	x2, #4
	b.hs	LBB0_2
; %bb.1:
	mov	x25, #0
	b	LBB0_4
LBB0_2:
	mov	x20, x1
	cmp	x22, #1
	csinc	x25, x22, xzr, hi
	mov	x24, x21
	mov	x26, x25
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_read32_be
	str	x0, [x24], #8
	add	x20, x20, #16
	subs	x26, x26, #1
	b.ne	LBB0_3
LBB0_4:
	cmp	x25, x23
	b.hs	LBB0_12
; %bb.5:
	mov	x8, #0
	sub	x23, x23, x25
	mov	w20, #1
Lloh3:
	adrp	x24, _S@GOTPAGE
Lloh4:
	ldr	x24, [x24, _S@GOTPAGEOFF]
	add	x25, x21, x25, lsl #3
	neg	x26, x22, lsl #3
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	bl	_rot_word
	ldr	w1, [x24]
	bl	_sub_word
	mov	x21, x0
	mov	x0, x20
	bl	_round_constant
	eor	x0, x0, x21
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x25, x26]
	eor	x8, x8, x0
	str	x8, [x25], #8
	add	x8, x27, #1
	subs	x23, x23, #1
	b.eq	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x0, [x25, #-8]
	cmp	x8, x22
	csel	x27, xzr, x8, eq
	cinc	x20, x20, eq
	cbz	x27, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	x19, #28
	b.lo	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	x27, #4
	b.ne	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x24]
	bl	_sub_word
	b	LBB0_7
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCKSZ,4,2                ; @AES_BLOCKSZ
	.comm	_S,4,2                          ; @S
	.no_dead_strip	_aes_schedule
.subsections_via_symbols
