	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cms_DigestAlgorithm_init_bio   ## -- Begin function cms_DigestAlgorithm_init_bio
	.p2align	4, 0x90
_cms_DigestAlgorithm_init_bio:          ## @cms_DigestAlgorithm_init_bio
	.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
	movq	%rdi, %rcx
	xorl	%ebx, %ebx
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_X509_ALGOR_get0
	movq	-32(%rbp), %rdi
	callq	_EVP_get_digestbyobj
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_BIO_f_md
	movl	%eax, %edi
	callq	_BIO_new
	movq	%rax, %rbx
	movq	_CMS_R_MD_BIO_INIT_ERROR@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_BIO_set_md
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_4
LBB0_1:
	movq	_CMS_R_UNKNOWN_DIGEST_ALGORITHM@GOTPCREL(%rip), %r15
LBB0_4:
	movq	_CMS_F_CMS_DIGESTALGORITHM_INIT_BIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_CMSerr
	movq	%rbx, %rdi
	callq	_BIO_free
	xorl	%ebx, %ebx
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMS_F_CMS_DIGESTALGORITHM_INIT_BIO,4,2 ## @CMS_F_CMS_DIGESTALGORITHM_INIT_BIO
	.comm	_CMS_R_UNKNOWN_DIGEST_ALGORITHM,4,2 ## @CMS_R_UNKNOWN_DIGEST_ALGORITHM
	.comm	_CMS_R_MD_BIO_INIT_ERROR,4,2    ## @CMS_R_MD_BIO_INIT_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cms_DigestAlgorithm_init_bio   ; -- Begin function cms_DigestAlgorithm_init_bio
	.p2align	2
_cms_DigestAlgorithm_init_bio:          ; @cms_DigestAlgorithm_init_bio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x3, x0
	add	x0, sp, #8
	mov	x1, #0
	mov	x2, #0
	bl	_X509_ALGOR_get0
	ldr	x0, [sp, #8]
	bl	_EVP_get_digestbyobj
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	bl	_BIO_f_md
	bl	_BIO_new
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_BIO_set_md
	cbnz	w0, LBB0_6
LBB0_3:
Lloh0:
	adrp	x8, _CMS_R_MD_BIO_INIT_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMS_R_MD_BIO_INIT_ERROR@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	x19, #0
Lloh2:
	adrp	x8, _CMS_R_UNKNOWN_DIGEST_ALGORITHM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMS_R_UNKNOWN_DIGEST_ALGORITHM@GOTPAGEOFF]
LBB0_5:
Lloh4:
	adrp	x9, _CMS_F_CMS_DIGESTALGORITHM_INIT_BIO@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CMS_F_CMS_DIGESTALGORITHM_INIT_BIO@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_CMSerr
	mov	x0, x19
	bl	_BIO_free
	mov	x19, #0
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CMS_F_CMS_DIGESTALGORITHM_INIT_BIO,4,2 ; @CMS_F_CMS_DIGESTALGORITHM_INIT_BIO
	.comm	_CMS_R_UNKNOWN_DIGEST_ALGORITHM,4,2 ; @CMS_R_UNKNOWN_DIGEST_ALGORITHM
	.comm	_CMS_R_MD_BIO_INIT_ERROR,4,2    ; @CMS_R_MD_BIO_INIT_ERROR
.subsections_via_symbols
