	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cms_SignerInfo_content_sign
_cms_SignerInfo_content_sign:           ## @cms_SignerInfo_content_sign
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_new
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	cmpl	$0, 4(%r15)
	je	LBB0_3
## %bb.5:
	movl	16(%r15), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_cms_DigestAlgorithm_find_ctx
	xorl	%r13d, %r13d
	testl	%eax, %eax
	je	LBB0_32
## %bb.6:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	cmpq	$0, 8(%r15)
	je	LBB0_9
## %bb.7:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_cms_sd_asn1_ctrl
	testl	%eax, %eax
	je	LBB0_8
LBB0_9:
	movq	%r15, %rdi
	callq	_CMS_signed_get_attr_count
	testq	%rax, %rax
	js	LBB0_16
## %bb.10:
	movq	%rsp, %r12
	movq	_EVP_MAX_MD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_EVP_DigestFinal_ex
	testl	%eax, %eax
	je	LBB0_14
## %bb.11:
	movq	_NID_pkcs9_messageDigest@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_V_ASN1_OCTET_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-56(%rbp), %r8d
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_CMS_signed_add1_attr_by_NID
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_cms_set_si_contentType_attr
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_CMS_SignerInfo_sign
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movq	%r12, %rsp
	jmp	LBB0_31
LBB0_1:
	movq	_CMS_F_CMS_SIGNERINFO_CONTENT_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CMSerr
	jmp	LBB0_34
LBB0_3:
	movq	_CMS_F_CMS_SIGNERINFO_CONTENT_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMS_R_NO_PRIVATE_KEY@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	callq	_CMSerr
	jmp	LBB0_29
LBB0_14:
	movq	%r12, %rsp
LBB0_29:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	jmp	LBB0_33
LBB0_16:
	cmpq	$0, 8(%r15)
	je	LBB0_25
## %bb.17:
	movq	%rsp, %rbx
	movq	_EVP_MAX_MD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rsi
	movq	8(%r15), %r12
	leaq	-76(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	callq	_EVP_DigestFinal_ex
	testl	%eax, %eax
	je	LBB0_23
## %bb.18:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %edi
	callq	_EVP_PKEY_size
	movq	%rax, -56(%rbp)
	movq	%rax, %rdi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.20:
	movq	%rax, %rbx
	movl	-76(%rbp), %r8d
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_EVP_PKEY_sign
	testq	%rax, %rax
	jle	LBB0_21
## %bb.24:
	movl	(%r15), %edi
	movl	-56(%rbp), %edx
	movq	%rbx, %rsi
	callq	_ASN1_STRING_set0
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	movl	$1, %r13d
	jmp	LBB0_33
LBB0_8:
	xorl	%r13d, %r13d
	jmp	LBB0_33
LBB0_25:
	movl	4(%r15), %edi
	callq	_EVP_PKEY_size
	movq	%rax, %rdi
	callq	_OPENSSL_malloc
	testq	%rax, %rax
	je	LBB0_26
## %bb.27:
	movq	%rax, %rbx
	movl	4(%r15), %ecx
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_EVP_SignFinal
	testl	%eax, %eax
	je	LBB0_28
## %bb.30:
	movl	(%r15), %edi
	movl	-56(%rbp), %edx
	movq	%rbx, %rsi
	callq	_ASN1_STRING_set0
LBB0_31:
	movl	$1, %r13d
LBB0_32:
	xorl	%r12d, %r12d
LBB0_33:
	movq	%r14, %rdi
	callq	_EVP_MD_CTX_free
	movq	%r12, %rdi
	callq	_EVP_PKEY_CTX_free
LBB0_34:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_36
## %bb.35:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_CMS_F_CMS_SIGNERINFO_CONTENT_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CMSerr
	jmp	LBB0_22
LBB0_26:
	movq	_CMS_F_CMS_SIGNERINFO_CONTENT_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_21:
	movq	%rbx, %rdi
	callq	_OPENSSL_free
LBB0_22:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_23:
	movq	%rbx, %rsp
	jmp	LBB0_33
LBB0_28:
	movq	_CMS_F_CMS_SIGNERINFO_CONTENT_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMS_R_SIGNFINAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CMSerr
	movq	%rbx, %rdi
	callq	_OPENSSL_free
	jmp	LBB0_29
LBB0_36:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CMS_F_CMS_SIGNERINFO_CONTENT_SIGN,4,2 ## @CMS_F_CMS_SIGNERINFO_CONTENT_SIGN
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_CMS_R_NO_PRIVATE_KEY,4,2       ## @CMS_R_NO_PRIVATE_KEY
	.comm	_EVP_MAX_MD_SIZE,4,2            ## @EVP_MAX_MD_SIZE
	.comm	_NID_pkcs9_messageDigest,4,2    ## @NID_pkcs9_messageDigest
	.comm	_V_ASN1_OCTET_STRING,4,2        ## @V_ASN1_OCTET_STRING
	.comm	_CMS_R_SIGNFINAL_ERROR,4,2      ## @CMS_R_SIGNFINAL_ERROR
	.no_dead_strip	_cms_SignerInfo_content_sign
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cms_SignerInfo_content_sign
_cms_SignerInfo_content_sign:           ; @cms_SignerInfo_content_sign
	.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
	sub	sp, sp, #32
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_EVP_MD_CTX_new
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_12
; %bb.2:
	ldr	w2, [x20, #16]
	mov	x0, x19
	mov	x1, x22
	bl	_cms_DigestAlgorithm_find_ctx
	cbz	w0, LBB0_15
; %bb.3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	w1, #0
	bl	_cms_sd_asn1_ctrl
	cbz	w0, LBB0_15
LBB0_5:
	mov	x0, x20
	bl	_CMS_signed_get_attr_count
	tbnz	x0, #63, LBB0_20
; %bb.6:
	mov	x23, sp
Lloh3:
	adrp	x8, _EVP_MAX_MD_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EVP_MAX_MD_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	sub	x2, x29, #64
	mov	x0, x19
	mov	x1, x22
	bl	_EVP_DigestFinal_ex
	cbz	w0, LBB0_14
; %bb.7:
Lloh8:
	adrp	x8, _NID_pkcs9_messageDigest@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NID_pkcs9_messageDigest@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _V_ASN1_OCTET_STRING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V_ASN1_OCTET_STRING@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldur	w4, [x29, #-64]
	mov	x0, x20
	mov	x3, x22
	bl	_CMS_signed_add1_attr_by_NID
	cbz	w0, LBB0_14
; %bb.8:
	mov	x0, x21
	mov	x1, x20
	bl	_cms_set_si_contentType_attr
	cbz	w0, LBB0_14
; %bb.9:
	mov	x0, x20
	bl	_CMS_SignerInfo_sign
	cbz	w0, LBB0_14
; %bb.10:
	mov	sp, x23
	b	LBB0_28
LBB0_11:
Lloh14:
	adrp	x8, _CMS_F_CMS_SIGNERINFO_CONTENT_SIGN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CMS_F_CMS_SIGNERINFO_CONTENT_SIGN@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_CMSerr
	mov	w20, #0
	b	LBB0_18
LBB0_12:
Lloh20:
	adrp	x8, _CMS_F_CMS_SIGNERINFO_CONTENT_SIGN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CMS_F_CMS_SIGNERINFO_CONTENT_SIGN@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x8, _CMS_R_NO_PRIVATE_KEY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CMS_R_NO_PRIVATE_KEY@GOTPAGEOFF]
LBB0_13:
	ldr	w1, [x8]
	bl	_CMSerr
	b	LBB0_15
LBB0_14:
	mov	sp, x23
LBB0_15:
	mov	x21, #0
LBB0_16:
	mov	w20, #0
LBB0_17:
	mov	x0, x19
	bl	_EVP_MD_CTX_free
	mov	x0, x21
	bl	_EVP_PKEY_CTX_free
LBB0_18:
	ldur	x8, [x29, #-56]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_35
; %bb.19:
	mov	x0, x20
	sub	sp, x29, #48
	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_20:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_25
; %bb.21:
	mov	x24, sp
Lloh28:
	adrp	x8, _EVP_MAX_MD_SIZE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EVP_MAX_MD_SIZE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	mov	x9, x8
Lloh31:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh32:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	x21, [x20, #8]
	sub	x2, x29, #68
	mov	x0, x19
	mov	x1, x22
	bl	_EVP_DigestFinal_ex
	cbz	w0, LBB0_33
; %bb.22:
	ldr	w0, [x20, #4]
	bl	_EVP_PKEY_size
	stur	x0, [x29, #-64]
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_30
; %bb.23:
	mov	x23, x0
	ldur	w4, [x29, #-68]
	sub	x2, x29, #64
	mov	x0, x21
	mov	x1, x23
	mov	x3, x22
	bl	_EVP_PKEY_sign
	cmp	x0, #0
	b.le	LBB0_32
; %bb.24:
	ldr	w0, [x20]
	ldur	w2, [x29, #-64]
	mov	x1, x23
	bl	_ASN1_STRING_set0
	mov	sp, x24
	b	LBB0_29
LBB0_25:
	ldr	w0, [x20, #4]
	bl	_EVP_PKEY_size
	bl	_OPENSSL_malloc
	cbz	x0, LBB0_31
; %bb.26:
	mov	x21, x0
	ldr	w3, [x20, #4]
	sub	x2, x29, #64
	mov	x0, x19
	mov	x1, x21
	bl	_EVP_SignFinal
	cbz	w0, LBB0_34
; %bb.27:
	ldr	w0, [x20]
	ldur	w2, [x29, #-64]
	mov	x1, x21
	bl	_ASN1_STRING_set0
LBB0_28:
	mov	x21, #0
LBB0_29:
	mov	w20, #1
	b	LBB0_17
LBB0_30:
Lloh33:
	adrp	x8, _CMS_F_CMS_SIGNERINFO_CONTENT_SIGN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CMS_F_CMS_SIGNERINFO_CONTENT_SIGN@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
Lloh36:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	bl	_CMSerr
	b	LBB0_33
LBB0_31:
Lloh39:
	adrp	x8, _CMS_F_CMS_SIGNERINFO_CONTENT_SIGN@GOTPAGE
Lloh40:
	ldr	x8, [x8, _CMS_F_CMS_SIGNERINFO_CONTENT_SIGN@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
Lloh42:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
	b	LBB0_13
LBB0_32:
	mov	x0, x23
	bl	_OPENSSL_free
LBB0_33:
	mov	sp, x24
	b	LBB0_16
LBB0_34:
Lloh44:
	adrp	x8, _CMS_F_CMS_SIGNERINFO_CONTENT_SIGN@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CMS_F_CMS_SIGNERINFO_CONTENT_SIGN@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
Lloh47:
	adrp	x8, _CMS_R_SIGNFINAL_ERROR@GOTPAGE
Lloh48:
	ldr	x8, [x8, _CMS_R_SIGNFINAL_ERROR@GOTPAGEOFF]
Lloh49:
	ldr	w1, [x8]
	bl	_CMSerr
	mov	x0, x21
	bl	_OPENSSL_free
	b	LBB0_15
LBB0_35:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_CMS_F_CMS_SIGNERINFO_CONTENT_SIGN,4,2 ; @CMS_F_CMS_SIGNERINFO_CONTENT_SIGN
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_CMS_R_NO_PRIVATE_KEY,4,2       ; @CMS_R_NO_PRIVATE_KEY
	.comm	_EVP_MAX_MD_SIZE,4,2            ; @EVP_MAX_MD_SIZE
	.comm	_NID_pkcs9_messageDigest,4,2    ; @NID_pkcs9_messageDigest
	.comm	_V_ASN1_OCTET_STRING,4,2        ; @V_ASN1_OCTET_STRING
	.comm	_CMS_R_SIGNFINAL_ERROR,4,2      ; @CMS_R_SIGNFINAL_ERROR
	.no_dead_strip	_cms_SignerInfo_content_sign
.subsections_via_symbols
