	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdwriteback                    ## -- Begin function mdwriteback
	.p2align	4, 0x90
_mdwriteback:                           ## @mdwriteback
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_4
## %bb.1:
	movl	%ecx, %r14d
	movl	%edx, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_EXTENSION_RETURN_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movl	$1, %ecx
	callq	__mdfd_getseg
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movq	_RELSEG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r15d, %eax
	cltd
	idivl	%r12d
	movl	%eax, %ecx
	movl	%edx, %esi
	leal	(%r14,%r15), %eax
	decl	%eax
	cltd
	idivl	%r12d
	subl	%esi, %r12d
	cmpl	%eax, %ecx
	cmovel	%r14d, %r12d
	xorl	%edi, %edi
	testl	%r12d, %r12d
	setg	%dil
	callq	_Assert
	xorl	%edi, %edi
	cmpl	%r12d, %r14d
	setge	%dil
	callq	_Assert
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r15d, %eax
	cltd
	movq	_RELSEG_SIZE@GOTPCREL(%rip), %rcx
	idivl	(%rcx)
	imull	%ebx, %edx
	movl	(%r13), %edi
	imull	%r12d, %ebx
	movq	_WAIT_EVENT_DATA_FILE_FLUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%edx, %esi
	movl	%ebx, %edx
	callq	_FileWriteback
	addl	%r12d, %r15d
	subl	%r12d, %r14d
	jg	LBB0_2
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXTENSION_RETURN_NULL,4,2      ## @EXTENSION_RETURN_NULL
	.comm	_RELSEG_SIZE,4,2                ## @RELSEG_SIZE
	.comm	_BLCKSZ,8,3                     ## @BLCKSZ
	.comm	_WAIT_EVENT_DATA_FILE_FLUSH,4,2 ## @WAIT_EVENT_DATA_FILE_FLUSH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdwriteback                    ; -- Begin function mdwriteback
	.p2align	2
_mdwriteback:                           ; @mdwriteback
	.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
	cmp	w3, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x24, _EXTENSION_RETURN_NULL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _EXTENSION_RETURN_NULL@GOTPAGEOFF]
Lloh2:
	adrp	x25, _RELSEG_SIZE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _RELSEG_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x26, _BLCKSZ@GOTPAGE
Lloh5:
	ldr	x26, [x26, _BLCKSZ@GOTPAGEOFF]
Lloh6:
	adrp	x27, _WAIT_EVENT_DATA_FILE_FLUSH@GOTPAGE
Lloh7:
	ldr	x27, [x27, _WAIT_EVENT_DATA_FILE_FLUSH@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w4, [x24]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	w3, #1
	bl	__mdfd_getseg
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, x0
	ldr	w8, [x25]
	sdiv	w9, w20, w8
	add	w10, w19, w20
	sub	w10, w10, #1
	sdiv	w10, w10, w8
	neg	w11, w20
	madd	w11, w9, w8, w11
	add	w8, w8, w11
	cmp	w9, w10
	csel	w28, w19, w8, eq
	cmp	w28, #0
	cset	w0, gt
	bl	_Assert
	subs	w19, w19, w28
	cset	w0, ge
	bl	_Assert
	ldr	w8, [x26]
	ldr	w9, [x25]
	sdiv	w10, w20, w9
	msub	w9, w10, w9, w20
	mul	w1, w9, w8
	ldr	w0, [x23]
	mul	w2, w28, w8
	ldr	w3, [x27]
	bl	_FileWriteback
	add	w20, w28, w20
	cmp	w19, #0
	b.gt	LBB0_2
LBB0_4:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EXTENSION_RETURN_NULL,4,2      ; @EXTENSION_RETURN_NULL
	.comm	_RELSEG_SIZE,4,2                ; @RELSEG_SIZE
	.comm	_BLCKSZ,8,3                     ; @BLCKSZ
	.comm	_WAIT_EVENT_DATA_FILE_FLUSH,4,2 ; @WAIT_EVENT_DATA_FILE_FLUSH
.subsections_via_symbols
