	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_func
_store_func:                            ## @store_func
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movl	%edi, %r15d
	leaq	-40(%rbp), %rdx
	movl	%ebx, %esi
	callq	_hx509_cert_binary
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_1
LBB0_8:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%r14), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.3:
	movl	-40(%rbp), %edi
	movl	-36(%rbp), %esi
	movl	4(%r14), %ecx
	movl	$1, %edx
	callq	_fwrite
LBB0_7:
	movl	-40(%rbp), %edi
	callq	_free
	jmp	LBB0_8
LBB0_4:
	movl	4(%r14), %ecx
	movl	-40(%rbp), %r8d
	movl	-36(%rbp), %r9d
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_hx509_pem_write
	movl	-40(%rbp), %edi
	callq	_free
	movl	%ebx, %edi
	callq	__hx509_cert_private_key_exportable
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%ebx, %edi
	callq	__hx509_cert_private_key
	movl	%eax, %ebx
	movq	_HX509_KEY_FORMAT_DER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	__hx509_private_key_export
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movl	%ebx, %edi
	callq	__hx509_private_pem_name
	movl	4(%r14), %ecx
	movl	-40(%rbp), %r8d
	movl	-36(%rbp), %r9d
	movl	%r15d, %edi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_hx509_pem_write
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CERTIFICATE"

	.comm	_HX509_KEY_FORMAT_DER,4,2       ## @HX509_KEY_FORMAT_DER
	.no_dead_strip	_store_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_func
_store_func:                            ; @store_func
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	add	x2, sp, #8
	mov	x1, x22
	bl	_hx509_cert_binary
	mov	x19, x0
	cbz	w0, LBB0_2
LBB0_1:
	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
LBB0_2:
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_1
; %bb.4:
	ldp	w0, w1, [sp, #8]
	ldr	w3, [x20, #4]
	mov	w2, #1
	bl	_fwrite
LBB0_5:
	ldr	w0, [sp, #8]
	bl	_free
	b	LBB0_1
LBB0_6:
	ldr	w3, [x20, #4]
	ldp	w4, w5, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, #0
	bl	_hx509_pem_write
	ldr	w0, [sp, #8]
	bl	_free
	mov	x0, x22
	bl	__hx509_cert_private_key_exportable
	cbz	w0, LBB0_1
; %bb.7:
	mov	x0, x22
	bl	__hx509_cert_private_key
	mov	x22, x0
Lloh2:
	adrp	x8, _HX509_KEY_FORMAT_DER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HX509_KEY_FORMAT_DER@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x22
	bl	__hx509_private_key_export
	cbnz	w0, LBB0_1
; %bb.8:
	mov	x0, x22
	bl	__hx509_private_pem_name
	mov	x1, x0
	ldr	w3, [x20, #4]
	ldp	w4, w5, [sp, #8]
	mov	x0, x21
	mov	x2, #0
	bl	_hx509_pem_write
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CERTIFICATE"

	.comm	_HX509_KEY_FORMAT_DER,4,2       ; @HX509_KEY_FORMAT_DER
	.no_dead_strip	_store_func
.subsections_via_symbols
