	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_rand_int
_secp256k1_rand_int:                    ## @secp256k1_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
	xorl	%r15d, %r15d
	cmpl	$2, %edi
	jge	LBB0_1
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%edi, %r14d
	leal	-1(%r14), %ecx
	leaq	_secp256k1_rand_int.addbits(%rip), %rax
	xorl	%ebx, %ebx
	movl	%ecx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	shrl	%edx
	incq	%rbx
	addq	$4, %rax
	cmpl	$1, %ecx
	movl	%edx, %ecx
	ja	LBB0_2
## %bb.3:
	leaq	-32(%rbx), %r12
	cmpq	$-24, %r12
	ja	LBB0_5
## %bb.4:
	movl	%r14d, %r13d
	jmp	LBB0_6
LBB0_5:
	addl	(%rax), %ebx
	xorl	%r13d, %r13d
LBB0_6:
                                        ## implicit-def: $r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpl	%r13d, %ecx
	jl	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_secp256k1_rand_bits
	movl	%eax, %ecx
	cmpl	%r13d, %eax
	cmovll	%eax, %r15d
	jge	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$-23, %r12
	jb	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%ecx, %eax
	cltd
	idivl	%r14d
	movl	%edx, %r15d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @secp256k1_rand_int.addbits
_secp256k1_rand_int.addbits:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.long	0                               ## 0x0

	.no_dead_strip	_secp256k1_rand_int
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function secp256k1_rand_int
_secp256k1_rand_int:                    ; @secp256k1_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
	cmp	w0, #2
	b.ge	LBB0_3
; %bb.1:
	mov	w21, #0
LBB0_2:
	mov	x0, x21
	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
	ret
LBB0_3:
	mov	x19, x0
	mov	x20, #0
	sub	w8, w0, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w9, w8, #1
	add	x20, x20, #1
	cmp	w8, #1
	mov	x8, x9
	b.hi	LBB0_4
; %bb.5:
	sub	x22, x20, #32
	cmn	x22, #24
	b.hi	LBB0_7
; %bb.6:
	mov	x23, x19
	b	LBB0_8
LBB0_7:
	mov	w23, #0
Lloh0:
	adrp	x8, _secp256k1_rand_int.addbits@PAGE
Lloh1:
	add	x8, x8, _secp256k1_rand_int.addbits@PAGEOFF
	ldr	w8, [x8, x20, lsl #2]
	add	w20, w8, w20
LBB0_8:
                                        ; implicit-def: $w21
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	cmp	w0, w23
	b.lt	LBB0_2
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_secp256k1_rand_bits
	cmp	w0, w23
	csel	w21, w0, w21, lt
	b.ge	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cmn	x22, #23
	b.lo	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	sdiv	w8, w0, w19
	msub	w21, w8, w19, w0
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @secp256k1_rand_int.addbits
_secp256k1_rand_int.addbits:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.long	0                               ; 0x0

	.no_dead_strip	_secp256k1_rand_int
.subsections_via_symbols
