	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function flush_logevent_to_file
_flush_logevent_to_file:                ## @flush_logevent_to_file
	.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
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	leaq	-36(%rbp), %rdi
	movl	$4, %edx
	callq	_memcpy
	movl	(%rbx), %edi
	addl	$32, %edi
	movl	-36(%rbp), %esi
	callq	_compute_crc32
	movl	%eax, -40(%rbp)
	movq	(%rbx), %rdi
	addq	$16, %rdi
	leaq	-40(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	-36(%rbp), %edx
	addl	$8, %edx
	movl	%edx, -36(%rbp)
	movq	_fd_transaction_logevents@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	(%rbx), %rsi
	callq	_write
	testl	%eax, %eax
	jns	LBB0_4
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %r15
	movq	_EINTR@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rcx
	cmpq	%rcx, (%r15)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-36(%rbp), %edx
	movl	(%r14), %edi
	movq	(%rbx), %rsi
	callq	_write
	testl	%eax, %eax
	js	LBB0_2
LBB0_4:
	xorl	%edi, %edi
	cmpl	-36(%rbp), %eax
	sete	%dil
	callq	_assert
	movl	-36(%rbp), %edx
	movq	_cur_transaction_id@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%rbx), %r8
	addq	$8, %r8
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	callq	_vkprintf
	movq	(%rbx), %rdi
	callq	_free
	movq	$0, (%rbx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fd_transaction_logevents,4,2   ## @fd_transaction_logevents
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d bytes to logevent file from tr%d was written (%.4s)\n"

	.comm	_cur_transaction_id,4,2         ## @cur_transaction_id
	.no_dead_strip	_flush_logevent_to_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function flush_logevent_to_file
_flush_logevent_to_file:                ; @flush_logevent_to_file
	.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	x19, x0
	ldr	x1, [x0]
	add	x0, sp, #12
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x19]
	add	w0, w8, #32
	ldr	w1, [sp, #12]
	bl	_compute_crc32
	str	w0, [sp, #8]
	ldr	x8, [x19]
	add	x0, x8, #16
	add	x1, sp, #8
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [sp, #12]
	add	w2, w8, #8
	str	w2, [sp, #12]
Lloh0:
	adrp	x20, _fd_transaction_logevents@GOTPAGE
Lloh1:
	ldr	x20, [x20, _fd_transaction_logevents@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	x1, [x19]
	bl	_write
	tbz	w0, #31, LBB0_5
; %bb.1:
Lloh2:
	adrp	x21, _errno@GOTPAGE
Lloh3:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh4:
	adrp	x22, _EINTR@GOTPAGE
Lloh5:
	ldr	x22, [x22, _EINTR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [sp, #12]
	ldr	w0, [x20]
	ldr	x1, [x19]
	bl	_write
	tbz	w0, #31, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	b	LBB0_2
LBB0_5:
	ldr	w8, [sp, #12]
	cmp	w0, w8
	cset	w0, eq
	bl	_assert
	ldr	w2, [sp, #12]
Lloh6:
	adrp	x8, _cur_transaction_id@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cur_transaction_id@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	ldr	x8, [x19]
	add	x4, x8, #8
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_vkprintf
	ldr	x0, [x19]
	bl	_free
	str	xzr, [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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_fd_transaction_logevents,4,2   ; @fd_transaction_logevents
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d bytes to logevent file from tr%d was written (%.4s)\n"

	.comm	_cur_transaction_id,4,2         ; @cur_transaction_id
	.no_dead_strip	_flush_logevent_to_file
.subsections_via_symbols
