	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_target_range             ## -- Begin function write_target_range
	.p2align	4, 0x90
_write_target_range:                    ## @write_target_range
	.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	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_fetch_done@GOTPCREL(%rip), %rax
	addq	%rdx, (%rax)
	xorl	%edi, %edi
	callq	_progress_report
	movq	_dry_run@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_dstfd@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %esi
	callq	_lseek
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.2:
	movq	_dstpath@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pg_fatal
LBB0_3:
	testl	%r12d, %r12d
	jle	LBB0_10
## %bb.4:
	movq	_errno@GOTPCREL(%rip), %r15
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_dstpath@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pg_fatal
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movslq	%ebx, %rax
	addq	%rax, %r14
	subl	%ebx, %r12d
	jle	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, (%r15)
	movl	(%r13), %edi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, (%r15)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_fetch_done,8,3                 ## @fetch_done
	.comm	_dry_run,8,3                    ## @dry_run
	.comm	_dstfd,4,2                      ## @dstfd
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not seek in target file \"%s\": %m"

	.comm	_dstpath,4,2                    ## @dstpath
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOSPC,8,3                     ## @ENOSPC
L_.str.1:                               ## @.str.1
	.asciz	"could not write file \"%s\": %m"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_target_range             ; -- Begin function write_target_range
	.p2align	2
_write_target_range:                    ; @write_target_range
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _fetch_done@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fetch_done@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x9, x9, x2
	str	x9, [x8]
	mov	w0, #0
	bl	_progress_report
Lloh2:
	adrp	x8, _dry_run@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dry_run@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh5:
	adrp	x23, _dstfd@GOTPAGE
Lloh6:
	ldr	x23, [x23, _dstfd@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh7:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_lseek
Lloh10:
	adrp	x24, _dstpath@GOTPAGE
Lloh11:
	ldr	x24, [x24, _dstpath@GOTPAGEOFF]
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	w1, [x24]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pg_fatal
LBB0_4:
	cmp	w19, #1
	b.lt	LBB0_1
; %bb.5:
Lloh14:
	adrp	x25, _errno@GOTPAGE
Lloh15:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
Lloh16:
	adrp	x26, _ENOSPC@GOTPAGE
Lloh17:
	ldr	x26, [x26, _ENOSPC@GOTPAGEOFF]
Lloh18:
	adrp	x21, l_.str.1@PAGE
Lloh19:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x24]
	mov	x0, x21
	bl	_pg_fatal
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x20, x20, w22, sxtw
	sub	w19, w19, w22
	cmp	w19, #0
	b.le	LBB0_1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x25]
	ldr	w0, [x23]
	mov	x1, x20
	mov	x2, x19
	bl	_write
	mov	x22, x0
	tbz	w0, #31, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x25]
	cbnz	x8, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x26]
	str	x8, [x25]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_fetch_done,8,3                 ; @fetch_done
	.comm	_dry_run,8,3                    ; @dry_run
	.comm	_dstfd,4,2                      ; @dstfd
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not seek in target file \"%s\": %m"

	.comm	_dstpath,4,2                    ; @dstpath
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOSPC,8,3                     ; @ENOSPC
l_.str.1:                               ; @.str.1
	.asciz	"could not write file \"%s\": %m"

.subsections_via_symbols
