	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p8_aes_ctr_crypt
_p8_aes_ctr_crypt:                      ## @p8_aes_ctr_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_crypto_skcipher_reqtfm
	movq	%rax, %rdi
	callq	_crypto_skcipher_ctx
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_crypto_simd_usable
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_skcipher_walk_virt
	movl	-48(%rbp), %ebx
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %r12
	cmpl	(%r12), %ebx
	jb	LBB0_6
## %bb.2:
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	xorl	%eax, %eax
	callq	_preempt_disable
	xorl	%eax, %eax
	callq	_pagefault_disable
	xorl	%eax, %eax
	callq	_enable_kernel_vsx
	movl	-36(%rbp), %edi
	movl	-44(%rbp), %r8d
	movl	-40(%rbp), %esi
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	(%r12)
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_aes_p8_ctr32_encrypt_blocks
	xorl	%eax, %eax
	callq	_disable_kernel_vsx
	xorl	%eax, %eax
	callq	_pagefault_enable
	xorl	%eax, %eax
	callq	_preempt_enable
	movl	(%r12), %esi
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-44(%rbp), %edi
	callq	_crypto_inc
	movl	(%r12), %esi
	subl	%esi, %ebx
	cmpl	%esi, %ebx
	jae	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_skcipher_walk_done
	movl	-48(%rbp), %ebx
	cmpl	(%r12), %ebx
	jae	LBB0_3
LBB0_6:
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:
	leaq	-48(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_p8_aes_ctr_final
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_skcipher_walk_done
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, %rdi
	callq	_skcipher_request_ctx
	movq	%rax, %r15
	movl	(%rbx), %eax
	movl	%eax, (%r15)
	movl	4(%r14), %esi
	movq	%r15, %rdi
	callq	_skcipher_request_set_tfm
	movq	%r15, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_crypto_skcipher_encrypt        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
	.no_dead_strip	_p8_aes_ctr_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_ctr_crypt
_p8_aes_ctr_crypt:                      ; @p8_aes_ctr_crypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x0
	bl	_crypto_skcipher_reqtfm
	bl	_crypto_skcipher_ctx
	mov	x19, x0
	bl	_crypto_simd_usable
	cbz	w0, LBB0_9
; %bb.1:
	mov	x0, sp
	mov	x1, x20
	mov	w2, #0
	bl	_skcipher_walk_virt
	ldr	w20, [sp]
Lloh0:
	adrp	x21, _AES_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _AES_BLOCK_SIZE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	w8, [x21]
	cmp	w20, w8
	b.lo	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_preempt_disable
	bl	_pagefault_disable
	bl	_enable_kernel_vsx
	ldp	w1, w0, [sp, #8]
	ldr	w8, [x21]
	ldr	w4, [sp, #4]
	udiv	w2, w20, w8
	mov	x3, x19
	bl	_aes_p8_ctr32_encrypt_blocks
	bl	_disable_kernel_vsx
	bl	_pagefault_enable
	bl	_preempt_enable
	ldr	w1, [x21]
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [sp, #4]
	bl	_crypto_inc
	ldr	w1, [x21]
	sub	w20, w20, w1
	cmp	w20, w1
	b.hs	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, sp
	mov	x1, x20
	bl	_skcipher_walk_done
	ldr	w20, [sp]
	b	LBB0_2
LBB0_6:
	cbz	w20, LBB0_8
; %bb.7:
	mov	x1, sp
	mov	x0, x19
	bl	_p8_aes_ctr_final
	mov	x0, sp
	mov	w1, #0
	bl	_skcipher_walk_done
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	mov	x0, x20
	bl	_skcipher_request_ctx
	mov	x21, x0
	ldr	w8, [x20]
	str	w8, [x0]
	ldr	w1, [x19, #4]
	bl	_skcipher_request_set_tfm
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_crypto_skcipher_encrypt
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
	.no_dead_strip	_p8_aes_ctr_crypt
.subsections_via_symbols
