	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function BgBufferSync
LCPI0_0:
	.long	0x3d800000                      ## float 0.0625
LCPI0_1:
	.long	0x47ea6000                      ## float 1.2E+5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_BgBufferSync
	.p2align	4, 0x90
_BgBufferSync:                          ## @BgBufferSync
	.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	%rdi, -72(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_StrategySyncStart
	movq	-56(%rbp), %rcx
	movq	_BgWriterStats@GOTPCREL(%rip), %r14
	addq	%rcx, (%r14)
	movl	%eax, %r15d
	movq	_bgwriter_lru_maxpages@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_4
## %bb.1:
	cmpb	$1, _BgBufferSync.saved_info_valid(%rip)
	jne	LBB0_5
## %bb.2:
	movq	%r14, %r12
	movq	-64(%rbp), %rbx
	subq	_BgBufferSync.prev_strategy_passes(%rip), %rbx
	movslq	_BgBufferSync.prev_strategy_buf_id(%rip), %rax
	movslq	%r15d, %rcx
	movq	_NBuffers@GOTPCREL(%rip), %r14
	imulq	(%r14), %rbx
	subq	%rax, %rcx
	addq	%rcx, %rbx
	movq	%rbx, %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_Assert
	movq	_BgBufferSync.next_passes(%rip), %rcx
	movq	-64(%rbp), %rax
	cmpq	%rax, %rcx
	jle	LBB0_6
## %bb.3:
	movl	%r15d, %edx
	subl	_BgBufferSync.next_to_clean(%rip), %edx
	jmp	LBB0_10
LBB0_4:
	movb	$0, _BgBufferSync.saved_info_valid(%rip)
	movl	$1, %eax
	jmp	LBB0_34
LBB0_5:
	movl	%r15d, _BgBufferSync.next_to_clean(%rip)
	movq	-64(%rbp), %rax
	movq	%rax, _BgBufferSync.next_passes(%rip)
	movq	_NBuffers@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_6:
	jne	LBB0_8
## %bb.7:
	movl	%r15d, %edx
	subl	_BgBufferSync.next_to_clean(%rip), %edx
	jle	LBB0_9
LBB0_8:
	movl	%r15d, _BgBufferSync.next_to_clean(%rip)
	movq	%rax, _BgBufferSync.next_passes(%rip)
	movl	(%r14), %edx
	jmp	LBB0_10
LBB0_9:
	addl	(%r14), %edx
	movq	%rcx, %rax
LBB0_10:
	movq	%r12, %r14
LBB0_11:
	movl	%r15d, _BgBufferSync.prev_strategy_buf_id(%rip)
	movq	%rax, _BgBufferSync.prev_strategy_passes(%rip)
	movb	$1, _BgBufferSync.saved_info_valid(%rip)
	movq	-56(%rbp), %rax
	testq	%rbx, %rbx
	jle	LBB0_14
## %bb.12:
	testq	%rax, %rax
	jle	LBB0_14
## %bb.13:
	cvtsi2ss	%rbx, %xmm0
	cvtsi2ss	%rax, %xmm1
	divss	%xmm1, %xmm0
	movss	_BgBufferSync.smoothed_density(%rip), %xmm2 ## xmm2 = mem[0],zero,zero,zero
	subss	%xmm2, %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	addss	%xmm2, %xmm0
	movss	%xmm0, _BgBufferSync.smoothed_density(%rip)
	jmp	LBB0_15
LBB0_14:
	movss	_BgBufferSync.smoothed_density(%rip), %xmm0 ## xmm0 = mem[0],zero,zero,zero
	cvtsi2ss	%rax, %xmm1
LBB0_15:
	movq	_NBuffers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%eax, %ecx
	subl	%edx, %ecx
	xorps	%xmm2, %xmm2
	cvtsi2ss	%ecx, %xmm2
	movss	_BgBufferSync.smoothed_alloc(%rip), %xmm3 ## xmm3 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm4
	subss	%xmm3, %xmm4
	mulss	LCPI0_0(%rip), %xmm4
	addss	%xmm3, %xmm4
	cmpnless	%xmm1, %xmm3
	andps	%xmm3, %xmm4
	andnps	%xmm1, %xmm3
	orps	%xmm4, %xmm3
	movq	_bgwriter_lru_multiplier@GOTPCREL(%rip), %rcx
	movss	(%rcx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm1
	cvttss2si	%xmm1, %ecx
	xorps	%xmm1, %xmm1
	testl	%ecx, %ecx
	movl	%edx, %ebx
	je	LBB0_17
## %bb.16:
	movaps	%xmm3, %xmm1
LBB0_17:
	movss	%xmm1, _BgBufferSync.smoothed_alloc(%rip)
	xorps	%xmm1, %xmm1
	cvtsi2ss	%rax, %xmm1
	insertps	$16, %xmm2, %xmm1               ## xmm1 = xmm1[0],xmm2[0],xmm1[2,3]
	movq	_BgWriterDelay@GOTPCREL(%rip), %rax
	movss	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	divss	(%rax), %xmm2
	insertps	$16, %xmm0, %xmm2               ## xmm2 = xmm2[0],xmm0[0],xmm2[2,3]
	divps	%xmm2, %xmm1
	cvttps2dq	%xmm1, %xmm0
	movd	%xmm0, %r13d
	pextrd	$1, %xmm0, %r15d
	addl	%r15d, %r13d
	cmpl	%ecx, %r13d
	cmovlel	%ecx, %r13d
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ResourceOwnerEnlargeBuffers
	xorl	%r12d, %r12d
	testl	%ebx, %ebx
	movl	%ebx, %ecx
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	jle	LBB0_30
## %bb.18:
	movl	%r15d, %eax
	cmpl	%r15d, %r13d
	jle	LBB0_30
## %bb.19:
	xorl	%r12d, %r12d
	movl	%ecx, %eax
	movl	_BgBufferSync.next_to_clean(%rip), %edi
	movq	_BUF_WRITTEN@GOTPCREL(%rip), %r14
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ebx
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$1, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_SyncOneBuffer
	movslq	_BgBufferSync.next_to_clean(%rip), %rdi
	incq	%rdi
	movl	%edi, _BgBufferSync.next_to_clean(%rip)
	movq	_NBuffers@GOTPCREL(%rip), %rcx
	cmpq	%rdi, (%rcx)
	jg	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	$0, _BgBufferSync.next_to_clean(%rip)
	incq	_BgBufferSync.next_passes(%rip)
	xorl	%edi, %edi
LBB0_22:                                ##   in Loop: Header=BB0_20 Depth=1
	testl	%eax, (%r14)
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	incl	%r15d
	incl	%r12d
	movq	_bgwriter_lru_maxpages@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_28
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=1
	cmpl	$2, %ebx
	jae	LBB0_26
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	_BUF_REUSABLE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	cmpl	$1, %eax
	sbbl	$-1, %r15d
	cmpl	$2, %ebx
	jb	LBB0_27
LBB0_26:                                ##   in Loop: Header=BB0_20 Depth=1
	leal	-1(%rbx), %eax
	cmpl	%r13d, %r15d
	jl	LBB0_20
LBB0_27:
	decl	%ebx
	movq	_BgWriterStats@GOTPCREL(%rip), %r14
	jmp	LBB0_29
LBB0_28:
	movq	_BgWriterStats@GOTPCREL(%rip), %r14
	incl	12(%r14)
	decl	%ebx
LBB0_29:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
LBB0_30:
	addl	%r12d, 8(%r14)
	movl	%ecx, %eax
	subl	%ebx, %eax
	jle	LBB0_33
## %bb.31:
	subl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	testl	%r15d, %r15d
	jle	LBB0_33
## %bb.32:
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2ss	%r15d, %xmm1
	divss	%xmm1, %xmm0
	movss	_BgBufferSync.smoothed_density(%rip), %xmm1 ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm1, %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	addss	%xmm1, %xmm0
	movss	%xmm0, _BgBufferSync.smoothed_density(%rip)
LBB0_33:
	testl	%ecx, %ecx
	sete	%al
	cmpq	$0, -56(%rbp)
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %eax
LBB0_34:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_BgBufferSync.saved_info_valid,1,2 ## @BgBufferSync.saved_info_valid
.zerofill __DATA,__bss,_BgBufferSync.prev_strategy_buf_id,4,2 ## @BgBufferSync.prev_strategy_buf_id
.zerofill __DATA,__bss,_BgBufferSync.prev_strategy_passes,8,3 ## @BgBufferSync.prev_strategy_passes
.zerofill __DATA,__bss,_BgBufferSync.next_to_clean,4,2 ## @BgBufferSync.next_to_clean
.zerofill __DATA,__bss,_BgBufferSync.next_passes,8,3 ## @BgBufferSync.next_passes
.zerofill __DATA,__bss,_BgBufferSync.smoothed_alloc,4,2 ## @BgBufferSync.smoothed_alloc
	.section	__DATA,__data
	.p2align	2                               ## @BgBufferSync.smoothed_density
_BgBufferSync.smoothed_density:
	.long	0x41200000                      ## float 10

	.comm	_BgWriterStats,16,3             ## @BgWriterStats
	.comm	_bgwriter_lru_maxpages,4,2      ## @bgwriter_lru_maxpages
	.comm	_NBuffers,8,3                   ## @NBuffers
	.comm	_bgwriter_lru_multiplier,4,2    ## @bgwriter_lru_multiplier
	.comm	_BgWriterDelay,4,2              ## @BgWriterDelay
	.comm	_CurrentResourceOwner,4,2       ## @CurrentResourceOwner
	.comm	_BUF_WRITTEN,4,2                ## @BUF_WRITTEN
	.comm	_BUF_REUSABLE,4,2               ## @BUF_REUSABLE
	.comm	_DEBUG1,4,2                     ## @DEBUG1
	.comm	_DEBUG2,4,2                     ## @DEBUG2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BgBufferSync                   ; -- Begin function BgBufferSync
	.p2align	2
_BgBufferSync:                          ; @BgBufferSync
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_StrategySyncStart
	ldr	x8, [sp, #16]
Lloh0:
	adrp	x21, _BgWriterStats@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BgWriterStats@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x8, x9, x8
	str	x8, [x21]
Lloh2:
	adrp	x8, _bgwriter_lru_maxpages@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bgwriter_lru_maxpages@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #0
	b.le	LBB0_4
; %bb.1:
	mov	x20, x0
	adrp	x25, _BgBufferSync.saved_info_valid@PAGE
	ldrb	w8, [x25, _BgBufferSync.saved_info_valid@PAGEOFF]
Lloh5:
	adrp	x23, _NBuffers@GOTPAGE
Lloh6:
	ldr	x23, [x23, _NBuffers@GOTPAGEOFF]
	adrp	x26, _BgBufferSync.prev_strategy_passes@PAGE
	adrp	x28, _BgBufferSync.prev_strategy_buf_id@PAGE
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [sp, #24]
	ldr	x9, [x26, _BgBufferSync.prev_strategy_passes@PAGEOFF]
	sub	x8, x8, x9
	ldrsw	x9, [x28, _BgBufferSync.prev_strategy_buf_id@PAGEOFF]
	sxtw	x10, w20
	sub	x9, x10, x9
	ldr	x10, [x23]
	madd	x27, x10, x8, x9
	lsr	x8, x27, #63
	eor	w0, w8, #0x1
	bl	_Assert
	adrp	x10, _BgBufferSync.next_passes@PAGE
	ldr	x9, [x10, _BgBufferSync.next_passes@PAGEOFF]
	ldr	x8, [sp, #24]
	cmp	x9, x8
	b.le	LBB0_6
; %bb.3:
Lloh7:
	adrp	x9, _BgBufferSync.next_to_clean@PAGE
Lloh8:
	ldr	w9, [x9, _BgBufferSync.next_to_clean@PAGEOFF]
	sub	w24, w20, w9
	b	LBB0_10
LBB0_4:
	adrp	x8, _BgBufferSync.saved_info_valid@PAGE
	strb	wzr, [x8, _BgBufferSync.saved_info_valid@PAGEOFF]
	mov	w0, #1
	b	LBB0_32
LBB0_5:
	mov	x27, #0
	adrp	x8, _BgBufferSync.next_to_clean@PAGE
	str	w20, [x8, _BgBufferSync.next_to_clean@PAGEOFF]
	ldr	x8, [sp, #24]
	adrp	x9, _BgBufferSync.next_passes@PAGE
	str	x8, [x9, _BgBufferSync.next_passes@PAGEOFF]
	b	LBB0_9
LBB0_6:
	b.ne	LBB0_8
; %bb.7:
Lloh9:
	adrp	x11, _BgBufferSync.next_to_clean@PAGE
Lloh10:
	ldr	w11, [x11, _BgBufferSync.next_to_clean@PAGEOFF]
	subs	w11, w20, w11
	b.le	LBB0_33
LBB0_8:
	adrp	x9, _BgBufferSync.next_to_clean@PAGE
	str	w20, [x9, _BgBufferSync.next_to_clean@PAGEOFF]
	str	x8, [x10, _BgBufferSync.next_passes@PAGEOFF]
LBB0_9:
	ldr	w24, [x23]
LBB0_10:
	str	w20, [x28, _BgBufferSync.prev_strategy_buf_id@PAGEOFF]
	str	x8, [x26, _BgBufferSync.prev_strategy_passes@PAGEOFF]
	mov	w8, #1
	strb	w8, [x25, _BgBufferSync.saved_info_valid@PAGEOFF]
	ldr	x8, [sp, #16]
	adrp	x20, _BgBufferSync.smoothed_density@PAGE
	cmp	x27, #1
	b.lt	LBB0_13
; %bb.11:
	cmp	x8, #0
	b.le	LBB0_13
; %bb.12:
	scvtf	s1, x27
	scvtf	s0, x8
	fdiv	s1, s1, s0
	ldr	s2, [x20, _BgBufferSync.smoothed_density@PAGEOFF]
	fsub	s1, s1, s2
	mov	w8, #1031798784
	fmov	s3, w8
	fmul	s1, s1, s3
	fadd	s1, s2, s1
	str	s1, [x20, _BgBufferSync.smoothed_density@PAGEOFF]
	b	LBB0_14
LBB0_13:
	ldr	s1, [x20, _BgBufferSync.smoothed_density@PAGEOFF]
	scvtf	s0, x8
LBB0_14:
	ldr	x8, [x23]
	sub	w9, w8, w24
	scvtf	s2, w9
	fdiv	s1, s2, s1
	fcvtzs	w25, s1
	adrp	x9, _BgBufferSync.smoothed_alloc@PAGE
	ldr	s1, [x9, _BgBufferSync.smoothed_alloc@PAGEOFF]
	fsub	s2, s0, s1
	mov	w10, #1031798784
	fmov	s3, w10
	fmul	s2, s2, s3
	fadd	s2, s1, s2
	fcmp	s1, s0
	fcsel	s0, s2, s0, hi
Lloh11:
	adrp	x10, _bgwriter_lru_multiplier@GOTPAGE
Lloh12:
	ldr	x10, [x10, _bgwriter_lru_multiplier@GOTPAGEOFF]
Lloh13:
	ldr	s1, [x10]
	fmul	s1, s1, s0
	fcvtzs	w10, s1
	cmp	w10, #0
	movi	d1, #0000000000000000
	fcsel	s0, s1, s0, eq
	str	s0, [x9, _BgBufferSync.smoothed_alloc@PAGEOFF]
	scvtf	s0, x8
Lloh14:
	adrp	x8, _BgWriterDelay@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BgWriterDelay@GOTPAGEOFF]
Lloh16:
	ldr	s1, [x8]
	mov	w8, #24576
	movk	w8, #18410, lsl #16
	fmov	s2, w8
	fdiv	s1, s2, s1
	fdiv	s0, s0, s1
	fcvtzs	w8, s0
	add	w8, w8, w25
	cmp	w8, w10
	csel	w28, w8, w10, gt
Lloh17:
	adrp	x8, _CurrentResourceOwner@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CurrentResourceOwner@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_ResourceOwnerEnlargeBuffers
	mov	w26, #0
	cmp	w24, #1
	b.lt	LBB0_25
; %bb.15:
	cmp	w28, w25
	b.le	LBB0_25
; %bb.16:
	mov	w26, #0
Lloh20:
	adrp	x20, _BUF_WRITTEN@GOTPAGE
Lloh21:
	ldr	x20, [x20, _BUF_WRITTEN@GOTPAGEOFF]
	adrp	x21, _BgBufferSync.next_to_clean@PAGE
	ldr	w0, [x21, _BgBufferSync.next_to_clean@PAGEOFF]
	adrp	x22, _BgBufferSync.next_passes@PAGE
	mov	x27, x25
	str	w24, [sp, #12]                  ; 4-byte Folded Spill
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #1
	mov	x2, x19
	bl	_SyncOneBuffer
	mov	x8, x0
	ldrsw	x9, [x21, _BgBufferSync.next_to_clean@PAGEOFF]
	add	x0, x9, #1
	str	w0, [x21, _BgBufferSync.next_to_clean@PAGEOFF]
	ldr	x9, [x23]
	cmp	x9, x0
	b.gt	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	w0, #0
	str	wzr, [x21, _BgBufferSync.next_to_clean@PAGEOFF]
	ldr	x9, [x22, _BgBufferSync.next_passes@PAGEOFF]
	add	x9, x9, #1
	str	x9, [x22, _BgBufferSync.next_passes@PAGEOFF]
LBB0_19:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	add	w27, w27, #1
	add	w26, w26, #1
Lloh22:
	adrp	x8, _bgwriter_lru_maxpages@GOTPAGE
Lloh23:
	ldr	x8, [x8, _bgwriter_lru_maxpages@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w26, w8
	b.lt	LBB0_22
	b	LBB0_26
LBB0_21:                                ;   in Loop: Header=BB0_17 Depth=1
Lloh25:
	adrp	x9, _BUF_REUSABLE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _BUF_REUSABLE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	cinc	w27, w27, ne
LBB0_22:                                ;   in Loop: Header=BB0_17 Depth=1
	sub	w8, w24, #1
	cmp	w24, #2
	b.lo	LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x24, x8
	cmp	w27, w28
	b.lt	LBB0_17
LBB0_24:
Lloh28:
	adrp	x21, _BgWriterStats@GOTPAGE
Lloh29:
	ldr	x21, [x21, _BgWriterStats@GOTPAGEOFF]
	b	LBB0_27
LBB0_25:
	mov	x8, x24
	mov	x27, x25
	b	LBB0_28
LBB0_26:
Lloh30:
	adrp	x21, _BgWriterStats@GOTPAGE
Lloh31:
	ldr	x21, [x21, _BgWriterStats@GOTPAGEOFF]
	ldr	w8, [x21, #12]
	add	w8, w8, #1
	str	w8, [x21, #12]
	sub	w8, w24, #1
LBB0_27:
	ldr	w24, [sp, #12]                  ; 4-byte Folded Reload
	adrp	x20, _BgBufferSync.smoothed_density@PAGE
LBB0_28:
	ldr	w9, [x21, #8]
	add	w9, w9, w26
	str	w9, [x21, #8]
	sub	w8, w24, w8
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.29:
	sub	w9, w27, w25
	cmp	w9, #1
	b.lt	LBB0_31
; %bb.30:
	scvtf	s0, w8
	scvtf	s1, w9
	fdiv	s0, s0, s1
	ldr	s1, [x20, _BgBufferSync.smoothed_density@PAGEOFF]
	fsub	s0, s0, s1
	mov	w8, #1031798784
	fmov	s2, w8
	fmul	s0, s0, s2
	fadd	s0, s1, s0
	str	s0, [x20, _BgBufferSync.smoothed_density@PAGEOFF]
LBB0_31:
	cmp	w24, #0
	ldr	x8, [sp, #16]
	ccmp	x8, #0, #0, eq
	cset	w0, eq
LBB0_32:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_33:
	ldr	w8, [x23]
	add	w24, w11, w8
	mov	x8, x9
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_BgBufferSync.saved_info_valid,1,2 ; @BgBufferSync.saved_info_valid
.zerofill __DATA,__bss,_BgBufferSync.prev_strategy_buf_id,4,2 ; @BgBufferSync.prev_strategy_buf_id
.zerofill __DATA,__bss,_BgBufferSync.prev_strategy_passes,8,3 ; @BgBufferSync.prev_strategy_passes
.zerofill __DATA,__bss,_BgBufferSync.next_to_clean,4,2 ; @BgBufferSync.next_to_clean
.zerofill __DATA,__bss,_BgBufferSync.next_passes,8,3 ; @BgBufferSync.next_passes
.zerofill __DATA,__bss,_BgBufferSync.smoothed_alloc,4,2 ; @BgBufferSync.smoothed_alloc
	.section	__DATA,__data
	.p2align	2                               ; @BgBufferSync.smoothed_density
_BgBufferSync.smoothed_density:
	.long	0x41200000                      ; float 10

	.comm	_BgWriterStats,16,3             ; @BgWriterStats
	.comm	_bgwriter_lru_maxpages,4,2      ; @bgwriter_lru_maxpages
	.comm	_NBuffers,8,3                   ; @NBuffers
	.comm	_bgwriter_lru_multiplier,4,2    ; @bgwriter_lru_multiplier
	.comm	_BgWriterDelay,4,2              ; @BgWriterDelay
	.comm	_CurrentResourceOwner,4,2       ; @CurrentResourceOwner
	.comm	_BUF_WRITTEN,4,2                ; @BUF_WRITTEN
	.comm	_BUF_REUSABLE,4,2               ; @BUF_REUSABLE
	.comm	_DEBUG1,4,2                     ; @DEBUG1
	.comm	_DEBUG2,4,2                     ; @DEBUG2
.subsections_via_symbols
