	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ec_GF2m_simple_is_on_curve     ## -- Begin function ec_GF2m_simple_is_on_curve
	.p2align	4, 0x90
_ec_GF2m_simple_is_on_curve:            ## @ec_GF2m_simple_is_on_curve
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_EC_POINT_is_at_infinity
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	movl	$-1, %r12d
	cmpl	$0, 16(%rbx)
	je	LBB0_15
## %bb.2:
	movq	16(%r13), %rax
	movq	(%rax), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r15
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_BN_CTX_new
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_15
LBB0_5:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_BN_CTX_start
	movq	%r14, %rdi
	callq	_BN_CTX_get
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_BN_CTX_get
	movl	$-1, %r12d
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	movq	%rax, %r15
	movq	8(%rbx), %rsi
	movq	8(%r13), %rdx
	movq	%rax, %rdi
	callq	_BN_GF2m_add
	testl	%eax, %eax
	je	LBB0_14
## %bb.7:
	movq	8(%rbx), %rcx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	movq	%r14, %r8
	callq	*-48(%rbp)                      ## 8-byte Folded Reload
	testl	%eax, %eax
	je	LBB0_14
## %bb.8:
	movq	(%rbx), %rdx
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_BN_GF2m_add
	testl	%eax, %eax
	je	LBB0_14
## %bb.9:
	movq	8(%rbx), %rcx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r15, %rdx
	movq	%r14, %r8
	callq	*-48(%rbp)                      ## 8-byte Folded Reload
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:
	movq	(%r13), %rdx
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_BN_GF2m_add
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movq	(%rbx), %rdx
	movq	%r13, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r14, %rcx
	callq	*-64(%rbp)                      ## 8-byte Folded Reload
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movq	%r15, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_BN_GF2m_add
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_BN_is_zero
	movl	%eax, %r12d
LBB0_14:
	movq	%r14, %rdi
	callq	_BN_CTX_end
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_CTX_free
LBB0_15:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ec_GF2m_simple_is_on_curve     ; -- Begin function ec_GF2m_simple_is_on_curve
	.p2align	2
_ec_GF2m_simple_is_on_curve:            ; @ec_GF2m_simple_is_on_curve
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	bl	_EC_POINT_is_at_infinity
	cbz	x0, LBB0_2
; %bb.1:
	mov	w21, #1
	b	LBB0_18
LBB0_2:
	ldr	w8, [x22, #16]
	cbz	w8, LBB0_17
; %bb.3:
	ldr	x8, [x21, #16]
	ldp	x26, x25, [x8]
	cbz	x19, LBB0_5
; %bb.4:
	mov	x20, #0
	b	LBB0_6
LBB0_5:
	bl	_BN_CTX_new
	mov	x20, x0
	mov	x19, x0
	cbz	x0, LBB0_17
LBB0_6:
	mov	x0, x19
	bl	_BN_CTX_start
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x24, x0
	mov	x0, x19
	bl	_BN_CTX_get
	cbz	x0, LBB0_15
; %bb.7:
	mov	x23, x0
	ldr	x1, [x22, #8]
	ldr	x2, [x21, #8]
	bl	_BN_GF2m_add
	cbz	w0, LBB0_15
; %bb.8:
	ldr	x3, [x22, #8]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x23
	mov	x4, x19
	blr	x26
	cbz	w0, LBB0_15
; %bb.9:
	ldr	x2, [x22]
	mov	x0, x23
	mov	x1, x23
	bl	_BN_GF2m_add
	cbz	w0, LBB0_15
; %bb.10:
	ldr	x3, [x22, #8]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x23
	mov	x4, x19
	blr	x26
	cbz	w0, LBB0_15
; %bb.11:
	ldr	x2, [x21]
	mov	x0, x23
	mov	x1, x23
	bl	_BN_GF2m_add
	cbz	w0, LBB0_15
; %bb.12:
	ldr	x2, [x22]
	mov	x0, x21
	mov	x1, x24
	mov	x3, x19
	blr	x25
	cbz	w0, LBB0_15
; %bb.13:
	mov	x0, x23
	mov	x1, x23
	mov	x2, x24
	bl	_BN_GF2m_add
	cbz	w0, LBB0_15
; %bb.14:
	mov	x0, x23
	bl	_BN_is_zero
	mov	x21, x0
	b	LBB0_16
LBB0_15:
	mov	w21, #-1
LBB0_16:
	mov	x0, x19
	bl	_BN_CTX_end
	mov	x0, x20
	bl	_BN_CTX_free
	b	LBB0_18
LBB0_17:
	mov	w21, #-1
LBB0_18:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
