	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mac_test_ctrl_pkey
_mac_test_ctrl_pkey:                    ## @mac_test_ctrl_pkey
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rdx, %rdi
	callq	_OPENSSL_strdup
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_TEST_ptr
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rdx
	incq	%rdx
	movb	$0, (%rax)
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_3:
	xorl	%edx, %edx
LBB0_5:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_EVP_PKEY_CTX_ctrl_str
	cmpl	$-2, %eax
	jne	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movl	$1, %ebx
	testl	%eax, %eax
	jg	LBB0_10
## %bb.8:
	leaq	L_.str.1(%rip), %rax
LBB0_9:
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
LBB0_10:
	movq	%r12, %rdi
	callq	_OPENSSL_free
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PKEY_CTRL_INVALID"

L_.str.1:                               ## @.str.1
	.asciz	"PKEY_CTRL_ERROR"

	.no_dead_strip	_mac_test_ctrl_pkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mac_test_ctrl_pkey
_mac_test_ctrl_pkey:                    ; @mac_test_ctrl_pkey
	.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, x1
	mov	x20, x0
	mov	x0, x2
	bl	_OPENSSL_strdup
	mov	x19, x0
	bl	_TEST_ptr
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	mov	w1, #58
	bl	_strchr
	mov	x2, x0
	cbz	x0, LBB0_3
; %bb.2:
	strb	wzr, [x2], #1
LBB0_3:
	mov	x0, x21
	mov	x1, x19
	bl	_EVP_PKEY_CTX_ctrl_str
	cmn	w0, #2
	b.ne	LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	b	LBB0_9
LBB0_5:
	mov	w21, #0
	b	LBB0_11
LBB0_6:
	cmp	w0, #0
	b.le	LBB0_8
; %bb.7:
	mov	w21, #1
	b	LBB0_10
LBB0_8:
Lloh2:
	adrp	x8, l_.str.1@PAGE
Lloh3:
	add	x8, x8, l_.str.1@PAGEOFF
LBB0_9:
	mov	w21, #0
	str	x8, [x20]
LBB0_10:
	mov	x0, x19
	bl	_OPENSSL_free
LBB0_11:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PKEY_CTRL_INVALID"

l_.str.1:                               ; @.str.1
	.asciz	"PKEY_CTRL_ERROR"

	.no_dead_strip	_mac_test_ctrl_pkey
.subsections_via_symbols
