	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_gcm128
_test_gcm128:                           ## @test_gcm128
	.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	$568, %rsp                      ## imm = 0x238
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_gcm128_vectors@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	shlq	$5, %rcx
	movl	48(%rax,%rcx), %esi
	movl	32(%rax,%rcx), %r12d
	xorl	%edx, %edx
	movq	%rdx, -600(%rbp)                ## 8-byte Spill
	movl	$0, %r13d
	movl	%esi, -568(%rbp)                ## 4-byte Spill
	cmpl	$1, %esi
	je	LBB0_2
## %bb.1:
	movq	56(%rax,%rcx), %r13
LBB0_2:
	movl	16(%rax,%rcx), %edx
	movl	$0, %r14d
	cmpl	$1, %r12d
	je	LBB0_4
## %bb.3:
	movq	40(%rax,%rcx), %r14
LBB0_4:
	movl	80(%rax,%rcx), %esi
	movq	88(%rax,%rcx), %rdi
	movl	64(%rax,%rcx), %ebx
	movl	%ebx, -572(%rbp)                ## 4-byte Spill
	movq	72(%rax,%rcx), %rbx
	movq	%rbx, -584(%rbp)                ## 8-byte Spill
	cmpl	$1, %edx
	je	LBB0_6
## %bb.5:
	movq	24(%rax,%rcx), %rdx
	movq	%rdx, -600(%rbp)                ## 8-byte Spill
LBB0_6:
	movq	8(%rax,%rcx), %rax
	movq	%rax, -592(%rbp)                ## 8-byte Spill
	shll	$3, %esi
	leaq	-604(%rbp), %r15
	movq	%r15, %rdx
	callq	_AES_set_encrypt_key
	movq	_AES_encrypt@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-564(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_CRYPTO_gcm128_init
	movq	%rbx, %rdi
	movq	-584(%rbp), %rsi                ## 8-byte Reload
	movl	-572(%rbp), %edx                ## 4-byte Reload
	callq	_CRYPTO_gcm128_setiv
	leaq	-560(%rbp), %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	testq	%r13, %r13
	je	LBB0_8
## %bb.7:
	leaq	-564(%rbp), %rdi
	movq	%r13, %rsi
	movl	-568(%rbp), %edx                ## 4-byte Reload
	callq	_CRYPTO_gcm128_aad
LBB0_8:
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	leaq	-564(%rbp), %rdi
	leaq	-560(%rbp), %rdx
	movq	%r14, %rsi
	movl	%r12d, %ecx
	callq	_CRYPTO_gcm128_encrypt
LBB0_10:
	leaq	-564(%rbp), %rdi
	movq	-592(%rbp), %rsi                ## 8-byte Reload
	movl	$16, %edx
	callq	_CRYPTO_gcm128_finish
	movl	%eax, %edi
	callq	_TEST_false
	xorl	%r15d, %r15d
	testl	%eax, %eax
	movq	-600(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_21
## %bb.11:
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.12:
	leaq	-560(%rbp), %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	callq	_TEST_mem_eq
	testl	%eax, %eax
	je	LBB0_21
LBB0_13:
	leaq	-564(%rbp), %rdi
	movq	-584(%rbp), %rsi                ## 8-byte Reload
	movl	-572(%rbp), %edx                ## 4-byte Reload
	callq	_CRYPTO_gcm128_setiv
	leaq	-560(%rbp), %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	testq	%r13, %r13
	je	LBB0_15
## %bb.14:
	leaq	-564(%rbp), %rdi
	movq	%r13, %rsi
	movl	-568(%rbp), %edx                ## 4-byte Reload
	callq	_CRYPTO_gcm128_aad
LBB0_15:
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.16:
	leaq	-564(%rbp), %rdi
	leaq	-560(%rbp), %rdx
	movq	%rbx, %rsi
	movl	%r12d, %ecx
	callq	_CRYPTO_gcm128_decrypt
LBB0_17:
	leaq	-564(%rbp), %rdi
	movq	-592(%rbp), %rsi                ## 8-byte Reload
	movl	$16, %edx
	callq	_CRYPTO_gcm128_finish
	movl	%eax, %edi
	callq	_TEST_false
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_21
## %bb.18:
	testq	%r14, %r14
	je	LBB0_20
## %bb.19:
	leaq	-560(%rbp), %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	_TEST_mem_eq
	testl	%eax, %eax
	je	LBB0_21
LBB0_20:
	movl	$1, %r15d
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r15d, %eax
	addq	$568, %rsp                      ## imm = 0x238
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_gcm128_vectors,8,3             ## @gcm128_vectors
	.comm	_AES_encrypt,8,3                ## @AES_encrypt
	.no_dead_strip	_test_gcm128
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_gcm128
_test_gcm128:                           ; @test_gcm128
	.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, #528
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, _gcm128_vectors@GOTPAGE
Lloh4:
	ldr	x8, [x8, _gcm128_vectors@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	w9, #96
	smaddl	x8, w0, w9, x8
	ldr	w9, [x8, #80]
	ldr	x0, [x8, #88]
	ldr	w25, [x8, #64]
	ldr	x26, [x8, #72]
	ldr	w22, [x8, #48]
	ldr	x10, [x8, #56]
	ldr	w19, [x8, #32]
	ldr	x11, [x8, #40]
	ldr	w12, [x8, #16]
	ldr	x13, [x8, #24]
	ldr	x21, [x8, #8]
	cmp	w22, #1
	csel	x24, xzr, x10, eq
	cmp	w19, #1
	csel	x20, xzr, x11, eq
	cmp	w12, #1
	csel	x23, xzr, x13, eq
	lsl	w1, w9, #3
	mov	x2, sp
	bl	_AES_set_encrypt_key
Lloh6:
	adrp	x8, _AES_encrypt@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AES_encrypt@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x0, sp, #4
	mov	x1, sp
	bl	_CRYPTO_gcm128_init
	add	x0, sp, #4
	mov	x1, x26
	mov	x2, x25
	bl	_CRYPTO_gcm128_setiv
	add	x0, sp, #8
	mov	w1, #0
	mov	x2, x19
	bl	_memset
	cbz	x24, LBB0_2
; %bb.1:
	add	x0, sp, #4
	mov	x1, x24
	mov	x2, x22
	bl	_CRYPTO_gcm128_aad
LBB0_2:
	cbz	x20, LBB0_4
; %bb.3:
	add	x0, sp, #4
	add	x2, sp, #8
	mov	x1, x20
	mov	x3, x19
	bl	_CRYPTO_gcm128_encrypt
LBB0_4:
	add	x0, sp, #4
	mov	x1, x21
	mov	w2, #16
	bl	_CRYPTO_gcm128_finish
	bl	_TEST_false
	cbz	w0, LBB0_15
; %bb.5:
	cbz	x23, LBB0_7
; %bb.6:
	add	x0, sp, #8
	mov	x1, x19
	mov	x2, x23
	mov	x3, x19
	bl	_TEST_mem_eq
	cbz	w0, LBB0_15
LBB0_7:
	add	x0, sp, #4
	mov	x1, x26
	mov	x2, x25
	bl	_CRYPTO_gcm128_setiv
	add	x0, sp, #8
	mov	w1, #0
	mov	x2, x19
	bl	_memset
	cbz	x24, LBB0_9
; %bb.8:
	add	x0, sp, #4
	mov	x1, x24
	mov	x2, x22
	bl	_CRYPTO_gcm128_aad
LBB0_9:
	cbz	x23, LBB0_11
; %bb.10:
	add	x0, sp, #4
	add	x2, sp, #8
	mov	x1, x23
	mov	x3, x19
	bl	_CRYPTO_gcm128_decrypt
LBB0_11:
	add	x0, sp, #4
	mov	x1, x21
	mov	w2, #16
	bl	_CRYPTO_gcm128_finish
	bl	_TEST_false
	cbz	w0, LBB0_15
; %bb.12:
	cbz	x20, LBB0_14
; %bb.13:
	add	x0, sp, #8
	mov	x1, x19
	mov	x2, x20
	mov	x3, x19
	bl	_TEST_mem_eq
	cbz	w0, LBB0_15
LBB0_14:
	mov	w0, #1
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	add	sp, sp, #528
	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_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_gcm128_vectors,8,3             ; @gcm128_vectors
	.comm	_AES_encrypt,8,3                ; @AES_encrypt
	.no_dead_strip	_test_gcm128
.subsections_via_symbols
