	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_ecmult_gen_blind
_secp256k1_ecmult_gen_blind:            ## @secp256k1_ecmult_gen_blind
	.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
	subq	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.1:
	movq	_secp256k1_ge_const_g@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_secp256k1_gej_set_ge
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_secp256k1_gej_neg
	leaq	4(%r14), %rdi
	movl	$1, %esi
	callq	_secp256k1_scalar_set_int
LBB0_2:
	leaq	4(%r14), %rsi
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	callq	_secp256k1_scalar_get_b32
	leaq	-144(%rbp), %rdi
	movl	$32, %ebx
	movq	%r12, %rsi
	movl	$32, %edx
	callq	_memcpy
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	leaq	-112(%rbp), %rdi
	movq	%r15, %rsi
	movl	$32, %edx
	callq	_memcpy
	movl	$64, %ebx
LBB0_4:
	leaq	-152(%rbp), %r15
	leaq	-144(%rbp), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_secp256k1_rfc6979_hmac_sha256_initialize
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$64, %edx
	callq	_memset
	leaq	-80(%rbp), %rbx
	leaq	-160(%rbp), %r12
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, -148(%rbp)
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$32, %edx
	callq	_secp256k1_rfc6979_hmac_sha256_generate
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_fe_set_b32
	testl	%eax, %eax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	callq	_secp256k1_fe_is_zero
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, -148(%rbp)
	jne	LBB0_6
## %bb.8:
	leaq	-160(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_gej_rescale
	movq	%rbx, %rdi
	callq	_secp256k1_fe_clear
	leaq	-152(%rbp), %r15
	leaq	-80(%rbp), %rbx
	leaq	-156(%rbp), %r12
	leaq	-148(%rbp), %r13
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movl	$1, -148(%rbp)
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$32, %edx
	callq	_secp256k1_rfc6979_hmac_sha256_generate
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	_secp256k1_scalar_set_b32
	cmpl	$0, -148(%rbp)
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r12, %rdi
	callq	_secp256k1_scalar_is_zero
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, -148(%rbp)
	jne	LBB0_10
## %bb.12:
	leaq	-152(%rbp), %rdi
	callq	_secp256k1_rfc6979_hmac_sha256_finalize
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	leaq	-164(%rbp), %r15
	leaq	-156(%rbp), %rbx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_secp256k1_ecmult_gen
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_scalar_negate
	movl	-156(%rbp), %eax
	movl	%eax, 4(%r14)
	movl	-164(%rbp), %eax
	movl	%eax, (%r14)
	movq	%rbx, %rdi
	callq	_secp256k1_scalar_clear
	movq	%r15, %rdi
	callq	_secp256k1_gej_clear
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_secp256k1_ge_const_g,4,2       ## @secp256k1_ge_const_g
	.no_dead_strip	_secp256k1_ecmult_gen_blind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function secp256k1_ecmult_gen_blind
_secp256k1_ecmult_gen_blind:            ; @secp256k1_ecmult_gen_blind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	mov	x20, x1
	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, #-40]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #64]
	stp	q0, q0, [sp, #32]
	cbnz	x1, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, _secp256k1_ge_const_g@GOTPAGE
Lloh4:
	ldr	x1, [x1, _secp256k1_ge_const_g@GOTPAGEOFF]
	mov	x0, x19
	bl	_secp256k1_gej_set_ge
	mov	x0, x19
	mov	x1, x19
	bl	_secp256k1_gej_neg
	add	x0, x19, #4
	mov	w1, #1
	bl	_secp256k1_scalar_set_int
LBB0_2:
	add	x1, x19, #4
	sub	x0, x29, #72
	bl	_secp256k1_scalar_get_b32
	add	x22, sp, #32
	mov	w21, #32
	add	x0, sp, #32
	sub	x1, x29, #72
	mov	w2, #32
	bl	_memcpy
	cbz	x20, LBB0_4
; %bb.3:
	add	x0, x22, #32
	mov	x1, x20
	mov	w2, #32
	bl	_memcpy
	mov	w21, #64
LBB0_4:
	add	x0, sp, #16
	add	x1, sp, #32
	mov	x2, x21
	bl	_secp256k1_rfc6979_hmac_sha256_initialize
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #64
	bl	_memset
	mov	w20, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w20, [sp, #12]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #16
	sub	x1, x29, #72
	mov	w2, #32
	bl	_secp256k1_rfc6979_hmac_sha256_generate
	add	x0, sp, #20
	sub	x1, x29, #72
	bl	_secp256k1_fe_set_b32
	cbz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #20
	bl	_secp256k1_fe_is_zero
	cmp	x0, #0
	cset	w8, ne
	str	w8, [sp, #12]
	cbnz	x0, LBB0_6
; %bb.8:
	add	x1, sp, #20
	mov	x0, x19
	bl	_secp256k1_gej_rescale
	add	x0, sp, #20
	bl	_secp256k1_fe_clear
	mov	w20, #1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	str	w20, [sp, #12]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #16
	sub	x1, x29, #72
	mov	w2, #32
	bl	_secp256k1_rfc6979_hmac_sha256_generate
	add	x0, sp, #28
	sub	x1, x29, #72
	add	x2, sp, #12
	bl	_secp256k1_scalar_set_b32
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #28
	bl	_secp256k1_scalar_is_zero
	cmp	x0, #0
	cset	w8, ne
	str	w8, [sp, #12]
	cbnz	x0, LBB0_10
; %bb.12:
	add	x0, sp, #16
	bl	_secp256k1_rfc6979_hmac_sha256_finalize
	sub	x0, x29, #72
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x1, sp, #24
	add	x2, sp, #28
	mov	x0, x19
	bl	_secp256k1_ecmult_gen
	add	x0, sp, #28
	add	x1, sp, #28
	bl	_secp256k1_scalar_negate
	ldp	w9, w8, [sp, #24]
	stp	w9, w8, [x19]
	add	x0, sp, #28
	bl	_secp256k1_scalar_clear
	add	x0, sp, #24
	bl	_secp256k1_gej_clear
	ldur	x8, [x29, #-40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_secp256k1_ge_const_g,4,2       ; @secp256k1_ge_const_g
	.no_dead_strip	_secp256k1_ecmult_gen_blind
.subsections_via_symbols
