	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aead_givencrypt
_aead_givencrypt:                       ## @aead_givencrypt
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_aead_givcrypt_reqtfm
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_crypto_aead_ctx
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_crypto_aead_ivsize
	movl	%eax, %ebx
	movl	%eax, %r15d
	cmpl	$0, (%r12)
	jne	LBB0_2
## %bb.1:
	movq	8(%r12), %rdi
	movl	%r15d, %esi
	callq	_get_random_bytes
	movl	$1, (%r12)
LBB0_2:
	movq	24(%r14), %rdi
	movq	8(%r12), %rsi
	movl	%r15d, %edx
	callq	_memcpy
	cmpl	$5, %ebx
	jb	LBB0_4
## %bb.3:
	movl	(%r14), %edi
	leal	-4(%rbx), %edx
	xorl	%esi, %esi
	callq	_memset
	movl	$4, %r15d
LBB0_4:
	movl	%ebx, %r12d
	leaq	8(%r14), %r13
	movl	32(%r14), %edi
	callq	_cpu_to_be64
	movl	%eax, -44(%rbp)
	subl	%r15d, %ebx
	addl	(%r14), %ebx
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_memcpy
	movl	(%r14), %r8d
	movl	16(%r14), %edx
	addq	8(%r14), %r12
	movq	%r13, %rdi
	movl	$1, %esi
	movq	%r12, %rcx
	callq	_aead_perform
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_aead_givencrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aead_givencrypt
_aead_givencrypt:                       ; @aead_givencrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_aead_givcrypt_reqtfm
	mov	x20, x0
	bl	_crypto_aead_ctx
	mov	x22, x0
	mov	x0, x20
	bl	_crypto_aead_ivsize
	mov	x20, x0
	mov	x21, x0
	ldr	w8, [x22]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	x0, [x22, #8]
	mov	x1, x21
	bl	_get_random_bytes
	mov	w8, #1
	str	w8, [x22]
LBB0_2:
	ldr	x0, [x19, #24]
	ldr	x1, [x22, #8]
	mov	x2, x21
	bl	_memcpy
	cmp	w20, #5
	b.lo	LBB0_4
; %bb.3:
	ldr	w0, [x19]
	sub	w2, w20, #4
	mov	w1, #0
	bl	_memset
	mov	w21, #4
LBB0_4:
	ldr	w0, [x19, #32]
	bl	_cpu_to_be64
	str	w0, [sp, #12]
	ldr	w8, [x19]
	sub	w9, w20, w21
	add	w0, w9, w8
	add	x1, sp, #12
	mov	x2, x21
	bl	_memcpy
	ldr	w2, [x19, #16]
	mov	x0, x19
	ldr	x8, [x0, #8]!
	add	x3, x8, w20, uxtw
	ldr	w4, [x19]
	mov	w1, #1
	bl	_aead_perform
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_aead_givencrypt
.subsections_via_symbols
