	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function secp256k1_eckey_pubkey_serialize
_secp256k1_eckey_pubkey_serialize:      ## @secp256k1_eckey_pubkey_serialize
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_secp256k1_ge_is_infinity
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.1:
	leaq	4(%rbx), %r13
	movq	%r13, %rdi
	callq	_secp256k1_fe_normalize_var
	movq	%rbx, %rdi
	callq	_secp256k1_fe_normalize_var
	leaq	1(%r14), %rdi
	movq	%r13, %rsi
	callq	_secp256k1_fe_get_b32
	testl	%r12d, %r12d
	je	LBB0_6
## %bb.2:
	movq	$33, (%r15)
	movq	%rbx, %rdi
	callq	_secp256k1_fe_is_odd
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	_SECP256K1_TAG_PUBKEY_EVEN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	$65, (%r15)
	movq	_SECP256K1_TAG_PUBKEY_UNCOMPRESSED@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%r14)
	addq	$33, %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_secp256k1_fe_get_b32
	jmp	LBB0_7
LBB0_3:
	movq	_SECP256K1_TAG_PUBKEY_ODD@GOTPCREL(%rip), %rax
LBB0_5:
	movb	(%rax), %al
	movb	%al, (%r14)
LBB0_7:
	movl	$1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SECP256K1_TAG_PUBKEY_ODD,1,0   ## @SECP256K1_TAG_PUBKEY_ODD
	.comm	_SECP256K1_TAG_PUBKEY_EVEN,1,0  ## @SECP256K1_TAG_PUBKEY_EVEN
	.comm	_SECP256K1_TAG_PUBKEY_UNCOMPRESSED,1,0 ## @SECP256K1_TAG_PUBKEY_UNCOMPRESSED
	.no_dead_strip	_secp256k1_eckey_pubkey_serialize
.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_serialize
_secp256k1_eckey_pubkey_serialize:      ; @secp256k1_eckey_pubkey_serialize
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	bl	_secp256k1_ge_is_infinity
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_6
LBB0_2:
	add	x23, x20, #4
	mov	x0, x23
	bl	_secp256k1_fe_normalize_var
	mov	x0, x20
	bl	_secp256k1_fe_normalize_var
	add	x0, x19, #1
	mov	x1, x23
	bl	_secp256k1_fe_get_b32
	cbz	w22, LBB0_4
; %bb.3:
	mov	w8, #33
	str	x8, [x21]
	mov	x0, x20
	bl	_secp256k1_fe_is_odd
Lloh0:
	adrp	x8, _SECP256K1_TAG_PUBKEY_ODD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SECP256K1_TAG_PUBKEY_ODD@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SECP256K1_TAG_PUBKEY_EVEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SECP256K1_TAG_PUBKEY_EVEN@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldrb	w8, [x8]
	strb	w8, [x19]
	b	LBB0_5
LBB0_4:
	mov	w8, #65
	str	x8, [x21]
Lloh4:
	adrp	x8, _SECP256K1_TAG_PUBKEY_UNCOMPRESSED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SECP256K1_TAG_PUBKEY_UNCOMPRESSED@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x19], #33
	mov	x0, x19
	mov	x1, x20
	bl	_secp256k1_fe_get_b32
LBB0_5:
	mov	w0, #1
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SECP256K1_TAG_PUBKEY_ODD,1,0   ; @SECP256K1_TAG_PUBKEY_ODD
	.comm	_SECP256K1_TAG_PUBKEY_EVEN,1,0  ; @SECP256K1_TAG_PUBKEY_EVEN
	.comm	_SECP256K1_TAG_PUBKEY_UNCOMPRESSED,1,0 ; @SECP256K1_TAG_PUBKEY_UNCOMPRESSED
	.no_dead_strip	_secp256k1_eckey_pubkey_serialize
.subsections_via_symbols
