	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aes_128_cbc_encrypt            ## -- Begin function aes_128_cbc_encrypt
	.p2align	4, 0x90
_aes_128_cbc_encrypt:                   ## @aes_128_cbc_encrypt
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_TEST_FAIL
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_EVP_CIPHER_CTX_new
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %rbx
	movl	%r15d, -120(%rbp)
	movl	$64, -116(%rbp)
	xorl	%eax, %eax
	callq	_EVP_aes_128_cbc
	movq	%rbx, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	movq	%r12, %rcx
	movq	%r13, %r8
	callq	_EVP_EncryptInit_ex
	movl	$-1, %r14d
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_EVP_CIPHER_CTX_set_padding
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.4:
	leaq	-120(%rbp), %rdx
	movq	%rbx, %rdi
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, %rsi
	movq	%r15, %r8
	callq	_EVP_EncryptUpdate
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.5:
	cmpl	%r15d, -120(%rbp)
	jne	LBB0_7
## %bb.6:
	leaq	-112(%rbp), %rsi
	leaq	-116(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_EVP_EncryptFinal_ex
	xorl	$1, %eax
	xorl	%r14d, %r14d
	orl	-116(%rbp), %eax
	setne	%r14b
	negl	%r14d
LBB0_7:
	movq	%rbx, %rdi
	callq	_EVP_CIPHER_CTX_free
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%r14d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aes_128_cbc_encrypt            ; -- Begin function aes_128_cbc_encrypt
	.p2align	2
_aes_128_cbc_encrypt:                   ; @aes_128_cbc_encrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_TEST_FAIL
	cbz	x0, LBB0_2
LBB0_1:
	mov	w21, #-1
	b	LBB0_10
LBB0_2:
	bl	_EVP_CIPHER_CTX_new
	cbz	x0, LBB0_1
; %bb.3:
	mov	x19, x0
	mov	w8, #64
	stp	w8, w20, [sp]
	bl	_EVP_aes_128_cbc
	mov	x1, x0
	mov	x0, x19
	mov	x2, #0
	mov	x3, x23
	mov	x4, x22
	bl	_EVP_EncryptInit_ex
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.4:
	mov	x0, x19
	mov	w1, #0
	bl	_EVP_CIPHER_CTX_set_padding
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.5:
	add	x2, sp, #4
	mov	x0, x19
	mov	x1, x21
	mov	x3, x21
	mov	x4, x20
	bl	_EVP_EncryptUpdate
	mov	w21, #-1
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.6:
	ldr	w8, [sp, #4]
	cmp	w8, w20
	b.ne	LBB0_9
; %bb.7:
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x19
	bl	_EVP_EncryptFinal_ex
	cmp	w0, #1
	ldr	w8, [sp]
	ccmp	w8, #0, #0, eq
	cset	w8, ne
	sbfx	w21, w8, #0, #1
	b	LBB0_9
LBB0_8:
	mov	w21, #-1
LBB0_9:
	mov	x0, x19
	bl	_EVP_CIPHER_CTX_free
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
