	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ec_GF2m_simple_make_affine     ## -- Begin function ec_GF2m_simple_make_affine
	.p2align	4, 0x90
_ec_GF2m_simple_make_affine:            ## @ec_GF2m_simple_make_affine
	.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	$1, %ebx
	cmpl	$0, (%rsi)
	jne	LBB0_13
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_EC_POINT_is_at_infinity
	testq	%rax, %rax
	jne	LBB0_13
## %bb.2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BN_CTX_new
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_13
LBB0_5:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_BN_CTX_start
	movq	%r14, %rdi
	callq	_BN_CTX_get
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	movq	%rax, %rcx
	movq	%r14, %r8
	callq	_EC_POINT_get_affine_coordinates
	testl	%eax, %eax
	je	LBB0_6
## %bb.8:
	movl	12(%r13), %edi
	movq	%r15, %rsi
	callq	_BN_copy
	testl	%eax, %eax
	je	LBB0_6
## %bb.9:
	movl	8(%r13), %edi
	movq	%rbx, %rsi
	callq	_BN_copy
	testl	%eax, %eax
	je	LBB0_6
## %bb.10:
	movl	4(%r13), %edi
	callq	_BN_one
	testl	%eax, %eax
	movl	$0, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_12
## %bb.11:
	movl	$1, (%r13)
	movl	$1, %r15d
	jmp	LBB0_12
LBB0_6:
	xorl	%r15d, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_12:
	movq	%r14, %rdi
	callq	_BN_CTX_end
	movq	%rbx, %rdi
	callq	_BN_CTX_free
	movl	%r15d, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %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_make_affine     ; -- Begin function ec_GF2m_simple_make_affine
	.p2align	2
_ec_GF2m_simple_make_affine:            ; @ec_GF2m_simple_make_affine
	.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
	ldr	w8, [x1]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_EC_POINT_is_at_infinity
	cbz	x0, LBB0_4
LBB0_2:
	mov	w22, #1
LBB0_3:
	mov	x0, x22
	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
LBB0_4:
	cbz	x19, LBB0_6
; %bb.5:
	mov	x20, #0
	b	LBB0_7
LBB0_6:
	bl	_BN_CTX_new
	mov	x20, x0
	mov	x19, x0
	cbz	x0, LBB0_15
LBB0_7:
	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_13
; %bb.8:
	mov	x23, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	mov	x3, x23
	mov	x4, x19
	bl	_EC_POINT_get_affine_coordinates
	cbz	w0, LBB0_13
; %bb.9:
	ldr	w0, [x21, #12]
	mov	x1, x24
	bl	_BN_copy
	cbz	w0, LBB0_13
; %bb.10:
	ldr	w0, [x21, #8]
	mov	x1, x23
	bl	_BN_copy
	cbz	w0, LBB0_13
; %bb.11:
	ldr	w0, [x21, #4]
	bl	_BN_one
	cbz	w0, LBB0_13
; %bb.12:
	mov	w22, #1
	str	w22, [x21]
	b	LBB0_14
LBB0_13:
	mov	w22, #0
LBB0_14:
	mov	x0, x19
	bl	_BN_CTX_end
	mov	x0, x20
	bl	_BN_CTX_free
	b	LBB0_3
LBB0_15:
	mov	w22, #0
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
