	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evp_md_create_signature
_evp_md_create_signature:               ## @evp_md_create_signature
	.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
	movq	%r9, %rbx
	movq	%r8, %r15
	movq	%rsi, %r12
	movq	16(%rbp), %r14
	xorl	%eax, %eax
	callq	*(%rsi)
	movl	%eax, %edi
	callq	_EVP_MD_size
	movq	%rax, %r13
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movl	8(%r12), %esi
	leaq	l_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	_set_digest_alg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
LBB0_2:
	movq	%r13, %rdi
	callq	_malloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r13, (%r14)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_EVP_MD_CTX_create
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	*(%r12)
	movq	%r13, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_EVP_DigestInit_ex
	movq	(%r15), %rdx
	movq	8(%r15), %rsi
	movq	%r13, %rdi
	callq	_EVP_DigestUpdate
	movq	8(%r14), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_EVP_DigestFinal_ex
	movq	%r13, %rdi
	callq	_EVP_MD_CTX_destroy
	jmp	LBB0_5
LBB0_3:
	movq	$0, (%r14)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l_.str:                                 ## @.str
	.asciz	"\005\000"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_evp_md_create_signature
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evp_md_create_signature
_evp_md_create_signature:               ; @evp_md_create_signature
	.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, x6
	mov	x23, x5
	mov	x20, x4
	mov	x21, x1
	ldr	x8, [x1]
	blr	x8
	bl	_EVP_MD_size
	mov	x22, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	cbz	x23, LBB0_2
; %bb.1:
	ldr	w1, [x21, #8]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x23
	mov	w3, #2
	bl	_set_digest_alg
	cbnz	w0, LBB0_5
LBB0_2:
	mov	x0, x22
	bl	_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.3:
	str	x22, [x19]
	bl	_EVP_MD_CTX_create
	mov	x22, x0
	ldr	x8, [x21]
	blr	x8
	mov	x1, x0
	mov	x0, x22
	mov	x2, #0
	bl	_EVP_DigestInit_ex
	ldp	x2, x1, [x20]
	mov	x0, x22
	bl	_EVP_DigestUpdate
	ldr	x1, [x19, #8]
	mov	x0, x22
	mov	x2, #0
	bl	_EVP_DigestFinal_ex
	mov	x0, x22
	bl	_EVP_MD_CTX_destroy
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	str	xzr, [x19]
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_5:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l_.str:                                 ; @.str
	.asciz	"\005\000"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_evp_md_create_signature
.subsections_via_symbols
