	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IssuePendingWritebacks         ## -- Begin function IssuePendingWritebacks
	.p2align	4, 0x90
_IssuePendingWritebacks:                ## @IssuePendingWritebacks
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %esi
	testl	%esi, %esi
	je	LBB0_14
## %bb.1:
	movq	%rdi, %rbx
	addq	$8, %rdi
	movq	_buffertag_comparator@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	$24, %edx
	callq	_qsort
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.2:
	xorl	%r14d, %r14d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_InvalidBackendId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_smgropen
	movl	%eax, %edi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_smgrwriteback
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %r14d
	cmpl	%eax, %ecx
	jge	LBB0_13
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %r13
	movslq	%r14d, %rbx
	leaq	(%rbx,%rbx,2), %r12
	movq	(%r13,%r12,8), %rcx
	movq	8(%r13,%r12,8), %rdx
	movl	16(%r13,%r12,8), %esi
	incl	%ebx
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	%eax, %ebx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jge	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ebx, %r15
	movl	16(%r13,%r12,8), %edi
	leaq	(%r15,%r15,2), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	16(%r13,%rax,8), %esi
	callq	_RelFileNodeEquals
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(,%r12,8), %rbx
	addq	%r13, %rbx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,8), %r12
	addq	%r13, %r12
	addl	$2, %r14d
	movslq	%r14d, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	16(,%rax,8), %r14
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movq	8(%rbx), %rax
	leaq	(%r15,%r15,2), %rcx
	movq	8(%r13,%rcx,8), %rcx
	cmpq	%rcx, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	incq	%rax
	cmpq	%rcx, %rax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=2
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	%r12, %rbx
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incl	%ecx
	cmpl	(%rax), %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=2
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r13
	movslq	%ecx, %r15
	leaq	(%r15,%r15,2), %rax
	leaq	(,%rax,8), %r12
	addq	%r13, %r12
	movl	16(%rbx), %edi
	movl	(%r13,%r14), %esi
	callq	_RelFileNodeEquals
	addq	$24, %r14
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_12
LBB0_13:
	movl	$0, (%rbx)
LBB0_14:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_buffertag_comparator,4,2       ## @buffertag_comparator
	.comm	_InvalidBackendId,4,2           ## @InvalidBackendId
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IssuePendingWritebacks         ; -- Begin function IssuePendingWritebacks
	.p2align	2
_IssuePendingWritebacks:                ; @IssuePendingWritebacks
	.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
	ldr	w1, [x0]
	cbz	w1, LBB0_15
; %bb.1:
	mov	x19, x0
	add	x20, x0, #8
Lloh0:
	adrp	x8, _buffertag_comparator@GOTPAGE
Lloh1:
	ldr	x8, [x8, _buffertag_comparator@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w25, #24
	mov	x0, x20
	mov	w2, #24
	bl	_qsort
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.2:
	mov	w9, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w24, #1
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh3:
	adrp	x8, _InvalidBackendId@GOTPAGE
Lloh4:
	ldr	x8, [x8, _InvalidBackendId@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_smgropen
	ldp	x2, x1, [sp, #16]               ; 16-byte Folded Reload
	mov	x3, x24
	bl	_smgrwriteback
	ldr	w8, [x19]
	mov	x9, x27
	cmp	w27, w8
	b.ge	LBB0_14
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x26, [x20]
	smaddl	x22, w9, w25, x26
	ldp	x23, x24, [x22]
	ldr	w28, [x22, #16]
	add	w27, w9, #1
	cmp	w27, w8
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	str	w28, [sp, #12]                  ; 4-byte Folded Spill
	b.ge	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x21, w9
	madd	x8, x21, x25, x26
	ldr	w0, [x8, #16]
	smaddl	x8, w27, w25, x26
	ldr	w1, [x8, #16]
	bl	_RelFileNodeEquals
	cbz	w0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x8, x27
	sxtw	x23, w8
	madd	x28, x23, x25, x26
	add	w8, w21, #2
	smull	x8, w8, w25
	add	x21, x8, #16
	mov	w24, #1
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	ldr	x9, [x28]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x22, #8]
	madd	x9, x23, x25, x26
	ldr	x9, [x9, #8]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	add	x8, x8, #1
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	add	w24, w24, #1
	mov	x22, x28
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
	add	w27, w27, #1
	ldr	w8, [x19]
	cmp	w27, w8
	b.ge	LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x26, [x20]
	sxtw	x23, w27
	smaddl	x28, w27, w25, x26
	ldr	w0, [x22, #16]
	ldr	w1, [x26, x21]
	bl	_RelFileNodeEquals
	add	x21, x21, #24
	cbnz	w0, LBB0_8
	b	LBB0_4
LBB0_14:
	str	wzr, [x19]
LBB0_15:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_buffertag_comparator,4,2       ; @buffertag_comparator
	.comm	_InvalidBackendId,4,2           ; @InvalidBackendId
.subsections_via_symbols
