	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dumpBlobs
_dumpBlobs:                             ## @dumpBlobs
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_GetConnection
	movq	%rax, %r15
	movq	_LOBBUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_pg_log_info
	cmpl	$90000, (%r14)                  ## imm = 0x15F90
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rsi
	cmovgeq	%rax, %rsi
	movq	%r14, %rdi
	callq	_ExecuteSqlStatement
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_PQclear
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_11
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_6 Depth 3
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_ExecuteSqlQuery
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_PQntuples
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_13
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%r15, %rdi
	callq	_PQerrorMessage
	leaq	L_.str.5(%rip), %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	_fatal
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_WriteData
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_lo_close
	movq	%r14, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_EndBlob
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	incl	%esi
	cmpl	-52(%rbp), %esi                 ## 4-byte Folded Reload
	je	LBB0_10
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_6 Depth 3
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	xorl	%edx, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_atooid
	movl	%eax, %r13d
	movq	_INV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_lo_open
	movl	%eax, %r12d
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%r15, %rdi
	callq	_PQerrorMessage
	leaq	L_.str.4(%rip), %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_fatal
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movl	%r13d, %esi
	callq	_StartBlob
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	_LOBBUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	_lo_read
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=3
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_WriteData
	testl	%r13d, %r13d
	jne	LBB0_6
	jmp	LBB0_9
LBB0_13:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_PQclear
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.12:
	movl	$1, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LOBBUFSIZE,4,2                 ## @LOBBUFSIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"saving large objects"

L_.str.1:                               ## @.str.1
	.asciz	"DECLARE bloboid CURSOR FOR SELECT oid FROM pg_largeobject_metadata ORDER BY 1"

L_.str.2:                               ## @.str.2
	.asciz	"DECLARE bloboid CURSOR FOR SELECT DISTINCT loid FROM pg_largeobject ORDER BY 1"

L_.str.3:                               ## @.str.3
	.asciz	"FETCH 1000 IN bloboid"

	.comm	_PGRES_TUPLES_OK,4,2            ## @PGRES_TUPLES_OK
	.comm	_INV_READ,4,2                   ## @INV_READ
L_.str.4:                               ## @.str.4
	.asciz	"could not open large object %u: %s"

L_.str.5:                               ## @.str.5
	.asciz	"error reading large object %u: %s"

	.no_dead_strip	_dumpBlobs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dumpBlobs
_dumpBlobs:                             ; @dumpBlobs
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_GetConnection
	mov	x20, x0
Lloh3:
	adrp	x24, _LOBBUFSIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _LOBBUFSIZE@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pg_log_info
Lloh9:
	adrp	x8, l_.str.2@PAGE
Lloh10:
	add	x8, x8, l_.str.2@PAGEOFF
	ldr	w9, [x19]
Lloh11:
	adrp	x10, l_.str.1@PAGE
Lloh12:
	add	x10, x10, l_.str.1@PAGEOFF
	mov	w11, #24463
	movk	w11, #1, lsl #16
	cmp	w9, w11
	csel	x1, x10, x8, gt
	mov	x0, x19
	bl	_ExecuteSqlStatement
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x25
	bl	_PQclear
	cmp	w26, #0
	b.le	LBB0_12
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;       Child Loop BB0_9 Depth 3
Lloh13:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_ExecuteSqlQuery
	mov	x25, x0
	bl	_PQntuples
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x26, x0
	mov	w27, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x20
	bl	_PQerrorMessage
	mov	x2, x0
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x28
	bl	_fatal
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_WriteData
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x20
	mov	x1, x22
	bl	_lo_close
	mov	x0, x19
	mov	x1, x28
	bl	_EndBlob
	add	w27, w27, #1
	cmp	w27, w26
	b.eq	LBB0_1
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_9 Depth 3
	mov	x0, x25
	mov	x1, x27
	mov	w2, #0
	bl	_PQgetvalue
	bl	_atooid
	mov	x28, x0
Lloh20:
	adrp	x8, _INV_READ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _INV_READ@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x28
	bl	_lo_open
	mov	x22, x0
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x20
	bl	_PQerrorMessage
	mov	x2, x0
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x28
	bl	_fatal
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x19
	mov	x1, x28
	bl	_StartBlob
LBB0_9:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_6 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w3, [x24]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_lo_read
	mov	x23, x0
	tbnz	w0, #31, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=3
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	bl	_WriteData
	cbnz	w23, LBB0_9
	b	LBB0_5
LBB0_11:
	mov	x0, x25
	bl	_PQclear
LBB0_12:
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	w0, #1
	sub	sp, x29, #80
	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
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_LOBBUFSIZE,4,2                 ; @LOBBUFSIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"saving large objects"

l_.str.1:                               ; @.str.1
	.asciz	"DECLARE bloboid CURSOR FOR SELECT oid FROM pg_largeobject_metadata ORDER BY 1"

l_.str.2:                               ; @.str.2
	.asciz	"DECLARE bloboid CURSOR FOR SELECT DISTINCT loid FROM pg_largeobject ORDER BY 1"

l_.str.3:                               ; @.str.3
	.asciz	"FETCH 1000 IN bloboid"

	.comm	_PGRES_TUPLES_OK,4,2            ; @PGRES_TUPLES_OK
	.comm	_INV_READ,4,2                   ; @INV_READ
l_.str.4:                               ; @.str.4
	.asciz	"could not open large object %u: %s"

l_.str.5:                               ; @.str.5
	.asciz	"error reading large object %u: %s"

	.no_dead_strip	_dumpBlobs
.subsections_via_symbols
