	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PKCS7_bio_add_digest
_PKCS7_bio_add_digest:                  ## @PKCS7_bio_add_digest
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_BIO_f_md
	movl	%eax, %edi
	callq	_BIO_new
	movq	%rax, %rbx
	movq	_ERR_R_BIO_LIB@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	(%r15), %edi
	callq	_EVP_get_digestbyobj
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_BIO_set_md
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rsi
	callq	_BIO_push
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_7
	jmp	LBB0_6
LBB0_2:
	movq	_PKCS7_R_UNKNOWN_DIGEST_TYPE@GOTPCREL(%rip), %r12
LBB0_6:
	movq	_PKCS7_F_PKCS7_BIO_ADD_DIGEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_PKCS7err
	movq	%rbx, %rdi
	callq	_BIO_free
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, (%r14)
	movl	$1, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_PKCS7_F_PKCS7_BIO_ADD_DIGEST,4,2 ## @PKCS7_F_PKCS7_BIO_ADD_DIGEST
	.comm	_ERR_R_BIO_LIB,4,2              ## @ERR_R_BIO_LIB
	.comm	_PKCS7_R_UNKNOWN_DIGEST_TYPE,4,2 ## @PKCS7_R_UNKNOWN_DIGEST_TYPE
	.no_dead_strip	_PKCS7_bio_add_digest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PKCS7_bio_add_digest
_PKCS7_bio_add_digest:                  ; @PKCS7_bio_add_digest
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x20, x0
	bl	_BIO_f_md
	bl	_BIO_new
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w0, [x21]
	bl	_EVP_get_digestbyobj
	cbz	x0, LBB0_6
; %bb.2:
	mov	x1, x0
	mov	x0, x19
	bl	_BIO_set_md
	ldr	x0, [x20]
	cbz	x0, LBB0_9
; %bb.3:
	mov	x1, x19
	bl	_BIO_push
	cbz	w0, LBB0_5
; %bb.4:
	mov	w0, #1
	b	LBB0_8
LBB0_5:
Lloh0:
	adrp	x8, _ERR_R_BIO_LIB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_R_BIO_LIB@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _PKCS7_R_UNKNOWN_DIGEST_TYPE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PKCS7_R_UNKNOWN_DIGEST_TYPE@GOTPAGEOFF]
LBB0_7:
Lloh4:
	adrp	x9, _PKCS7_F_PKCS7_BIO_ADD_DIGEST@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PKCS7_F_PKCS7_BIO_ADD_DIGEST@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x9]
	ldr	w1, [x8]
	bl	_PKCS7err
	mov	x0, x19
	bl	_BIO_free
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	str	x19, [x20]
	mov	w0, #1
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PKCS7_F_PKCS7_BIO_ADD_DIGEST,4,2 ; @PKCS7_F_PKCS7_BIO_ADD_DIGEST
	.comm	_ERR_R_BIO_LIB,4,2              ; @ERR_R_BIO_LIB
	.comm	_PKCS7_R_UNKNOWN_DIGEST_TYPE,4,2 ; @PKCS7_R_UNKNOWN_DIGEST_TYPE
	.no_dead_strip	_PKCS7_bio_add_digest
.subsections_via_symbols
