	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cms_sd_asn1_ctrl
_cms_sd_asn1_ctrl:                      ## @cms_sd_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rcx
	movq	(%rdi), %rdi
	movq	(%rdi), %rax
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movl	%esi, %edx
	movq	_ASN1_PKEY_CTRL_CMS_SIGN@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	callq	*%rax
	cmpl	$-2, %eax
	jne	LBB0_4
## %bb.3:
	movq	_CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	testl	%eax, %eax
	jg	LBB0_7
## %bb.5:
	movq	_CMS_R_CTRL_FAILURE@GOTPCREL(%rip), %rax
LBB0_6:
	movq	_CMS_F_CMS_SD_ASN1_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	callq	_CMSerr
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASN1_PKEY_CTRL_CMS_SIGN,4,2    ## @ASN1_PKEY_CTRL_CMS_SIGN
	.comm	_CMS_F_CMS_SD_ASN1_CTRL,4,2     ## @CMS_F_CMS_SD_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
	.no_dead_strip	_cms_sd_asn1_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cms_sd_asn1_ctrl
_cms_sd_asn1_ctrl:                      ; @cms_sd_asn1_ctrl
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x3, x0
	ldr	x0, [x0]
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x2, x1
Lloh0:
	adrp	x9, _ASN1_PKEY_CTRL_CMS_SIGN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ASN1_PKEY_CTRL_CMS_SIGN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	blr	x8
	cmn	w0, #2
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	cmp	w0, #0
	b.le	LBB0_6
LBB0_5:
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh5:
	adrp	x8, _CMS_R_CTRL_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMS_R_CTRL_FAILURE@GOTPAGEOFF]
LBB0_7:
Lloh7:
	adrp	x9, _CMS_F_CMS_SD_ASN1_CTRL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CMS_F_CMS_SD_ASN1_CTRL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_CMSerr
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ASN1_PKEY_CTRL_CMS_SIGN,4,2    ; @ASN1_PKEY_CTRL_CMS_SIGN
	.comm	_CMS_F_CMS_SD_ASN1_CTRL,4,2     ; @CMS_F_CMS_SD_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
	.no_dead_strip	_cms_sd_asn1_ctrl
.subsections_via_symbols
