	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function SlruPhysicalWritePage
LCPI0_0:
	.quad	2147483648                      ## 0x80000000
	.quad	2147483648                      ## 0x80000000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_SlruPhysicalWritePage:                 ## @SlruPhysicalWritePage
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r12d
	movl	%esi, %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	movq	_SLRU_PAGES_PER_SEGMENT@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %r15d
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	imull	(%rax), %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.1:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %eax
	movl	%eax, %edx
	imull	%r12d, %edx
	movslq	%edx, %r10
	movq	(%rcx,%r10,8), %rbx
	cmpl	$2, %eax
	jl	LBB0_12
## %bb.2:
	leal	-2(%rax), %r9d
	movl	$1, %edx
	cmpl	$3, %r9d
	jb	LBB0_10
## %bb.3:
	incq	%r9
	movq	%r9, %r8
	andq	$-4, %r8
	movq	%rbx, %xmm0
	pshufd	$68, %xmm0, %xmm1               ## xmm1 = xmm0[0,1,0,1]
	leaq	-4(%r8), %rdx
	movq	%rdx, %rsi
	shrq	$2, %rsi
	incq	%rsi
	testq	%rdx, %rdx
	je	LBB0_42
## %bb.4:
	movq	%rsi, %rbx
	andq	$-2, %rbx
	leaq	(%rcx,%r10,8), %rdx
	addq	$56, %rdx
	xorl	%edi, %edi
	movdqa	LCPI0_0(%rip), %xmm8            ## xmm8 = [2147483648,2147483648]
	movdqa	%xmm1, %xmm6
	movdqa	%xmm1, %xmm5
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm6, %xmm7
	pxor	%xmm8, %xmm7
	movdqu	-48(%rdx,%rdi,8), %xmm2
	movdqu	-32(%rdx,%rdi,8), %xmm4
	movdqu	-16(%rdx,%rdi,8), %xmm1
	movdqa	%xmm2, %xmm0
	pxor	%xmm8, %xmm0
	movdqa	%xmm7, %xmm3
	pcmpeqd	%xmm0, %xmm3
	pcmpgtd	%xmm0, %xmm7
	pshufd	$160, %xmm7, %xmm0              ## xmm0 = xmm7[0,0,2,2]
	pand	%xmm3, %xmm0
	por	%xmm7, %xmm0
	blendvpd	%xmm0, %xmm6, %xmm2
	movdqa	%xmm5, %xmm3
	pxor	%xmm8, %xmm3
	movdqa	%xmm4, %xmm0
	pxor	%xmm8, %xmm0
	movdqa	%xmm3, %xmm6
	pcmpeqd	%xmm0, %xmm6
	pcmpgtd	%xmm0, %xmm3
	pshufd	$160, %xmm3, %xmm0              ## xmm0 = xmm3[0,0,2,2]
	pand	%xmm6, %xmm0
	por	%xmm3, %xmm0
	blendvpd	%xmm0, %xmm5, %xmm4
	movapd	%xmm2, %xmm3
	xorpd	%xmm8, %xmm3
	movdqa	%xmm1, %xmm0
	pxor	%xmm8, %xmm0
	movapd	%xmm3, %xmm5
	pcmpeqd	%xmm0, %xmm5
	pcmpgtd	%xmm0, %xmm3
	pshufd	$160, %xmm3, %xmm0              ## xmm0 = xmm3[0,0,2,2]
	pand	%xmm5, %xmm0
	por	%xmm3, %xmm0
	blendvpd	%xmm0, %xmm2, %xmm1
	movdqu	(%rdx,%rdi,8), %xmm2
	movapd	%xmm4, %xmm3
	xorpd	%xmm8, %xmm3
	movdqa	%xmm2, %xmm0
	pxor	%xmm8, %xmm0
	movapd	%xmm3, %xmm5
	pcmpeqd	%xmm0, %xmm5
	pcmpgtd	%xmm0, %xmm3
	pshufd	$160, %xmm3, %xmm0              ## xmm0 = xmm3[0,0,2,2]
	pand	%xmm5, %xmm0
	por	%xmm3, %xmm0
	blendvpd	%xmm0, %xmm4, %xmm2
	addq	$8, %rdi
	movapd	%xmm1, %xmm6
	movapd	%xmm2, %xmm5
	addq	$-2, %rbx
	jne	LBB0_5
## %bb.6:
	testb	$1, %sil
	je	LBB0_8
LBB0_7:
	addq	%r10, %rdi
	movdqu	8(%rcx,%rdi,8), %xmm3
	movdqu	24(%rcx,%rdi,8), %xmm4
	movdqa	LCPI0_0(%rip), %xmm5            ## xmm5 = [2147483648,2147483648]
	movdqa	%xmm1, %xmm6
	pxor	%xmm5, %xmm6
	movdqa	%xmm3, %xmm0
	pxor	%xmm5, %xmm0
	movdqa	%xmm6, %xmm7
	pcmpeqd	%xmm0, %xmm7
	pcmpgtd	%xmm0, %xmm6
	pshufd	$160, %xmm6, %xmm0              ## xmm0 = xmm6[0,0,2,2]
	pand	%xmm7, %xmm0
	por	%xmm6, %xmm0
	blendvpd	%xmm0, %xmm1, %xmm3
	movapd	%xmm2, %xmm1
	xorpd	%xmm5, %xmm1
	pxor	%xmm4, %xmm5
	movapd	%xmm1, %xmm6
	pcmpeqd	%xmm5, %xmm6
	pcmpgtd	%xmm5, %xmm1
	pshufd	$160, %xmm1, %xmm0              ## xmm0 = xmm1[0,0,2,2]
	pand	%xmm6, %xmm0
	por	%xmm1, %xmm0
	blendvpd	%xmm0, %xmm2, %xmm4
	movapd	%xmm3, %xmm1
	movapd	%xmm4, %xmm2
LBB0_8:
	movapd	LCPI0_0(%rip), %xmm3            ## xmm3 = [2147483648,2147483648]
	movapd	%xmm2, %xmm0
	xorpd	%xmm3, %xmm0
	movapd	%xmm1, %xmm4
	xorpd	%xmm3, %xmm4
	movapd	%xmm4, %xmm5
	pcmpeqd	%xmm0, %xmm5
	pcmpgtd	%xmm0, %xmm4
	pshufd	$160, %xmm4, %xmm0              ## xmm0 = xmm4[0,0,2,2]
	pand	%xmm5, %xmm0
	por	%xmm4, %xmm0
	blendvpd	%xmm0, %xmm1, %xmm2
	pshufd	$238, %xmm2, %xmm1              ## xmm1 = xmm2[2,3,2,3]
	movapd	%xmm2, %xmm4
	xorpd	%xmm3, %xmm4
	xorpd	%xmm1, %xmm3
	movapd	%xmm4, %xmm5
	pcmpeqd	%xmm3, %xmm5
	pcmpgtd	%xmm3, %xmm4
	pshufd	$160, %xmm4, %xmm0              ## xmm0 = xmm4[0,0,2,2]
	pand	%xmm5, %xmm0
	por	%xmm4, %xmm0
	blendvpd	%xmm0, %xmm2, %xmm1
	movq	%xmm1, %rbx
	cmpq	%r8, %r9
	je	LBB0_12
## %bb.9:
	addq	%r8, %r10
	leal	1(%r8), %edx
LBB0_10:
	leaq	(%rcx,%r10,8), %rcx
	addq	$8, %rcx
	subl	%edx, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rsi
	cmpq	%rsi, %rbx
	cmovleq	%rsi, %rbx
	incq	%rdx
	cmpl	%edx, %eax
	jne	LBB0_11
LBB0_12:
	movq	%rbx, %rdi
	callq	_XLogRecPtrIsInvalid
	testl	%eax, %eax
	je	LBB0_18
LBB0_13:
	testq	%r13, %r13
	je	LBB0_20
LBB0_14:
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_20
## %bb.15:
	movq	8(%r13), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, (%rdx,%rcx,4)
	je	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_16
	jmp	LBB0_20
LBB0_18:
	xorl	%eax, %eax
	callq	_START_CRIT_SECTION
	movq	%rbx, %rdi
	callq	_XLogFlush
	xorl	%eax, %eax
	callq	_END_CRIT_SECTION
	testq	%r13, %r13
	jne	LBB0_14
	jmp	LBB0_20
LBB0_19:
	movq	16(%r13), %rax
	movl	(%rax,%rcx,4), %r14d
	testl	%r14d, %r14d
	jns	LBB0_28
LBB0_20:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_SlruFileName
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	movq	_O_CREAT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_PG_BINARY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_OpenTransientFile
	testl	%eax, %eax
	js	LBB0_24
## %bb.21:
	movl	%eax, %r14d
	testq	%r13, %r13
	je	LBB0_27
## %bb.22:
	movslq	(%r13), %rax
	movq	_MAX_FLUSH_BUFFERS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_27
## %bb.23:
	movq	16(%r13), %rcx
	movl	%r14d, (%rcx,%rax,4)
	movq	8(%r13), %rax
	movslq	(%r13), %rcx
	movl	%r15d, (%rax,%rcx,4)
	incl	(%r13)
	jmp	LBB0_28
LBB0_27:
	xorl	%r13d, %r13d
LBB0_28:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_lseek
	testq	%rax, %rax
	js	LBB0_34
## %bb.29:
	movq	_errno@GOTPCREL(%rip), %r15
	movq	$0, (%r15)
	movq	_WAIT_EVENT_SLRU_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pgstat_report_wait_start
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movslq	%r12d, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	_BLCKSZ@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%r14d, %edi
	callq	_write
	movl	%eax, %r12d
	movl	(%rbx), %ebx
	xorl	%eax, %eax
	callq	_pgstat_report_wait_end
	cmpl	%ebx, %r12d
	jne	LBB0_35
## %bb.30:
	movl	$1, %ebx
	testq	%r13, %r13
	jne	LBB0_40
## %bb.31:
	movq	_WAIT_EVENT_SLRU_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pgstat_report_wait_start
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_43
## %bb.32:
	movl	%r14d, %edi
	callq	_pg_fsync
	testq	%rax, %rax
	je	LBB0_43
## %bb.33:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pgstat_report_wait_end
	movq	_SLRU_FSYNC_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_slru_errcause@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	(%r15), %rax
	movq	_slru_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_39
LBB0_24:
	movq	_SLRU_OPEN_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_slru_errcause@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_25:
	movq	_slru_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_40
LBB0_34:
	movq	_SLRU_SEEK_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_slru_errcause@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_38
LBB0_35:
	movq	(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_37
## %bb.36:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_37:
	movq	_SLRU_WRITE_FAILED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_slru_errcause@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
LBB0_38:
	movq	_slru_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%ebx, %ebx
	testq	%r13, %r13
	jne	LBB0_40
LBB0_39:
	movl	%r14d, %edi
	callq	_CloseTransientFile
LBB0_40:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_45
## %bb.41:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_42:
	xorl	%edi, %edi
	movdqa	%xmm1, %xmm2
	testb	$1, %sil
	jne	LBB0_7
	jmp	LBB0_8
LBB0_43:
	xorl	%eax, %eax
	callq	_pgstat_report_wait_end
	movl	%r14d, %edi
	callq	_CloseTransientFile
	testq	%rax, %rax
	je	LBB0_40
## %bb.44:
	movq	_SLRU_CLOSE_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_slru_errcause@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	(%r15), %rax
	jmp	LBB0_25
LBB0_45:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SLRU_PAGES_PER_SEGMENT,4,2     ## @SLRU_PAGES_PER_SEGMENT
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_PG_BINARY,4,2                  ## @PG_BINARY
	.comm	_SLRU_OPEN_FAILED,4,2           ## @SLRU_OPEN_FAILED
	.comm	_slru_errcause,4,2              ## @slru_errcause
	.comm	_errno,8,3                      ## @errno
	.comm	_slru_errno,8,3                 ## @slru_errno
	.comm	_MAX_FLUSH_BUFFERS,4,2          ## @MAX_FLUSH_BUFFERS
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_SLRU_SEEK_FAILED,4,2           ## @SLRU_SEEK_FAILED
	.comm	_WAIT_EVENT_SLRU_WRITE,4,2      ## @WAIT_EVENT_SLRU_WRITE
	.comm	_ENOSPC,8,3                     ## @ENOSPC
	.comm	_SLRU_WRITE_FAILED,4,2          ## @SLRU_WRITE_FAILED
	.comm	_WAIT_EVENT_SLRU_SYNC,4,2       ## @WAIT_EVENT_SLRU_SYNC
	.comm	_SLRU_FSYNC_FAILED,4,2          ## @SLRU_FSYNC_FAILED
	.comm	_SLRU_CLOSE_FAILED,4,2          ## @SLRU_CLOSE_FAILED
	.no_dead_strip	_SlruPhysicalWritePage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SlruPhysicalWritePage
_SlruPhysicalWritePage:                 ; @SlruPhysicalWritePage
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x27, [x0, #8]
Lloh3:
	adrp	x8, _SLRU_PAGES_PER_SEGMENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SLRU_PAGES_PER_SEGMENT@GOTPAGEOFF]
Lloh5:
	ldr	w28, [x8]
Lloh6:
	adrp	x8, _BLCKSZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BLCKSZ@GOTPAGEOFF]
Lloh8:
	ldr	w26, [x8]
Lloh9:
	adrp	x8, _MAXPGPATH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	x9, x8
Lloh12:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh13:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldr	x8, [x27]
	cbz	x8, LBB0_10
; %bb.1:
	ldrsw	x9, [x27, #8]
	sxtw	x10, w21
	mul	x14, x9, x10
	ldr	x24, [x8, x14, lsl #3]
	subs	w10, w9, #2
	b.lt	LBB0_9
; %bb.2:
	cmp	w10, #7
	b.hs	LBB0_4
; %bb.3:
	mov	w10, #1
	mov	x11, x14
	b	LBB0_7
LBB0_4:
	add	x12, x10, #1
	and	x13, x12, #0x1fffffff8
	add	x11, x13, x14
	orr	w10, w13, #0x1
	dup.2d	v0, x24
	add	x14, x8, x14, lsl #3
	add	x14, x14, #40
	mov	x15, x13
	mov.16b	v3, v0
	mov.16b	v2, v0
	mov.16b	v1, v0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x14, #-32]
	ldp	q6, q7, [x14], #64
	cmgt.2d	v16, v0, v4
	bif.16b	v0, v4, v16
	cmgt.2d	v4, v3, v5
	bif.16b	v3, v5, v4
	cmgt.2d	v4, v2, v6
	bif.16b	v2, v6, v4
	cmgt.2d	v4, v1, v7
	bif.16b	v1, v7, v4
	subs	x15, x15, #8
	b.ne	LBB0_5
; %bb.6:
	cmgt.2d	v4, v0, v3
	bif.16b	v0, v3, v4
	cmgt.2d	v3, v0, v2
	bif.16b	v0, v2, v3
	cmgt.2d	v2, v0, v1
	bif.16b	v0, v1, v2
	ext.16b	v1, v0, v0, #8
	cmgt	d2, d0, d1
	bif.8b	v0, v1, v2
	fmov	x24, d0
	cmp	x12, x13
	b.eq	LBB0_9
LBB0_7:
	add	x8, x8, x11, lsl #3
	add	x8, x8, #8
	sub	w9, w9, w10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8], #8
	cmp	x24, x10
	csel	x24, x24, x10, gt
	subs	w9, w9, #1
	b.ne	LBB0_8
LBB0_9:
	mov	x0, x24
	bl	_XLogRecPtrIsInvalid
	cbz	w0, LBB0_15
LBB0_10:
	sdiv	w25, w22, w28
	cbz	x19, LBB0_17
LBB0_11:
	ldr	w10, [x19]
	cmp	w10, #1
	b.lt	LBB0_17
; %bb.12:
	mov	x8, #0
	ldr	x9, [x19, #8]
	lsl	x10, x10, #2
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9, x8]
	cmp	w11, w25
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x8, x8, #4
	cmp	x10, x8
	b.ne	LBB0_13
	b	LBB0_17
LBB0_15:
	bl	_START_CRIT_SECTION
	mov	x0, x24
	bl	_XLogFlush
	bl	_END_CRIT_SECTION
	sdiv	w25, w22, w28
	cbnz	x19, LBB0_11
	b	LBB0_17
LBB0_16:
	ldr	x9, [x19, #16]
	ldr	w24, [x9, x8]
	tbz	w24, #31, LBB0_24
LBB0_17:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x25
	bl	_SlruFileName
Lloh14:
	adrp	x8, _O_RDWR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _O_RDWR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _PG_BINARY@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PG_BINARY@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x23
	bl	_OpenTransientFile
	tbnz	w0, #31, LBB0_21
; %bb.18:
	mov	x24, x0
	cbz	x19, LBB0_24
; %bb.19:
	ldrsw	x8, [x19]
Lloh23:
	adrp	x9, _MAX_FLUSH_BUFFERS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MAX_FLUSH_BUFFERS@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_23
; %bb.20:
	ldp	x10, x9, [x19, #8]
	str	w24, [x9, x8, lsl #2]
	ldrsw	x8, [x19]
	str	w25, [x10, x8, lsl #2]
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_24
LBB0_21:
	mov	w0, #0
Lloh26:
	adrp	x8, _SLRU_OPEN_FAILED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SLRU_OPEN_FAILED@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _slru_errcause@GOTPAGE
Lloh30:
	ldr	x9, [x9, _slru_errcause@GOTPAGEOFF]
Lloh31:
	str	w8, [x9]
Lloh32:
	adrp	x8, _errno@GOTPAGE
Lloh33:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
LBB0_22:
Lloh35:
	adrp	x9, _slru_errno@GOTPAGE
Lloh36:
	ldr	x9, [x9, _slru_errno@GOTPAGEOFF]
Lloh37:
	str	x8, [x9]
	b	LBB0_35
LBB0_23:
	mov	x19, #0
LBB0_24:
	msub	w8, w25, w28, w22
	mul	w1, w26, w8
Lloh38:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
	mov	x0, x24
	bl	_lseek
	tbnz	x0, #63, LBB0_28
; %bb.25:
Lloh41:
	adrp	x22, _errno@GOTPAGE
Lloh42:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
	str	xzr, [x22]
Lloh43:
	adrp	x8, _WAIT_EVENT_SLRU_WRITE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _WAIT_EVENT_SLRU_WRITE@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	bl	_pgstat_report_wait_start
	ldr	x8, [x27, #16]
	ldr	w1, [x8, w21, sxtw #2]
Lloh46:
	adrp	x23, _BLCKSZ@GOTPAGE
Lloh47:
	ldr	x23, [x23, _BLCKSZ@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x24
	bl	_write
	mov	x21, x0
	ldr	w23, [x23]
	bl	_pgstat_report_wait_end
	cmp	w21, w23
	b.ne	LBB0_29
; %bb.26:
	cbz	x19, LBB0_37
LBB0_27:
	mov	w0, #1
	b	LBB0_35
LBB0_28:
Lloh48:
	adrp	x8, _SLRU_SEEK_FAILED@GOTPAGE
Lloh49:
	ldr	x8, [x8, _SLRU_SEEK_FAILED@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
Lloh51:
	adrp	x9, _slru_errcause@GOTPAGE
Lloh52:
	ldr	x9, [x9, _slru_errcause@GOTPAGEOFF]
Lloh53:
	str	w8, [x9]
Lloh54:
	adrp	x8, _errno@GOTPAGE
Lloh55:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	b	LBB0_32
LBB0_29:
	ldr	x8, [x22]
	cbnz	x8, LBB0_31
; %bb.30:
Lloh57:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh58:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh59:
	ldr	x8, [x8]
	str	x8, [x22]
LBB0_31:
Lloh60:
	adrp	x9, _SLRU_WRITE_FAILED@GOTPAGE
Lloh61:
	ldr	x9, [x9, _SLRU_WRITE_FAILED@GOTPAGEOFF]
Lloh62:
	ldr	w9, [x9]
Lloh63:
	adrp	x10, _slru_errcause@GOTPAGE
Lloh64:
	ldr	x10, [x10, _slru_errcause@GOTPAGEOFF]
Lloh65:
	str	w9, [x10]
LBB0_32:
Lloh66:
	adrp	x9, _slru_errno@GOTPAGE
Lloh67:
	ldr	x9, [x9, _slru_errno@GOTPAGEOFF]
Lloh68:
	str	x8, [x9]
	cbnz	x19, LBB0_34
LBB0_33:
	mov	x0, x24
	bl	_CloseTransientFile
LBB0_34:
	mov	w0, #0
LBB0_35:
	ldur	x8, [x29, #-88]
Lloh69:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh70:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh71:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_42
; %bb.36:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_37:
Lloh72:
	adrp	x8, _WAIT_EVENT_SLRU_SYNC@GOTPAGE
Lloh73:
	ldr	x8, [x8, _WAIT_EVENT_SLRU_SYNC@GOTPAGEOFF]
Lloh74:
	ldr	w0, [x8]
	bl	_pgstat_report_wait_start
	ldr	x8, [x20]
	cbz	x8, LBB0_40
; %bb.38:
	mov	x0, x24
	bl	_pg_fsync
	cbz	x0, LBB0_40
; %bb.39:
	bl	_pgstat_report_wait_end
Lloh75:
	adrp	x8, _SLRU_FSYNC_FAILED@GOTPAGE
Lloh76:
	ldr	x8, [x8, _SLRU_FSYNC_FAILED@GOTPAGEOFF]
Lloh77:
	adrp	x9, _slru_errcause@GOTPAGE
Lloh78:
	ldr	x9, [x9, _slru_errcause@GOTPAGEOFF]
Lloh79:
	ldr	w8, [x8]
Lloh80:
	str	w8, [x9]
	ldr	x8, [x22]
Lloh81:
	adrp	x9, _slru_errno@GOTPAGE
Lloh82:
	ldr	x9, [x9, _slru_errno@GOTPAGEOFF]
Lloh83:
	str	x8, [x9]
	b	LBB0_33
LBB0_40:
	bl	_pgstat_report_wait_end
	mov	x0, x24
	bl	_CloseTransientFile
	cbz	x0, LBB0_27
; %bb.41:
	mov	w0, #0
Lloh84:
	adrp	x8, _SLRU_CLOSE_FAILED@GOTPAGE
Lloh85:
	ldr	x8, [x8, _SLRU_CLOSE_FAILED@GOTPAGEOFF]
Lloh86:
	adrp	x9, _slru_errcause@GOTPAGE
Lloh87:
	ldr	x9, [x9, _slru_errcause@GOTPAGEOFF]
Lloh88:
	ldr	w8, [x8]
Lloh89:
	str	w8, [x9]
	ldr	x8, [x22]
	b	LBB0_22
LBB0_42:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotStr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotStr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotStr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotStr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotStr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotStr	Lloh77, Lloh78, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh79
	.loh AdrpLdrGotStr	Lloh86, Lloh87, Lloh89
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh88
	.cfi_endproc
                                        ; -- End function
	.comm	_SLRU_PAGES_PER_SEGMENT,4,2     ; @SLRU_PAGES_PER_SEGMENT
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_PG_BINARY,4,2                  ; @PG_BINARY
	.comm	_SLRU_OPEN_FAILED,4,2           ; @SLRU_OPEN_FAILED
	.comm	_slru_errcause,4,2              ; @slru_errcause
	.comm	_errno,8,3                      ; @errno
	.comm	_slru_errno,8,3                 ; @slru_errno
	.comm	_MAX_FLUSH_BUFFERS,4,2          ; @MAX_FLUSH_BUFFERS
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_SLRU_SEEK_FAILED,4,2           ; @SLRU_SEEK_FAILED
	.comm	_WAIT_EVENT_SLRU_WRITE,4,2      ; @WAIT_EVENT_SLRU_WRITE
	.comm	_ENOSPC,8,3                     ; @ENOSPC
	.comm	_SLRU_WRITE_FAILED,4,2          ; @SLRU_WRITE_FAILED
	.comm	_WAIT_EVENT_SLRU_SYNC,4,2       ; @WAIT_EVENT_SLRU_SYNC
	.comm	_SLRU_FSYNC_FAILED,4,2          ; @SLRU_FSYNC_FAILED
	.comm	_SLRU_CLOSE_FAILED,4,2          ; @SLRU_CLOSE_FAILED
	.no_dead_strip	_SlruPhysicalWritePage
.subsections_via_symbols
