	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_PKEY_derive_set_peer       ## -- Begin function EVP_PKEY_derive_set_peer
	.p2align	4, 0x90
_EVP_PKEY_derive_set_peer:              ## @EVP_PKEY_derive_set_peer
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r15
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rsi, %r14
	cmpq	$0, 24(%rax)
	jne	LBB0_5
## %bb.3:
	cmpq	$0, 16(%rax)
	jne	LBB0_5
## %bb.4:
	cmpq	$0, 8(%rax)
	je	LBB0_6
LBB0_5:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%r15), %rcx
	movq	_EVP_PKEY_OP_DERIVE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_12
## %bb.8:
	movq	_EVP_PKEY_OP_ENCRYPT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_12
## %bb.9:
	movq	_EVP_PKEY_OP_DECRYPT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_12
## %bb.10:
	movq	_EVP_F_EVP_PKEY_DERIVE_SET_PEER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_OPERATON_NOT_INITIALIZED@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %esi
	callq	_EVPerr
	movl	$-1, %ebx
	jmp	LBB0_25
LBB0_6:
	movq	_EVP_F_EVP_PKEY_DERIVE_SET_PEER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_EVPerr
	movl	$-2, %ebx
LBB0_25:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_EVP_PKEY_CTRL_PEER_KEY@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	movq	%r14, %rcx
	callq	*%rax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.14:
	movl	$1, %ebx
	cmpl	$2, %eax
	je	LBB0_25
## %bb.15:
	movq	24(%r15), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	(%rax), %rax
	cmpq	(%r14), %rax
	jne	LBB0_18
## %bb.19:
	movq	%r14, %rdi
	callq	_EVP_PKEY_missing_parameters
	testl	%eax, %eax
	jne	LBB0_22
## %bb.20:
	movq	24(%r15), %rdi
	movq	%r14, %rsi
	callq	_EVP_PKEY_cmp_parameters
	testl	%eax, %eax
	je	LBB0_21
LBB0_22:
	movq	8(%r15), %rdi
	callq	_EVP_PKEY_free
	movq	%r14, 8(%r15)
	movq	16(%r15), %rax
	movl	(%r12), %esi
	movl	$1, %ebx
	movq	%r15, %rdi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	*(%rax)
	testl	%eax, %eax
	jle	LBB0_23
## %bb.24:
	movq	%r14, %rdi
	callq	_EVP_PKEY_up_ref
	jmp	LBB0_25
LBB0_13:
	movl	%eax, %ebx
	jmp	LBB0_25
LBB0_16:
	movq	_EVP_F_EVP_PKEY_DERIVE_SET_PEER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_NO_KEY_SET@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_18:
	movq	_EVP_F_EVP_PKEY_DERIVE_SET_PEER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_DIFFERENT_KEY_TYPES@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_23:
	movq	$0, 8(%r15)
	movl	%eax, %ebx
	jmp	LBB0_25
LBB0_21:
	movq	_EVP_F_EVP_PKEY_DERIVE_SET_PEER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_DIFFERENT_PARAMETERS@GOTPCREL(%rip), %rax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_F_EVP_PKEY_DERIVE_SET_PEER,4,2 ## @EVP_F_EVP_PKEY_DERIVE_SET_PEER
	.comm	_EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE,4,2 ## @EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE
	.comm	_EVP_PKEY_OP_DERIVE,8,3         ## @EVP_PKEY_OP_DERIVE
	.comm	_EVP_PKEY_OP_ENCRYPT,8,3        ## @EVP_PKEY_OP_ENCRYPT
	.comm	_EVP_PKEY_OP_DECRYPT,8,3        ## @EVP_PKEY_OP_DECRYPT
	.comm	_EVP_R_OPERATON_NOT_INITIALIZED,4,2 ## @EVP_R_OPERATON_NOT_INITIALIZED
	.comm	_EVP_PKEY_CTRL_PEER_KEY,4,2     ## @EVP_PKEY_CTRL_PEER_KEY
	.comm	_EVP_R_NO_KEY_SET,4,2           ## @EVP_R_NO_KEY_SET
	.comm	_EVP_R_DIFFERENT_KEY_TYPES,4,2  ## @EVP_R_DIFFERENT_KEY_TYPES
	.comm	_EVP_R_DIFFERENT_PARAMETERS,4,2 ## @EVP_R_DIFFERENT_PARAMETERS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_PKEY_derive_set_peer       ; -- Begin function EVP_PKEY_derive_set_peer
	.p2align	2
_EVP_PKEY_derive_set_peer:              ; @EVP_PKEY_derive_set_peer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_10
; %bb.2:
	mov	x20, x1
	ldr	x9, [x8, #24]
	cbnz	x9, LBB0_5
; %bb.3:
	ldr	x9, [x8, #16]
	cbnz	x9, LBB0_5
; %bb.4:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_10
LBB0_5:
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.6:
	ldr	x9, [x19]
Lloh0:
	adrp	x10, _EVP_PKEY_OP_DERIVE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _EVP_PKEY_OP_DERIVE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, _EVP_PKEY_OP_ENCRYPT@GOTPAGE
Lloh4:
	ldr	x11, [x11, _EVP_PKEY_OP_ENCRYPT@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
Lloh6:
	adrp	x12, _EVP_PKEY_OP_DECRYPT@GOTPAGE
Lloh7:
	ldr	x12, [x12, _EVP_PKEY_OP_DECRYPT@GOTPAGEOFF]
Lloh8:
	ldr	x12, [x12]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	ccmp	x9, x12, #4, ne
	b.ne	LBB0_12
; %bb.7:
Lloh9:
	adrp	x21, _EVP_PKEY_CTRL_PEER_KEY@GOTPAGE
Lloh10:
	ldr	x21, [x21, _EVP_PKEY_CTRL_PEER_KEY@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x20
	blr	x8
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.8:
	cmp	w0, #2
	b.ne	LBB0_14
LBB0_9:
	mov	w0, #1
	b	LBB0_11
LBB0_10:
Lloh11:
	adrp	x8, _EVP_F_EVP_PKEY_DERIVE_SET_PEER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EVP_F_EVP_PKEY_DERIVE_SET_PEER@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x8, _EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_EVPerr
	mov	w0, #-2
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh17:
	adrp	x8, _EVP_F_EVP_PKEY_DERIVE_SET_PEER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EVP_F_EVP_PKEY_DERIVE_SET_PEER@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _EVP_R_OPERATON_NOT_INITIALIZED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EVP_R_OPERATON_NOT_INITIALIZED@GOTPAGEOFF]
LBB0_13:
	ldr	w1, [x8]
	bl	_EVPerr
	mov	w0, #-1
	b	LBB0_11
LBB0_14:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_20
; %bb.15:
	ldr	x8, [x8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.16:
	mov	x0, x20
	bl	_EVP_PKEY_missing_parameters
	cbnz	w0, LBB0_18
; %bb.17:
	ldr	x0, [x19, #24]
	mov	x1, x20
	bl	_EVP_PKEY_cmp_parameters
	cbz	w0, LBB0_23
LBB0_18:
	ldr	x0, [x19, #8]
	bl	_EVP_PKEY_free
	str	x20, [x19, #8]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	mov	x3, x20
	blr	x8
	cmp	w0, #0
	b.le	LBB0_22
; %bb.19:
	mov	x0, x20
	bl	_EVP_PKEY_up_ref
	b	LBB0_9
LBB0_20:
Lloh22:
	adrp	x8, _EVP_F_EVP_PKEY_DERIVE_SET_PEER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EVP_F_EVP_PKEY_DERIVE_SET_PEER@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x8, _EVP_R_NO_KEY_SET@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EVP_R_NO_KEY_SET@GOTPAGEOFF]
	b	LBB0_13
LBB0_21:
Lloh27:
	adrp	x8, _EVP_F_EVP_PKEY_DERIVE_SET_PEER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EVP_F_EVP_PKEY_DERIVE_SET_PEER@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x8, _EVP_R_DIFFERENT_KEY_TYPES@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EVP_R_DIFFERENT_KEY_TYPES@GOTPAGEOFF]
	b	LBB0_13
LBB0_22:
	str	xzr, [x19, #8]
	b	LBB0_11
LBB0_23:
Lloh32:
	adrp	x8, _EVP_F_EVP_PKEY_DERIVE_SET_PEER@GOTPAGE
Lloh33:
	ldr	x8, [x8, _EVP_F_EVP_PKEY_DERIVE_SET_PEER@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x8, _EVP_R_DIFFERENT_PARAMETERS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EVP_R_DIFFERENT_PARAMETERS@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_F_EVP_PKEY_DERIVE_SET_PEER,4,2 ; @EVP_F_EVP_PKEY_DERIVE_SET_PEER
	.comm	_EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE,4,2 ; @EVP_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE
	.comm	_EVP_PKEY_OP_DERIVE,8,3         ; @EVP_PKEY_OP_DERIVE
	.comm	_EVP_PKEY_OP_ENCRYPT,8,3        ; @EVP_PKEY_OP_ENCRYPT
	.comm	_EVP_PKEY_OP_DECRYPT,8,3        ; @EVP_PKEY_OP_DECRYPT
	.comm	_EVP_R_OPERATON_NOT_INITIALIZED,4,2 ; @EVP_R_OPERATON_NOT_INITIALIZED
	.comm	_EVP_PKEY_CTRL_PEER_KEY,4,2     ; @EVP_PKEY_CTRL_PEER_KEY
	.comm	_EVP_R_NO_KEY_SET,4,2           ; @EVP_R_NO_KEY_SET
	.comm	_EVP_R_DIFFERENT_KEY_TYPES,4,2  ; @EVP_R_DIFFERENT_KEY_TYPES
	.comm	_EVP_R_DIFFERENT_PARAMETERS,4,2 ; @EVP_R_DIFFERENT_PARAMETERS
.subsections_via_symbols
