	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PKCS7_find_digest
_PKCS7_find_digest:                     ## @PKCS7_find_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rax
	movq	%rdi, %r15
	movq	_BIO_TYPE_MD@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_BIO_find_type
	movq	_PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_BIO_get_md_ctx
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_EVP_MD_CTX_type
	cmpl	%r14d, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_BIO_next
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_BIO_find_type
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_6
LBB0_3:
	movq	_ERR_R_INTERNAL_ERROR@GOTPCREL(%rip), %r12
LBB0_6:
	movq	_PKCS7_F_PKCS7_FIND_DIGEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_PKCS7err
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %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	_PKCS7_F_PKCS7_FIND_DIGEST,4,2  ## @PKCS7_F_PKCS7_FIND_DIGEST
	.comm	_PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST,4,2 ## @PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ## @ERR_R_INTERNAL_ERROR
	.no_dead_strip	_PKCS7_find_digest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PKCS7_find_digest
_PKCS7_find_digest:                     ; @PKCS7_find_digest
	.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
	mov	x19, x2
	mov	x8, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _BIO_TYPE_MD@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BIO_TYPE_MD@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x8
	bl	_BIO_find_type
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
Lloh2:
	adrp	x22, _ERR_R_INTERNAL_ERROR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ERR_R_INTERNAL_ERROR@GOTPAGEOFF]
Lloh4:
	adrp	x24, _PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST@GOTPAGE
Lloh5:
	ldr	x24, [x24, _PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_BIO_get_md_ctx
	ldr	x0, [x20]
	cbz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_EVP_MD_CTX_type
	cmp	w0, w19
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_BIO_next
	ldr	w1, [x23]
	bl	_BIO_find_type
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.5:
	mov	x22, x24
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x22, _PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST@GOTPAGE
Lloh7:
	ldr	x22, [x22, _PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST@GOTPAGEOFF]
LBB0_7:
Lloh8:
	adrp	x8, _PKCS7_F_PKCS7_FIND_DIGEST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PKCS7_F_PKCS7_FIND_DIGEST@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_PKCS7err
	mov	x21, #0
LBB0_8:
	mov	x0, x21
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_TYPE_MD,4,2                ; @BIO_TYPE_MD
	.comm	_PKCS7_F_PKCS7_FIND_DIGEST,4,2  ; @PKCS7_F_PKCS7_FIND_DIGEST
	.comm	_PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST,4,2 ; @PKCS7_R_UNABLE_TO_FIND_MESSAGE_DIGEST
	.comm	_ERR_R_INTERNAL_ERROR,4,2       ; @ERR_R_INTERNAL_ERROR
	.no_dead_strip	_PKCS7_find_digest
.subsections_via_symbols
