	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generate_scalar
_generate_scalar:                       ## @generate_scalar
	.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	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movl	%edi, %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -32(%rbp)
	movabsq	$128009175393125, %rcx          ## imm = 0x746C756D6365
	movq	%rcx, -48(%rbp)
	movl	$0, -41(%rbp)
	movl	$0, -84(%rbp)
	movb	%al, -42(%rbp)
	movb	%ah, -41(%rbp)
	movl	%edi, %ecx
	shrl	$16, %ecx
	movb	%cl, -40(%rbp)
	shrl	$24, %eax
	movb	%al, -39(%rbp)
	leaq	-88(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_secp256k1_sha256_initialize
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$11, %edx
	callq	_secp256k1_sha256_write
	leaq	-80(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_secp256k1_sha256_finalize
	leaq	-84(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_secp256k1_scalar_set_b32
	xorl	%edi, %edi
	cmpl	$0, -84(%rbp)
	sete	%dil
	callq	_CHECK
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_2
## %bb.1:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l___const.generate_scalar.c:            ## @__const.generate_scalar.c
	.asciz	"ecmult\000\000\000\000"

	.no_dead_strip	_generate_scalar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generate_scalar
_generate_scalar:                       ; @generate_scalar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	stur	wzr, [sp, #47]
	mov	x8, #25445
	movk	x8, #30061, lsl #16
	movk	x8, #29804, lsl #32
	str	x8, [sp, #40]
	str	wzr, [sp]
	strb	w0, [sp, #46]
	lsr	w8, w0, #8
	strb	w8, [sp, #47]
	lsr	w8, w0, #16
	strb	w8, [sp, #48]
	lsr	w8, w0, #24
	strb	w8, [sp, #49]
	add	x0, sp, #4
	bl	_secp256k1_sha256_initialize
	add	x0, sp, #4
	add	x1, sp, #40
	mov	w2, #11
	bl	_secp256k1_sha256_write
	add	x0, sp, #4
	add	x1, sp, #8
	bl	_secp256k1_sha256_finalize
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x19
	bl	_secp256k1_scalar_set_b32
	ldr	w8, [sp]
	cmp	w8, #0
	cset	w0, eq
	bl	_CHECK
	ldur	x8, [x29, #-24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const.generate_scalar.c:            ; @__const.generate_scalar.c
	.asciz	"ecmult\000\000\000\000"

	.no_dead_strip	_generate_scalar
.subsections_via_symbols
