	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_secp256k1_context_preallocated_create ## -- Begin function secp256k1_context_preallocated_create
	.p2align	4, 0x90
_secp256k1_context_preallocated_create: ## @secp256k1_context_preallocated_create
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	%rdi, -32(%rbp)
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_VERIFY_CHECK
	movl	%r14d, %edi
	callq	_secp256k1_context_preallocated_size
	leaq	-32(%rbp), %rdi
	movl	$16, %esi
	movq	%rbx, %rdx
	movq	%rax, %rcx
	callq	_manual_alloc
	movq	%rax, %rbx
	movq	_default_illegal_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_default_error_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_SECP256K1_FLAGS_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movq	_SECP256K1_FLAGS_TYPE_CONTEXT@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setne	%dil
	xorl	%esi, %esi
	callq	_EXPECT
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$8, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_secp256k1_callback_call
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_2:
	movq	%rbx, %rdi
	callq	_secp256k1_ecmult_context_init
	movq	%rbx, %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_secp256k1_ecmult_gen_context_init
	movq	_SECP256K1_FLAGS_BIT_CONTEXT_SIGN@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	-32(%rbp), %rsi
	movq	%r15, %rdi
	callq	_secp256k1_ecmult_gen_context_build
LBB0_4:
	movq	_SECP256K1_FLAGS_BIT_CONTEXT_VERIFY@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_secp256k1_ecmult_context_build
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_default_illegal_callback,4,2   ## @default_illegal_callback
	.comm	_default_error_callback,4,2     ## @default_error_callback
	.comm	_SECP256K1_FLAGS_TYPE_MASK,4,2  ## @SECP256K1_FLAGS_TYPE_MASK
	.comm	_SECP256K1_FLAGS_TYPE_CONTEXT,4,2 ## @SECP256K1_FLAGS_TYPE_CONTEXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid flags"

	.comm	_SECP256K1_FLAGS_BIT_CONTEXT_SIGN,4,2 ## @SECP256K1_FLAGS_BIT_CONTEXT_SIGN
	.comm	_SECP256K1_FLAGS_BIT_CONTEXT_VERIFY,4,2 ## @SECP256K1_FLAGS_BIT_CONTEXT_VERIFY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_secp256k1_context_preallocated_create ; -- Begin function secp256k1_context_preallocated_create
	.p2align	2
_secp256k1_context_preallocated_create: ; @secp256k1_context_preallocated_create
	.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	x19, x1
	mov	x20, x0
	str	x0, [sp, #8]
	cmp	x0, #0
	cset	w0, ne
	bl	_VERIFY_CHECK
	mov	x0, x19
	bl	_secp256k1_context_preallocated_size
	mov	x3, x0
	add	x0, sp, #8
	mov	w1, #16
	mov	x2, x20
	bl	_manual_alloc
	mov	x20, x0
Lloh0:
	adrp	x8, _default_illegal_callback@GOTPAGE
Lloh1:
	ldr	x8, [x8, _default_illegal_callback@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x21, x0
	str	w8, [x21, #8]!
Lloh3:
	adrp	x8, _default_error_callback@GOTPAGE
Lloh4:
	ldr	x8, [x8, _default_error_callback@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x0, #12]
Lloh6:
	adrp	x8, _SECP256K1_FLAGS_TYPE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SECP256K1_FLAGS_TYPE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w19
Lloh9:
	adrp	x9, _SECP256K1_FLAGS_TYPE_CONTEXT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SECP256K1_FLAGS_TYPE_CONTEXT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, ne
	mov	w1, #0
	bl	_EXPECT
	cbz	x0, LBB0_2
; %bb.1:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_secp256k1_callback_call
	mov	x20, #0
	b	LBB0_6
LBB0_2:
	mov	x0, x20
	bl	_secp256k1_ecmult_context_init
	add	x21, x20, #4
	mov	x0, x21
	bl	_secp256k1_ecmult_gen_context_init
Lloh14:
	adrp	x8, _SECP256K1_FLAGS_BIT_CONTEXT_SIGN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SECP256K1_FLAGS_BIT_CONTEXT_SIGN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_4
; %bb.3:
	add	x1, sp, #8
	mov	x0, x21
	bl	_secp256k1_ecmult_gen_context_build
LBB0_4:
Lloh17:
	adrp	x8, _SECP256K1_FLAGS_BIT_CONTEXT_VERIFY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SECP256K1_FLAGS_BIT_CONTEXT_VERIFY@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_6
; %bb.5:
	add	x1, sp, #8
	mov	x0, x20
	bl	_secp256k1_ecmult_context_build
LBB0_6:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_default_illegal_callback,4,2   ; @default_illegal_callback
	.comm	_default_error_callback,4,2     ; @default_error_callback
	.comm	_SECP256K1_FLAGS_TYPE_MASK,4,2  ; @SECP256K1_FLAGS_TYPE_MASK
	.comm	_SECP256K1_FLAGS_TYPE_CONTEXT,4,2 ; @SECP256K1_FLAGS_TYPE_CONTEXT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid flags"

	.comm	_SECP256K1_FLAGS_BIT_CONTEXT_SIGN,4,2 ; @SECP256K1_FLAGS_BIT_CONTEXT_SIGN
	.comm	_SECP256K1_FLAGS_BIT_CONTEXT_VERIFY,4,2 ; @SECP256K1_FLAGS_BIT_CONTEXT_VERIFY
.subsections_via_symbols
