	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_num_mod                   ## -- Begin function test_num_mod
	.p2align	4, 0x90
_test_num_mod:                          ## @test_num_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-36(%rbp), %r15
	movq	%r15, %rdi
	callq	_random_scalar_order_test
	leaq	-32(%rbp), %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_secp256k1_scalar_get_num
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_secp256k1_scalar_set_int
	leaq	-28(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_secp256k1_scalar_get_num
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_secp256k1_num_mod
	movq	%rbx, %rdi
	callq	_secp256k1_num_is_zero
	movl	%eax, %edi
	callq	_CHECK
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_secp256k1_scalar_set_int
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_secp256k1_scalar_get_num
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_secp256k1_scalar_get_num
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_secp256k1_num_mod
	movq	%rbx, %rdi
	callq	_secp256k1_num_is_zero
	movl	%eax, %edi
	callq	_CHECK
	movq	%r15, %rdi
	callq	_random_scalar_order_test
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_secp256k1_scalar_get_num
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_secp256k1_num_add
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_secp256k1_num_add
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_secp256k1_num_add
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_secp256k1_num_add
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_secp256k1_num_add
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_secp256k1_num_add
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_secp256k1_num_add
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	movq	%rbx, %rdx
	callq	_secp256k1_num_add
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_secp256k1_num_mod
	movq	%rbx, %rdi
	callq	_secp256k1_num_is_zero
	movl	%eax, %edi
	callq	_CHECK
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_num_mod                   ; -- Begin function test_num_mod
	.p2align	2
_test_num_mod:                          ; @test_num_mod
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	x0, x29, #4
	bl	_random_scalar_order_test
	add	x0, sp, #8
	sub	x1, x29, #4
	bl	_secp256k1_scalar_get_num
	sub	x0, x29, #4
	mov	w1, #0
	bl	_secp256k1_scalar_set_int
	add	x0, sp, #4
	sub	x1, x29, #4
	bl	_secp256k1_scalar_get_num
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_secp256k1_num_mod
	add	x0, sp, #4
	bl	_secp256k1_num_is_zero
	bl	_CHECK
	sub	x0, x29, #4
	mov	w1, #1
	bl	_secp256k1_scalar_set_int
	add	x0, sp, #8
	sub	x1, x29, #4
	bl	_secp256k1_scalar_get_num
	add	x0, sp, #4
	sub	x1, x29, #4
	bl	_secp256k1_scalar_get_num
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_secp256k1_num_mod
	add	x0, sp, #4
	bl	_secp256k1_num_is_zero
	bl	_CHECK
	sub	x0, x29, #4
	bl	_random_scalar_order_test
	add	x0, sp, #4
	sub	x1, x29, #4
	bl	_secp256k1_scalar_get_num
	add	x0, sp, #4
	add	x1, sp, #4
	add	x2, sp, #4
	bl	_secp256k1_num_add
	add	x0, sp, #4
	add	x1, sp, #4
	add	x2, sp, #4
	bl	_secp256k1_num_add
	add	x0, sp, #4
	add	x1, sp, #4
	add	x2, sp, #4
	bl	_secp256k1_num_add
	add	x0, sp, #4
	add	x1, sp, #4
	add	x2, sp, #4
	bl	_secp256k1_num_add
	add	x0, sp, #4
	add	x1, sp, #4
	add	x2, sp, #4
	bl	_secp256k1_num_add
	add	x0, sp, #4
	add	x1, sp, #4
	add	x2, sp, #4
	bl	_secp256k1_num_add
	add	x0, sp, #4
	add	x1, sp, #4
	add	x2, sp, #4
	bl	_secp256k1_num_add
	add	x0, sp, #4
	add	x1, sp, #4
	add	x2, sp, #4
	bl	_secp256k1_num_add
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_secp256k1_num_mod
	add	x0, sp, #4
	bl	_secp256k1_num_is_zero
	bl	_CHECK
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
