	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cipher_hw_aes_initkey
_cipher_hw_aes_initkey:                 ## @cipher_hw_aes_initkey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	%rdi, 40(%rdi)
	movq	(%rdi), %rax
	movq	_EVP_CIPH_ECB_MODE@GOTPCREL(%rip), %rcx
	movq	_EVP_CIPH_CBC_MODE@GOTPCREL(%rip), %r14
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	cmpq	(%r14), %rax
	jne	LBB0_4
LBB0_2:
	cmpl	$0, 32(%rbx)
	je	LBB0_3
LBB0_4:
	shlq	$3, %rdx
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rbx, %rdx
	callq	_AES_set_encrypt_key
	movq	_AES_encrypt@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_3:
	shlq	$3, %rdx
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movq	%rbx, %rdx
	callq	_AES_set_decrypt_key
	movq	_AES_decrypt@GOTPCREL(%rip), %rcx
LBB0_5:
	movq	(%rcx), %rcx
	movq	%rcx, 24(%rbx)
	movq	(%rbx), %rcx
	cmpq	(%r14), %rcx
	jne	LBB0_6
## %bb.7:
	movq	_AES_cbc_encrypt@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_8
LBB0_6:
	xorl	%ecx, %ecx
LBB0_8:
	movq	%rcx, 16(%rbx)
	movl	$1, %ecx
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_AES_KEY_SETUP_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ERR_raise
	xorl	%ecx, %ecx
LBB0_10:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_CIPH_ECB_MODE,8,3          ## @EVP_CIPH_ECB_MODE
	.comm	_EVP_CIPH_CBC_MODE,8,3          ## @EVP_CIPH_CBC_MODE
	.comm	_AES_decrypt,8,3                ## @AES_decrypt
	.comm	_AES_cbc_encrypt,8,3            ## @AES_cbc_encrypt
	.comm	_AES_encrypt,8,3                ## @AES_encrypt
	.comm	_ERR_LIB_PROV,4,2               ## @ERR_LIB_PROV
	.comm	_PROV_R_AES_KEY_SETUP_FAILED,4,2 ## @PROV_R_AES_KEY_SETUP_FAILED
	.comm	_AES_ctr32_encrypt,8,3          ## @AES_ctr32_encrypt
	.comm	_BSAES_CAPABLE,8,3              ## @BSAES_CAPABLE
	.comm	_EVP_CIPH_CTR_MODE,8,3          ## @EVP_CIPH_CTR_MODE
	.comm	_HWAES_CAPABLE,8,3              ## @HWAES_CAPABLE
	.comm	_HWAES_cbc_encrypt,8,3          ## @HWAES_cbc_encrypt
	.comm	_HWAES_ctr32_encrypt_blocks,8,3 ## @HWAES_ctr32_encrypt_blocks
	.comm	_HWAES_decrypt,8,3              ## @HWAES_decrypt
	.comm	_HWAES_encrypt,8,3              ## @HWAES_encrypt
	.comm	_VPAES_CAPABLE,8,3              ## @VPAES_CAPABLE
	.comm	_bsaes_cbc_encrypt,8,3          ## @bsaes_cbc_encrypt
	.comm	_bsaes_ctr32_encrypt_blocks,8,3 ## @bsaes_ctr32_encrypt_blocks
	.comm	_vpaes_cbc_encrypt,8,3          ## @vpaes_cbc_encrypt
	.comm	_vpaes_decrypt,8,3              ## @vpaes_decrypt
	.comm	_vpaes_encrypt,8,3              ## @vpaes_encrypt
	.no_dead_strip	_cipher_hw_aes_initkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cipher_hw_aes_initkey
_cipher_hw_aes_initkey:                 ; @cipher_hw_aes_initkey
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	mov	x19, x0
	str	x0, [x0, #40]
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _EVP_CIPH_ECB_MODE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EVP_CIPH_ECB_MODE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x20, _EVP_CIPH_CBC_MODE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _EVP_CIPH_CBC_MODE@GOTPAGEOFF]
	ldr	x11, [x20]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	w9, [x19, #32]
	cbz	w9, LBB0_3
LBB0_2:
	lsl	x1, x2, #3
	mov	x0, x8
	mov	x2, x19
	bl	_AES_set_encrypt_key
Lloh5:
	adrp	x8, _AES_encrypt@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AES_encrypt@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	lsl	x1, x2, #3
	mov	x0, x8
	mov	x2, x19
	bl	_AES_set_decrypt_key
Lloh7:
	adrp	x8, _AES_decrypt@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AES_decrypt@GOTPAGEOFF]
LBB0_4:
	ldr	x8, [x8]
	ldr	x9, [x19]
Lloh9:
	adrp	x10, _AES_cbc_encrypt@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AES_cbc_encrypt@GOTPAGEOFF]
	ldr	x11, [x20]
Lloh11:
	ldr	x10, [x10]
	cmp	x9, x11
	csel	x9, x10, xzr, eq
	stp	x9, x8, [x19, #16]
	tbnz	w0, #31, LBB0_6
; %bb.5:
	mov	w0, #1
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _PROV_R_AES_KEY_SETUP_FAILED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PROV_R_AES_KEY_SETUP_FAILED@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_ERR_raise
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_CIPH_ECB_MODE,8,3          ; @EVP_CIPH_ECB_MODE
	.comm	_EVP_CIPH_CBC_MODE,8,3          ; @EVP_CIPH_CBC_MODE
	.comm	_AES_decrypt,8,3                ; @AES_decrypt
	.comm	_AES_cbc_encrypt,8,3            ; @AES_cbc_encrypt
	.comm	_AES_encrypt,8,3                ; @AES_encrypt
	.comm	_ERR_LIB_PROV,4,2               ; @ERR_LIB_PROV
	.comm	_PROV_R_AES_KEY_SETUP_FAILED,4,2 ; @PROV_R_AES_KEY_SETUP_FAILED
	.comm	_AES_ctr32_encrypt,8,3          ; @AES_ctr32_encrypt
	.comm	_BSAES_CAPABLE,8,3              ; @BSAES_CAPABLE
	.comm	_EVP_CIPH_CTR_MODE,8,3          ; @EVP_CIPH_CTR_MODE
	.comm	_HWAES_CAPABLE,8,3              ; @HWAES_CAPABLE
	.comm	_HWAES_cbc_encrypt,8,3          ; @HWAES_cbc_encrypt
	.comm	_HWAES_ctr32_encrypt_blocks,8,3 ; @HWAES_ctr32_encrypt_blocks
	.comm	_HWAES_decrypt,8,3              ; @HWAES_decrypt
	.comm	_HWAES_encrypt,8,3              ; @HWAES_encrypt
	.comm	_VPAES_CAPABLE,8,3              ; @VPAES_CAPABLE
	.comm	_bsaes_cbc_encrypt,8,3          ; @bsaes_cbc_encrypt
	.comm	_bsaes_ctr32_encrypt_blocks,8,3 ; @bsaes_ctr32_encrypt_blocks
	.comm	_vpaes_cbc_encrypt,8,3          ; @vpaes_cbc_encrypt
	.comm	_vpaes_decrypt,8,3              ; @vpaes_decrypt
	.comm	_vpaes_encrypt,8,3              ; @vpaes_encrypt
	.no_dead_strip	_cipher_hw_aes_initkey
.subsections_via_symbols
