	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS7_set_digest               ## -- Begin function PKCS7_set_digest
	.p2align	4, 0x90
_PKCS7_set_digest:                      ## @PKCS7_set_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_PKCS7_type_is_digest
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_ASN1_TYPE_new
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	%rax, 8(%rcx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_V_ASN1_NULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	%r15, %rdi
	callq	_EVP_MD_nid
	movl	%eax, %edi
	callq	_OBJ_nid2obj
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_5
LBB0_4:
	movq	_PKCS7_F_PKCS7_SET_DIGEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PKCS7_R_WRONG_CONTENT_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PKCS7err
LBB0_5:
	movl	$1, %r14d
	jmp	LBB0_6
LBB0_2:
	movq	_PKCS7_F_PKCS7_SET_DIGEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ERR_R_MALLOC_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PKCS7err
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PKCS7_F_PKCS7_SET_DIGEST,4,2   ## @PKCS7_F_PKCS7_SET_DIGEST
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ## @ERR_R_MALLOC_FAILURE
	.comm	_V_ASN1_NULL,4,2                ## @V_ASN1_NULL
	.comm	_PKCS7_R_WRONG_CONTENT_TYPE,4,2 ## @PKCS7_R_WRONG_CONTENT_TYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PKCS7_set_digest               ; -- Begin function PKCS7_set_digest
	.p2align	2
_PKCS7_set_digest:                      ; @PKCS7_set_digest
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_PKCS7_type_is_digest
	cbz	x0, LBB0_3
; %bb.1:
	bl	_ASN1_TYPE_new
	ldr	x8, [x19]
	ldr	x8, [x8]
	str	x0, [x8, #8]
	cbz	x0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _V_ASN1_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_ASN1_NULL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
	mov	x0, x20
	bl	_EVP_MD_nid
	bl	_OBJ_nid2obj
	ldr	x8, [x19]
	ldr	x8, [x8]
	str	w0, [x8]
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _PKCS7_F_PKCS7_SET_DIGEST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PKCS7_F_PKCS7_SET_DIGEST@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _PKCS7_R_WRONG_CONTENT_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PKCS7_R_WRONG_CONTENT_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_PKCS7err
LBB0_4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _PKCS7_F_PKCS7_SET_DIGEST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PKCS7_F_PKCS7_SET_DIGEST@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _ERR_R_MALLOC_FAILURE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_R_MALLOC_FAILURE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_PKCS7err
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_PKCS7_F_PKCS7_SET_DIGEST,4,2   ; @PKCS7_F_PKCS7_SET_DIGEST
	.comm	_ERR_R_MALLOC_FAILURE,4,2       ; @ERR_R_MALLOC_FAILURE
	.comm	_V_ASN1_NULL,4,2                ; @V_ASN1_NULL
	.comm	_PKCS7_R_WRONG_CONTENT_TYPE,4,2 ; @PKCS7_R_WRONG_CONTENT_TYPE
.subsections_via_symbols
