	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_gcd_prime
_test_gcd_prime:                        ## @test_gcd_prime
	.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
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_BN_generate_prime_ex
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:
	movq	_NUM0@GOTPCREL(%rip), %rax
	movl	$1, %r14d
	cmpl	$0, (%rax)
	jle	LBB0_13
## %bb.5:
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_BN_generate_prime_ex
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_ctx@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_BN_gcd
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_BN_is_one
	movl	%eax, %edi
	callq	_TEST_true
	testl	%eax, %eax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	incl	%r13d
	movq	_NUM0@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jl	LBB0_6
	jmp	LBB0_13
LBB0_10:
	xorl	%r12d, %r12d
LBB0_11:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%r15, %rdi
	callq	_BN_free
	movq	%r12, %rdi
	callq	_BN_free
	movq	%rbx, %rdi
	callq	_BN_free
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	xorl	%r14d, %r14d
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM0,4,2                       ## @NUM0
	.comm	_ctx,4,2                        ## @ctx
	.no_dead_strip	_test_gcd_prime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_gcd_prime
_test_gcd_prime:                        ; @test_gcd_prime
	.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
	bl	_BN_new
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_10
; %bb.1:
	bl	_BN_new
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_11
; %bb.2:
	bl	_BN_new
	mov	x21, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_12
; %bb.3:
	mov	x0, x19
	mov	w1, #1024
	mov	w2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_BN_generate_prime_ex
	bl	_TEST_true
	cbz	w0, LBB0_12
; %bb.4:
Lloh0:
	adrp	x23, _NUM0@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NUM0@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.5:
	mov	w24, #0
Lloh2:
	adrp	x25, _ctx@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ctx@GOTPAGEOFF]
	mov	w22, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #1024
	mov	w2, #0
	mov	x3, #0
	mov	x4, #0
	mov	x5, #0
	bl	_BN_generate_prime_ex
	bl	_TEST_true
	cbz	w0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w3, [x25]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_BN_gcd
	bl	_TEST_true
	cbz	w0, LBB0_12
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_BN_is_one
	bl	_TEST_true
	cbz	w0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w24, w24, #1
	ldr	w8, [x23]
	cmp	w24, w8
	b.lt	LBB0_6
	b	LBB0_13
LBB0_10:
	mov	x20, #0
LBB0_11:
	mov	x21, #0
LBB0_12:
	mov	w22, #0
LBB0_13:
	mov	x0, x19
	bl	_BN_free
	mov	x0, x20
	bl	_BN_free
	mov	x0, x21
	bl	_BN_free
	mov	x0, x22
	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_14:
	mov	w22, #1
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM0,4,2                       ; @NUM0
	.comm	_ctx,4,2                        ; @ctx
	.no_dead_strip	_test_gcd_prime
.subsections_via_symbols
