	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r_from_k                       ## -- Begin function r_from_k
	.p2align	4, 0x90
_r_from_k:                              ## @r_from_k
	.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	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -32(%rbp)
	movq	_EXHAUSTIVE_TEST_ORDER@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movq	%rdi, %rbx
	movslq	%edx, %rax
	movl	(%rsi,%rax,4), %eax
	movl	%eax, -68(%rbp)
	leaq	-68(%rbp), %r14
	movq	%r14, %rdi
	callq	_secp256k1_fe_normalize
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_secp256k1_fe_get_b32
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_secp256k1_scalar_set_b32
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.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	_r_from_k                       ; -- Begin function r_from_k
	.p2align	2
_r_from_k:                              ; @r_from_k
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _EXHAUSTIVE_TEST_ORDER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EXHAUSTIVE_TEST_ORDER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sdiv	w9, w2, w8
	msub	w8, w9, w8, w2
	ldr	w8, [x1, w8, sxtw #2]
	str	w8, [sp, #4]
	add	x0, sp, #4
	bl	_secp256k1_fe_normalize
	add	x0, sp, #8
	add	x1, sp, #4
	bl	_secp256k1_fe_get_b32
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, #0
	bl	_secp256k1_scalar_set_b32
	ldur	x8, [x29, #-24]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EXHAUSTIVE_TEST_ORDER,4,2      ; @EXHAUSTIVE_TEST_ORDER
.subsections_via_symbols
