	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function afalg_aes_cbc
_afalg_aes_cbc:                         ## @afalg_aes_cbc
	.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
	movl	%edi, %ebx
	callq	_get_cipher_handle
	movq	%rax, %r14
	movq	(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_10
## %bb.1:
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	movl	%ebx, %edi
	callq	_EVP_CIPHER_meth_new
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	_AES_IV_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_EVP_CIPHER_meth_set_iv_length
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:
	movq	(%r14), %rdi
	movq	_EVP_CIPH_CBC_MODE@GOTPCREL(%rip), %rax
	movq	_EVP_CIPH_FLAG_DEFAULT_ASN1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_EVP_CIPHER_meth_set_flags
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movq	(%r14), %rdi
	movq	_afalg_cipher_init@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVP_CIPHER_meth_set_init
	testl	%eax, %eax
	je	LBB0_9
## %bb.5:
	movq	(%r14), %rdi
	movq	_afalg_do_cipher@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVP_CIPHER_meth_set_do_cipher
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movq	(%r14), %rdi
	movq	_afalg_cipher_cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVP_CIPHER_meth_set_cleanup
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movq	(%r14), %rdi
	movl	$4, %esi
	callq	_EVP_CIPHER_meth_set_impl_ctx_size
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	(%r14), %rax
	jmp	LBB0_10
LBB0_9:
	movq	(%r14), %rdi
	callq	_EVP_CIPHER_meth_free
	movq	$0, (%r14)
	xorl	%eax, %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
	.comm	_AES_IV_LEN,4,2                 ## @AES_IV_LEN
	.comm	_EVP_CIPH_CBC_MODE,4,2          ## @EVP_CIPH_CBC_MODE
	.comm	_EVP_CIPH_FLAG_DEFAULT_ASN1,4,2 ## @EVP_CIPH_FLAG_DEFAULT_ASN1
	.comm	_afalg_cipher_init,4,2          ## @afalg_cipher_init
	.comm	_afalg_do_cipher,4,2            ## @afalg_do_cipher
	.comm	_afalg_cipher_cleanup,4,2       ## @afalg_cipher_cleanup
	.no_dead_strip	_afalg_aes_cbc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function afalg_aes_cbc
_afalg_aes_cbc:                         ; @afalg_aes_cbc
	.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	x20, x0
	bl	_get_cipher_handle
	mov	x19, x0
	ldr	x0, [x0]
	cbnz	x0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x8, _AES_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AES_BLOCK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
	mov	x0, x20
	bl	_EVP_CIPHER_meth_new
	str	x0, [x19]
	cbz	x0, LBB0_9
; %bb.2:
Lloh3:
	adrp	x8, _AES_IV_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AES_IV_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_EVP_CIPHER_meth_set_iv_length
	cbz	w0, LBB0_9
; %bb.3:
Lloh6:
	adrp	x8, _EVP_CIPH_CBC_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EVP_CIPH_CBC_MODE@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _EVP_CIPH_FLAG_DEFAULT_ASN1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EVP_CIPH_FLAG_DEFAULT_ASN1@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_EVP_CIPHER_meth_set_flags
	cbz	w0, LBB0_9
; %bb.4:
	ldr	x0, [x19]
Lloh12:
	adrp	x8, _afalg_cipher_init@GOTPAGE
Lloh13:
	ldr	x8, [x8, _afalg_cipher_init@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_EVP_CIPHER_meth_set_init
	cbz	w0, LBB0_9
; %bb.5:
	ldr	x0, [x19]
Lloh15:
	adrp	x8, _afalg_do_cipher@GOTPAGE
Lloh16:
	ldr	x8, [x8, _afalg_do_cipher@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_EVP_CIPHER_meth_set_do_cipher
	cbz	w0, LBB0_9
; %bb.6:
	ldr	x0, [x19]
Lloh18:
	adrp	x8, _afalg_cipher_cleanup@GOTPAGE
Lloh19:
	ldr	x8, [x8, _afalg_cipher_cleanup@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_EVP_CIPHER_meth_set_cleanup
	cbz	w0, LBB0_9
; %bb.7:
	ldr	x0, [x19]
	mov	w1, #4
	bl	_EVP_CIPHER_meth_set_impl_ctx_size
	cbz	w0, LBB0_9
; %bb.8:
	ldr	x0, [x19]
	b	LBB0_10
LBB0_9:
	ldr	x0, [x19]
	bl	_EVP_CIPHER_meth_free
	mov	x0, #0
	str	xzr, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
	.comm	_AES_IV_LEN,4,2                 ; @AES_IV_LEN
	.comm	_EVP_CIPH_CBC_MODE,4,2          ; @EVP_CIPH_CBC_MODE
	.comm	_EVP_CIPH_FLAG_DEFAULT_ASN1,4,2 ; @EVP_CIPH_FLAG_DEFAULT_ASN1
	.comm	_afalg_cipher_init,4,2          ; @afalg_cipher_init
	.comm	_afalg_do_cipher,4,2            ; @afalg_do_cipher
	.comm	_afalg_cipher_cleanup,4,2       ; @afalg_cipher_cleanup
	.no_dead_strip	_afalg_aes_cbc
.subsections_via_symbols
