	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function verify_cert_export_cert
_verify_cert_export_cert:               ## @verify_cert_export_cert
	.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
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r15
	leaq	L_.str.1(%rip), %rax
	movq	%rsi, %rdi
	movq	%rax, %rsi
	callq	_platform_create_temp_file
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	leaq	L_.str.3(%rip), %rsi
	movq	%rax, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_x509_write_pem
	cmpq	%rax, %r12
	je	LBB0_7
## %bb.6:
	movq	_M_NONFATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_msg
	movq	%rbx, %rdi
	callq	_platform_unlink
	xorl	%ebx, %ebx
LBB0_7:
	movq	%r14, %rdi
	callq	_fclose
	jmp	LBB0_8
LBB0_2:
	movq	_M_NONFATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_msg
	jmp	LBB0_8
LBB0_4:
	movq	_M_NONFATAL@GOTPCREL(%rip), %rax
	movq	_M_ERRNO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_msg
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"pcf"

	.comm	_M_NONFATAL,4,2                 ## @M_NONFATAL
L_.str.2:                               ## @.str.2
	.asciz	"Failed to create peer cert file"

L_.str.3:                               ## @.str.3
	.asciz	"w+"

	.comm	_M_ERRNO,4,2                    ## @M_ERRNO
L_.str.4:                               ## @.str.4
	.asciz	"Failed to open temporary file: %s"

	.comm	_SUCCESS,8,3                    ## @SUCCESS
L_.str.5:                               ## @.str.5
	.asciz	"Error writing PEM file containing certificate"

	.no_dead_strip	_verify_cert_export_cert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function verify_cert_export_cert
_verify_cert_export_cert:               ; @verify_cert_export_cert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x1, LBB0_6
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
	mov	x0, x1
	mov	x1, x8
	bl	_platform_create_temp_file
	cbz	x0, LBB0_6
; %bb.2:
	mov	x19, x0
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
Lloh4:
	adrp	x8, _SUCCESS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SUCCESS@GOTPAGEOFF]
Lloh6:
	ldr	x22, [x8]
	mov	x1, x21
	bl	_x509_write_pem
	cmp	x22, x0
	b.eq	LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _M_NONFATAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _M_NONFATAL@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_msg
	mov	x0, x19
	bl	_platform_unlink
	mov	x19, #0
LBB0_5:
	mov	x0, x20
	bl	_fclose
	b	LBB0_9
LBB0_6:
Lloh12:
	adrp	x8, _M_NONFATAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _M_NONFATAL@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh17:
	adrp	x8, _M_NONFATAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _M_NONFATAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _M_ERRNO@GOTPAGE
Lloh21:
	ldr	x9, [x9, _M_ERRNO@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w0, w9, w8
	str	x19, [sp]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_8:
	bl	_msg
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"pcf"

	.comm	_M_NONFATAL,4,2                 ; @M_NONFATAL
l_.str.2:                               ; @.str.2
	.asciz	"Failed to create peer cert file"

l_.str.3:                               ; @.str.3
	.asciz	"w+"

	.comm	_M_ERRNO,4,2                    ; @M_ERRNO
l_.str.4:                               ; @.str.4
	.asciz	"Failed to open temporary file: %s"

	.comm	_SUCCESS,8,3                    ; @SUCCESS
l_.str.5:                               ; @.str.5
	.asciz	"Error writing PEM file containing certificate"

	.no_dead_strip	_verify_cert_export_cert
.subsections_via_symbols
