	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aes_xts_cipher
_aes_xts_cipher:                        ## @aes_xts_cipher
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %rcx
	xorl	%r12d, %r12d
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.1:
	movq	%rdx, %r15
	leaq	16(%rdi), %rdx
	movq	(%rdx), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.2:
	testq	%r8, %r8
	je	LBB0_12
## %bb.3:
	movq	%rsi, %r11
	testq	%rsi, %rsi
	je	LBB0_12
## %bb.4:
	cmpl	$0, 8(%rdi)
	je	LBB0_12
## %bb.5:
	movq	%r9, %r14
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	%r9, %rsi
	ja	LBB0_12
## %bb.6:
	movq	_XTS_MAX_BLOCKS_PER_DATA_UNIT@GOTPCREL(%rip), %rax
	imulq	(%rax), %rsi
	cmpq	%r14, %rsi
	jae	LBB0_8
## %bb.7:
	movq	_ERR_LIB_PROV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PROV_R_XTS_DATA_UNIT_IS_TOO_LARGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ERR_raise
	jmp	LBB0_12
LBB0_8:
	movq	32(%rdi), %r10
	movl	4(%rdi), %r9d
	testq	%r10, %r10
	je	LBB0_10
## %bb.9:
	movq	%r8, %rdi
	movq	%r11, %rsi
	movq	%r14, %rdx
	movq	%rbx, %r8
	callq	*%r10
	jmp	LBB0_11
LBB0_10:
	movl	(%rdi), %ebx
	movq	%rdx, %rdi
	movl	%r9d, %esi
	movq	%r8, %rdx
	movq	%r11, %rcx
	movq	%r14, %r8
	movl	%ebx, %r9d
	callq	_CRYPTO_xts128_encrypt
	testq	%rax, %rax
	jne	LBB0_12
LBB0_11:
	movq	%r14, (%r15)
	movl	$1, %r12d
LBB0_12:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,8,3             ## @AES_BLOCK_SIZE
	.comm	_XTS_MAX_BLOCKS_PER_DATA_UNIT,8,3 ## @XTS_MAX_BLOCKS_PER_DATA_UNIT
	.comm	_ERR_LIB_PROV,4,2               ## @ERR_LIB_PROV
	.comm	_PROV_R_XTS_DATA_UNIT_IS_TOO_LARGE,4,2 ## @PROV_R_XTS_DATA_UNIT_IS_TOO_LARGE
	.no_dead_strip	_aes_xts_cipher
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aes_xts_cipher
_aes_xts_cipher:                        ; @aes_xts_cipher
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x3, [x0, #24]
	cbz	x3, LBB0_8
; %bb.1:
	add	x10, x0, #16
	ldr	x9, [x10]
	cbz	x9, LBB0_8
; %bb.2:
	mov	w11, #0
	cbz	x4, LBB0_9
; %bb.3:
	mov	x8, x1
	cbz	x1, LBB0_9
; %bb.4:
	ldr	w12, [x0, #8]
	cbz	w12, LBB0_9
; %bb.5:
	mov	x19, x5
Lloh0:
	adrp	x11, _AES_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x11, [x11, _AES_BLOCK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x11, x5
	b.hi	LBB0_8
; %bb.6:
Lloh3:
	adrp	x12, _XTS_MAX_BLOCKS_PER_DATA_UNIT@GOTPAGE
Lloh4:
	ldr	x12, [x12, _XTS_MAX_BLOCKS_PER_DATA_UNIT@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
	mul	x11, x12, x11
	cmp	x11, x19
	b.hs	LBB0_10
; %bb.7:
Lloh6:
	adrp	x8, _ERR_LIB_PROV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERR_LIB_PROV@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _PROV_R_XTS_DATA_UNIT_IS_TOO_LARGE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PROV_R_XTS_DATA_UNIT_IS_TOO_LARGE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_ERR_raise
LBB0_8:
	mov	w11, #0
LBB0_9:
	mov	x0, x11
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x20, x2
	ldr	x11, [x0, #32]
	ldr	w5, [x0, #4]
	cbz	x11, LBB0_12
; %bb.11:
	mov	x0, x4
	mov	x1, x8
	mov	x2, x19
	mov	x4, x9
	blr	x11
	b	LBB0_13
LBB0_12:
	ldr	w9, [x0]
	mov	x0, x10
	mov	x1, x5
	mov	x2, x4
	mov	x3, x8
	mov	x4, x19
	mov	x5, x9
	bl	_CRYPTO_xts128_encrypt
	cbnz	x0, LBB0_8
LBB0_13:
	str	x19, [x20]
	mov	w11, #1
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCK_SIZE,8,3             ; @AES_BLOCK_SIZE
	.comm	_XTS_MAX_BLOCKS_PER_DATA_UNIT,8,3 ; @XTS_MAX_BLOCKS_PER_DATA_UNIT
	.comm	_ERR_LIB_PROV,4,2               ; @ERR_LIB_PROV
	.comm	_PROV_R_XTS_DATA_UNIT_IS_TOO_LARGE,4,2 ; @PROV_R_XTS_DATA_UNIT_IS_TOO_LARGE
	.no_dead_strip	_aes_xts_cipher
.subsections_via_symbols
