	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p8_aes_cbc_crypt
_p8_aes_cbc_crypt:                      ## @p8_aes_cbc_crypt
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_crypto_skcipher_reqtfm
	movq	%rax, %rdi
	callq	_crypto_skcipher_ctx
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_crypto_simd_usable
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	leaq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_skcipher_walk_virt
	movl	-56(%rbp), %ebx
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.4:
	leaq	4(%r15), %rax
	testl	%r14d, %r14d
	cmoveq	%r15, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_preempt_disable
	xorl	%eax, %eax
	callq	_pagefault_disable
	xorl	%eax, %eax
	callq	_enable_kernel_vsx
	movl	-48(%rbp), %r13d
	movl	-44(%rbp), %r15d
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%ebx, %edi
	callq	_round_down
	movl	-52(%rbp), %r8d
	movl	%r15d, %edi
	movl	%r13d, %esi
	movl	%eax, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, %r9d
	callq	_aes_p8_cbc_encrypt
	xorl	%eax, %eax
	callq	_disable_kernel_vsx
	xorl	%eax, %eax
	callq	_pagefault_enable
	xorl	%eax, %eax
	callq	_preempt_enable
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	(%r12)
	leaq	-56(%rbp), %rdi
	movl	%edx, %esi
	callq	_skcipher_walk_done
	movl	-56(%rbp), %ebx
	testl	%ebx, %ebx
	jne	LBB0_5
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rbx, %rdi
	callq	_skcipher_request_ctx
	movq	%rax, %r12
	movl	(%rbx), %eax
	movl	%eax, (%r12)
	movl	8(%r15), %esi
	movq	%r12, %rdi
	callq	_skcipher_request_set_tfm
	movq	%r12, %rdi
	addq	$24, %rsp
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.7:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_crypto_skcipher_encrypt        ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_crypto_skcipher_decrypt        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
	.no_dead_strip	_p8_aes_cbc_crypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function p8_aes_cbc_crypt
_p8_aes_cbc_crypt:                      ; @p8_aes_cbc_crypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x21, x0
	bl	_crypto_skcipher_reqtfm
	bl	_crypto_skcipher_ctx
	mov	x20, x0
	bl	_crypto_simd_usable
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, sp
	mov	x1, x21
	mov	w2, #0
	bl	_skcipher_walk_virt
	ldr	w21, [sp]
	cbz	w21, LBB0_4
; %bb.2:
	add	x8, x20, #4
	cmp	w19, #0
	csel	x20, x20, x8, eq
Lloh0:
	adrp	x24, _AES_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _AES_BLOCK_SIZE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_preempt_disable
	bl	_pagefault_disable
	bl	_enable_kernel_vsx
	ldp	w23, w22, [sp, #8]
	ldr	w1, [x24]
	mov	x0, x21
	bl	_round_down
	mov	x2, x0
	ldr	w4, [sp, #4]
	mov	x0, x22
	mov	x1, x23
	mov	x3, x20
	mov	x5, x19
	bl	_aes_p8_cbc_encrypt
	bl	_disable_kernel_vsx
	bl	_pagefault_enable
	bl	_preempt_enable
	ldr	w8, [x24]
	udiv	w9, w21, w8
	msub	w1, w9, w8, w21
	mov	x0, sp
	bl	_skcipher_walk_done
	ldr	w21, [sp]
	cbnz	w21, LBB0_3
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	mov	x0, x21
	bl	_skcipher_request_ctx
	mov	x22, x0
	ldr	w8, [x21]
	str	w8, [x0]
	ldr	w1, [x20, #8]
	bl	_skcipher_request_set_tfm
	mov	x0, x22
	cbz	w19, LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_crypto_skcipher_encrypt
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_crypto_skcipher_decrypt
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
	.no_dead_strip	_p8_aes_cbc_crypt
.subsections_via_symbols
