	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkey_test_ctrl
_pkey_test_ctrl:                        ## @pkey_test_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_OPENSSL_strdup
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r15, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r13
	incq	%r13
	movb	$0, (%rax)
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_3:
	xorl	%r13d, %r13d
LBB0_5:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_EVP_PKEY_CTX_ctrl_str
	cmpl	$-2, %eax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_16
LBB0_7:
	movl	%eax, %ebx
	testq	%r13, %r13
	je	LBB0_18
## %bb.8:
	testl	%ebx, %ebx
	jg	LBB0_18
## %bb.9:
	movq	%r13, %rdi
	callq	_OBJ_sn2nid
	movl	%eax, %r12d
	movq	_NID_undef@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	cmpl	%eax, %r12d
	jne	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	callq	_OBJ_ln2nid
	movl	%eax, %r12d
	movl	(%rbx), %eax
LBB0_11:
	cmpl	%eax, %r12d
	je	LBB0_15
## %bb.12:
	movl	%r12d, %edi
	callq	_EVP_get_digestbynid
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:
	movl	%r12d, %edi
	callq	_EVP_get_cipherbynid
	testq	%rax, %rax
	je	LBB0_14
LBB0_15:
	leaq	L_.str.1(%rip), %rax
LBB0_16:
	movq	%rax, (%r14)
LBB0_17:
	movl	$1, %ebx
LBB0_18:
	movq	%r15, %rdi
	callq	_OPENSSL_free
	xorl	%eax, %eax
	testl	%ebx, %ebx
	setg	%al
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	$1, 8(%r14)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PKEY_CTRL_INVALID"

	.comm	_NID_undef,4,2                  ## @NID_undef
L_.str.1:                               ## @.str.1
	.asciz	"PKEY_CTRL_ERROR"

	.no_dead_strip	_pkey_test_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkey_test_ctrl
_pkey_test_ctrl:                        ; @pkey_test_ctrl
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x1
	mov	x20, x0
	mov	x0, x2
	bl	_OPENSSL_strdup
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_15
; %bb.1:
	mov	x0, x19
	mov	w1, #58
	bl	_strchr
	mov	x21, x0
	cbz	x0, LBB0_3
; %bb.2:
	strb	wzr, [x21], #1
LBB0_3:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	bl	_EVP_PKEY_CTX_ctrl_str
	cmn	w0, #2
	b.ne	LBB0_5
; %bb.4:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	b	LBB0_13
LBB0_5:
	mov	x22, x0
	cbz	x21, LBB0_14
; %bb.6:
	cmp	w22, #0
	b.gt	LBB0_14
; %bb.7:
	mov	x0, x21
	bl	_OBJ_sn2nid
Lloh2:
	adrp	x23, _NID_undef@GOTPAGE
Lloh3:
	ldr	x23, [x23, _NID_undef@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_OBJ_ln2nid
	mov	x22, x0
	ldr	w8, [x23]
	cmp	w22, w8
	b.ne	LBB0_10
	b	LBB0_12
LBB0_9:
	mov	x22, x0
	cmp	w22, w8
	b.eq	LBB0_12
LBB0_10:
	mov	x0, x22
	bl	_EVP_get_digestbynid
	cbnz	x0, LBB0_12
; %bb.11:
	mov	x0, x22
	bl	_EVP_get_cipherbynid
	cbz	x0, LBB0_16
LBB0_12:
Lloh4:
	adrp	x8, l_.str.1@PAGE
Lloh5:
	add	x8, x8, l_.str.1@PAGEOFF
LBB0_13:
	str	x8, [x20]
	mov	w22, #1
LBB0_14:
	mov	x0, x19
	bl	_OPENSSL_free
	cmp	w22, #0
	cset	w0, gt
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	w22, #1
	str	w22, [x20, #8]
	b	LBB0_14
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PKEY_CTRL_INVALID"

	.comm	_NID_undef,4,2                  ; @NID_undef
l_.str.1:                               ; @.str.1
	.asciz	"PKEY_CTRL_ERROR"

	.no_dead_strip	_pkey_test_ctrl
.subsections_via_symbols
