	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function file_store
_file_store:                            ## @file_store
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %rbx
	movl	%edi, %r14d
	movl	8(%rdx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, -32(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_rk_cloexec_file
	movl	4(%rbx), %eax
	movl	%eax, -24(%rbp)
	movl	(%rbx), %esi
	movq	_store_func@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rcx
	movl	%r14d, %edi
	callq	_hx509_certs_iter_f
	movl	%eax, %ebx
	movq	-32(%rbp), %rdi
	callq	_fclose
	jmp	LBB0_3
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rcx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_hx509_set_error_string
	movl	(%rbx), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"Failed to open file %s for writing"

	.comm	_store_func,4,2                 ## @store_func
	.no_dead_strip	_file_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function file_store
_file_store:                            ; @file_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x0
	ldr	w0, [x2, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	str	x0, [sp]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_rk_cloexec_file
	ldp	w1, w8, [x20]
	str	w8, [sp, #8]
Lloh2:
	adrp	x8, _store_func@GOTPAGE
Lloh3:
	ldr	x8, [x8, _store_func@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x3, sp
	mov	x0, x19
	bl	_hx509_certs_iter_f
	mov	x19, x0
	ldr	x0, [sp]
	bl	_fclose
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x20, _ENOENT@GOTPAGE
Lloh6:
	ldr	x20, [x20, _ENOENT@GOTPAGEOFF]
	ldr	w2, [x20]
Lloh7:
	adrp	x3, l_.str.1@PAGE
Lloh8:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_hx509_set_error_string
	ldr	w19, [x20]
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"Failed to open file %s for writing"

	.comm	_store_func,4,2                 ; @store_func
	.no_dead_strip	_file_store
.subsections_via_symbols
