	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_PKEY_set1_engine           ## -- Begin function EVP_PKEY_set1_engine
	.p2align	4, 0x90
_EVP_PKEY_set1_engine:                  ## @EVP_PKEY_set1_engine
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_ENGINE_init
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	callq	_ENGINE_get_pkey_meth
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	movq	(%r14), %rdi
	callq	_ENGINE_finish
	movq	%rbx, (%r14)
	movl	$1, %eax
	jmp	LBB0_7
LBB0_2:
	movq	_EVP_F_EVP_PKEY_SET1_ENGINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_ENGINE_LIB@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	%rbx, %rdi
	callq	_ENGINE_finish
	movq	_EVP_F_EVP_PKEY_SET1_ENGINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_UNSUPPORTED_ALGORITHM@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	callq	_EVPerr
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_F_EVP_PKEY_SET1_ENGINE,4,2 ## @EVP_F_EVP_PKEY_SET1_ENGINE
	.comm	_ERR_R_ENGINE_LIB,4,2           ## @ERR_R_ENGINE_LIB
	.comm	_EVP_R_UNSUPPORTED_ALGORITHM,4,2 ## @EVP_R_UNSUPPORTED_ALGORITHM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EVP_PKEY_set1_engine           ; -- Begin function EVP_PKEY_set1_engine
	.p2align	2
_EVP_PKEY_set1_engine:                  ; @EVP_PKEY_set1_engine
	.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
	mov	x19, x1
	mov	x20, x0
	cbz	x1, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_ENGINE_init
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_ENGINE_get_pkey_meth
	cbz	x0, LBB0_5
LBB0_3:
	ldr	x0, [x20]
	bl	_ENGINE_finish
	str	x19, [x20]
	mov	w0, #1
	b	LBB0_7
LBB0_4:
Lloh0:
	adrp	x8, _EVP_F_EVP_PKEY_SET1_ENGINE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_F_EVP_PKEY_SET1_ENGINE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_ENGINE_LIB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_ENGINE_LIB@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_ENGINE_finish
Lloh5:
	adrp	x8, _EVP_F_EVP_PKEY_SET1_ENGINE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EVP_F_EVP_PKEY_SET1_ENGINE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _EVP_R_UNSUPPORTED_ALGORITHM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EVP_R_UNSUPPORTED_ALGORITHM@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	bl	_EVPerr
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_F_EVP_PKEY_SET1_ENGINE,4,2 ; @EVP_F_EVP_PKEY_SET1_ENGINE
	.comm	_ERR_R_ENGINE_LIB,4,2           ; @ERR_R_ENGINE_LIB
	.comm	_EVP_R_UNSUPPORTED_ALGORITHM,4,2 ; @EVP_R_UNSUPPORTED_ALGORITHM
.subsections_via_symbols
