	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltsWriteBlock
_ltsWriteBlock:                         ## @ltsWriteBlock
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	cmpq	%rsi, (%rdi)
	jge	LBB0_2
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_MemSet
	movq	(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_ltsWriteBlock
	cmpq	%r14, (%rbx)
	jl	LBB0_1
LBB0_2:
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	callq	_BufFileSeekBlock
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movl	8(%rbx), %edi
	movq	_BLCKSZ@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	movq	%r15, %rsi
	callq	_BufFileWrite
	cmpq	(%r12), %rax
	je	LBB0_5
LBB0_4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	cmpq	%r14, (%rbx)
	jne	LBB0_7
## %bb.6:
	incq	%r14
	movq	%r14, (%rbx)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLCKSZ,8,3                     ## @BLCKSZ
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not write block %ld of temporary file: %m"

	.no_dead_strip	_ltsWriteBlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltsWriteBlock
_ltsWriteBlock:                         ; @ltsWriteBlock
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	cmp	x8, x1
	b.ge	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w1, #0
	mov	w2, #8
	bl	_MemSet
	ldr	x1, [x19]
	mov	x0, x19
	bl	_ltsWriteBlock
	ldr	x8, [x19]
	cmp	x8, x20
	b.lt	LBB0_1
LBB0_2:
	ldr	w0, [x19, #8]
	mov	x1, x20
	bl	_BufFileSeekBlock
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x22, _BLCKSZ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BLCKSZ@GOTPAGEOFF]
	ldr	x2, [x22]
	mov	x1, x21
	bl	_BufFileWrite
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	bl	_errcode_for_file_access
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_5:
	ldr	x8, [x19]
	cmp	x8, x20
	b.ne	LBB0_7
; %bb.6:
	add	x8, x20, #1
	str	x8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BLCKSZ,8,3                     ; @BLCKSZ
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not write block %ld of temporary file: %m"

	.no_dead_strip	_ltsWriteBlock
.subsections_via_symbols
