	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cms_DigestAlgorithm_find_ctx   ## -- Begin function cms_DigestAlgorithm_find_ctx
	.p2align	4, 0x90
_cms_DigestAlgorithm_find_ctx:          ## @cms_DigestAlgorithm_find_ctx
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rcx
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_X509_ALGOR_get0
	movq	-64(%rbp), %rdi
	callq	_OBJ_obj2nid
	movl	%eax, %r13d
	movq	_BIO_TYPE_MD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_BIO_find_type
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_BIO_get_md_ctx
	movq	-48(%rbp), %rdi
	callq	_EVP_MD_CTX_type
	cmpl	%r13d, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi
	callq	_EVP_MD_CTX_md
	movl	%eax, %edi
	callq	_EVP_MD_pkey_type
	cmpl	%r13d, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_BIO_next
	movl	(%r14), %esi
	movq	%rax, %rdi
	callq	_BIO_find_type
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
LBB0_6:
	movq	_CMS_F_CMS_DIGESTALGORITHM_FIND_CTX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_CMS_R_NO_MATCHING_DIGEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_CMSerr
	jmp	LBB0_7
LBB0_4:
	movq	-48(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_EVP_MD_CTX_copy_ex
	movl	%eax, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_TYPE_MD,4,2                ## @BIO_TYPE_MD
	.comm	_CMS_F_CMS_DIGESTALGORITHM_FIND_CTX,4,2 ## @CMS_F_CMS_DIGESTALGORITHM_FIND_CTX
	.comm	_CMS_R_NO_MATCHING_DIGEST,4,2   ## @CMS_R_NO_MATCHING_DIGEST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cms_DigestAlgorithm_find_ctx   ; -- Begin function cms_DigestAlgorithm_find_ctx
	.p2align	2
_cms_DigestAlgorithm_find_ctx:          ; @cms_DigestAlgorithm_find_ctx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x3, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	x1, #0
	mov	x2, #0
	bl	_X509_ALGOR_get0
	ldr	x0, [sp, #8]
	bl	_OBJ_obj2nid
	mov	x20, x0
Lloh0:
	adrp	x22, _BIO_TYPE_MD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BIO_TYPE_MD@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_BIO_find_type
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	mov	x0, x21
	bl	_BIO_get_md_ctx
	ldr	x0, [sp]
	bl	_EVP_MD_CTX_type
	cmp	w0, w20
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [sp]
	bl	_EVP_MD_CTX_md
	bl	_EVP_MD_pkey_type
	cmp	w0, w20
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_BIO_next
	ldr	w1, [x22]
	bl	_BIO_find_type
	mov	x21, x0
	cbnz	x0, LBB0_2
LBB0_5:
Lloh2:
	adrp	x8, _CMS_F_CMS_DIGESTALGORITHM_FIND_CTX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMS_F_CMS_DIGESTALGORITHM_FIND_CTX@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _CMS_R_NO_MATCHING_DIGEST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CMS_R_NO_MATCHING_DIGEST@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_CMSerr
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	ldr	x1, [sp]
	mov	x0, x19
	bl	_EVP_MD_CTX_copy_ex
LBB0_7:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_TYPE_MD,4,2                ; @BIO_TYPE_MD
	.comm	_CMS_F_CMS_DIGESTALGORITHM_FIND_CTX,4,2 ; @CMS_F_CMS_DIGESTALGORITHM_FIND_CTX
	.comm	_CMS_R_NO_MATCHING_DIGEST,4,2   ; @CMS_R_NO_MATCHING_DIGEST
.subsections_via_symbols
