	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_eckey_pubkey_parse
_secp256k1_eckey_pubkey_parse:          ## @secp256k1_eckey_pubkey_parse
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	cmpq	$65, %rdx
	je	LBB0_7
## %bb.1:
	cmpq	$33, %rdx
	jne	LBB0_16
## %bb.2:
	movb	(%rbx), %al
	movq	_SECP256K1_TAG_PUBKEY_EVEN@GOTPCREL(%rip), %rcx
	movq	_SECP256K1_TAG_PUBKEY_ODD@GOTPCREL(%rip), %r12
	cmpb	(%rcx), %al
	je	LBB0_4
## %bb.3:
	cmpb	(%r12), %al
	jne	LBB0_16
LBB0_4:
	leaq	1(%rbx), %rsi
	leaq	-52(%rbp), %rdi
	callq	_secp256k1_fe_set_b32
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movb	(%rbx), %al
	xorl	%edx, %edx
	cmpb	(%r12), %al
	sete	%dl
	leaq	-52(%rbp), %rsi
	movq	%r14, %rdi
	callq	_secp256k1_ge_set_xo_var
	xorl	%r15d, %r15d
	testq	%rax, %rax
	setne	%r15b
	jmp	LBB0_16
LBB0_7:
	movb	(%rbx), %al
	movq	_SECP256K1_TAG_PUBKEY_UNCOMPRESSED@GOTPCREL(%rip), %rcx
	movq	_SECP256K1_TAG_PUBKEY_HYBRID_EVEN@GOTPCREL(%rip), %r13
	movq	_SECP256K1_TAG_PUBKEY_HYBRID_ODD@GOTPCREL(%rip), %r12
	cmpb	(%rcx), %al
	je	LBB0_10
## %bb.8:
	cmpb	(%r13), %al
	je	LBB0_10
## %bb.9:
	cmpb	(%r12), %al
	jne	LBB0_16
LBB0_10:
	leaq	1(%rbx), %rsi
	leaq	-48(%rbp), %rdi
	callq	_secp256k1_fe_set_b32
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	leaq	33(%rbx), %rsi
	leaq	-44(%rbp), %rdi
	callq	_secp256k1_fe_set_b32
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_secp256k1_ge_set_xy
	movb	(%rbx), %al
	cmpb	(%r13), %al
	je	LBB0_14
## %bb.13:
	cmpb	(%r12), %al
	jne	LBB0_15
LBB0_14:
	leaq	-44(%rbp), %rdi
	callq	_secp256k1_fe_is_odd
	movb	(%rbx), %cl
	xorl	%edx, %edx
	cmpb	(%r12), %cl
	sete	%dl
	cmpl	%edx, %eax
	jne	LBB0_16
LBB0_15:
	movq	%r14, %rdi
	callq	_secp256k1_ge_is_valid_var
	movl	%eax, %r15d
	jmp	LBB0_16
LBB0_5:
	xorl	%r15d, %r15d
LBB0_16:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SECP256K1_TAG_PUBKEY_EVEN,1,0  ## @SECP256K1_TAG_PUBKEY_EVEN
	.comm	_SECP256K1_TAG_PUBKEY_ODD,1,0   ## @SECP256K1_TAG_PUBKEY_ODD
	.comm	_SECP256K1_TAG_PUBKEY_UNCOMPRESSED,1,0 ## @SECP256K1_TAG_PUBKEY_UNCOMPRESSED
	.comm	_SECP256K1_TAG_PUBKEY_HYBRID_EVEN,1,0 ## @SECP256K1_TAG_PUBKEY_HYBRID_EVEN
	.comm	_SECP256K1_TAG_PUBKEY_HYBRID_ODD,1,0 ## @SECP256K1_TAG_PUBKEY_HYBRID_ODD
	.no_dead_strip	_secp256k1_eckey_pubkey_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function secp256k1_eckey_pubkey_parse
_secp256k1_eckey_pubkey_parse:          ; @secp256k1_eckey_pubkey_parse
	.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	x20, x1
	mov	x19, x0
	cmp	x2, #65
	b.eq	LBB0_5
; %bb.1:
	cmp	x2, #33
	b.ne	LBB0_11
; %bb.2:
	ldrb	w8, [x20]
Lloh0:
	adrp	x9, _SECP256K1_TAG_PUBKEY_EVEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SECP256K1_TAG_PUBKEY_EVEN@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh2:
	adrp	x21, _SECP256K1_TAG_PUBKEY_ODD@GOTPAGE
Lloh3:
	ldr	x21, [x21, _SECP256K1_TAG_PUBKEY_ODD@GOTPAGEOFF]
	ldrb	w10, [x21]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_11
; %bb.3:
	add	x1, x20, #1
	add	x0, sp, #12
	bl	_secp256k1_fe_set_b32
	cbz	x0, LBB0_12
; %bb.4:
	ldrb	w8, [x20]
	ldrb	w9, [x21]
	cmp	w8, w9
	cset	w2, eq
	add	x1, sp, #12
	mov	x0, x19
	bl	_secp256k1_ge_set_xo_var
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_12
LBB0_5:
	ldrb	w8, [x20]
Lloh4:
	adrp	x9, _SECP256K1_TAG_PUBKEY_UNCOMPRESSED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SECP256K1_TAG_PUBKEY_UNCOMPRESSED@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh6:
	adrp	x22, _SECP256K1_TAG_PUBKEY_HYBRID_EVEN@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SECP256K1_TAG_PUBKEY_HYBRID_EVEN@GOTPAGEOFF]
	ldrb	w10, [x22]
Lloh8:
	adrp	x21, _SECP256K1_TAG_PUBKEY_HYBRID_ODD@GOTPAGE
Lloh9:
	ldr	x21, [x21, _SECP256K1_TAG_PUBKEY_HYBRID_ODD@GOTPAGEOFF]
	ldrb	w11, [x21]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	ccmp	w8, w11, #4, ne
	b.ne	LBB0_11
; %bb.6:
	add	x1, x20, #1
	add	x0, sp, #8
	bl	_secp256k1_fe_set_b32
	cbz	x0, LBB0_12
; %bb.7:
	add	x1, x20, #33
	add	x0, sp, #4
	bl	_secp256k1_fe_set_b32
	cbz	x0, LBB0_12
; %bb.8:
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x19
	bl	_secp256k1_ge_set_xy
	ldrb	w8, [x20]
	ldrb	w9, [x22]
	ldrb	w10, [x21]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_10
; %bb.9:
	add	x0, sp, #4
	bl	_secp256k1_fe_is_odd
	ldrb	w8, [x20]
	ldrb	w9, [x21]
	cmp	w8, w9
	cset	w8, eq
	cmp	w0, w8
	b.ne	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_secp256k1_ge_is_valid_var
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SECP256K1_TAG_PUBKEY_EVEN,1,0  ; @SECP256K1_TAG_PUBKEY_EVEN
	.comm	_SECP256K1_TAG_PUBKEY_ODD,1,0   ; @SECP256K1_TAG_PUBKEY_ODD
	.comm	_SECP256K1_TAG_PUBKEY_UNCOMPRESSED,1,0 ; @SECP256K1_TAG_PUBKEY_UNCOMPRESSED
	.comm	_SECP256K1_TAG_PUBKEY_HYBRID_EVEN,1,0 ; @SECP256K1_TAG_PUBKEY_HYBRID_EVEN
	.comm	_SECP256K1_TAG_PUBKEY_HYBRID_ODD,1,0 ; @SECP256K1_TAG_PUBKEY_HYBRID_ODD
	.no_dead_strip	_secp256k1_eckey_pubkey_parse
.subsections_via_symbols
