	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ec_GF2m_simple_oct2point       ## -- Begin function ec_GF2m_simple_oct2point
	.p2align	4, 0x90
_ec_GF2m_simple_oct2point:              ## @ec_GF2m_simple_oct2point
	.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
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.1:
	movq	%r8, %rbx
	movq	%rcx, %r14
	movq	%rdx, %r12
	movzbl	(%rdx), %r13d
	movl	%r13d, %r15d
	movq	_POINT_CONVERSION_COMPRESSED@GOTPCREL(%rip), %rdx
	movq	_POINT_CONVERSION_UNCOMPRESSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_POINT_CONVERSION_HYBRID@GOTPCREL(%rip), %rcx
	andl	$254, %r15d
	je	LBB0_5
## %bb.2:
	cmpl	(%rdx), %r15d
	je	LBB0_5
## %bb.3:
	cmpl	%eax, %r15d
	je	LBB0_5
## %bb.4:
	cmpl	(%rcx), %r15d
	jne	LBB0_15
LBB0_5:
	andl	$1, %r13d
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.6:
	cmpl	%eax, %r15d
	jne	LBB0_8
## %bb.7:
	testl	%r13d, %r13d
	jne	LBB0_15
LBB0_8:
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_EC_GROUP_get_degree
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %edx
	leal	14(%rax), %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$3, %ecx
	movslq	%ecx, %rsi
	leaq	1(%rsi), %rdx
	movq	_POINT_CONVERSION_COMPRESSED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	leaq	1(%rsi,%rsi), %rcx
	cmoveq	%rdx, %rcx
	cmpq	%r14, %rcx
	jne	LBB0_15
## %bb.9:
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.10:
	movq	%rbx, %r14
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_11:
	movq	_EC_F_EC_GF2M_SIMPLE_OCT2POINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_BUFFER_TOO_SMALL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_12:
	testl	%r13d, %r13d
	jne	LBB0_15
## %bb.13:
	cmpq	$1, %r14
	jne	LBB0_15
## %bb.14:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EC_POINT_set_to_infinity       ## TAILCALL
LBB0_15:
	movq	_EC_F_EC_GF2M_SIMPLE_OCT2POINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_INVALID_ENCODING@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %esi
	callq	_ECerr
	xorl	%ebx, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BN_CTX_new
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_17
LBB0_19:
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_BN_CTX_start
	movq	%r14, %rdi
	callq	_BN_CTX_get
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_BN_CTX_get
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_35
## %bb.20:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	incq	%r12
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_BN_bin2bn
	testl	%eax, %eax
	je	LBB0_35
## %bb.21:
	movq	%rbx, %rdi
	callq	_BN_num_bits
	cmpl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	jle	LBB0_25
LBB0_22:
	movq	_EC_F_EC_GF2M_SIMPLE_OCT2POINT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_INVALID_ENCODING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
LBB0_35:
	xorl	%ebx, %ebx
LBB0_36:
	movq	%r14, %rdi
	callq	_BN_CTX_end
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_BN_CTX_free
                                        ## kill: def $ebx killed $ebx killed $rbx
	jmp	LBB0_17
LBB0_25:
	movq	_POINT_CONVERSION_COMPRESSED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_29
## %bb.26:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	movq	%r14, %r8
	callq	_EC_POINT_set_compressed_coordinates
LBB0_27:
	testl	%eax, %eax
	movl	$0, %ebx
	je	LBB0_36
## %bb.28:
	movl	$1, %ebx
	jmp	LBB0_36
LBB0_29:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	addq	%rsi, %r12
	movq	%r12, %rdi
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_BN_bin2bn
	testl	%eax, %eax
	je	LBB0_35
## %bb.30:
	movq	%r12, %rdi
	callq	_BN_num_bits
	cmpl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	jg	LBB0_22
## %bb.31:
	movq	_POINT_CONVERSION_HYBRID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_34
## %bb.32:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	(%rdi), %rax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_35
## %bb.33:
	movq	%r15, %rdi
	callq	_BN_is_odd
	cmpl	%eax, %r13d
	jne	LBB0_22
LBB0_34:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r12, %rcx
	movq	%r14, %r8
	callq	_EC_POINT_set_affine_coordinates
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_F_EC_GF2M_SIMPLE_OCT2POINT,4,2 ## @EC_F_EC_GF2M_SIMPLE_OCT2POINT
	.comm	_EC_R_BUFFER_TOO_SMALL,4,2      ## @EC_R_BUFFER_TOO_SMALL
	.comm	_POINT_CONVERSION_COMPRESSED,4,2 ## @POINT_CONVERSION_COMPRESSED
	.comm	_POINT_CONVERSION_UNCOMPRESSED,4,2 ## @POINT_CONVERSION_UNCOMPRESSED
	.comm	_POINT_CONVERSION_HYBRID,4,2    ## @POINT_CONVERSION_HYBRID
	.comm	_EC_R_INVALID_ENCODING,4,2      ## @EC_R_INVALID_ENCODING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ec_GF2m_simple_oct2point       ; -- Begin function ec_GF2m_simple_oct2point
	.p2align	2
_ec_GF2m_simple_oct2point:              ; @ec_GF2m_simple_oct2point
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	cbz	x3, LBB0_7
; %bb.1:
	mov	x25, x2
	ldrb	w8, [x2]
Lloh0:
	adrp	x24, _POINT_CONVERSION_COMPRESSED@GOTPAGE
Lloh1:
	ldr	x24, [x24, _POINT_CONVERSION_COMPRESSED@GOTPAGEOFF]
	and	w26, w8, #0xfe
	ldr	w10, [x24]
Lloh2:
	adrp	x9, _POINT_CONVERSION_UNCOMPRESSED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _POINT_CONVERSION_UNCOMPRESSED@GOTPAGEOFF]
Lloh4:
	adrp	x27, _POINT_CONVERSION_HYBRID@GOTPAGE
Lloh5:
	ldr	x27, [x27, _POINT_CONVERSION_HYBRID@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	ldr	w11, [x27]
	cmp	w26, #0
	ccmp	w26, w10, #4, ne
	ccmp	w26, w9, #4, ne
	ccmp	w26, w11, #4, ne
	b.ne	LBB0_11
; %bb.2:
	mov	x20, x3
	mov	x21, x1
	mov	x22, x0
	and	w23, w8, #0x1
	cbz	w26, LBB0_8
; %bb.3:
	cmp	w26, w9
	ccmp	w23, #0, #4, eq
	b.ne	LBB0_11
; %bb.4:
	mov	x19, x4
	mov	x0, x22
	bl	_EC_GROUP_get_degree
	add	w8, w0, #7
	add	w9, w0, #14
	cmp	w8, #0
	csel	w8, w9, w8, lt
	sbfx	x28, x8, #3, #29
	ldr	w8, [x24]
	mov	w9, #1
	bfi	x9, x28, #1, #63
	cmp	w26, w8
	csinc	x8, x9, x28, ne
	cmp	x8, x20
	b.ne	LBB0_11
; %bb.5:
	str	w0, [sp, #36]                   ; 4-byte Folded Spill
	cbz	x19, LBB0_15
; %bb.6:
	mov	x0, #0
	b	LBB0_16
LBB0_7:
Lloh7:
	adrp	x8, _EC_F_EC_GF2M_SIMPLE_OCT2POINT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EC_F_EC_GF2M_SIMPLE_OCT2POINT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _EC_R_BUFFER_TOO_SMALL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EC_R_BUFFER_TOO_SMALL@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
	cbnz	w23, LBB0_11
; %bb.9:
	cmp	x20, #1
	b.ne	LBB0_11
; %bb.10:
	mov	x0, x22
	mov	x1, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_EC_POINT_set_to_infinity
LBB0_11:
Lloh12:
	adrp	x8, _EC_F_EC_GF2M_SIMPLE_OCT2POINT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EC_F_EC_GF2M_SIMPLE_OCT2POINT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _EC_R_INVALID_ENCODING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EC_R_INVALID_ENCODING@GOTPAGEOFF]
LBB0_12:
	ldr	w1, [x8]
	bl	_ECerr
LBB0_13:
	mov	w21, #0
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_15:
	bl	_BN_CTX_new
	mov	x19, x0
	cbz	x0, LBB0_13
LBB0_16:
	str	x0, [sp, #40]                   ; 8-byte Folded Spill
	mov	x0, x19
	bl	_BN_CTX_start
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x20, x0
	mov	x0, x19
	bl	_BN_CTX_get
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	mov	x0, x19
	bl	_BN_CTX_get
	cbz	x0, LBB0_20
; %bb.17:
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	add	x25, x25, #1
	mov	x0, x25
	mov	x1, x28
	mov	x2, x20
	bl	_BN_bin2bn
	cbz	w0, LBB0_20
; %bb.18:
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x20
	bl	_BN_num_bits
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w0, w8
	b.le	LBB0_22
LBB0_19:
Lloh17:
	adrp	x8, _EC_F_EC_GF2M_SIMPLE_OCT2POINT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EC_F_EC_GF2M_SIMPLE_OCT2POINT@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _EC_R_INVALID_ENCODING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EC_R_INVALID_ENCODING@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_ECerr
LBB0_20:
	mov	w21, #0
LBB0_21:
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	mov	x0, x19
	bl	_BN_CTX_end
	mov	x0, x20
	bl	_BN_CTX_free
	b	LBB0_14
LBB0_22:
	ldr	w8, [x24]
	cmp	w26, w8
	b.ne	LBB0_25
; %bb.23:
	mov	x0, x22
	mov	x1, x21
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	mov	x3, x23
	mov	x4, x19
	bl	_EC_POINT_set_compressed_coordinates
	cbz	w0, LBB0_20
LBB0_24:
	mov	w21, #1
	b	LBB0_21
LBB0_25:
	add	x0, x25, x28
	mov	x1, x28
	ldr	x20, [sp, #24]                  ; 8-byte Folded Reload
	mov	x2, x20
	bl	_BN_bin2bn
	cbz	w0, LBB0_20
; %bb.26:
	mov	x0, x20
	bl	_BN_num_bits
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w0, w8
	b.gt	LBB0_19
; %bb.27:
	ldr	w8, [x27]
	cmp	w26, w8
	ldr	x24, [sp, #8]                   ; 8-byte Folded Reload
	b.ne	LBB0_30
; %bb.28:
	ldr	x8, [x22]
	ldr	x8, [x8]
	mov	x0, x22
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
	mov	x1, x25
	mov	x2, x20
	mov	x3, x24
	mov	x4, x19
	blr	x8
	cbz	w0, LBB0_20
; %bb.29:
	mov	x0, x25
	bl	_BN_is_odd
	cmp	w23, w0
	b.ne	LBB0_19
LBB0_30:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	mov	x3, x20
	mov	x4, x19
	bl	_EC_POINT_set_affine_coordinates
	cbnz	w0, LBB0_24
	b	LBB0_20
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_F_EC_GF2M_SIMPLE_OCT2POINT,4,2 ; @EC_F_EC_GF2M_SIMPLE_OCT2POINT
	.comm	_EC_R_BUFFER_TOO_SMALL,4,2      ; @EC_R_BUFFER_TOO_SMALL
	.comm	_POINT_CONVERSION_COMPRESSED,4,2 ; @POINT_CONVERSION_COMPRESSED
	.comm	_POINT_CONVERSION_UNCOMPRESSED,4,2 ; @POINT_CONVERSION_UNCOMPRESSED
	.comm	_POINT_CONVERSION_HYBRID,4,2    ; @POINT_CONVERSION_HYBRID
	.comm	_EC_R_INVALID_ENCODING,4,2      ; @EC_R_INVALID_ENCODING
.subsections_via_symbols
