	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libpq_executeFileMap           ## -- Begin function libpq_executeFileMap
	.p2align	4, 0x90
_libpq_executeFileMap:                  ## @libpq_executeFileMap
	.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	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_run_simple_command
	movq	_conn@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_PQexec
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	_PGRES_COPY_IN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_PQresultErrorMessage
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_pg_fatal
LBB0_2:
	movq	%rbx, %rdi
	callq	_PQclear
	cmpl	$0, (%r14)
	jle	LBB0_12
## %bb.3:
	xorl	%r12d, %r12d
	leaq	LJTI0_0(%rip), %r13
	jmp	LBB0_4
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_create_target
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jge	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%r12,8), %rbx
	leaq	16(%rbx), %rdi
	movl	12(%rbx), %esi
	callq	_execute_pagemap
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movslq	(%r13,%rax,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rbx), %esi
	movl	12(%rbx), %edi
	callq	_truncate_target_file
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_remove_target
	jmp	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	12(%rbx), %edi
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	callq	_fetch_file_range
	jmp	LBB0_11
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	12(%rbx), %edi
	movl	$1, %esi
	callq	_open_target_file
	movl	4(%rbx), %edx
	movl	12(%rbx), %edi
	xorl	%esi, %esi
	callq	_fetch_file_range
	jmp	LBB0_11
LBB0_12:
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_PQputCopyEnd
	cmpl	$1, %eax
	je	LBB0_14
## %bb.13:
	movl	(%r15), %edi
	callq	_PQerrorMessage
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	callq	_pg_fatal
LBB0_14:
	movl	(%r15), %edi
	callq	_PQgetResult
	testq	%rax, %rax
	je	LBB0_19
## %bb.15:
	movq	%rax, %rbx
	movq	_PGRES_COMMAND_OK@GOTPCREL(%rip), %r12
	leaq	L_.str.4(%rip), %r14
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%rbx, %rdi
	callq	_PQclear
	movl	(%r15), %edi
	callq	_PQgetResult
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_PQresultStatus
	cmpq	(%r12), %rax
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rbx, %rdi
	callq	_PQresultErrorMessage
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_pg_fatal
	jmp	LBB0_18
LBB0_19:
	leaq	L_.str.5(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_receiveFileChunks              ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_8
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CREATE TEMPORARY TABLE fetchchunks(path text, begin int8, len int4);"

L_.str.1:                               ## @.str.1
	.asciz	"COPY fetchchunks FROM STDIN"

	.comm	_conn,4,2                       ## @conn
	.comm	_PGRES_COPY_IN,8,3              ## @PGRES_COPY_IN
L_.str.2:                               ## @.str.2
	.asciz	"could not send file list: %s"

L_.str.3:                               ## @.str.3
	.asciz	"could not send end-of-COPY: %s"

	.comm	_PGRES_COMMAND_OK,8,3           ## @PGRES_COMMAND_OK
L_.str.4:                               ## @.str.4
	.asciz	"unexpected result while sending file list: %s"

L_.str.5:                               ## @.str.5
	.asciz	"SELECT path, begin,\n  pg_read_binary_file(path, begin, len, true) AS chunk\nFROM fetchchunks\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_libpq_executeFileMap           ; -- Begin function libpq_executeFileMap
	.p2align	2
_libpq_executeFileMap:                  ; @libpq_executeFileMap
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_run_simple_command
Lloh2:
	adrp	x21, _conn@GOTPAGE
Lloh3:
	ldr	x21, [x21, _conn@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_PQexec
	mov	x20, x0
	bl	_PQresultStatus
Lloh6:
	adrp	x8, _PGRES_COPY_IN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PGRES_COPY_IN@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_PQresultErrorMessage
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pg_fatal
LBB0_2:
	mov	x0, x20
	bl	_PQclear
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.3:
	mov	x22, #0
Lloh11:
	adrp	x23, lJTI0_0@PAGE
Lloh12:
	add	x23, x23, lJTI0_0@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_create_target
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	cmp	x22, x8
	b.ge	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x20, [x8, x22, lsl #3]
	add	x0, x20, #16
	ldr	w1, [x20, #12]
	bl	_execute_pagemap
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	adr	x9, LBB0_4
	ldrb	w10, [x23, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x20, #12]
	ldr	w1, [x20, #4]
	bl	_truncate_target_file
	b	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_remove_target
	b	LBB0_5
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	w1, w0, [x20, #8]
	ldr	w2, [x20, #4]
	bl	_fetch_file_range
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x20, #12]
	mov	w1, #1
	bl	_open_target_file
	ldr	w0, [x20, #12]
	ldr	w2, [x20, #4]
	mov	w1, #0
	bl	_fetch_file_range
	b	LBB0_5
LBB0_12:
	ldr	w0, [x21]
	mov	x1, #0
	bl	_PQputCopyEnd
	cmp	w0, #1
	b.eq	LBB0_14
; %bb.13:
	ldr	w0, [x21]
	bl	_PQerrorMessage
	mov	x1, x0
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pg_fatal
LBB0_14:
	ldr	w0, [x21]
	bl	_PQgetResult
	cbz	x0, LBB0_19
; %bb.15:
	mov	x20, x0
Lloh15:
	adrp	x22, _PGRES_COMMAND_OK@GOTPAGE
Lloh16:
	ldr	x22, [x22, _PGRES_COMMAND_OK@GOTPAGEOFF]
Lloh17:
	adrp	x19, l_.str.4@PAGE
Lloh18:
	add	x19, x19, l_.str.4@PAGEOFF
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	bl	_PQclear
	ldr	w0, [x21]
	bl	_PQgetResult
	mov	x20, x0
	cbz	x0, LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_PQresultStatus
	ldr	x8, [x22]
	cmp	x0, x8
	b.eq	LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x0, x20
	bl	_PQresultErrorMessage
	mov	x1, x0
	mov	x0, x19
	bl	_pg_fatal
	b	LBB0_16
LBB0_19:
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_receiveFileChunks
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CREATE TEMPORARY TABLE fetchchunks(path text, begin int8, len int4);"

l_.str.1:                               ; @.str.1
	.asciz	"COPY fetchchunks FROM STDIN"

	.comm	_conn,4,2                       ; @conn
	.comm	_PGRES_COPY_IN,8,3              ; @PGRES_COPY_IN
l_.str.2:                               ; @.str.2
	.asciz	"could not send file list: %s"

l_.str.3:                               ; @.str.3
	.asciz	"could not send end-of-COPY: %s"

	.comm	_PGRES_COMMAND_OK,8,3           ; @PGRES_COMMAND_OK
l_.str.4:                               ; @.str.4
	.asciz	"unexpected result while sending file list: %s"

l_.str.5:                               ; @.str.5
	.asciz	"SELECT path, begin,\n  pg_read_binary_file(path, begin, len, true) AS chunk\nFROM fetchchunks\n"

.subsections_via_symbols
