	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aes_siv_encrypt                ## -- Begin function aes_siv_encrypt
	.p2align	4, 0x90
_aes_siv_encrypt:                       ## @aes_siv_encrypt
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, %r14
	movq	%rcx, -176(%rbp)                ## 8-byte Spill
	movq	%rdx, -152(%rbp)                ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, -168(%rbp)                ## 8-byte Spill
	movq	%rsp, -184(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	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, %rbx
	leaq	-96(%rbp), %rdi
	callq	_ARRAY_SIZE
	decl	%eax
	cltq
	movl	$-1, %r15d
	cmpq	%r14, %rax
	jb	LBB0_7
## %bb.1:
	leaq	-32(%r13), %rax
	cmpq	$32, %rax
	ja	LBB0_7
## %bb.2:
	movabsq	$4295032833, %rcx               ## imm = 0x100010001
	btq	%rax, %rcx
	jae	LBB0_7
## %bb.3:
	movq	%rbx, -160(%rbp)                ## 8-byte Spill
	shrq	%r13
	testq	%r14, %r14
	je	LBB0_5
## %bb.4:
	leaq	(,%r14,8), %rbx
	leaq	-96(%rbp), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	leaq	-144(%rbp), %rdi
	movq	16(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_memcpy
LBB0_5:
	movq	-152(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -96(%rbp,%r14,8)
	movq	-176(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, -144(%rbp,%r14,8)
	incq	%r14
	leaq	-96(%rbp), %rcx
	leaq	-144(%rbp), %r8
	movq	-168(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	-160(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %r9
	callq	_aes_s2v
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	24(%rbp), %rdi
	leaq	(%r12,%r13,4), %r12
	movq	_AES_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdx
	leaq	(%rdi,%rdx,4), %r15
	movq	%r14, %rsi
	callq	_os_memcpy
	movq	%r15, %rdi
	movq	-152(%rbp), %rsi                ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_os_memcpy
	andl	$127, 32(%r14)
	andl	$127, 48(%r14)
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r15, %rcx
	movq	%rbx, %r8
	callq	_aes_ctr_encrypt
	movl	%eax, %r15d
LBB0_7:
	movq	-184(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ## @AES_BLOCK_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aes_siv_encrypt                ; -- Begin function aes_siv_encrypt
	.p2align	2
_aes_siv_encrypt:                       ; @aes_siv_encrypt
	.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, #112
	mov	x28, x7
	mov	x25, x6
	mov	x27, x5
	mov	x24, x4
	mov	x19, x3
	mov	x20, x2
	mov	x26, x1
	mov	x23, x0
	mov	x21, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _AES_BLOCK_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AES_BLOCK_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	sub	x0, x29, #136
	bl	_ARRAY_SIZE
	sub	w8, w0, #1
	sxtw	x8, w8
	mov	w0, #-1
	cmp	x8, x24
	b.lo	LBB0_8
; %bb.1:
	sub	x8, x26, #32
	cmp	x8, #32
	b.hi	LBB0_8
; %bb.2:
	mov	w9, #1
	lsl	x8, x9, x8
	mov	x9, #4294967297
	movk	x9, #1, lsl #16
	tst	x8, x9
	b.eq	LBB0_8
; %bb.3:
	stur	x28, [x29, #-192]               ; 8-byte Folded Spill
	lsr	x26, x26, #1
	lsl	x28, x24, #3
	cbz	x24, LBB0_5
; %bb.4:
	sub	x0, x29, #136
	mov	x1, x27
	mov	x2, x28
	bl	_memcpy
	sub	x0, x29, #184
	mov	x1, x25
	mov	x2, x28
	bl	_memcpy
LBB0_5:
	sub	x8, x29, #136
	str	x20, [x8, x28]
	sub	x8, x29, #184
	str	x19, [x8, x28]
	add	x2, x24, #1
	sub	x3, x29, #136
	sub	x4, x29, #184
	mov	x0, x23
	mov	x1, x26
	mov	x5, x22
	bl	_aes_s2v
	cbz	x0, LBB0_7
; %bb.6:
	mov	w0, #-1
	b	LBB0_8
LBB0_7:
	add	x23, x23, x26, lsl #2
Lloh8:
	adrp	x8, _AES_BLOCK_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AES_BLOCK_SIZE@GOTPAGEOFF]
Lloh10:
	ldrsw	x2, [x8]
	ldur	x0, [x29, #-192]                ; 8-byte Folded Reload
	add	x24, x0, x2, lsl #2
	mov	x1, x22
	bl	_os_memcpy
	mov	x0, x24
	mov	x1, x20
	mov	x2, x19
	bl	_os_memcpy
	ldr	w8, [x22, #32]
	and	w8, w8, #0x7f
	str	w8, [x22, #32]
	ldr	w8, [x22, #48]
	and	w8, w8, #0x7f
	str	w8, [x22, #48]
	mov	x0, x23
	mov	x1, x26
	mov	x2, x22
	mov	x3, x24
	mov	x4, x19
	bl	_aes_ctr_encrypt
LBB0_8:
	mov	sp, x21
	ldur	x8, [x29, #-88]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	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_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AES_BLOCK_SIZE,4,2             ; @AES_BLOCK_SIZE
.subsections_via_symbols
