	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_dirty_segment
_register_dirty_segment:                ## @register_dirty_segment
	.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, %r14
	movl	%esi, %edx
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	movl	4(%r14), %ecx
	callq	_INIT_MD_FILETAG
	movq	%rbx, %rdi
	callq	_SmgrIsTemp
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_Assert
	movq	_SYNC_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdi
	xorl	%edx, %edx
	callq	_RegisterSyncRequest
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_DEBUG1@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	(%r14), %edi
	movq	_WAIT_EVENT_DATA_FILE_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FileSync
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_data_sync_elevel
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	(%r14), %edi
	callq	_FilePathName
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYNC_REQUEST,4,2               ## @SYNC_REQUEST
	.comm	_DEBUG1,4,2                     ## @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not forward fsync request because request queue is full"

	.comm	_WAIT_EVENT_DATA_FILE_SYNC,4,2  ## @WAIT_EVENT_DATA_FILE_SYNC
	.comm	_ERROR,4,2                      ## @ERROR
L_.str.1:                               ## @.str.1
	.asciz	"could not fsync file \"%s\": %m"

	.no_dead_strip	_register_dirty_segment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_dirty_segment
_register_dirty_segment:                ; @register_dirty_segment
	.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	x19, x2
	mov	x2, x1
	mov	x20, x0
	ldr	w1, [x0]
	ldr	w3, [x19, #4]
	bl	_INIT_MD_FILETAG
	mov	x0, x20
	bl	_SmgrIsTemp
	cmp	w0, #0
	cset	w0, eq
	bl	_Assert
Lloh0:
	adrp	x8, _SYNC_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYNC_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #12
	mov	w2, #0
	bl	_RegisterSyncRequest
	cbnz	w0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _DEBUG1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEBUG1@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _WAIT_EVENT_DATA_FILE_SYNC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WAIT_EVENT_DATA_FILE_SYNC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_FileSync
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_data_sync_elevel
	mov	x20, x0
	bl	_errcode_for_file_access
	ldr	w0, [x19]
	bl	_FilePathName
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SYNC_REQUEST,4,2               ; @SYNC_REQUEST
	.comm	_DEBUG1,4,2                     ; @DEBUG1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not forward fsync request because request queue is full"

	.comm	_WAIT_EVENT_DATA_FILE_SYNC,4,2  ; @WAIT_EVENT_DATA_FILE_SYNC
	.comm	_ERROR,4,2                      ; @ERROR
l_.str.1:                               ; @.str.1
	.asciz	"could not fsync file \"%s\": %m"

	.no_dead_strip	_register_dirty_segment
.subsections_via_symbols
