	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dictstat_write                 ## -- Begin function dictstat_write
	.p2align	4, 0x90
_dictstat_write:                        ## @dictstat_write
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	xorl	%r14d, %r14d
	cmpl	$0, (%r15)
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	cmpl	$1, (%rax)
	je	LBB0_7
## %bb.2:
	movl	16(%r15), %esi
	leaq	L_.str(%rip), %rdx
	leaq	-28(%rbp), %rdi
	callq	_hc_fopen
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	-28(%rbp), %rdi
	callq	_hc_lockfile
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.6:
	movq	_DICTSTAT_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_byte_swap_64
	movl	%eax, -36(%rbp)
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_byte_swap_64
	movl	%eax, -32(%rbp)
	leaq	-36(%rbp), %rdi
	leaq	-28(%rbp), %rbx
	movl	$4, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_hc_fwrite
	leaq	-32(%rbp), %rdi
	movl	$4, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_hc_fwrite
	movq	8(%r15), %rdi
	movl	4(%r15), %edx
	movl	$4, %esi
	movq	%rbx, %rcx
	callq	_hc_fwrite
	movq	%rbx, %rdi
	callq	_hc_fclose
	jmp	LBB0_7
LBB0_5:
	leaq	-28(%rbp), %rdi
	callq	_hc_fclose
LBB0_3:
	movl	16(%r15), %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_event_log_error
	movl	$-1, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wb"

L_.str.1:                               ## @.str.1
	.asciz	"%s: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_DICTSTAT_VERSION,4,2           ## @DICTSTAT_VERSION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dictstat_write                 ; -- Begin function dictstat_write
	.p2align	2
_dictstat_write:                        ; @dictstat_write
	.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
	ldr	x20, [x0]
	ldr	w8, [x20]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.eq	LBB0_5
; %bb.2:
	ldr	w1, [x20, #16]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #12
	bl	_hc_fopen
	cbz	w0, LBB0_8
; %bb.3:
	add	x0, sp, #12
	bl	_hc_lockfile
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.4:
Lloh2:
	adrp	x8, _DICTSTAT_VERSION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DICTSTAT_VERSION@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_byte_swap_64
	str	w0, [sp, #8]
	mov	w0, #0
	bl	_byte_swap_64
	str	w0, [sp, #4]
	add	x0, sp, #8
	add	x3, sp, #12
	mov	w1, #4
	mov	w2, #1
	bl	_hc_fwrite
	add	x0, sp, #4
	add	x3, sp, #12
	mov	w1, #4
	mov	w2, #1
	bl	_hc_fwrite
	ldr	x0, [x20, #8]
	ldr	w2, [x20, #4]
	add	x3, sp, #12
	mov	w1, #4
	bl	_hc_fwrite
	add	x0, sp, #12
	bl	_hc_fclose
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	add	x0, sp, #12
	bl	_hc_fclose
LBB0_8:
	ldr	w20, [x20, #16]
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_event_log_error
	mov	w0, #-1
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wb"

l_.str.1:                               ; @.str.1
	.asciz	"%s: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_DICTSTAT_VERSION,4,2           ; @DICTSTAT_VERSION
.subsections_via_symbols
