	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_secp256k1_context_preallocated_size ## -- Begin function secp256k1_context_preallocated_size
	.p2align	4, 0x90
_secp256k1_context_preallocated_size:   ## @secp256k1_context_preallocated_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movl	$4, %edi
	callq	_ROUND_TO_ALIGN
	movq	%rax, %r14
	movq	_SECP256K1_FLAGS_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %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:
	movq	_default_illegal_callback@GOTPCREL(%rip), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_secp256k1_callback_call
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_2:
	movq	_SECP256K1_FLAGS_BIT_CONTEXT_SIGN@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	movl	$0, %eax
	testl	%ebx, (%rdx)
	je	LBB0_4
## %bb.3:
	movq	_SECP256K1_ECMULT_GEN_CONTEXT_PREALLOCATED_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_4:
	addq	%r14, %rax
	movq	_SECP256K1_FLAGS_BIT_CONTEXT_VERIFY@GOTPCREL(%rip), %rdx
	testl	%ebx, (%rdx)
	je	LBB0_6
## %bb.5:
	movq	_SECP256K1_ECMULT_CONTEXT_PREALLOCATED_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_6:
	addq	%rcx, %rax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SECP256K1_FLAGS_TYPE_MASK,4,2  ## @SECP256K1_FLAGS_TYPE_MASK
	.comm	_SECP256K1_FLAGS_TYPE_CONTEXT,4,2 ## @SECP256K1_FLAGS_TYPE_CONTEXT
	.comm	_default_illegal_callback,4,2   ## @default_illegal_callback
	.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_ECMULT_GEN_CONTEXT_PREALLOCATED_SIZE,8,3 ## @SECP256K1_ECMULT_GEN_CONTEXT_PREALLOCATED_SIZE
	.comm	_SECP256K1_FLAGS_BIT_CONTEXT_VERIFY,4,2 ## @SECP256K1_FLAGS_BIT_CONTEXT_VERIFY
	.comm	_SECP256K1_ECMULT_CONTEXT_PREALLOCATED_SIZE,8,3 ## @SECP256K1_ECMULT_CONTEXT_PREALLOCATED_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_secp256k1_context_preallocated_size ; -- Begin function secp256k1_context_preallocated_size
	.p2align	2
_secp256k1_context_preallocated_size:   ; @secp256k1_context_preallocated_size
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w0, #4
	bl	_ROUND_TO_ALIGN
	mov	x20, x0
Lloh0:
	adrp	x8, _SECP256K1_FLAGS_TYPE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SECP256K1_FLAGS_TYPE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w19
Lloh3:
	adrp	x9, _SECP256K1_FLAGS_TYPE_CONTEXT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SECP256K1_FLAGS_TYPE_CONTEXT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, ne
	mov	w1, #0
	bl	_EXPECT
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x0, _default_illegal_callback@GOTPAGE
Lloh7:
	ldr	x0, [x0, _default_illegal_callback@GOTPAGEOFF]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_secp256k1_callback_call
	mov	x0, #0
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _SECP256K1_FLAGS_BIT_CONTEXT_SIGN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SECP256K1_FLAGS_BIT_CONTEXT_SIGN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _SECP256K1_ECMULT_GEN_CONTEXT_PREALLOCATED_SIZE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SECP256K1_ECMULT_GEN_CONTEXT_PREALLOCATED_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	tst	w8, w19
	csel	x8, xzr, x9, eq
Lloh16:
	adrp	x9, _SECP256K1_FLAGS_BIT_CONTEXT_VERIFY@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SECP256K1_FLAGS_BIT_CONTEXT_VERIFY@GOTPAGEOFF]
Lloh18:
	adrp	x10, _SECP256K1_ECMULT_CONTEXT_PREALLOCATED_SIZE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _SECP256K1_ECMULT_CONTEXT_PREALLOCATED_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	ldr	x10, [x10]
	tst	w9, w19
	csel	x9, xzr, x10, eq
	add	x8, x8, x20
	add	x0, x8, x9
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SECP256K1_FLAGS_TYPE_MASK,4,2  ; @SECP256K1_FLAGS_TYPE_MASK
	.comm	_SECP256K1_FLAGS_TYPE_CONTEXT,4,2 ; @SECP256K1_FLAGS_TYPE_CONTEXT
	.comm	_default_illegal_callback,4,2   ; @default_illegal_callback
	.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_ECMULT_GEN_CONTEXT_PREALLOCATED_SIZE,8,3 ; @SECP256K1_ECMULT_GEN_CONTEXT_PREALLOCATED_SIZE
	.comm	_SECP256K1_FLAGS_BIT_CONTEXT_VERIFY,4,2 ; @SECP256K1_FLAGS_BIT_CONTEXT_VERIFY
	.comm	_SECP256K1_ECMULT_CONTEXT_PREALLOCATED_SIZE,8,3 ; @SECP256K1_ECMULT_CONTEXT_PREALLOCATED_SIZE
.subsections_via_symbols
