	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ec_GFp_simple_point_get_affine_coordinates ## -- Begin function ec_GFp_simple_point_get_affine_coordinates
	.p2align	4, 0x90
_ec_GFp_simple_point_get_affine_coordinates: ## @ec_GFp_simple_point_get_affine_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, %r13
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_EC_POINT_is_at_infinity
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_POINT_AT_INFINITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	xorl	%ebx, %ebx
	jmp	LBB0_37
LBB0_2:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	testq	%r13, %r13
	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, %r13
	testq	%rax, %rax
	je	LBB0_37
LBB0_5:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_BN_CTX_start
	movq	%r13, %rdi
	callq	_BN_CTX_get
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_BN_CTX_get
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_BN_CTX_get
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_BN_CTX_get
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rcx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	32(%rax), %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r15
	testq	%rbx, %rbx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.8:
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movq	%r13, %rcx
	callq	*%rbx
	movq	%r14, %r15
	testl	%eax, %eax
	je	LBB0_9
LBB0_10:
	movq	%r15, %rdi
	callq	_BN_is_one
	movq	(%r12), %rbx
	testq	%rax, %rax
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_20
## %bb.11:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	movl	$0, %r15d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_14
## %bb.13:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rdx
	movq	%r12, %rdi
	movq	%r13, %rcx
	callq	*%rax
	testl	%eax, %eax
	je	LBB0_36
LBB0_14:
	testq	%rbx, %rbx
	je	LBB0_35
## %bb.15:
	movq	(%r12), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rcx
	callq	*32(%rax)
	jmp	LBB0_34
LBB0_6:
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_36
LBB0_20:
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r13, %rcx
	callq	*24(%rbx)
	testl	%eax, %eax
	je	LBB0_21
## %bb.22:
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_23
## %bb.24:
	movl	8(%r12), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	_BN_mod_sqr
	jmp	LBB0_25
LBB0_9:
	xorl	%r15d, %r15d
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_36
LBB0_16:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	movl	$0, %r15d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_18
## %bb.17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rsi
	callq	_BN_copy
	testl	%eax, %eax
	je	LBB0_36
LBB0_18:
	testq	%rbx, %rbx
	je	LBB0_35
## %bb.19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_BN_copy
	jmp	LBB0_34
LBB0_21:
	movq	_EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_BN_LIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	xorl	%r15d, %r15d
	jmp	LBB0_36
LBB0_23:
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	callq	*16(%rax)
LBB0_25:
	testl	%eax, %eax
	movl	$0, %r15d
	je	LBB0_36
## %bb.26:
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_28
## %bb.27:
	movq	(%r12), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rdx
	movq	%r12, %rdi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_36
LBB0_28:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_35
## %bb.29:
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_30
## %bb.31:
	movl	8(%r12), %ecx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_BN_mod_mul
	jmp	LBB0_32
LBB0_30:
	movq	%r12, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	callq	*8(%rax)
LBB0_32:
	testl	%eax, %eax
	je	LBB0_36
## %bb.33:
	movq	(%r12), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%r13, %r8
	callq	*8(%rax)
LBB0_34:
	testl	%eax, %eax
	je	LBB0_36
LBB0_35:
	movl	$1, %r15d
LBB0_36:
	movq	%r13, %rdi
	callq	_BN_CTX_end
	movq	%r14, %rdi
	callq	_BN_CTX_free
	movl	%r15d, %ebx
LBB0_37:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES,4,2 ## @EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES
	.comm	_EC_R_POINT_AT_INFINITY,4,2     ## @EC_R_POINT_AT_INFINITY
	.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_GFp_simple_point_get_affine_coordinates ; -- Begin function ec_GFp_simple_point_get_affine_coordinates
	.p2align	2
_ec_GFp_simple_point_get_affine_coordinates: ; @ec_GFp_simple_point_get_affine_coordinates
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x3
	mov	x24, x2
	mov	x22, x1
	mov	x23, x0
	bl	_EC_POINT_is_at_infinity
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EC_R_POINT_AT_INFINITY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EC_R_POINT_AT_INFINITY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ECerr
	mov	w21, #0
	b	LBB0_35
LBB0_2:
	cbz	x19, LBB0_4
; %bb.3:
	mov	x20, #0
	b	LBB0_5
LBB0_4:
	bl	_BN_CTX_new
	mov	x20, x0
	mov	x19, x0
	cbz	x0, LBB0_17
LBB0_5:
	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	x26, x0
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x28, x0
	mov	x0, x19
	bl	_BN_CTX_get
	cbz	x0, LBB0_33
; %bb.6:
	mov	x25, x0
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	mov	x20, x28
	ldr	x8, [x23]
	ldr	x8, [x8, #32]
	ldr	x28, [x22, #16]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x23
	mov	x1, x27
	mov	x2, x28
	mov	x3, x19
	blr	x8
	mov	x28, x27
	cbz	w0, LBB0_23
LBB0_8:
	mov	x0, x28
	bl	_BN_is_one
	ldr	x8, [x23]
	cbz	x0, LBB0_14
; %bb.9:
	ldr	x8, [x8, #32]
	cbz	x8, LBB0_18
; %bb.10:
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x24, LBB0_12
; %bb.11:
	ldr	x2, [x22, #8]
	mov	x0, x23
	mov	x1, x24
	mov	x3, x19
	blr	x8
	cbz	w0, LBB0_33
LBB0_12:
	cbz	x21, LBB0_32
; %bb.13:
	ldr	x8, [x23]
	ldr	x8, [x8, #32]
	ldr	x2, [x22]
	mov	x0, x23
	mov	x1, x21
	mov	x3, x19
	blr	x8
	cbnz	w0, LBB0_32
	b	LBB0_33
LBB0_14:
	ldr	x8, [x8, #24]
	mov	x0, x23
	mov	x1, x26
	mov	x2, x28
	mov	x3, x19
	blr	x8
	cbz	w0, LBB0_22
; %bb.15:
	ldr	x8, [x23]
	ldr	x9, [x8]
	cbz	x9, LBB0_24
; %bb.16:
	ldr	w2, [x23, #8]
	mov	x27, x20
	mov	x0, x20
	mov	x1, x26
	mov	x3, x19
	bl	_BN_mod_sqr
	cbnz	w0, LBB0_25
	b	LBB0_23
LBB0_17:
	mov	w21, #0
	b	LBB0_35
LBB0_18:
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x24, LBB0_20
; %bb.19:
	ldr	x1, [x22, #8]
	mov	x0, x24
	bl	_BN_copy
	cbz	w0, LBB0_33
LBB0_20:
	cbz	x21, LBB0_32
; %bb.21:
	ldr	x1, [x22]
	mov	x0, x21
	bl	_BN_copy
	cbnz	w0, LBB0_32
	b	LBB0_33
LBB0_22:
Lloh6:
	adrp	x8, _EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _ERR_R_BN_LIB@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_R_BN_LIB@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_ECerr
LBB0_23:
	mov	w21, #0
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_34
LBB0_24:
	ldr	x8, [x8, #16]
	mov	x0, x23
	mov	x27, x20
	mov	x1, x20
	mov	x2, x26
	mov	x3, x19
	blr	x8
	cbz	w0, LBB0_23
LBB0_25:
	cbz	x24, LBB0_27
; %bb.26:
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	ldr	x2, [x22, #8]
	mov	x0, x23
	mov	x1, x24
	mov	x3, x27
	mov	x4, x19
	blr	x8
	cbz	w0, LBB0_23
LBB0_27:
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	cbz	x21, LBB0_32
; %bb.28:
	ldr	x8, [x23]
	ldr	x9, [x8]
	cbz	x9, LBB0_30
; %bb.29:
	ldr	w3, [x23, #8]
	mov	x0, x25
	mov	x1, x27
	mov	x2, x26
	mov	x4, x19
	bl	_BN_mod_mul
	cbnz	w0, LBB0_31
	b	LBB0_33
LBB0_30:
	ldr	x8, [x8, #8]
	mov	x0, x23
	mov	x1, x25
	mov	x2, x27
	mov	x3, x26
	mov	x4, x19
	blr	x8
	cbz	w0, LBB0_33
LBB0_31:
	ldr	x8, [x23]
	ldr	x8, [x8, #8]
	ldr	x2, [x22]
	mov	x0, x23
	mov	x1, x21
	mov	x3, x25
	mov	x4, x19
	blr	x8
	cbz	w0, LBB0_33
LBB0_32:
	mov	w21, #1
	b	LBB0_34
LBB0_33:
	mov	w21, #0
LBB0_34:
	mov	x0, x19
	bl	_BN_CTX_end
	mov	x0, x20
	bl	_BN_CTX_free
LBB0_35:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES,4,2 ; @EC_F_EC_GFP_SIMPLE_POINT_GET_AFFINE_COORDINATES
	.comm	_EC_R_POINT_AT_INFINITY,4,2     ; @EC_R_POINT_AT_INFINITY
	.comm	_ERR_R_BN_LIB,4,2               ; @ERR_R_BN_LIB
.subsections_via_symbols
