	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chacha20poly1305_init
_chacha20poly1305_init:                 ## @chacha20poly1305_init
	.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	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, -312(%rbp)                ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PTLS_CHACHA20POLY1305_IV_SIZE@GOTPCREL(%rip), %rbx
	movl	$16, %edx
	subl	(%rbx), %edx
	leaq	-304(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_memset
	movslq	(%rbx), %rdx
	movq	%rdx, %rax
	shlq	$2, %rax
	negq	%rax
	leaq	(%rax,%rbp), %rdi
	addq	$-240, %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	leaq	20(%r15), %rbx
	movl	24(%r15), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	movq	%r12, %rcx
	movl	$4, %r8d
	callq	_cf_chacha20_init_custom
	movq	_zeros64@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	movl	$64, %ecx
	callq	_cf_chacha20_cipher
	leaq	16(%r15), %r13
	movq	%r13, %rdi
	movq	%r12, %rsi
	leaq	-240(%rbp), %rdx
	callq	_cf_poly1305_init
	movq	%r12, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_ptls_clear_memory
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	movq	-312(%rbp), %rsi                ## 8-byte Reload
	movq	%r14, %rdx
	callq	_cf_poly1305_update
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_chacha20poly1305_encrypt_pad
LBB0_2:
	movq	%r14, (%r15)
	movq	$0, 8(%r15)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PTLS_CHACHA20POLY1305_IV_SIZE,4,2 ## @PTLS_CHACHA20POLY1305_IV_SIZE
	.comm	_zeros64,4,2                    ## @zeros64
	.no_dead_strip	_chacha20poly1305_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chacha20poly1305_init
_chacha20poly1305_init:                 ; @chacha20poly1305_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #352
	.cfi_def_cfa_offset 352
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #288]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #304]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #320]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #336]            ; 16-byte Folded Spill
	add	x29, sp, #336
	.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 w27, -72
	.cfi_offset w28, -80
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, 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	x24, _PTLS_CHACHA20POLY1305_IV_SIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _PTLS_CHACHA20POLY1305_IV_SIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	w9, #16
	sub	w2, w9, w8
	add	x23, sp, #8
	add	x0, sp, #8
	mov	w1, #0
	bl	_memset
	add	x23, x23, #64
	ldrsw	x2, [x24]
	sub	x0, x23, x2, lsl #2
	mov	x1, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_memcpy
	add	x22, x20, #20
	ldr	w1, [x20, #24]
	add	x3, sp, #8
	mov	x0, x22
	mov	w2, #4
	mov	w4, #4
	bl	_cf_chacha20_init_custom
Lloh5:
	adrp	x8, _zeros64@GOTPAGE
Lloh6:
	ldr	x8, [x8, _zeros64@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x22
	mov	w3, #64
	bl	_cf_chacha20_cipher
	add	x22, x20, #16
	add	x1, sp, #8
	mov	x0, x22
	mov	x2, x23
	bl	_cf_poly1305_init
	add	x0, sp, #8
	mov	w1, #256
	bl	_ptls_clear_memory
	cbz	x19, LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_cf_poly1305_update
	mov	x0, x22
	mov	x1, x19
	bl	_chacha20poly1305_encrypt_pad
LBB0_2:
	stp	x19, xzr, [x20]
	ldur	x8, [x29, #-72]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #336]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #320]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #304]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #352
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PTLS_CHACHA20POLY1305_IV_SIZE,4,2 ; @PTLS_CHACHA20POLY1305_IV_SIZE
	.comm	_zeros64,4,2                    ; @zeros64
	.no_dead_strip	_chacha20poly1305_init
.subsections_via_symbols
