	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rfc7919_test
_rfc7919_test:                          ## @rfc7919_test
	.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	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	_NID_ffdhe2048@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_DH_new_by_nid
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_16
## %bb.1:
	leaq	-44(%rbp), %rsi
	movq	%r12, %rdi
	callq	_DH_check
	testl	%eax, %eax
	je	LBB0_16
## %bb.2:
	movq	_DH_CHECK_P_NOT_PRIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	-44(%rbp), %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_16
## %bb.3:
	movq	_DH_CHECK_P_NOT_SAFE_PRIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	-44(%rbp), %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_16
## %bb.4:
	movq	_DH_UNABLE_TO_CHECK_GENERATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	-44(%rbp), %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_16
## %bb.5:
	movq	_DH_NOT_SUITABLE_GENERATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	-44(%rbp), %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_16
## %bb.6:
	movl	-44(%rbp), %edi
	callq	_TEST_false
	testl	%eax, %eax
	je	LBB0_16
## %bb.7:
	movq	%r12, %rdi
	callq	_DH_generate_key
	testl	%eax, %eax
	je	LBB0_16
## %bb.8:
	xorl	%r15d, %r15d
	leaq	-72(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_DH_get0_key
	movl	(%rbx), %edi
	callq	_DH_new_by_nid
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_19
## %bb.9:
	movq	%r14, %rdi
	callq	_DH_generate_key
	xorl	%r15d, %r15d
	testl	%eax, %eax
	je	LBB0_19
## %bb.10:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_DH_get0_key
	movq	%r12, %rdi
	callq	_DH_size
	movl	%eax, %edi
	callq	_OPENSSL_malloc
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_17
## %bb.11:
	movq	-64(%rbp), %rsi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_DH_compute_key
	movl	%eax, %r15d
	xorl	%edi, %edi
	cmpl	$-1, %eax
	setne	%dil
	callq	_TEST_true
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_21
## %bb.12:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	callq	_DH_size
	movl	%eax, %edi
	callq	_OPENSSL_malloc
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_18
## %bb.13:
	movq	-72(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_DH_compute_key
	xorl	%edi, %edi
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	cmpl	$-1, %eax
	setne	%dil
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_18
## %bb.14:
	xorl	%edi, %edi
	cmpl	$20, -48(%rbp)                  ## 4-byte Folded Reload
	setge	%dil
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_18
## %bb.15:
	movq	%r13, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r15, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_TEST_mem_eq
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
	jmp	LBB0_18
LBB0_16:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	movq	%r13, %rdi
	callq	_OPENSSL_free
	movq	%r15, %rdi
	callq	_OPENSSL_free
	movq	%r12, %rdi
	callq	_DH_free
	movq	%r14, %rdi
	callq	_DH_free
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_21:
	xorl	%r15d, %r15d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_NID_ffdhe2048,4,2              ## @NID_ffdhe2048
	.comm	_DH_CHECK_P_NOT_PRIME,4,2       ## @DH_CHECK_P_NOT_PRIME
	.comm	_DH_CHECK_P_NOT_SAFE_PRIME,4,2  ## @DH_CHECK_P_NOT_SAFE_PRIME
	.comm	_DH_UNABLE_TO_CHECK_GENERATOR,4,2 ## @DH_UNABLE_TO_CHECK_GENERATOR
	.comm	_DH_NOT_SUITABLE_GENERATOR,4,2  ## @DH_NOT_SUITABLE_GENERATOR
	.no_dead_strip	_rfc7919_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rfc7919_test
_rfc7919_test:                          ; @rfc7919_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	stp	xzr, xzr, [sp, #16]
Lloh0:
	adrp	x20, _NID_ffdhe2048@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NID_ffdhe2048@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_DH_new_by_nid
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_16
; %bb.1:
	add	x1, sp, #12
	mov	x0, x19
	bl	_DH_check
	cbz	w0, LBB0_16
; %bb.2:
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x9, _DH_CHECK_P_NOT_PRIME@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DH_CHECK_P_NOT_PRIME@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_TEST_false
	cbz	w0, LBB0_16
; %bb.3:
	ldr	w8, [sp, #12]
Lloh5:
	adrp	x9, _DH_CHECK_P_NOT_SAFE_PRIME@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DH_CHECK_P_NOT_SAFE_PRIME@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_TEST_false
	cbz	w0, LBB0_16
; %bb.4:
	ldr	w8, [sp, #12]
Lloh8:
	adrp	x9, _DH_UNABLE_TO_CHECK_GENERATOR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DH_UNABLE_TO_CHECK_GENERATOR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_TEST_false
	cbz	w0, LBB0_16
; %bb.5:
	ldr	w8, [sp, #12]
Lloh11:
	adrp	x9, _DH_NOT_SUITABLE_GENERATOR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DH_NOT_SUITABLE_GENERATOR@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_TEST_false
	cbz	w0, LBB0_16
; %bb.6:
	ldr	w0, [sp, #12]
	bl	_TEST_false
	cbz	w0, LBB0_16
; %bb.7:
	mov	x0, x19
	bl	_DH_generate_key
	cbz	w0, LBB0_16
; %bb.8:
	add	x1, sp, #24
	mov	x0, x19
	mov	x2, #0
	bl	_DH_get0_key
	ldr	w0, [x20]
	bl	_DH_new_by_nid
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_19
; %bb.9:
	mov	x0, x20
	bl	_DH_generate_key
	cbz	w0, LBB0_19
; %bb.10:
	add	x1, sp, #16
	mov	x0, x20
	mov	x2, #0
	bl	_DH_get0_key
	mov	x0, x19
	bl	_DH_size
	bl	_OPENSSL_malloc
	mov	x21, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_20
; %bb.11:
	ldr	x1, [sp, #16]
	mov	x0, x21
	mov	x2, x19
	bl	_DH_compute_key
	mov	x23, x0
	cmn	w0, #1
	cset	w0, ne
	bl	_TEST_true
	cbz	w0, LBB0_20
; %bb.12:
	mov	x0, x20
	bl	_DH_size
	bl	_OPENSSL_malloc
	mov	x22, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_17
; %bb.13:
	ldr	x1, [sp, #24]
	mov	x0, x22
	mov	x2, x20
	bl	_DH_compute_key
	mov	x24, x0
	cmn	w0, #1
	cset	w0, ne
	bl	_TEST_true
	cbz	w0, LBB0_17
; %bb.14:
	cmp	w23, #19
	cset	w0, gt
	bl	_TEST_true
	cbz	w0, LBB0_17
; %bb.15:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x24
	bl	_TEST_mem_eq
	cmp	w0, #0
	cset	w23, ne
	b	LBB0_18
LBB0_16:
	mov	x22, #0
	mov	x21, #0
	mov	x20, #0
LBB0_17:
	mov	w23, #0
LBB0_18:
	mov	x0, x21
	bl	_OPENSSL_free
	mov	x0, x22
	bl	_OPENSSL_free
	mov	x0, x19
	bl	_DH_free
	mov	x0, x20
	bl	_DH_free
	mov	x0, x23
	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
	add	sp, sp, #96
	ret
LBB0_19:
	mov	x22, #0
	mov	x21, #0
	b	LBB0_17
LBB0_20:
	mov	x22, #0
	b	LBB0_17
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_NID_ffdhe2048,4,2              ; @NID_ffdhe2048
	.comm	_DH_CHECK_P_NOT_PRIME,4,2       ; @DH_CHECK_P_NOT_PRIME
	.comm	_DH_CHECK_P_NOT_SAFE_PRIME,4,2  ; @DH_CHECK_P_NOT_SAFE_PRIME
	.comm	_DH_UNABLE_TO_CHECK_GENERATOR,4,2 ; @DH_UNABLE_TO_CHECK_GENERATOR
	.comm	_DH_NOT_SUITABLE_GENERATOR,4,2  ; @DH_NOT_SUITABLE_GENERATOR
	.no_dead_strip	_rfc7919_test
.subsections_via_symbols
