	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdimmedsync                    ## -- Begin function mdimmedsync
	.p2align	4, 0x90
_mdimmedsync:                           ## @mdimmedsync
	.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
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_mdnblocks
	movq	(%r12), %rax
	movl	(%rax,%r13,4), %ebx
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.1:
	incq	%rbx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	decq	%rbx
	cmpq	$1, %rbx
	jbe	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movq	(%rax,%r13,8), %r15
	leal	-2(%rbx), %r14d
	movl	(%r15,%r14,4), %edi
	movq	_WAIT_EVENT_DATA_FILE_IMMEDIATE_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FileSync
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_data_sync_elevel
	movq	%r13, %r12
	movl	%eax, %r13d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	(%r15,%r14,4), %edi
	callq	_FilePathName
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_errmsg
	movl	%r13d, %edi
	movq	%r12, %r13
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WAIT_EVENT_DATA_FILE_IMMEDIATE_SYNC,4,2 ## @WAIT_EVENT_DATA_FILE_IMMEDIATE_SYNC
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not fsync file \"%s\": %m"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdimmedsync                    ; -- Begin function mdimmedsync
	.p2align	2
_mdimmedsync:                           ; @mdimmedsync
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_mdnblocks
	ldr	x8, [x20]
	ldr	w8, [x8, x19, lsl #2]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	add	x23, x8, #1
Lloh0:
	adrp	x24, _WAIT_EVENT_DATA_FILE_IMMEDIATE_SYNC@GOTPAGE
Lloh1:
	ldr	x24, [x24, _WAIT_EVENT_DATA_FILE_IMMEDIATE_SYNC@GOTPAGEOFF]
Lloh2:
	adrp	x25, _ERROR@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ERROR@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x23, x23, #1
	cmp	x23, #1
	b.ls	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x26, [x8, x19, lsl #3]
	sub	w27, w23, #2
	ldr	w0, [x26, w27, uxtw #2]
	ldr	w1, [x24]
	bl	_FileSync
	tbz	x0, #63, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x25]
	bl	_data_sync_elevel
	mov	x22, x0
	bl	_errcode_for_file_access
	ldr	w0, [x26, x27, lsl #2]
	bl	_FilePathName
	mov	x1, x0
	mov	x0, x21
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
	b	LBB0_2
LBB0_5:
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_WAIT_EVENT_DATA_FILE_IMMEDIATE_SYNC,4,2 ; @WAIT_EVENT_DATA_FILE_IMMEDIATE_SYNC
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not fsync file \"%s\": %m"

.subsections_via_symbols
