	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_gf2m_mod
_test_gf2m_mod:                         ## @test_gf2m_mod
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_13
## %bb.15:
	movq	_p0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_BN_GF2m_arr2poly
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_13
## %bb.16:
	movq	_p1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_BN_GF2m_arr2poly
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_13
## %bb.17:
	movq	_NUM0@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_18
## %bb.19:
	xorl	%ecx, %ecx
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_BN_bntest_rand
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_30
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_BN_GF2m_mod
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_30
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_BN_GF2m_add
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_30
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_BN_GF2m_mod
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_30
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rbx, %rdi
	callq	_TEST_BN_eq_zero
	testq	%rax, %rax
	je	LBB0_30
## %bb.25:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_BN_GF2m_mod
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_30
## %bb.26:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_BN_GF2m_add
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_BN_GF2m_mod
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rbx, %rdi
	callq	_TEST_BN_eq_zero
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	movq	_NUM0@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jl	LBB0_20
LBB0_18:
	movl	$1, %eax
	jmp	LBB0_14
LBB0_1:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	xorl	%r14d, %r14d
	jmp	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
LBB0_4:
	xorl	%r15d, %r15d
LBB0_5:
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_33
LBB0_7:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	jmp	LBB0_5
LBB0_9:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_32
LBB0_13:
	xorl	%eax, %eax
LBB0_14:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	jmp	LBB0_31
LBB0_11:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	xorl	%ebx, %ebx
LBB0_31:
	movq	%r13, %r12
LBB0_32:
	movq	%r15, %r13
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_33:
	callq	_BN_free
	movq	%r14, %rdi
	callq	_BN_free
	movq	%r15, %rdi
	callq	_BN_free
	movq	%r13, %rdi
	callq	_BN_free
	movq	%r12, %rdi
	callq	_BN_free
	movq	%rbx, %rdi
	callq	_BN_free
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movq	%r12, %rdi
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_p0,4,2                         ## @p0
	.comm	_p1,4,2                         ## @p1
	.comm	_NUM0,4,2                       ## @NUM0
	.no_dead_strip	_test_gf2m_mod
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_gf2m_mod
_test_gf2m_mod:                         ; @test_gf2m_mod
	.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
	bl	_BN_new
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_20
; %bb.1:
	bl	_BN_new
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_21
; %bb.2:
	bl	_BN_new
	mov	x21, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_22
; %bb.3:
	bl	_BN_new
	mov	x22, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_23
; %bb.4:
	bl	_BN_new
	mov	x23, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_24
; %bb.5:
	bl	_BN_new
	mov	x24, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_25
; %bb.6:
Lloh0:
	adrp	x8, _p0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _p0@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_BN_GF2m_arr2poly
	bl	_TEST_true
	cbz	x0, LBB0_25
; %bb.7:
Lloh3:
	adrp	x8, _p1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _p1@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_BN_GF2m_arr2poly
	bl	_TEST_true
	cbz	x0, LBB0_25
; %bb.8:
Lloh6:
	adrp	x26, _NUM0@GOTPAGE
Lloh7:
	ldr	x26, [x26, _NUM0@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.9:
	mov	w27, #0
	mov	w25, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #1024
	mov	w2, #0
	mov	w3, #0
	bl	_BN_bntest_rand
	bl	_TEST_true
	cbz	x0, LBB0_25
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	bl	_BN_GF2m_mod
	bl	_TEST_true
	cbz	x0, LBB0_25
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	bl	_BN_GF2m_add
	bl	_TEST_true
	cbz	x0, LBB0_25
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x24
	mov	x1, x23
	mov	x2, x20
	bl	_BN_GF2m_mod
	bl	_TEST_true
	cbz	x0, LBB0_25
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x24
	bl	_TEST_BN_eq_zero
	cbz	x0, LBB0_25
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_BN_GF2m_mod
	bl	_TEST_true
	cbz	x0, LBB0_25
; %bb.16:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	bl	_BN_GF2m_add
	bl	_TEST_true
	cbz	x0, LBB0_25
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x24
	mov	x1, x23
	mov	x2, x21
	bl	_BN_GF2m_mod
	bl	_TEST_true
	cbz	x0, LBB0_25
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x24
	bl	_TEST_BN_eq_zero
	cbz	x0, LBB0_25
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w27, w27, #1
	ldr	w8, [x26]
	cmp	w27, w8
	b.lt	LBB0_10
	b	LBB0_26
LBB0_20:
	mov	x20, #0
LBB0_21:
	mov	x21, #0
LBB0_22:
	mov	x22, #0
LBB0_23:
	mov	x23, #0
LBB0_24:
	mov	x24, #0
LBB0_25:
	mov	w25, #0
LBB0_26:
	mov	x0, x19
	bl	_BN_free
	mov	x0, x20
	bl	_BN_free
	mov	x0, x21
	bl	_BN_free
	mov	x0, x22
	bl	_BN_free
	mov	x0, x23
	bl	_BN_free
	mov	x0, x24
	bl	_BN_free
	mov	x0, x25
	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_27:
	mov	w25, #1
	b	LBB0_26
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_p0,4,2                         ; @p0
	.comm	_p1,4,2                         ; @p1
	.comm	_NUM0,4,2                       ; @NUM0
	.no_dead_strip	_test_gf2m_mod
.subsections_via_symbols
