	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vk_aes_set_encrypt_key         ## -- Begin function vk_aes_set_encrypt_key
	.p2align	4, 0x90
_vk_aes_set_encrypt_key:                ## @vk_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_aesni256_is_supported
	cmpl	$256, %r15d                     ## imm = 0x100
	jne	LBB0_3
## %bb.1:
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	16(%rbx), %rdi
	movq	%r14, %rsi
	callq	_aesni256_set_encrypt_key
	movq	_vk_aesni_ctr_crypt@GOTPCREL(%rip), %rax
	movq	_vk_aesni_ige_encrypt@GOTPCREL(%rip), %rcx
	movq	_vk_aesni_cbc_encrypt@GOTPCREL(%rip), %rdx
	jmp	LBB0_4
LBB0_3:
	leaq	12(%rbx), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_AES_set_encrypt_key
	movq	_vk_ssl_aes_ctr_crypt@GOTPCREL(%rip), %rax
	movq	_vk_ssl_aes_ige_encrypt@GOTPCREL(%rip), %rcx
	movq	_vk_ssl_aes_cbc_encrypt@GOTPCREL(%rip), %rdx
LBB0_4:
	movl	(%rax), %eax
	movl	(%rcx), %ecx
	movl	(%rdx), %edx
	movl	%edx, 8(%rbx)
	movl	%ecx, 4(%rbx)
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vk_aesni_cbc_encrypt,4,2       ## @vk_aesni_cbc_encrypt
	.comm	_vk_aesni_ige_encrypt,4,2       ## @vk_aesni_ige_encrypt
	.comm	_vk_aesni_ctr_crypt,4,2         ## @vk_aesni_ctr_crypt
	.comm	_vk_ssl_aes_cbc_encrypt,4,2     ## @vk_ssl_aes_cbc_encrypt
	.comm	_vk_ssl_aes_ige_encrypt,4,2     ## @vk_ssl_aes_ige_encrypt
	.comm	_vk_ssl_aes_ctr_crypt,4,2       ## @vk_ssl_aes_ctr_crypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vk_aes_set_encrypt_key         ; -- Begin function vk_aes_set_encrypt_key
	.p2align	2
_vk_aes_set_encrypt_key:                ; @vk_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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_aesni256_is_supported
	cmp	w21, #256
	b.ne	LBB0_3
; %bb.1:
	cbz	x0, LBB0_3
; %bb.2:
	add	x0, x19, #16
	mov	x1, x20
	bl	_aesni256_set_encrypt_key
Lloh0:
	adrp	x8, _vk_aesni_ctr_crypt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vk_aesni_ctr_crypt@GOTPAGEOFF]
Lloh2:
	adrp	x9, _vk_aesni_ige_encrypt@GOTPAGE
Lloh3:
	ldr	x9, [x9, _vk_aesni_ige_encrypt@GOTPAGEOFF]
Lloh4:
	adrp	x10, _vk_aesni_cbc_encrypt@GOTPAGE
Lloh5:
	ldr	x10, [x10, _vk_aesni_cbc_encrypt@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	add	x2, x19, #12
	mov	x0, x20
	mov	x1, x21
	bl	_AES_set_encrypt_key
Lloh6:
	adrp	x8, _vk_ssl_aes_ctr_crypt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _vk_ssl_aes_ctr_crypt@GOTPAGEOFF]
Lloh8:
	adrp	x9, _vk_ssl_aes_ige_encrypt@GOTPAGE
Lloh9:
	ldr	x9, [x9, _vk_ssl_aes_ige_encrypt@GOTPAGEOFF]
Lloh10:
	adrp	x10, _vk_ssl_aes_cbc_encrypt@GOTPAGE
Lloh11:
	ldr	x10, [x10, _vk_ssl_aes_cbc_encrypt@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	ldr	w9, [x9]
	ldr	w10, [x10]
	stp	w9, w10, [x19, #4]
	str	w8, [x19]
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_vk_aesni_cbc_encrypt,4,2       ; @vk_aesni_cbc_encrypt
	.comm	_vk_aesni_ige_encrypt,4,2       ; @vk_aesni_ige_encrypt
	.comm	_vk_aesni_ctr_crypt,4,2         ; @vk_aesni_ctr_crypt
	.comm	_vk_ssl_aes_cbc_encrypt,4,2     ; @vk_ssl_aes_cbc_encrypt
	.comm	_vk_ssl_aes_ige_encrypt,4,2     ; @vk_ssl_aes_ige_encrypt
	.comm	_vk_ssl_aes_ctr_crypt,4,2       ; @vk_ssl_aes_ctr_crypt
.subsections_via_symbols
