	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cbc_aes_decrypt
_cbc_aes_decrypt:                       ## @cbc_aes_decrypt
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_blk_aes_ctx
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_padlock_reset_key
	leaq	-56(%rbp), %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	callq	_blkcipher_walk_init
	movq	%r12, %rdi
	leaq	-56(%rbp), %rsi
	callq	_blkcipher_walk_virt
	movl	%eax, %r13d
	xorl	%eax, %eax
	callq	_irq_ts_save
	movl	-56(%rbp), %r15d
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.1:
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r12
	movq	%rbx, %r14
	addq	$4, %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %edi
	movl	-52(%rbp), %ecx
	movl	-48(%rbp), %esi
	movl	8(%r12), %r8d
	movl	%r15d, %eax
	xorl	%edx, %edx
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rbx
	divl	(%rbx)
	movl	%r8d, %edx
	movq	%r14, %r8
	movl	%eax, %r9d
	callq	_padlock_xcrypt_cbc
	movl	(%rbx), %edx
	decl	%edx
	andl	%r15d, %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	leaq	-56(%rbp), %rsi
	callq	_blkcipher_walk_done
	movl	-56(%rbp), %r15d
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.3:
	movl	%eax, %r13d
	movq	%r12, %rbx
	movl	-60(%rbp), %eax                 ## 4-byte Reload
LBB0_4:
	movl	%eax, %edi
	callq	_irq_ts_restore
	movq	%rbx, %rdi
	callq	_padlock_store_cword
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
	.no_dead_strip	_cbc_aes_decrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cbc_aes_decrypt
_cbc_aes_decrypt:                       ; @cbc_aes_decrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_blk_aes_ctx
	mov	x19, x0
	bl	_padlock_reset_key
	mov	x0, sp
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_blkcipher_walk_init
	mov	x1, sp
	mov	x0, x20
	bl	_blkcipher_walk_virt
	mov	x23, x0
	bl	_irq_ts_save
	mov	x21, x0
	ldr	w25, [sp]
	cbz	w25, LBB0_4
; %bb.1:
	add	x22, x19, #4
Lloh0:
	adrp	x24, _AES_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AES_BLOCK_SIZE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [sp, #8]
	ldr	w2, [x19, #8]
	ldr	w3, [sp, #4]
	ldr	w8, [x24]
	udiv	w5, w25, w8
	mov	x4, x22
	bl	_padlock_xcrypt_cbc
	ldr	w8, [x24]
	sub	w8, w8, #1
	and	w2, w8, w25
	mov	x1, sp
	mov	x0, x20
	bl	_blkcipher_walk_done
	ldr	w25, [sp]
	cbnz	w25, LBB0_2
; %bb.3:
	mov	x23, x0
LBB0_4:
	mov	x0, x21
	bl	_irq_ts_restore
	mov	x0, x19
	bl	_padlock_store_cword
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
	.no_dead_strip	_cbc_aes_decrypt
.subsections_via_symbols
