	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_assign_xlog_sync_method        ## -- Begin function assign_xlog_sync_method
	.p2align	4, 0x90
_assign_xlog_sync_method:               ## @assign_xlog_sync_method
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_sync_method@GOTPCREL(%rip), %r12
	cmpl	%edi, (%r12)
	je	LBB0_5
## %bb.1:
	movq	_openLogFile@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	js	LBB0_5
## %bb.2:
	movl	%edi, %r15d
	movq	_WAIT_EVENT_WAL_SYNC_METHOD_ASSIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pgstat_report_wait_start
	movq	(%rbx), %rdi
	callq	_pg_fsync
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_PANIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movq	_ThisTimeLineID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_openLogSegNo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_XLogFileNameP
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_4:
	xorl	%eax, %eax
	callq	_pgstat_report_wait_end
	movl	(%r12), %edi
	callq	_get_sync_bit
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_get_sync_bit
	cmpq	%rax, %rbx
	jne	LBB0_6
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_XLogFileClose                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_sync_method,4,2                ## @sync_method
	.comm	_openLogFile,8,3                ## @openLogFile
	.comm	_WAIT_EVENT_WAL_SYNC_METHOD_ASSIGN,4,2 ## @WAIT_EVENT_WAL_SYNC_METHOD_ASSIGN
	.comm	_PANIC,4,2                      ## @PANIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not fsync file \"%s\": %m"

	.comm	_ThisTimeLineID,4,2             ## @ThisTimeLineID
	.comm	_openLogSegNo,4,2               ## @openLogSegNo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_assign_xlog_sync_method        ; -- Begin function assign_xlog_sync_method
	.p2align	2
_assign_xlog_sync_method:               ; @assign_xlog_sync_method
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x21, _sync_method@GOTPAGE
Lloh1:
	ldr	x21, [x21, _sync_method@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w0
	b.eq	LBB0_5
; %bb.1:
Lloh2:
	adrp	x20, _openLogFile@GOTPAGE
Lloh3:
	ldr	x20, [x20, _openLogFile@GOTPAGEOFF]
	ldr	x8, [x20]
	tbnz	x8, #63, LBB0_5
; %bb.2:
	mov	x19, x0
Lloh4:
	adrp	x8, _WAIT_EVENT_WAL_SYNC_METHOD_ASSIGN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WAIT_EVENT_WAL_SYNC_METHOD_ASSIGN@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_pgstat_report_wait_start
	ldr	x0, [x20]
	bl	_pg_fsync
	cbz	x0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x8, _PANIC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PANIC@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	bl	_errcode_for_file_access
Lloh10:
	adrp	x8, _ThisTimeLineID@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ThisTimeLineID@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _openLogSegNo@GOTPAGE
Lloh14:
	ldr	x8, [x8, _openLogSegNo@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_XLogFileNameP
	mov	x1, x0
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_4:
	bl	_pgstat_report_wait_end
	ldr	w0, [x21]
	bl	_get_sync_bit
	mov	x20, x0
	mov	x0, x19
	bl	_get_sync_bit
	cmp	x20, x0
	b.ne	LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_XLogFileClose
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_sync_method,4,2                ; @sync_method
	.comm	_openLogFile,8,3                ; @openLogFile
	.comm	_WAIT_EVENT_WAL_SYNC_METHOD_ASSIGN,4,2 ; @WAIT_EVENT_WAL_SYNC_METHOD_ASSIGN
	.comm	_PANIC,4,2                      ; @PANIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not fsync file \"%s\": %m"

	.comm	_ThisTimeLineID,4,2             ; @ThisTimeLineID
	.comm	_openLogSegNo,4,2               ; @openLogSegNo
.subsections_via_symbols
