	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_secp256k1_ec_pubkey_tweak_add  ## -- Begin function secp256k1_ec_pubkey_tweak_add
	.p2align	4, 0x90
_secp256k1_ec_pubkey_tweak_add:         ## @secp256k1_ec_pubkey_tweak_add
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$0, -36(%rbp)
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_VERIFY_CHECK
	movq	%r15, %rdi
	callq	_secp256k1_ecmult_context_is_built
	movl	%eax, %edi
	callq	_ARG_CHECK
	xorl	%edi, %edi
	testq	%r14, %r14
	setne	%dil
	callq	_ARG_CHECK
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_ARG_CHECK
	leaq	-44(%rbp), %rdi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_secp256k1_scalar_set_b32
	cmpl	$0, -36(%rbp)
	je	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	jmp	LBB0_5
LBB0_2:
	leaq	-40(%rbp), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_secp256k1_pubkey_load
	movq	%rax, %r12
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	testq	%r12, %r12
	je	LBB0_5
## %bb.3:
	leaq	-40(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_secp256k1_eckey_pubkey_tweak_add
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_secp256k1_pubkey_save
	movl	$1, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_secp256k1_ec_pubkey_tweak_add  ; -- Begin function secp256k1_ec_pubkey_tweak_add
	.p2align	2
_secp256k1_ec_pubkey_tweak_add:         ; @secp256k1_ec_pubkey_tweak_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	str	wzr, [sp, #4]
	cmp	x0, #0
	cset	w0, ne
	bl	_VERIFY_CHECK
	mov	x0, x20
	bl	_secp256k1_ecmult_context_is_built
	bl	_ARG_CHECK
	cmp	x19, #0
	cset	w0, ne
	bl	_ARG_CHECK
	cmp	x21, #0
	cset	w0, ne
	bl	_ARG_CHECK
	add	x0, sp, #8
	add	x2, sp, #4
	mov	x1, x21
	bl	_secp256k1_scalar_set_b32
	ldr	w8, [sp, #4]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_2:
	mov	w0, #0
LBB0_3:
	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
	add	sp, sp, #64
	ret
LBB0_4:
	add	x1, sp, #12
	mov	x0, x20
	mov	x2, x19
	bl	_secp256k1_pubkey_load
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	cbz	x21, LBB0_2
; %bb.5:
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x20
	bl	_secp256k1_eckey_pubkey_tweak_add
	cbz	x0, LBB0_3
; %bb.6:
	add	x1, sp, #12
	mov	x0, x19
	bl	_secp256k1_pubkey_save
	mov	w0, #1
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
