	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function p8_aes_xts_crypt
_p8_aes_xts_crypt:                      ## @p8_aes_xts_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_crypto_skcipher_reqtfm
	movq	%rax, %rdi
	callq	_crypto_skcipher_ctx
	movq	%rax, %r13
	movq	%rsp, %rbx
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_crypto_simd_usable
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %eax
	movq	_XTS_BLOCK_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	testl	%edx, %edx
	je	LBB0_5
LBB0_2:
	movq	%rbx, %r15
	movq	%r14, %rdi
	callq	_skcipher_request_ctx
	movq	%rax, %rbx
	movl	(%r14), %eax
	movl	%eax, (%rbx)
	movl	12(%r13), %esi
	movq	%rbx, %rdi
	callq	_skcipher_request_set_tfm
	movq	%rbx, %rdi
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	callq	_crypto_skcipher_encrypt
	movq	%r15, %rbx
	jmp	LBB0_13
LBB0_4:
	callq	_crypto_skcipher_decrypt
	movq	%r15, %rbx
	jmp	LBB0_13
LBB0_5:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	-80(%rbp), %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_skcipher_walk_virt
	testl	%eax, %eax
	jne	LBB0_13
## %bb.6:
	xorl	%eax, %eax
	callq	_preempt_disable
	xorl	%eax, %eax
	callq	_pagefault_disable
	xorl	%eax, %eax
	callq	_enable_kernel_vsx
	movl	-68(%rbp), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	8(%rax), %rdx
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_aes_p8_encrypt
	xorl	%eax, %eax
	callq	_disable_kernel_vsx
	xorl	%eax, %eax
	callq	_pagefault_enable
	xorl	%eax, %eax
	callq	_preempt_enable
	movl	-80(%rbp), %r13d
	movl	$0, %eax
	testl	%r13d, %r13d
	je	LBB0_13
## %bb.7:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$4, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	callq	_aes_p8_xts_decrypt
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_disable_kernel_vsx
	xorl	%eax, %eax
	callq	_pagefault_enable
	xorl	%eax, %eax
	callq	_preempt_enable
	movl	%r13d, %eax
	xorl	%edx, %edx
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %r15
	divl	(%r15)
	leaq	-80(%rbp), %rdi
	movl	%edx, %esi
	callq	_skcipher_walk_done
	movl	-80(%rbp), %r13d
	testl	%r13d, %r13d
	je	LBB0_12
LBB0_8:                                 ## =>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	-76(%rbp), %ebx
	movl	-72(%rbp), %r14d
	movl	(%r15), %esi
	movl	%r13d, %edi
	callq	_round_down
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	callq	_aes_p8_xts_encrypt
	jmp	LBB0_11
LBB0_12:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
LBB0_13:
	movq	%rbx, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
	.comm	_XTS_BLOCK_SIZE,4,2             ## @XTS_BLOCK_SIZE
	.no_dead_strip	_p8_aes_xts_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_xts_crypt
_p8_aes_xts_crypt:                      ; @p8_aes_xts_crypt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_crypto_skcipher_reqtfm
	bl	_crypto_skcipher_ctx
	mov	x20, x0
	mov	x26, sp
Lloh3:
	adrp	x27, _AES_BLOCK_SIZE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _AES_BLOCK_SIZE@GOTPAGEOFF]
	ldr	w8, [x27]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	bl	_crypto_simd_usable
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x22]
Lloh7:
	adrp	x9, _XTS_BLOCK_SIZE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _XTS_BLOCK_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	cbz	w8, LBB0_5
LBB0_2:
	mov	x0, x22
	bl	_skcipher_request_ctx
	mov	x21, x0
	ldr	w8, [x22]
	str	w8, [x0]
	ldr	w1, [x20, #12]
	bl	_skcipher_request_set_tfm
	mov	x0, x21
	cbz	w19, LBB0_4
; %bb.3:
	bl	_crypto_skcipher_encrypt
	b	LBB0_6
LBB0_4:
	bl	_crypto_skcipher_decrypt
	b	LBB0_6
LBB0_5:
	sub	x0, x29, #104
	mov	x1, x22
	mov	w2, #0
	bl	_skcipher_walk_virt
	cbz	w0, LBB0_8
LBB0_6:
	mov	sp, x26
	ldur	x8, [x29, #-88]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.7:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	_preempt_disable
	bl	_pagefault_disable
	bl	_enable_kernel_vsx
	ldur	w0, [x29, #-92]
	add	x2, x20, #8
	mov	x1, x21
	bl	_aes_p8_encrypt
	bl	_disable_kernel_vsx
	bl	_pagefault_enable
	bl	_preempt_enable
	ldur	w23, [x29, #-104]
	cbz	w23, LBB0_14
; %bb.9:
	add	x22, x20, #4
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x3, x20
	mov	x4, #0
	mov	x5, x21
	bl	_aes_p8_xts_decrypt
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	bl	_disable_kernel_vsx
	bl	_pagefault_enable
	bl	_preempt_enable
	ldr	w8, [x27]
	udiv	w9, w23, w8
	msub	w1, w9, w8, w23
	sub	x0, x29, #104
	bl	_skcipher_walk_done
	ldur	w23, [x29, #-104]
	cbz	w23, LBB0_6
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	bl	_preempt_disable
	bl	_pagefault_disable
	bl	_enable_kernel_vsx
	ldp	w25, w24, [x29, #-100]
	ldr	w1, [x27]
	mov	x0, x23
	bl	_round_down
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	cbz	w19, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x3, x22
	mov	x4, #0
	mov	x5, x21
	bl	_aes_p8_xts_encrypt
	b	LBB0_11
LBB0_14:
	mov	w0, #0
	b	LBB0_6
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
	.comm	_XTS_BLOCK_SIZE,4,2             ; @XTS_BLOCK_SIZE
	.no_dead_strip	_p8_aes_xts_crypt
.subsections_via_symbols
