	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_PKEY_CTX_ctrl              ## -- Begin function EVP_PKEY_CTX_ctrl
	.p2align	4, 0x90
_EVP_PKEY_CTX_ctrl:                     ## @EVP_PKEY_CTX_ctrl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-2, %r14d
	movq	_EVP_R_COMMAND_NOT_SUPPORTED@GOTPCREL(%rip), %r15
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	8(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.2:
	movq	(%rbx), %r10
	testq	%r10, %r10
	je	LBB0_13
## %bb.3:
	cmpl	$-1, %esi
	je	LBB0_5
## %bb.4:
	movl	$-1, %eax
	cmpl	%esi, 8(%rbx)
	jne	LBB0_14
LBB0_5:
	cmpq	$0, 16(%rbx)
	je	LBB0_7
LBB0_6:
	movl	%ecx, %esi
	movl	%r8d, %edx
	movq	%r9, %rcx
	callq	*%r10
	cmpl	$-2, %eax
	je	LBB0_13
	jmp	LBB0_14
LBB0_7:
	movl	(%rdi), %eax
	movq	_EVP_PKEY_OP_UNDEFINED@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %eax
	jne	LBB0_9
## %bb.8:
	movq	_EVP_R_NO_OPERATION_SET@GOTPCREL(%rip), %r15
	jmp	LBB0_12
LBB0_9:
	cmpl	$-1, %edx
	je	LBB0_6
## %bb.10:
	andl	%edx, %eax
	jne	LBB0_6
## %bb.11:
	movq	_EVP_R_INVALID_OPERATION@GOTPCREL(%rip), %r15
LBB0_12:
	movl	$-1, %r14d
LBB0_13:
	movq	_EVP_F_EVP_PKEY_CTX_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_EVPerr
	movl	%r14d, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_F_EVP_PKEY_CTX_CTRL,4,2    ## @EVP_F_EVP_PKEY_CTX_CTRL
	.comm	_EVP_R_COMMAND_NOT_SUPPORTED,4,2 ## @EVP_R_COMMAND_NOT_SUPPORTED
	.comm	_EVP_PKEY_OP_UNDEFINED,4,2      ## @EVP_PKEY_OP_UNDEFINED
	.comm	_EVP_R_NO_OPERATION_SET,4,2     ## @EVP_R_NO_OPERATION_SET
	.comm	_EVP_R_INVALID_OPERATION,4,2    ## @EVP_R_INVALID_OPERATION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_PKEY_CTX_ctrl              ; -- Begin function EVP_PKEY_CTX_ctrl
	.p2align	2
_EVP_PKEY_CTX_ctrl:                     ; @EVP_PKEY_CTX_ctrl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_7
; %bb.1:
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_7
; %bb.2:
	ldr	x8, [x9]
	cbz	x8, LBB0_7
; %bb.3:
	cmn	w1, #1
	b.eq	LBB0_5
; %bb.4:
	ldr	w10, [x9, #8]
	cmp	w10, w1
	b.ne	LBB0_11
LBB0_5:
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_12
LBB0_6:
	mov	x1, x3
	mov	x2, x4
	mov	x3, x5
	blr	x8
	mov	x19, x0
	cmn	w0, #2
	b.eq	LBB0_8
	b	LBB0_10
LBB0_7:
	mov	w19, #-2
LBB0_8:
Lloh0:
	adrp	x8, _EVP_R_COMMAND_NOT_SUPPORTED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_R_COMMAND_NOT_SUPPORTED@GOTPAGEOFF]
LBB0_9:
Lloh2:
	adrp	x9, _EVP_F_EVP_PKEY_CTX_CTRL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EVP_F_EVP_PKEY_CTX_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_EVPerr
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	w19, #-1
	b	LBB0_10
LBB0_12:
	ldr	w9, [x0]
Lloh5:
	adrp	x10, _EVP_PKEY_OP_UNDEFINED@GOTPAGE
Lloh6:
	ldr	x10, [x10, _EVP_PKEY_OP_UNDEFINED@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_14
; %bb.13:
	mov	w19, #-1
Lloh8:
	adrp	x8, _EVP_R_NO_OPERATION_SET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EVP_R_NO_OPERATION_SET@GOTPAGEOFF]
	b	LBB0_9
LBB0_14:
	cmn	w2, #1
	b.eq	LBB0_6
; %bb.15:
	and	w9, w9, w2
	cbnz	w9, LBB0_6
; %bb.16:
	mov	w19, #-1
Lloh10:
	adrp	x8, _EVP_R_INVALID_OPERATION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EVP_R_INVALID_OPERATION@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_F_EVP_PKEY_CTX_CTRL,4,2    ; @EVP_F_EVP_PKEY_CTX_CTRL
	.comm	_EVP_R_COMMAND_NOT_SUPPORTED,4,2 ; @EVP_R_COMMAND_NOT_SUPPORTED
	.comm	_EVP_PKEY_OP_UNDEFINED,4,2      ; @EVP_PKEY_OP_UNDEFINED
	.comm	_EVP_R_NO_OPERATION_SET,4,2     ; @EVP_R_NO_OPERATION_SET
	.comm	_EVP_R_INVALID_OPERATION,4,2    ; @EVP_R_INVALID_OPERATION
.subsections_via_symbols
