	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdextend                       ## -- Begin function mdextend
	.p2align	4, 0x90
_mdextend:                              ## @mdextend
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rdi, %r12
	movq	_InvalidBlockNumber@GOTPCREL(%rip), %rbx
	cmpq	%rdx, (%rbx)
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	(%r12), %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_relpath
	movq	(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	-44(%rbp), %esi                 ## 4-byte Reload
LBB0_2:
	movq	_EXTENSION_CREATE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r12, %rdi
	movq	%r14, %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	__mdfd_getseg
	movq	%rax, %r13
	movq	_BLCKSZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movq	_RELSEG_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:
	movq	%r14, %rax
	cqto
	idivq	%rsi
	movq	%rdx, %rbx
	jmp	LBB0_5
LBB0_3:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%edx, %ebx
LBB0_5:
	imulq	%rcx, %rbx
	imulq	%rcx, %rsi
	xorl	%edi, %edi
	cmpq	%rsi, %rbx
	setl	%dil
	callq	_Assert
	movl	(%r13), %edi
	movq	_BLCKSZ@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_WAIT_EVENT_DATA_FILE_EXTEND@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_FileWrite
	cmpl	(%r15), %eax
	je	LBB0_9
## %bb.6:
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	(%r13), %edi
	callq	_FilePathName
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	leaq	L_.str.2(%rip), %rdi
	callq	_errhint
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_DISK_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	(%r13), %edi
	callq	_FilePathName
	movq	_BLCKSZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_errmsg
	leaq	L_.str.2(%rip), %rdi
	callq	_errhint
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_9:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_12
## %bb.10:
	movq	%r12, %rdi
	callq	_SmgrIsTemp
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	callq	_register_dirty_segment
LBB0_12:
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	callq	__mdnblocks
	xorl	%edi, %edi
	movq	_RELSEG_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setle	%dil
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Assert                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_InvalidBlockNumber,8,3         ## @InvalidBlockNumber
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_PROGRAM_LIMIT_EXCEEDED,4,2 ## @ERRCODE_PROGRAM_LIMIT_EXCEEDED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot extend file \"%s\" beyond %u blocks"

	.comm	_EXTENSION_CREATE,4,2           ## @EXTENSION_CREATE
	.comm	_BLCKSZ,4,2                     ## @BLCKSZ
	.comm	_RELSEG_SIZE,8,3                ## @RELSEG_SIZE
	.comm	_WAIT_EVENT_DATA_FILE_EXTEND,4,2 ## @WAIT_EVENT_DATA_FILE_EXTEND
L_.str.1:                               ## @.str.1
	.asciz	"could not extend file \"%s\": %m"

L_.str.2:                               ## @.str.2
	.asciz	"Check free disk space."

	.comm	_ERRCODE_DISK_FULL,4,2          ## @ERRCODE_DISK_FULL
L_.str.3:                               ## @.str.3
	.asciz	"could not extend file \"%s\": wrote only %d of %d bytes at block %u"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdextend                       ; -- Begin function mdextend
	.p2align	2
_mdextend:                              ; @mdextend
	.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	x21, x4
	mov	x24, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _InvalidBlockNumber@GOTPAGE
Lloh1:
	ldr	x25, [x25, _InvalidBlockNumber@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh2:
	adrp	x27, _ERROR@GOTPAGE
Lloh3:
	ldr	x27, [x27, _ERROR@GOTPAGEOFF]
	cmp	x8, x2
	b.ne	LBB0_2
; %bb.1:
	ldr	w23, [x27]
Lloh4:
	adrp	x8, _ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERRCODE_PROGRAM_LIMIT_EXCEEDED@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w0, [x20]
	mov	x1, x19
	bl	_relpath
	mov	x1, x0
	ldr	x8, [x25]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
LBB0_2:
Lloh9:
	adrp	x8, _EXTENSION_CREATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EXTENSION_CREATE@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	__mdfd_getseg
	mov	x23, x0
Lloh12:
	adrp	x28, _BLCKSZ@GOTPAGE
Lloh13:
	ldr	x28, [x28, _BLCKSZ@GOTPAGEOFF]
	ldrsw	x8, [x28]
Lloh14:
	adrp	x26, _RELSEG_SIZE@GOTPAGE
Lloh15:
	ldr	x26, [x26, _RELSEG_SIZE@GOTPAGEOFF]
	ldr	x9, [x26]
	sdiv	x10, x22, x9
	msub	x10, x10, x9, x22
	mul	x25, x10, x8
	mul	x8, x9, x8
	cmp	x25, x8
	cset	w0, lt
	bl	_Assert
	ldr	w0, [x23]
	ldr	w2, [x28]
Lloh16:
	adrp	x8, _WAIT_EVENT_DATA_FILE_EXTEND@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WAIT_EVENT_DATA_FILE_EXTEND@GOTPAGEOFF]
Lloh18:
	ldr	w4, [x8]
	mov	x1, x24
	mov	x3, x25
	bl	_FileWrite
	ldr	w8, [x28]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.3:
	mov	x24, x0
	tbz	w0, #31, LBB0_5
; %bb.4:
	ldr	w25, [x27]
	bl	_errcode_for_file_access
	ldr	w0, [x23]
	bl	_FilePathName
	mov	x1, x0
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_5:
	ldr	w25, [x27]
Lloh23:
	adrp	x8, _ERRCODE_DISK_FULL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERRCODE_DISK_FULL@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w0, [x23]
	bl	_FilePathName
	mov	x1, x0
	ldr	w8, [x28]
	stp	x8, x22, [sp, #8]
	str	x24, [sp]
Lloh26:
	adrp	x0, l_.str.3@PAGE
Lloh27:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errhint
	mov	x1, x0
	mov	x0, x25
	bl	_ereport
LBB0_6:
	cbnz	w21, LBB0_9
; %bb.7:
	mov	x0, x20
	bl	_SmgrIsTemp
	cbnz	w0, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_register_dirty_segment
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	__mdnblocks
	ldr	x8, [x26]
	cmp	x0, x8
	cset	w0, le
	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
	b	_Assert
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_InvalidBlockNumber,8,3         ; @InvalidBlockNumber
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_PROGRAM_LIMIT_EXCEEDED,4,2 ; @ERRCODE_PROGRAM_LIMIT_EXCEEDED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot extend file \"%s\" beyond %u blocks"

	.comm	_EXTENSION_CREATE,4,2           ; @EXTENSION_CREATE
	.comm	_BLCKSZ,4,2                     ; @BLCKSZ
	.comm	_RELSEG_SIZE,8,3                ; @RELSEG_SIZE
	.comm	_WAIT_EVENT_DATA_FILE_EXTEND,4,2 ; @WAIT_EVENT_DATA_FILE_EXTEND
l_.str.1:                               ; @.str.1
	.asciz	"could not extend file \"%s\": %m"

l_.str.2:                               ; @.str.2
	.asciz	"Check free disk space."

	.comm	_ERRCODE_DISK_FULL,4,2          ; @ERRCODE_DISK_FULL
l_.str.3:                               ; @.str.3
	.asciz	"could not extend file \"%s\": wrote only %d of %d bytes at block %u"

.subsections_via_symbols
