	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ec_GF2m_simple_set_compressed_coordinates ## -- Begin function ec_GF2m_simple_set_compressed_coordinates
	.p2align	4, 0x90
_ec_GF2m_simple_set_compressed_coordinates: ## @ec_GF2m_simple_set_compressed_coordinates
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	_ERR_clear_error
	testq	%r15, %r15
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BN_CTX_new
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_23
LBB0_3:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_BN_CTX_start
	movq	%r15, %rdi
	callq	_BN_CTX_get
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_BN_CTX_get
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_BN_CTX_get
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movl	8(%r12), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_BN_GF2m_mod_arr
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	movq	%rbx, %rdi
	callq	_BN_is_zero
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r12), %edx
	movl	24(%r12), %esi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_BN_GF2m_mod_sqrt_arr
	testl	%eax, %eax
	movl	$0, %ebx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_22
LBB0_21:
	movq	%r12, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_EC_POINT_set_affine_coordinates
	xorl	%ebx, %ebx
	testl	%eax, %eax
	setne	%bl
	jmp	LBB0_22
LBB0_8:
	movq	%r12, %r14
	movq	(%r12), %rax
	movq	%r12, %rdi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	*16(%rax)
	testl	%eax, %eax
	je	LBB0_4
## %bb.9:
	movq	(%r14), %rax
	movl	24(%r14), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r12, %rcx
	movq	%r15, %r8
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_4
## %bb.10:
	movq	%r14, %r12
	movq	16(%r14), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdi, %rdx
	callq	_BN_GF2m_add
	testl	%eax, %eax
	je	LBB0_4
## %bb.11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%rdi, %rdx
	callq	_BN_GF2m_add
	testl	%eax, %eax
	je	LBB0_4
## %bb.12:
	movl	8(%r12), %edx
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_BN_GF2m_mod_solve_quad_arr
	testl	%eax, %eax
	je	LBB0_13
## %bb.18:
	movq	%r13, %rdi
	callq	_BN_is_odd
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	%r12, %rdi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movq	%r15, %r8
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_4
## %bb.19:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	setne	%al
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	sete	%cl
	xorb	%al, %cl
	movl	$0, %ebx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_BN_GF2m_add
	testl	%eax, %eax
	jne	LBB0_21
	jmp	LBB0_22
LBB0_4:
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_22:
	movq	%r15, %rdi
	callq	_BN_CTX_end
	movq	%r13, %rdi
	callq	_BN_CTX_free
                                        ## kill: def $ebx killed $ebx killed $rbx
LBB0_23:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ERR_peek_last_error
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ERR_GET_LIB
	movq	_ERR_LIB_BN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_16
## %bb.14:
	movq	%r14, %rdi
	callq	_ERR_GET_REASON
	movq	_BN_R_NO_SOLUTION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ERR_clear_error
	movq	_EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_INVALID_COMPRESSED_POINT@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_16:
	movq	_EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_BN_LIB@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %esi
	callq	_ECerr
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_LIB_BN,8,3                 ## @ERR_LIB_BN
	.comm	_BN_R_NO_SOLUTION,8,3           ## @BN_R_NO_SOLUTION
	.comm	_EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES,4,2 ## @EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES
	.comm	_EC_R_INVALID_COMPRESSED_POINT,4,2 ## @EC_R_INVALID_COMPRESSED_POINT
	.comm	_ERR_R_BN_LIB,4,2               ## @ERR_R_BN_LIB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ec_GF2m_simple_set_compressed_coordinates ; -- Begin function ec_GF2m_simple_set_compressed_coordinates
	.p2align	2
_ec_GF2m_simple_set_compressed_coordinates: ; @ec_GF2m_simple_set_compressed_coordinates
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x23, x3
	mov	x28, x2
	mov	x21, x1
	mov	x22, x0
	bl	_ERR_clear_error
	cbz	x19, LBB0_2
; %bb.1:
	mov	x20, #0
	b	LBB0_3
LBB0_2:
	bl	_BN_CTX_new
	mov	x20, x0
	mov	x19, x0
	cbz	x0, LBB0_8
LBB0_3:
	mov	x0, x19
	bl	_BN_CTX_start
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x27, x0
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x24, x0
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x25, x0
	mov	x0, x19
	bl	_BN_CTX_get
	cbz	x0, LBB0_22
; %bb.4:
	mov	x26, x0
	ldr	w2, [x22, #8]
	mov	x0, x24
	mov	x1, x28
	bl	_BN_GF2m_mod_arr
	cbz	w0, LBB0_22
; %bb.5:
	mov	x0, x24
	bl	_BN_is_zero
	cbz	x0, LBB0_9
; %bb.6:
	ldr	w1, [x22, #24]
	ldr	w2, [x22, #8]
	mov	x0, x25
	mov	x3, x19
	bl	_BN_GF2m_mod_sqrt_arr
	cbz	w0, LBB0_22
LBB0_7:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	mov	x3, x25
	mov	x4, x19
	bl	_EC_POINT_set_affine_coordinates
	cmp	w0, #0
	cset	w21, ne
	b	LBB0_23
LBB0_8:
	mov	w21, #0
	b	LBB0_24
LBB0_9:
	ldr	x8, [x22]
	ldr	x8, [x8, #16]
	mov	x0, x22
	mov	x1, x27
	mov	x2, x24
	mov	x3, x19
	blr	x8
	cbz	w0, LBB0_22
; %bb.10:
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	ldr	w2, [x22, #24]
	mov	x0, x22
	mov	x1, x27
	mov	x3, x27
	mov	x4, x19
	blr	x8
	cbz	w0, LBB0_22
; %bb.11:
	ldr	x1, [x22, #16]
	mov	x0, x27
	mov	x2, x27
	bl	_BN_GF2m_add
	cbz	w0, LBB0_22
; %bb.12:
	mov	x0, x27
	mov	x1, x24
	mov	x2, x27
	bl	_BN_GF2m_add
	cbz	w0, LBB0_22
; %bb.13:
	ldr	w2, [x22, #8]
	mov	x0, x26
	mov	x1, x27
	mov	x3, x19
	bl	_BN_GF2m_mod_solve_quad_arr
	cbz	w0, LBB0_17
; %bb.14:
	mov	x0, x26
	bl	_BN_is_odd
	mov	x27, x0
	ldr	x8, [x22]
	ldr	x8, [x8]
	mov	x0, x22
	mov	x1, x25
	mov	x2, x24
	mov	x3, x26
	mov	x4, x19
	blr	x8
	cbz	w0, LBB0_22
; %bb.15:
	cmp	w23, #0
	cset	w8, ne
	cmp	x27, #0
	cset	w9, eq
	eor	w8, w8, w9
	tbnz	w8, #0, LBB0_7
; %bb.16:
	mov	x0, x25
	mov	x1, x25
	mov	x2, x24
	bl	_BN_GF2m_add
	cbnz	w0, LBB0_7
	b	LBB0_22
LBB0_17:
	bl	_ERR_peek_last_error
	mov	x21, x0
	bl	_ERR_GET_LIB
Lloh0:
	adrp	x8, _ERR_LIB_BN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_LIB_BN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.18:
	mov	x0, x21
	bl	_ERR_GET_REASON
Lloh3:
	adrp	x8, _BN_R_NO_SOLUTION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BN_R_NO_SOLUTION@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_20
; %bb.19:
	bl	_ERR_clear_error
Lloh6:
	adrp	x8, _EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _EC_R_INVALID_COMPRESSED_POINT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EC_R_INVALID_COMPRESSED_POINT@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh11:
	adrp	x8, _EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _ERR_R_BN_LIB@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_R_BN_LIB@GOTPAGEOFF]
LBB0_21:
	ldr	w1, [x8]
	bl	_ECerr
LBB0_22:
	mov	w21, #0
LBB0_23:
	mov	x0, x19
	bl	_BN_CTX_end
	mov	x0, x20
	bl	_BN_CTX_free
LBB0_24:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_LIB_BN,8,3                 ; @ERR_LIB_BN
	.comm	_BN_R_NO_SOLUTION,8,3           ; @BN_R_NO_SOLUTION
	.comm	_EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES,4,2 ; @EC_F_EC_GF2M_SIMPLE_SET_COMPRESSED_COORDINATES
	.comm	_EC_R_INVALID_COMPRESSED_POINT,4,2 ; @EC_R_INVALID_COMPRESSED_POINT
	.comm	_ERR_R_BN_LIB,4,2               ; @ERR_R_BN_LIB
.subsections_via_symbols
