	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_secp256k1_nonce_function_smallint ## -- Begin function secp256k1_nonce_function_smallint
	.p2align	4, 0x90
_secp256k1_nonce_function_smallint:     ## @secp256k1_nonce_function_smallint
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%r8), %esi
	testl	%r9d, %r9d
	je	LBB0_2
## %bb.1:
	incl	%esi
	movq	_EXHAUSTIVE_TEST_ORDER@GOTPCREL(%rip), %rcx
	movl	%esi, %eax
	cltd
	idivl	(%rcx)
	movl	%edx, %esi
	movl	%edx, (%r8)
LBB0_2:
	leaq	-20(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_secp256k1_scalar_set_int
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_scalar_get_b32
	movl	$1, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXHAUSTIVE_TEST_ORDER,4,2      ## @EXHAUSTIVE_TEST_ORDER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_secp256k1_nonce_function_smallint ; -- Begin function secp256k1_nonce_function_smallint
	.p2align	2
_secp256k1_nonce_function_smallint:     ; @secp256k1_nonce_function_smallint
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w1, [x4]
	cbz	w5, LBB0_2
; %bb.1:
	add	w8, w1, #1
Lloh0:
	adrp	x9, _EXHAUSTIVE_TEST_ORDER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EXHAUSTIVE_TEST_ORDER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w1, w10, w9, w8
	str	w1, [x4]
LBB0_2:
	add	x0, sp, #12
	bl	_secp256k1_scalar_set_int
	add	x1, sp, #12
	mov	x0, x19
	bl	_secp256k1_scalar_get_b32
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EXHAUSTIVE_TEST_ORDER,4,2      ; @EXHAUSTIVE_TEST_ORDER
.subsections_via_symbols
