	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chacha20poly1305_decrypt
_chacha20poly1305_decrypt:              ## @chacha20poly1305_decrypt
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
	movq	%rcx, %r13
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PTLS_CHACHA20POLY1305_TAG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	cmpq	%r13, %rbx
	jbe	LBB0_2
## %bb.1:
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_6
LBB0_2:
	movq	16(%rbp), %rcx
	leaq	16(%r14), %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_chacha20poly1305_init
	leaq	8(%r14), %rdi
	movq	%r13, %r12
	subq	%rbx, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_cf_poly1305_update
	movq	%r12, (%r14)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_chacha20poly1305_finalize
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rsi
	addq	%r13, %rsi
	leaq	(,%rbx,4), %rax
	subq	%rax, %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_mem_eq
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	addq	$12, %r14
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%r12, %rcx
	callq	_cf_chacha20_cipher
	jmp	LBB0_5
LBB0_4:
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_5:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_ptls_clear_memory
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %esi
	callq	_ptls_clear_memory
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movq	%r12, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PTLS_CHACHA20POLY1305_TAG_SIZE,4,2 ## @PTLS_CHACHA20POLY1305_TAG_SIZE
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
	.no_dead_strip	_chacha20poly1305_decrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chacha20poly1305_decrypt
_chacha20poly1305_decrypt:              ; @chacha20poly1305_decrypt
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x26, x3
	mov	x22, x2
	mov	x21, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _PTLS_CHACHA20POLY1305_TAG_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PTLS_CHACHA20POLY1305_TAG_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x19, x8, #2
	mov	x9, x19
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x19, #15
	and	x9, x9, #0x7fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	cmp	x19, x3
	b.ls	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh10:
	ldr	x20, [x8]
	b	LBB0_6
LBB0_2:
	add	x0, x24, #16
	mov	x1, x4
	mov	x2, x5
	mov	x3, x6
	bl	_chacha20poly1305_init
	add	x25, x24, #8
	sub	x20, x26, x19
	mov	x0, x25
	mov	x1, x22
	mov	x2, x20
	bl	_cf_poly1305_update
	str	x20, [x24]
	mov	x0, x24
	mov	x1, x23
	bl	_chacha20poly1305_finalize
	add	x8, x22, x26, lsl #2
	sub	x1, x8, x19, lsl #2
	mov	x0, x23
	mov	x2, x19
	bl	_mem_eq
	cbz	x0, LBB0_4
; %bb.3:
	add	x0, x24, #12
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_cf_chacha20_cipher
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh13:
	ldr	x20, [x8]
LBB0_5:
	mov	x0, x23
	mov	x1, x19
	bl	_ptls_clear_memory
	mov	x0, x25
	mov	w1, #4
	bl	_ptls_clear_memory
LBB0_6:
	ldur	x8, [x29, #-72]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x20
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PTLS_CHACHA20POLY1305_TAG_SIZE,4,2 ; @PTLS_CHACHA20POLY1305_TAG_SIZE
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
	.no_dead_strip	_chacha20poly1305_decrypt
.subsections_via_symbols
