	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cms_env_asn1_ctrl              ## -- Begin function cms_env_asn1_ctrl
	.p2align	4, 0x90
_cms_env_asn1_ctrl:                     ## @cms_env_asn1_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	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_CMS_RECIPINFO_TRANS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
LBB0_5:
	movq	(%rdi), %rax
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_12
## %bb.7:
	movq	_ASN1_PKEY_CTRL_CMS_ENVELOPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	callq	*%r8
	cmpl	$-2, %eax
	jne	LBB0_9
## %bb.8:
	movq	_CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	movq	_CMS_RECIPINFO_AGREE@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.3:
	movq	8(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.4:
	callq	_EVP_PKEY_CTX_get0_pkey
	movq	%rax, %rdi
	testq	%rax, %rax
	jne	LBB0_5
	jmp	LBB0_12
LBB0_9:
	testl	%eax, %eax
	jg	LBB0_12
## %bb.10:
	movq	_CMS_R_CTRL_FAILURE@GOTPCREL(%rip), %rax
LBB0_11:
	movq	_CMS_F_CMS_ENV_ASN1_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_CMSerr
	xorl	%r14d, %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMS_RECIPINFO_TRANS,8,3        ## @CMS_RECIPINFO_TRANS
	.comm	_CMS_RECIPINFO_AGREE,8,3        ## @CMS_RECIPINFO_AGREE
	.comm	_ASN1_PKEY_CTRL_CMS_ENVELOPE,4,2 ## @ASN1_PKEY_CTRL_CMS_ENVELOPE
	.comm	_CMS_F_CMS_ENV_ASN1_CTRL,4,2    ## @CMS_F_CMS_ENV_ASN1_CTRL
	.comm	_CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE,4,2 ## @CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE
	.comm	_CMS_R_CTRL_FAILURE,4,2         ## @CMS_R_CTRL_FAILURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cms_env_asn1_ctrl              ; -- Begin function cms_env_asn1_ctrl
	.p2align	2
_cms_env_asn1_ctrl:                     ; @cms_env_asn1_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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CMS_RECIPINFO_TRANS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CMS_R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AGEOFF]
Lloh15:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_CMSerr
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_CMS_RECIPINFO_TRANS,8,3        ; @CMS_RECIPINFO_TRANS
	.comm	_CMS_RECIPINFO_AGREE,8,3        ; @CMS_RECIPINFO_AGREE
	.comm	_ASN1_PKEY_CTRL_CMS_ENVELOPE,4,2 ; @ASN1_PKEY_CTRL_CMS_ENVELOPE
	.comm	_CMS_F_CMS_ENV_ASN1_CTRL,4,2    ; @CMS_F_CMS_ENV_ASN1_CTRL
	.comm	_CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE,4,2 ; @CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE
	.comm	_CMS_R_CTRL_FAILURE,4,2         ; @CMS_R_CTRL_FAILURE
.subsections_via_symbols
