	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function int_ctx_new
_int_ctx_new:                           ## @int_ctx_new
	.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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpl	$-1, %edx
	je	LBB0_1
## %bb.3:
	testq	%r14, %r14
	jne	LBB0_4
	jmp	LBB0_7
LBB0_1:
	testq	%r14, %r14
	je	LBB0_23
## %bb.2:
	movl	(%r14), %r15d
	testq	%r14, %r14
	je	LBB0_7
LBB0_4:
	testq	%rbx, %rbx
	jne	LBB0_7
## %bb.5:
	movq	16(%r14), %rbx
	testq	%rbx, %rbx
	jne	LBB0_8
## %bb.6:
	movq	8(%r14), %rbx
LBB0_7:
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_8:
	movq	%rbx, %rdi
	callq	_ENGINE_init
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movq	_EVP_F_INT_CTX_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_ENGINE_LIB@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_11:
	movl	%r15d, %edi
	callq	_ENGINE_get_pkey_meth_engine
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_13
LBB0_12:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_ENGINE_get_pkey_meth
	movq	%rax, %r12
	testq	%r12, %r12
	je	LBB0_15
LBB0_16:
	movl	$32, %edi
	callq	_OPENSSL_zalloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	%rax, %r15
	movq	%rbx, 24(%rax)
	movq	%r12, (%rax)
	movq	_EVP_PKEY_OP_UNDEFINED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movq	%r14, 8(%r15)
	testq	%r14, %r14
	je	LBB0_20
## %bb.19:
	movq	%r14, %rdi
	callq	_EVP_PKEY_up_ref
LBB0_20:
	movq	(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_24
## %bb.21:
	movq	%r15, %rdi
	callq	*%rcx
	testq	%rax, %rax
	jg	LBB0_24
## %bb.22:
	movq	$0, (%r15)
	movq	%r15, %rdi
	callq	_EVP_PKEY_CTX_free
	jmp	LBB0_23
LBB0_17:
	movq	%rbx, %rdi
	callq	_ENGINE_finish
	movq	_EVP_F_INT_CTX_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_13:
	movl	%r15d, %edi
	callq	_EVP_PKEY_meth_find
	movq	%rax, %r12
	xorl	%ebx, %ebx
	testq	%r12, %r12
	jne	LBB0_16
LBB0_15:
	movq	%rbx, %rdi
	callq	_ENGINE_finish
	movq	_EVP_F_INT_CTX_NEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EVP_R_UNSUPPORTED_ALGORITHM@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	callq	_EVPerr
LBB0_23:
	xorl	%r15d, %r15d
LBB0_24:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVP_F_INT_CTX_NEW,4,2          ## @EVP_F_INT_CTX_NEW
	.comm	_ERR_R_ENGINE_LIB,4,2           ## @ERR_R_ENGINE_LIB
	.comm	_EVP_R_UNSUPPORTED_ALGORITHM,4,2 ## @EVP_R_UNSUPPORTED_ALGORITHM
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_EVP_PKEY_OP_UNDEFINED,4,2      ## @EVP_PKEY_OP_UNDEFINED
	.no_dead_strip	_int_ctx_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function int_ctx_new
_int_ctx_new:                           ; @int_ctx_new
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	cmn	w2, #1
	b.eq	LBB0_2
; %bb.1:
	cbnz	x19, LBB0_4
	b	LBB0_7
LBB0_2:
	cbz	x19, LBB0_22
; %bb.3:
	ldr	w21, [x19]
	cbz	x19, LBB0_7
LBB0_4:
	cbnz	x20, LBB0_7
; %bb.5:
	ldr	x20, [x19, #16]
	cbnz	x20, LBB0_8
; %bb.6:
	ldr	x20, [x19, #8]
LBB0_7:
	cbz	x20, LBB0_10
LBB0_8:
	mov	x0, x20
	bl	_ENGINE_init
	cbnz	w0, LBB0_11
; %bb.9:
Lloh0:
	adrp	x8, _EVP_F_INT_CTX_NEW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVP_F_INT_CTX_NEW@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ERR_R_ENGINE_LIB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERR_R_ENGINE_LIB@GOTPAGEOFF]
	b	LBB0_21
LBB0_10:
	mov	x0, x21
	bl	_ENGINE_get_pkey_meth_engine
	mov	x20, x0
	cbz	x0, LBB0_19
LBB0_11:
	mov	x0, x20
	mov	x1, x21
	bl	_ENGINE_get_pkey_meth
	mov	x22, x0
	cbz	x0, LBB0_20
LBB0_12:
	mov	w0, #32
	bl	_OPENSSL_zalloc
	mov	x21, x0
	cbz	x0, LBB0_18
; %bb.13:
	str	x20, [x21, #24]
Lloh5:
	adrp	x8, _EVP_PKEY_OP_UNDEFINED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EVP_PKEY_OP_UNDEFINED@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	stp	x22, x19, [x21]
	cbz	x19, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_EVP_PKEY_up_ref
LBB0_15:
	ldr	x8, [x22]
	cbz	x8, LBB0_23
; %bb.16:
	mov	x0, x21
	blr	x8
	cmp	x0, #0
	b.gt	LBB0_23
; %bb.17:
	str	xzr, [x21]
	mov	x0, x21
	bl	_EVP_PKEY_CTX_free
	b	LBB0_22
LBB0_18:
	mov	x0, x20
	bl	_ENGINE_finish
Lloh8:
	adrp	x8, _EVP_F_INT_CTX_NEW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EVP_F_INT_CTX_NEW@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_EVPerr
	b	LBB0_23
LBB0_19:
	mov	x0, x21
	bl	_EVP_PKEY_meth_find
	mov	x22, x0
	cbnz	x0, LBB0_12
LBB0_20:
	mov	x0, x20
	bl	_ENGINE_finish
Lloh14:
	adrp	x8, _EVP_F_INT_CTX_NEW@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EVP_F_INT_CTX_NEW@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _EVP_R_UNSUPPORTED_ALGORITHM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EVP_R_UNSUPPORTED_ALGORITHM@GOTPAGEOFF]
LBB0_21:
	ldr	w1, [x8]
	bl	_EVPerr
LBB0_22:
	mov	x21, #0
LBB0_23:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EVP_F_INT_CTX_NEW,4,2          ; @EVP_F_INT_CTX_NEW
	.comm	_ERR_R_ENGINE_LIB,4,2           ; @ERR_R_ENGINE_LIB
	.comm	_EVP_R_UNSUPPORTED_ALGORITHM,4,2 ; @EVP_R_UNSUPPORTED_ALGORITHM
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_EVP_PKEY_OP_UNDEFINED,4,2      ; @EVP_PKEY_OP_UNDEFINED
	.no_dead_strip	_int_ctx_new
.subsections_via_symbols
