	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_aes_expand_key          ## -- Begin function crypto_aes_expand_key
	.p2align	4, 0x90
_crypto_aes_expand_key:                 ## @crypto_aes_expand_key
	.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
	movl	%edx, %ebx
	leal	-131(%rbx), %eax
	cmpl	$-4, %eax
	ja	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_2:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	%ebx, (%rdi)
	movl	(%rsi), %edi
	callq	_le32_to_cpu
	movq	16(%r14), %rcx
	movl	%eax, (%rcx)
	movq	8(%r14), %rcx
	movl	%ebx, %r13d
	leaq	24(%r13), %r12
	movl	%eax, 96(%rcx,%r13,4)
	movl	4(%r15), %edi
	callq	_le32_to_cpu
	movq	16(%r14), %rcx
	movl	%eax, 4(%rcx)
	movq	8(%r14), %rcx
	leaq	25(%r13), %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, 100(%rcx,%r13,4)
	movl	8(%r15), %edi
	callq	_le32_to_cpu
	movq	16(%r14), %rcx
	movl	%eax, 8(%rcx)
	movq	8(%r14), %rcx
	leaq	26(%r13), %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, 104(%rcx,%r13,4)
	movl	12(%r15), %edi
	callq	_le32_to_cpu
	movq	16(%r14), %rcx
	movl	%eax, 12(%rcx)
	movq	8(%r14), %rcx
	movl	%eax, 108(%rcx,%r13,4)
	addq	$27, %r13
	cmpl	$128, %ebx
	je	LBB0_7
## %bb.3:
	cmpl	$129, %ebx
	je	LBB0_6
## %bb.4:
	cmpl	$130, %ebx
	jne	LBB0_8
## %bb.5:
	xorl	%edi, %edi
	callq	_loop4
	movl	$1, %edi
	callq	_loop4
	movl	$2, %edi
	callq	_loop4
	movl	$3, %edi
	callq	_loop4
	movl	$4, %edi
	callq	_loop4
	movl	$5, %edi
	callq	_loop4
	movl	$6, %edi
	callq	_loop4
	movl	$7, %edi
	callq	_loop4
	movl	$8, %edi
	callq	_loop4
	movl	$9, %edi
	callq	_loop4
	jmp	LBB0_8
LBB0_7:
	movl	16(%r15), %edi
	callq	_le32_to_cpu
	movq	16(%r14), %rcx
	movl	%eax, 16(%rcx)
	movl	20(%r15), %edi
	callq	_le32_to_cpu
	movq	16(%r14), %rcx
	movl	%eax, 20(%rcx)
	movl	24(%r15), %edi
	callq	_le32_to_cpu
	movq	16(%r14), %rcx
	movl	%eax, 24(%rcx)
	movl	28(%r15), %edi
	callq	_le32_to_cpu
	movq	16(%r14), %rcx
	movl	%eax, 28(%rcx)
	xorl	%edi, %edi
	callq	_loop8
	movl	$1, %edi
	callq	_loop8
	movl	$2, %edi
	callq	_loop8
	movl	$3, %edi
	callq	_loop8
	movl	$4, %edi
	callq	_loop8
	movl	$5, %edi
	callq	_loop8
	movl	$6, %edi
	callq	_loop8tophalf
	jmp	LBB0_8
LBB0_6:
	movl	16(%r15), %edi
	callq	_le32_to_cpu
	movq	16(%r14), %rcx
	movl	%eax, 16(%rcx)
	movl	20(%r15), %edi
	callq	_le32_to_cpu
	movq	16(%r14), %rcx
	movl	%eax, 20(%rcx)
	xorl	%edi, %edi
	callq	_loop6
	movl	$1, %edi
	callq	_loop6
	movl	$2, %edi
	callq	_loop6
	movl	$3, %edi
	callq	_loop6
	movl	$4, %edi
	callq	_loop6
	movl	$5, %edi
	callq	_loop6
	movl	$6, %edi
	callq	_loop6
	movl	$7, %edi
	callq	_loop6
LBB0_8:
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movl	(%rcx,%r12,4), %edx
	movl	%edx, (%rax)
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rcx,%rdx,4), %edx
	movl	%edx, 4(%rax)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rcx,%rdx,4), %edx
	movl	%edx, 8(%rax)
	movl	(%rcx,%r13,4), %edx
	movl	%edx, 12(%rax)
	addl	$20, %ebx
	movslq	%ebx, %rdx
	movl	(%rax,%rdx,4), %edi
	movl	16(%rcx), %esi
	callq	_imix_col
	movl	$5, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movl	%ebx, %edx
	andl	$2147483644, %edx               ## imm = 0x7FFFFFFC
	movl	%r12d, %esi
	subl	%edx, %esi
	movl	%ebx, %edx
	andl	$3, %edx
	addl	%esi, %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %edi
	movl	(%rcx,%rbx,4), %esi
	callq	_imix_col
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_9
## %bb.10:
	xorl	%eax, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crypto_aes_expand_key          ; -- Begin function crypto_aes_expand_key
	.p2align	2
_crypto_aes_expand_key:                 ; @crypto_aes_expand_key
	.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
	sub	w8, w2, #131
	cmn	w8, #4
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_2:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	str	w2, [x0]
	ldr	w0, [x1]
	bl	_le32_to_cpu
	ldp	x9, x8, [x19, #8]
	str	w0, [x8]
	add	w22, w20, #24
	str	w0, [x9, w22, uxtw #2]
	ldr	w0, [x21, #4]
	bl	_le32_to_cpu
	ldp	x9, x8, [x19, #8]
	str	w0, [x8, #4]
	add	w23, w20, #25
	str	w0, [x9, w23, uxtw #2]
	ldr	w0, [x21, #8]
	bl	_le32_to_cpu
	ldp	x9, x8, [x19, #8]
	str	w0, [x8, #8]
	add	w24, w20, #26
	str	w0, [x9, w24, uxtw #2]
	ldr	w0, [x21, #12]
	bl	_le32_to_cpu
	ldp	x9, x8, [x19, #8]
	str	w0, [x8, #12]
	add	w25, w20, #27
	str	w0, [x9, w25, uxtw #2]
	cmp	w20, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w20, #129
	b.eq	LBB0_7
; %bb.4:
	cmp	w20, #130
	b.ne	LBB0_8
; %bb.5:
	mov	w0, #0
	bl	_loop4
	mov	w0, #1
	bl	_loop4
	mov	w0, #2
	bl	_loop4
	mov	w0, #3
	bl	_loop4
	mov	w0, #4
	bl	_loop4
	mov	w0, #5
	bl	_loop4
	mov	w0, #6
	bl	_loop4
	mov	w0, #7
	bl	_loop4
	mov	w0, #8
	bl	_loop4
	mov	w0, #9
	bl	_loop4
	b	LBB0_8
LBB0_6:
	ldr	w0, [x21, #16]
	bl	_le32_to_cpu
	ldr	x8, [x19, #16]
	str	w0, [x8, #16]
	ldr	w0, [x21, #20]
	bl	_le32_to_cpu
	ldr	x8, [x19, #16]
	str	w0, [x8, #20]
	ldr	w0, [x21, #24]
	bl	_le32_to_cpu
	ldr	x8, [x19, #16]
	str	w0, [x8, #24]
	ldr	w0, [x21, #28]
	bl	_le32_to_cpu
	ldr	x8, [x19, #16]
	str	w0, [x8, #28]
	mov	w0, #0
	bl	_loop8
	mov	w0, #1
	bl	_loop8
	mov	w0, #2
	bl	_loop8
	mov	w0, #3
	bl	_loop8
	mov	w0, #4
	bl	_loop8
	mov	w0, #5
	bl	_loop8
	mov	w0, #6
	bl	_loop8tophalf
	b	LBB0_8
LBB0_7:
	ldr	w0, [x21, #16]
	bl	_le32_to_cpu
	ldr	x8, [x19, #16]
	str	w0, [x8, #16]
	ldr	w0, [x21, #20]
	bl	_le32_to_cpu
	ldr	x8, [x19, #16]
	str	w0, [x8, #20]
	mov	w0, #0
	bl	_loop6
	mov	w0, #1
	bl	_loop6
	mov	w0, #2
	bl	_loop6
	mov	w0, #3
	bl	_loop6
	mov	w0, #4
	bl	_loop6
	mov	w0, #5
	bl	_loop6
	mov	w0, #6
	bl	_loop6
	mov	w0, #7
	bl	_loop6
LBB0_8:
	ldp	x9, x8, [x19, #8]
	ldr	w10, [x8, x22, lsl #2]
	str	w10, [x9]
	ldr	w10, [x8, x23, lsl #2]
	str	w10, [x9, #4]
	ldr	w10, [x8, x24, lsl #2]
	str	w10, [x9, #8]
	ldr	w10, [x8, x25, lsl #2]
	str	w10, [x9, #12]
	add	w10, w20, #20
	ldr	w0, [x9, w10, sxtw #2]
	ldr	w1, [x8, #16]
	bl	_imix_col
	mov	w20, #5
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x8, x9, [x19, #8]
	and	w10, w20, #0x7ffffffc
	and	w11, w20, #0x3
	sub	w10, w22, w10
	add	w10, w10, w11
	ldr	w0, [x8, w10, sxtw #2]
	ldr	w1, [x9, x20, lsl #2]
	bl	_imix_col
	add	x20, x20, #1
	cmp	x22, x20
	b.ne	LBB0_9
; %bb.10:
	mov	w0, #0
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
