	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AES_set_encrypt_key            ## -- Begin function AES_set_encrypt_key
	.p2align	4, 0x90
_AES_set_encrypt_key:                   ## @AES_set_encrypt_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %eax
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.2:
	movl	%esi, %r14d
	movq	%rdi, %r15
	cmpl	$128, %esi
	je	LBB0_5
## %bb.3:
	cmpl	$256, %r14d                     ## imm = 0x100
	je	LBB0_5
## %bb.4:
	movl	$-2, %eax
	cmpl	$192, %r14d
	jne	LBB0_13
LBB0_5:
	movq	(%rdx), %r12
	cmpl	$128, %r14d
	jne	LBB0_7
## %bb.6:
	movl	$10, 8(%rdx)
	jmp	LBB0_10
LBB0_7:
	cmpl	$192, %r14d
	jne	LBB0_9
## %bb.8:
	movl	$12, 8(%rdx)
	jmp	LBB0_10
LBB0_9:
	movl	$14, 8(%rdx)
LBB0_10:
	movq	%r15, %rdi
	callq	_GETU32
	movl	%eax, (%r12)
	leaq	4(%r15), %rdi
	callq	_GETU32
	movl	%eax, 4(%r12)
	leaq	8(%r15), %rdi
	callq	_GETU32
	movl	%eax, 8(%r12)
	leaq	12(%r15), %rdi
	callq	_GETU32
	movl	%eax, 12(%r12)
	cmpl	$128, %r14d
	jne	LBB0_14
## %bb.11:
	movl	%eax, %ebx
	movq	_Te2@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_Te3@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_Te0@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_Te1@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movq	_rcon@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	(%r12), %edx
	xorl	%eax, %eax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %ecx
	shrl	$16, %ecx
	movzbl	%cl, %ecx
	movzbl	3(%r8,%rcx,4), %ecx
	shll	$24, %ecx
	movzbl	%bh, %esi
	movzbl	2(%r9,%rsi,4), %esi
	shll	$16, %esi
	xorl	%edx, %esi
	xorl	%ecx, %esi
	movzbl	%bl, %ecx
	movzbl	1(%r10,%rcx,4), %ecx
	shll	$8, %ecx
	movl	%ebx, %edx
	sarl	$24, %edx
	movslq	%edx, %rdx
	movzbl	(%r11,%rdx,4), %edx
	xorl	%ecx, %edx
	xorl	%esi, %edx
	xorl	(%r14,%rdi), %edx
	movl	%edx, 16(%r12,%rdi,4)
	movl	4(%r12,%rdi,4), %ecx
	xorl	%edx, %ecx
	movl	%ecx, 20(%r12,%rdi,4)
	xorl	8(%r12,%rdi,4), %ecx
	movl	%ecx, 24(%r12,%rdi,4)
	xorl	%ecx, %ebx
	movl	%ebx, 28(%r12,%rdi,4)
	addq	$4, %rdi
	cmpq	$40, %rdi
	jne	LBB0_12
	jmp	LBB0_13
LBB0_14:
	leaq	16(%r15), %rdi
	callq	_GETU32
	movl	%eax, 16(%r12)
	leaq	20(%r15), %rdi
	callq	_GETU32
	movl	%eax, 20(%r12)
	cmpl	$192, %r14d
	jne	LBB0_18
## %bb.15:
	movl	%eax, %ecx
	movq	_Te2@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_Te3@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_Te0@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_Te1@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movq	_rcon@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	(%r12), %edx
	addq	$44, %r12
	xorl	%eax, %eax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %esi
	shrl	$16, %esi
	movzbl	%sil, %esi
	movzbl	3(%r8,%rsi,4), %esi
	shll	$24, %esi
	movzbl	%ch, %ebx
	movzbl	2(%r9,%rbx,4), %ebx
	shll	$16, %ebx
	xorl	%edx, %ebx
	xorl	%esi, %ebx
	movzbl	%cl, %edx
	movzbl	1(%r10,%rdx,4), %esi
	shll	$8, %esi
	movl	%ecx, %edx
	sarl	$24, %edx
	movslq	%edx, %rdx
	movzbl	(%r11,%rdx,4), %edx
	xorl	%esi, %edx
	xorl	%ebx, %edx
	xorl	(%r14,%rdi,4), %edx
	movl	%edx, -20(%r12)
	movl	-40(%r12), %esi
	xorl	%edx, %esi
	movl	%esi, -16(%r12)
	xorl	-36(%r12), %esi
	movl	%esi, -12(%r12)
	xorl	-32(%r12), %esi
	movl	%esi, -8(%r12)
	cmpq	$7, %rdi
	je	LBB0_13
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	xorl	-28(%r12), %esi
	movl	%esi, -4(%r12)
	xorl	%esi, %ecx
	movl	%ecx, (%r12)
	addq	$24, %r12
	incq	%rdi
	jmp	LBB0_16
LBB0_18:
	leaq	24(%r15), %rdi
	callq	_GETU32
	movl	%eax, 24(%r12)
	addq	$28, %r15
	movq	%r15, %rdi
	callq	_GETU32
	movl	%eax, %ecx
	movl	%eax, 28(%r12)
	xorl	%eax, %eax
	cmpl	$256, %r14d                     ## imm = 0x100
	jne	LBB0_13
## %bb.19:
	movq	_Te2@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_Te3@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_Te0@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	movq	_Te1@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_rcon@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movl	(%r12), %edi
	xorl	%eax, %eax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %edx
	shrl	$16, %edx
	movzbl	%dl, %edx
	movzbl	3(%r8,%rdx,4), %edx
	shll	$24, %edx
	movzbl	%ch, %ebx
	movzbl	2(%r10,%rbx,4), %ebx
	shll	$16, %ebx
	xorl	%edi, %ebx
	xorl	%edx, %ebx
	movzbl	%cl, %edx
	movzbl	1(%r11,%rdx,4), %edx
	shll	$8, %edx
	movl	%ecx, %r13d
	sarl	$24, %ecx
	movslq	%ecx, %rcx
	movzbl	(%r14,%rcx,4), %edi
	xorl	%edx, %edi
	xorl	%ebx, %edi
	xorl	(%r9,%rsi), %edi
	movl	%edi, 32(%r12,%rsi,8)
	movl	4(%r12,%rsi,8), %edx
	xorl	%edi, %edx
	movl	%edx, 36(%r12,%rsi,8)
	xorl	8(%r12,%rsi,8), %edx
	movl	%edx, 40(%r12,%rsi,8)
	xorl	12(%r12,%rsi,8), %edx
	movl	%edx, 44(%r12,%rsi,8)
	cmpq	$24, %rsi
	je	LBB0_13
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	%edx, %ecx
	sarl	$24, %ecx
	movslq	%ecx, %rcx
	movzbl	3(%r8,%rcx,4), %r15d
	shll	$24, %r15d
	xorl	16(%r12,%rsi,8), %r15d
	movl	%edx, %ebx
	shrl	$16, %ebx
	movzbl	%bl, %ebx
	movzbl	2(%r10,%rbx,4), %ebx
	shll	$16, %ebx
	movzbl	%dh, %ecx
	movzbl	1(%r11,%rcx,4), %ecx
	shll	$8, %ecx
	xorl	%ebx, %ecx
	movzbl	%dl, %edx
	movzbl	(%r14,%rdx,4), %edx
	xorl	%ecx, %edx
	xorl	%r15d, %edx
	movl	%edx, 48(%r12,%rsi,8)
	xorl	20(%r12,%rsi,8), %edx
	movl	%edx, 52(%r12,%rsi,8)
	xorl	24(%r12,%rsi,8), %edx
	movl	%edx, 56(%r12,%rsi,8)
	xorl	%edx, %r13d
	movl	%r13d, 60(%r12,%rsi,8)
	addq	$4, %rsi
	movl	%r13d, %ecx
	jmp	LBB0_20
LBB0_13:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Te2,8,3                        ## @Te2
	.comm	_Te3,8,3                        ## @Te3
	.comm	_Te0,8,3                        ## @Te0
	.comm	_Te1,8,3                        ## @Te1
	.comm	_rcon,8,3                       ## @rcon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AES_set_encrypt_key            ; -- Begin function AES_set_encrypt_key
	.p2align	2
_AES_set_encrypt_key:                   ; @AES_set_encrypt_key
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	mov	w0, #-1
	cbz	x20, LBB0_15
; %bb.1:
	cbz	x2, LBB0_15
; %bb.2:
	mov	x19, x1
	cmp	w1, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	w19, #256
	b.eq	LBB0_5
; %bb.4:
	cmp	w19, #192
	b.ne	LBB0_9
LBB0_5:
	ldr	x21, [x2]
	cmp	w19, #128
	b.ne	LBB0_7
; %bb.6:
	mov	w8, #10
	b	LBB0_11
LBB0_7:
	cmp	w19, #192
	b.ne	LBB0_10
; %bb.8:
	mov	w8, #12
	b	LBB0_11
LBB0_9:
	mov	w0, #-2
	b	LBB0_15
LBB0_10:
	mov	w8, #14
LBB0_11:
	str	w8, [x2, #8]
	mov	x0, x20
	bl	_GETU32
	str	w0, [x21]
	add	x0, x20, #4
	bl	_GETU32
	str	w0, [x21, #4]
	add	x0, x20, #8
	bl	_GETU32
	str	w0, [x21, #8]
	add	x0, x20, #12
	bl	_GETU32
	str	w0, [x21, #12]
	cmp	w19, #128
	b.ne	LBB0_16
; %bb.12:
	mov	x8, #0
Lloh0:
	adrp	x9, _Te2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _Te2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _Te3@GOTPAGE
Lloh4:
	ldr	x10, [x10, _Te3@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _Te0@GOTPAGE
Lloh7:
	ldr	x11, [x11, _Te0@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
Lloh9:
	adrp	x12, _Te1@GOTPAGE
Lloh10:
	ldr	x12, [x12, _Te1@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x12]
Lloh12:
	adrp	x13, _rcon@GOTPAGE
Lloh13:
	ldr	x13, [x13, _rcon@GOTPAGEOFF]
Lloh14:
	ldr	x13, [x13]
	ldr	w14, [x21], #16
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ubfx	w15, w0, #16, #8
	add	x15, x9, w15, uxtw #2
	ldrb	w15, [x15, #3]
	eor	w14, w14, w15, lsl #24
	ubfx	w15, w0, #8, #8
	add	x15, x10, w15, uxtw #2
	ldrb	w15, [x15, #2]
	eor	w14, w14, w15, lsl #16
	and	w15, w0, #0xff
	add	x15, x11, w15, uxtw #2
	ldrb	w15, [x15, #1]
	eor	w14, w14, w15, lsl #8
	asr	w15, w0, #24
	sbfiz	x15, x15, #2, #32
	ldrb	w15, [x12, x15]
	eor	w14, w14, w15
	ldr	w15, [x13, x8]
	eor	w14, w14, w15
	ldp	w15, w16, [x21, #-12]
	eor	w15, w15, w14
	stp	w14, w15, [x21]
	eor	w15, w16, w15
	eor	w0, w15, w0
	stp	w15, w0, [x21, #8]
	add	x8, x8, #4
	add	x21, x21, #16
	cmp	x8, #40
	b.ne	LBB0_13
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_16:
	add	x0, x20, #16
	bl	_GETU32
	str	w0, [x21, #16]
	add	x0, x20, #20
	bl	_GETU32
	str	w0, [x21, #20]
	cmp	w19, #192
	b.ne	LBB0_20
; %bb.17:
	mov	x8, #0
Lloh15:
	adrp	x9, _Te2@GOTPAGE
Lloh16:
	ldr	x9, [x9, _Te2@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
Lloh18:
	adrp	x10, _Te3@GOTPAGE
Lloh19:
	ldr	x10, [x10, _Te3@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
Lloh21:
	adrp	x11, _Te0@GOTPAGE
Lloh22:
	ldr	x11, [x11, _Te0@GOTPAGEOFF]
Lloh23:
	ldr	x11, [x11]
Lloh24:
	adrp	x12, _Te1@GOTPAGE
Lloh25:
	ldr	x12, [x12, _Te1@GOTPAGEOFF]
Lloh26:
	ldr	x12, [x12]
Lloh27:
	adrp	x13, _rcon@GOTPAGE
Lloh28:
	ldr	x13, [x13, _rcon@GOTPAGEOFF]
Lloh29:
	ldr	x13, [x13]
	ldr	w14, [x21], #24
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ubfx	w15, w0, #16, #8
	add	x15, x9, w15, uxtw #2
	ldrb	w15, [x15, #3]
	eor	w14, w14, w15, lsl #24
	ubfx	w15, w0, #8, #8
	add	x15, x10, w15, uxtw #2
	ldrb	w15, [x15, #2]
	eor	w14, w14, w15, lsl #16
	and	w15, w0, #0xff
	add	x15, x11, w15, uxtw #2
	ldrb	w15, [x15, #1]
	eor	w14, w14, w15, lsl #8
	asr	w15, w0, #24
	sbfiz	x15, x15, #2, #32
	ldrb	w15, [x12, x15]
	eor	w14, w14, w15
	ldr	w15, [x13, x8]
	eor	w14, w14, w15
	ldp	w15, w16, [x21, #-20]
	eor	w15, w15, w14
	stp	w14, w15, [x21]
	eor	w16, w16, w15
	ldur	w15, [x21, #-12]
	eor	w15, w15, w16
	stp	w16, w15, [x21, #8]
	cmp	x8, #28
	b.eq	LBB0_14
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldur	w16, [x21, #-8]
	eor	w15, w16, w15
	eor	w0, w15, w0
	stp	w15, w0, [x21, #16]
	add	x8, x8, #4
	add	x21, x21, #24
	b	LBB0_18
LBB0_20:
	add	x0, x20, #24
	bl	_GETU32
	str	w0, [x21, #24]
	add	x0, x20, #28
	bl	_GETU32
	str	w0, [x21, #28]
	cmp	w19, #256
	b.ne	LBB0_14
; %bb.21:
	mov	x8, #0
Lloh30:
	adrp	x9, _Te2@GOTPAGE
Lloh31:
	ldr	x9, [x9, _Te2@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
Lloh33:
	adrp	x10, _Te3@GOTPAGE
Lloh34:
	ldr	x10, [x10, _Te3@GOTPAGEOFF]
Lloh35:
	ldr	x10, [x10]
Lloh36:
	adrp	x11, _Te0@GOTPAGE
Lloh37:
	ldr	x11, [x11, _Te0@GOTPAGEOFF]
Lloh38:
	ldr	x11, [x11]
Lloh39:
	adrp	x12, _Te1@GOTPAGE
Lloh40:
	ldr	x12, [x12, _Te1@GOTPAGEOFF]
Lloh41:
	ldr	x12, [x12]
Lloh42:
	adrp	x13, _rcon@GOTPAGE
Lloh43:
	ldr	x13, [x13, _rcon@GOTPAGEOFF]
Lloh44:
	ldr	x13, [x13]
	ldr	w14, [x21], #32
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ubfx	w15, w0, #16, #8
	add	x15, x9, w15, uxtw #2
	ldrb	w15, [x15, #3]
	eor	w14, w14, w15, lsl #24
	ubfx	w15, w0, #8, #8
	add	x15, x10, w15, uxtw #2
	ldrb	w15, [x15, #2]
	eor	w14, w14, w15, lsl #16
	and	w15, w0, #0xff
	add	x15, x11, w15, uxtw #2
	ldrb	w15, [x15, #1]
	eor	w14, w14, w15, lsl #8
	asr	w15, w0, #24
	sbfiz	x15, x15, #2, #32
	ldrb	w15, [x12, x15]
	eor	w14, w14, w15
	ldr	w15, [x13, x8]
	eor	w14, w14, w15
	ldp	w15, w16, [x21, #-28]
	eor	w15, w15, w14
	stp	w14, w15, [x21]
	eor	w16, w16, w15
	ldur	w15, [x21, #-20]
	eor	w15, w15, w16
	stp	w16, w15, [x21, #8]
	cmp	x8, #24
	b.eq	LBB0_14
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	asr	w16, w15, #24
	add	x16, x9, w16, sxtw #2
	ldrb	w16, [x16, #3]
	ldp	w17, w1, [x21, #-16]
	eor	w16, w17, w16, lsl #24
	ubfx	w17, w15, #16, #8
	add	x17, x10, w17, uxtw #2
	ldrb	w17, [x17, #2]
	eor	w16, w16, w17, lsl #16
	ubfx	w17, w15, #8, #8
	add	x17, x11, w17, uxtw #2
	ldrb	w17, [x17, #1]
	and	w15, w15, #0xff
	lsl	x15, x15, #2
	ldrb	w15, [x12, x15]
	eor	w16, w16, w17, lsl #8
	eor	w15, w16, w15
	eor	w16, w1, w15
	stp	w15, w16, [x21, #16]
	ldur	w15, [x21, #-8]
	eor	w15, w15, w16
	eor	w0, w15, w0
	stp	w15, w0, [x21, #24]
	add	x8, x8, #4
	add	x21, x21, #32
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_Te2,8,3                        ; @Te2
	.comm	_Te3,8,3                        ; @Te3
	.comm	_Te0,8,3                        ; @Te0
	.comm	_Te1,8,3                        ; @Te1
	.comm	_rcon,8,3                       ; @rcon
.subsections_via_symbols
