	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EC_KEY_set_public_key_affine_coordinates ## -- Begin function EC_KEY_set_public_key_affine_coordinates
	.p2align	4, 0x90
_EC_KEY_set_public_key_affine_coordinates: ## @EC_KEY_set_public_key_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rdx, %r13
	testq	%rdx, %rdx
	je	LBB0_14
## %bb.2:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.3:
	movq	%rdi, %rbx
	cmpq	$0, (%rdi)
	je	LBB0_14
## %bb.4:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BN_CTX_new
	testq	%rax, %rax
	je	LBB0_20
## %bb.5:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_BN_CTX_start
	movq	(%rbx), %rdi
	callq	_EC_POINT_new
	xorl	%r12d, %r12d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_18
## %bb.6:
	movq	%r14, %rdi
	callq	_BN_CTX_get
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_BN_CTX_get
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_18
## %bb.7:
	movq	(%rbx), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r13, %rcx
	movq	%r14, %r8
	callq	_EC_POINT_set_affine_coordinates
	testl	%eax, %eax
	je	LBB0_18
## %bb.8:
	movq	(%rbx), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r8
	callq	_EC_POINT_get_affine_coordinates
	testl	%eax, %eax
	je	LBB0_18
## %bb.9:
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_BN_cmp
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_BN_cmp
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_BN_cmp
	testq	%rax, %rax
	jns	LBB0_13
## %bb.12:
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	callq	_BN_cmp
	testq	%rax, %rax
	js	LBB0_21
LBB0_13:
	movq	_EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EC_R_COORDINATES_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
LBB0_18:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_19:
	movq	%r14, %rdi
	callq	_BN_CTX_end
	movq	%r14, %rdi
	callq	_BN_CTX_free
	movq	%r15, %rdi
	callq	_EC_POINT_free
	jmp	LBB0_20
LBB0_14:
	movq	_EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_PASSED_NULL_PARAMETER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ECerr
	xorl	%r12d, %r12d
LBB0_20:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	%rbx, %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_EC_KEY_set_public_key
	testl	%eax, %eax
	je	LBB0_19
## %bb.22:
	movq	%rbx, %rdi
	callq	_EC_KEY_check_key
	xorl	%r12d, %r12d
	testq	%rax, %rax
	setne	%r12b
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES,4,2 ## @EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES
	.comm	_ERR_R_PASSED_NULL_PARAMETER,4,2 ## @ERR_R_PASSED_NULL_PARAMETER
	.comm	_EC_R_COORDINATES_OUT_OF_RANGE,4,2 ## @EC_R_COORDINATES_OUT_OF_RANGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EC_KEY_set_public_key_affine_coordinates ; -- Begin function EC_KEY_set_public_key_affine_coordinates
	.p2align	2
_EC_KEY_set_public_key_affine_coordinates: ; @EC_KEY_set_public_key_affine_coordinates
	.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
	cbz	x0, LBB0_16
; %bb.1:
	mov	x22, x2
	cbz	x2, LBB0_16
; %bb.2:
	mov	x23, x1
	cbz	x1, LBB0_16
; %bb.3:
	mov	x21, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_16
; %bb.4:
	bl	_BN_CTX_new
	cbz	x0, LBB0_17
; %bb.5:
	mov	x19, x0
	bl	_BN_CTX_start
	ldr	x0, [x21]
	bl	_EC_POINT_new
	mov	x20, x0
	cbz	x0, LBB0_14
; %bb.6:
	mov	x0, x19
	bl	_BN_CTX_get
	mov	x25, x0
	mov	x0, x19
	bl	_BN_CTX_get
	cbz	x0, LBB0_14
; %bb.7:
	mov	x24, x0
	ldr	x0, [x21]
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	mov	x4, x19
	bl	_EC_POINT_set_affine_coordinates
	cbz	w0, LBB0_14
; %bb.8:
	ldr	x0, [x21]
	mov	x1, x20
	mov	x2, x25
	mov	x3, x24
	mov	x4, x19
	bl	_EC_POINT_get_affine_coordinates
	cbz	w0, LBB0_14
; %bb.9:
	mov	x0, x23
	mov	x1, x25
	bl	_BN_cmp
	cbnz	x0, LBB0_13
; %bb.10:
	mov	x0, x22
	mov	x1, x24
	bl	_BN_cmp
	cbnz	x0, LBB0_13
; %bb.11:
	ldr	x8, [x21]
	ldr	x1, [x8]
	mov	x0, x23
	bl	_BN_cmp
	tbz	x0, #63, LBB0_13
; %bb.12:
	ldr	x8, [x21]
	ldr	x1, [x8]
	mov	x0, x22
	bl	_BN_cmp
	tbnz	x0, #63, LBB0_19
LBB0_13:
Lloh0:
	adrp	x8, _EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _EC_R_COORDINATES_OUT_OF_RANGE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EC_R_COORDINATES_OUT_OF_RANGE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ECerr
LBB0_14:
	mov	w21, #0
LBB0_15:
	mov	x0, x19
	bl	_BN_CTX_end
	mov	x0, x19
	bl	_BN_CTX_free
	mov	x0, x20
	bl	_EC_POINT_free
	b	LBB0_18
LBB0_16:
Lloh6:
	adrp	x8, _EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x8, _ERR_R_PASSED_NULL_PARAMETER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERR_R_PASSED_NULL_PARAMETER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_ECerr
LBB0_17:
	mov	w21, #0
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
LBB0_19:
	mov	x0, x21
	mov	x1, x20
	bl	_EC_KEY_set_public_key
	cbz	w0, LBB0_14
; %bb.20:
	mov	x0, x21
	bl	_EC_KEY_check_key
	cmp	x0, #0
	cset	w21, ne
	b	LBB0_15
	.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_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES,4,2 ; @EC_F_EC_KEY_SET_PUBLIC_KEY_AFFINE_COORDINATES
	.comm	_ERR_R_PASSED_NULL_PARAMETER,4,2 ; @ERR_R_PASSED_NULL_PARAMETER
	.comm	_EC_R_COORDINATES_OUT_OF_RANGE,4,2 ; @EC_R_COORDINATES_OUT_OF_RANGE
.subsections_via_symbols
