	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CRYPT_SavePKCSToFile
_CRYPT_SavePKCSToFile:                  ## @CRYPT_SavePKCSToFile
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movl	%edi, %ebx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	leaq	L_.str(%rip), %rdi
	movq	%rdx, %rsi
	callq	_TRACE
	leaq	-64(%rbp), %rdx
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_CRYPT_SavePKCSToMem
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	-64(%rbp), %edi
	callq	_CryptMemAlloc
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	leaq	-64(%rbp), %rdx
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_CRYPT_SavePKCSToMem
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	-56(%rbp), %rsi
	movl	-64(%rbp), %edx
	leaq	-64(%rbp), %rcx
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	callq	_WriteFile
	movq	%rax, %rbx
	jmp	LBB0_7
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_5:
	movq	_ERROR_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SetLastError
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TRACE
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%p)\n"

	.comm	_ERROR_OUTOFMEMORY,4,2          ## @ERROR_OUTOFMEMORY
	.comm	_FALSE,8,3                      ## @FALSE
L_.str.1:                               ## @.str.1
	.asciz	"returning %d\n"

	.no_dead_strip	_CRYPT_SavePKCSToFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_SavePKCSToFile
_CRYPT_SavePKCSToFile:                  ; @CRYPT_SavePKCSToFile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	bl	_TRACE
	mov	x2, sp
	mov	x0, x21
	mov	x1, x20
	bl	_CRYPT_SavePKCSToMem
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [sp]
	bl	_CryptMemAlloc
	str	x0, [sp, #8]
	cbz	x0, LBB0_5
; %bb.2:
	mov	x2, sp
	mov	x0, x21
	mov	x1, x20
	bl	_CRYPT_SavePKCSToMem
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x1, [sp, #8]
	ldr	w2, [sp]
	mov	x3, sp
	mov	x0, x19
	mov	x4, #0
	bl	_WriteFile
	mov	x19, x0
	b	LBB0_6
LBB0_4:
	mov	x19, #0
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _ERROR_OUTOFMEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR_OUTOFMEMORY@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_SetLastError
Lloh5:
	adrp	x8, _FALSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh7:
	ldr	x19, [x8]
LBB0_6:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_TRACE
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%p)\n"

	.comm	_ERROR_OUTOFMEMORY,4,2          ; @ERROR_OUTOFMEMORY
	.comm	_FALSE,8,3                      ; @FALSE
l_.str.1:                               ; @.str.1
	.asciz	"returning %d\n"

	.no_dead_strip	_CRYPT_SavePKCSToFile
.subsections_via_symbols
