	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_rand_int                  ## -- Begin function test_rand_int
	.p2align	4, 0x90
_test_rand_int:                         ## @test_rand_int
	.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
	movl	%esi, %r14d
	movl	%edi, %r15d
	imull	$2073, %esi, %ebx               ## imm = 0x819
	movl	%edi, %eax
	cltd
	idivl	%esi
	xorl	%edi, %edi
	testl	%edx, %edx
	sete	%dil
	callq	_CHECK
	movl	$-1, %r12d
	cmpl	$100, %ebx
	jl	LBB0_4
## %bb.1:
	movslq	%ebx, %rax
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	_secp256k1_rand_int
	movl	%eax, %r13d
	xorl	%edi, %edi
	cmpl	%r15d, %eax
	setl	%dil
	callq	_CHECK
	movl	%r13d, %eax
	cltd
	idivl	%r14d
	btsl	%edx, %r12d
	decl	%ebx
	jne	LBB0_2
## %bb.3:
	notl	%r12d
LBB0_4:
	negb	%r14b
	movl	%r14d, %ecx
	shll	%cl, %r12d
	xorl	%edi, %edi
	testl	%r12d, %r12d
	sete	%dil
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CHECK                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_test_rand_int                  ; -- Begin function test_rand_int
	.p2align	2
_test_rand_int:                         ; @test_rand_int
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w8, #2073
	mul	w21, w1, w8
	sdiv	w8, w0, w1
	msub	w8, w8, w1, w0
	cmp	w8, #0
	cset	w0, eq
	bl	_CHECK
	cmp	w21, #100
	b.lt	LBB0_4
; %bb.1:
	mov	w22, #0
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x8, w21, w8
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w23, w8, w9
	mov	w24, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_secp256k1_rand_int
	mov	x21, x0
	cmp	w0, w20
	cset	w0, lt
	bl	_CHECK
	sdiv	w8, w21, w19
	msub	w8, w8, w19, w21
	lsl	w8, w24, w8
	orr	w22, w8, w22
	subs	w23, w23, #1
	b.ne	LBB0_2
; %bb.3:
	mvn	w8, w22
	b	LBB0_5
LBB0_4:
	mov	w8, #-1
LBB0_5:
	neg	w9, w19
	lsl	w8, w8, w9
	cmp	w8, #0
	cset	w0, eq
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_CHECK
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
