	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_mod
_test_mod:                              ## @test_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_16
## %bb.2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_18
## %bb.3:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_20
## %bb.4:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BN_new
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_19
## %bb.5:
	xorl	%r12d, %r12d
	movq	%r15, %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_19
## %bb.6:
	movq	_NUM0@GOTPCREL(%rip), %rax
	movl	$1, %r12d
	cmpl	$0, (%rax)
	jle	LBB0_19
## %bb.7:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$450, %esi                      ## imm = 0x1C2
	xorl	%ebx, %ebx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_BN_bntest_rand
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_24
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_rand_neg
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_BN_set_negative
	xorl	%eax, %eax
	callq	_rand_neg
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_BN_set_negative
	movq	%r14, %r12
	movq	_ctx@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_BN_mod
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_27
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r14), %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_BN_div
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	movq	%r12, %r14
	je	LBB0_24
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_BN_sub
	movl	%eax, %edi
	callq	_TEST_true
	testq	%rax, %rax
	je	LBB0_24
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	callq	_TEST_BN_eq_zero
	testq	%rax, %rax
	je	LBB0_24
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	addl	$10, %esi
	movq	_NUM0@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	movl	$1, %r12d
	jl	LBB0_8
## %bb.14:
	movq	%r15, %rdi
	jmp	LBB0_25
LBB0_15:
	movq	%r15, %rdi
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_16:
	movq	%r15, %rdi
LBB0_17:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_23
LBB0_18:
	movq	%r15, %rdi
	xorl	%r13d, %r13d
	jmp	LBB0_21
LBB0_19:
	movq	%r15, %rdi
	movq	%r13, %r15
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_20:
	movq	%r15, %rdi
LBB0_21:
	xorl	%r15d, %r15d
LBB0_22:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_23:
	callq	_BN_free
	movq	%r14, %rdi
	callq	_BN_free
	movq	%rbx, %rdi
	callq	_BN_free
	movq	%r13, %rdi
	callq	_BN_free
	movq	%r15, %rdi
	callq	_BN_free
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	%r15, %rdi
	xorl	%r12d, %r12d
LBB0_25:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_26:
	movq	%r13, %r15
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_27:
	movq	%r15, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%r12, %r14
	xorl	%r12d, %r12d
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM0,4,2                       ## @NUM0
	.comm	_ctx,4,2                        ## @ctx
	.no_dead_strip	_test_mod
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_mod
_test_mod:                              ; @test_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_14
; %bb.1:
	bl	_BN_new
	mov	x20, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_15
; %bb.2:
	bl	_BN_new
	mov	x21, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_16
; %bb.3:
	bl	_BN_new
	mov	x22, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_17
; %bb.4:
	bl	_BN_new
	mov	x23, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_18
; %bb.5:
	mov	x0, x19
	mov	w1, #1024
	mov	w2, #0
	mov	w3, #0
	bl	_BN_bntest_rand
	bl	_TEST_true
	cbz	x0, LBB0_18
; %bb.6:
Lloh0:
	adrp	x26, _NUM0@GOTPAGE
Lloh1:
	ldr	x26, [x26, _NUM0@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_20
; %bb.7:
	mov	w27, #0
	mov	w24, #450
Lloh2:
	adrp	x28, _ctx@GOTPAGE
Lloh3:
	ldr	x28, [x28, _ctx@GOTPAGEOFF]
	mov	w25, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x24
	mov	w2, #0
	mov	w3, #0
	bl	_BN_bntest_rand
	bl	_TEST_true
	cbz	x0, LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_rand_neg
	mov	x1, x0
	mov	x0, x19
	bl	_BN_set_negative
	bl	_rand_neg
	mov	x1, x0
	mov	x0, x20
	bl	_BN_set_negative
	ldr	w3, [x28]
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_BN_mod
	bl	_TEST_true
	cbz	x0, LBB0_18
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w4, [x28]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x19
	mov	x3, x20
	bl	_BN_div
	bl	_TEST_true
	cbz	x0, LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x23
	mov	x1, x23
	mov	x2, x21
	bl	_BN_sub
	bl	_TEST_true
	cbz	x0, LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x23
	bl	_TEST_BN_eq_zero
	cbz	x0, LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	add	w27, w27, #1
	ldr	w8, [x26]
	add	w24, w24, #10
	cmp	w27, w8
	b.lt	LBB0_8
	b	LBB0_19
LBB0_14:
	mov	x20, #0
LBB0_15:
	mov	x21, #0
LBB0_16:
	mov	x22, #0
LBB0_17:
	mov	x23, #0
LBB0_18:
	mov	w25, #0
LBB0_19:
	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, 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_20:
	mov	w25, #1
	b	LBB0_19
	.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_mod
.subsections_via_symbols
