	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hc_secp256k1_pubkey_tweak_mul  ## -- Begin function hc_secp256k1_pubkey_tweak_mul
	.p2align	4, 0x90
_hc_secp256k1_pubkey_tweak_mul:         ## @hc_secp256k1_pubkey_tweak_mul
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_SECP256K1_CONTEXT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_secp256k1_context_create
	movq	%rax, %r12
	leaq	-48(%rbp), %rsi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_secp256k1_pubkey_load
	movl	$0, -40(%rbp)
	leaq	-36(%rbp), %rdi
	leaq	-40(%rbp), %rdx
	movq	%r14, %rsi
	callq	_secp256k1_scalar_set_b32
	xorl	%ebx, %ebx
	cmpl	$0, -40(%rbp)
	jne	LBB0_3
## %bb.1:
	leaq	-36(%rbp), %rdi
	callq	_secp256k1_scalar_is_zero
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	-8(,%r15,8), %rcx
	leaq	-52(%rbp), %rbx
	leaq	-48(%rbp), %r15
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_secp256k1_ecmult_const
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_ge_set_gej
	movq	%r15, %rdi
	callq	_secp256k1_fe_normalize
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_secp256k1_fe_normalize
	movq	%rbx, %rdi
	callq	_secp256k1_fe_is_odd
	orl	$2, %eax
	movl	%eax, (%r14)
	addq	$4, %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_secp256k1_fe_get_b32
	movl	$1, %ebx
LBB0_3:
	leaq	-36(%rbp), %rdi
	callq	_secp256k1_scalar_clear
	movq	%r12, %rdi
	callq	_secp256k1_context_destroy
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SECP256K1_CONTEXT_NONE,4,2     ## @SECP256K1_CONTEXT_NONE
	.comm	_SECP256K1_CONTEXT_VERIFY,4,2   ## @SECP256K1_CONTEXT_VERIFY
	.comm	_SECP256K1_EC_COMPRESSED,4,2    ## @SECP256K1_EC_COMPRESSED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hc_secp256k1_pubkey_tweak_mul  ; -- Begin function hc_secp256k1_pubkey_tweak_mul
	.p2align	2
_hc_secp256k1_pubkey_tweak_mul:         ; @hc_secp256k1_pubkey_tweak_mul
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _SECP256K1_CONTEXT_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SECP256K1_CONTEXT_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_secp256k1_context_create
	mov	x19, x0
	add	x1, sp, #16
	mov	x2, x22
	bl	_secp256k1_pubkey_load
	str	wzr, [sp, #12]
	add	x0, sp, #8
	add	x2, sp, #12
	mov	x1, x20
	bl	_secp256k1_scalar_set_b32
	mov	w22, #0
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_4
; %bb.1:
	add	x0, sp, #8
	bl	_secp256k1_scalar_is_zero
	cbz	x0, LBB0_3
; %bb.2:
	mov	w22, #0
	b	LBB0_4
LBB0_3:
	lsl	x8, x21, #3
	sub	x3, x8, #8
	add	x21, sp, #16
	add	x0, sp, #28
	add	x1, sp, #16
	add	x2, sp, #8
	bl	_secp256k1_ecmult_const
	add	x0, sp, #16
	add	x1, sp, #28
	bl	_secp256k1_ge_set_gej
	add	x0, sp, #16
	bl	_secp256k1_fe_normalize
	orr	x21, x21, #0x4
	mov	x0, x21
	bl	_secp256k1_fe_normalize
	mov	x0, x21
	bl	_secp256k1_fe_is_odd
	orr	w8, w0, #0x2
	str	w8, [x20], #4
	add	x1, sp, #16
	mov	x0, x20
	bl	_secp256k1_fe_get_b32
	mov	w22, #1
LBB0_4:
	add	x0, sp, #8
	bl	_secp256k1_scalar_clear
	mov	x0, x19
	bl	_secp256k1_context_destroy
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SECP256K1_CONTEXT_NONE,4,2     ; @SECP256K1_CONTEXT_NONE
	.comm	_SECP256K1_CONTEXT_VERIFY,4,2   ; @SECP256K1_CONTEXT_VERIFY
	.comm	_SECP256K1_EC_COMPRESSED,4,2    ; @SECP256K1_EC_COMPRESSED
.subsections_via_symbols
