	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StartRestoreBlob               ## -- Begin function StartRestoreBlob
	.p2align	4, 0x90
_StartRestoreBlob:                      ## @StartRestoreBlob
	.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
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	_K_VERS_1_12@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	incl	32(%rdi)
	movq	$0, 24(%rdi)
	leaq	L_.str(%rip), %rdi
	callq	_pg_log_info
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.1:
	cmpq	%r13, %r12
	jge	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_DropBlobIfExists
LBB0_3:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.4:
	cmpq	%r13, %r12
	jge	LBB0_8
## %bb.5:
	movq	%r14, %rsi
	callq	_lo_create
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	cmpq	%r14, %rax
	je	LBB0_8
LBB0_7:
	movq	16(%rbx), %rdi
	callq	_PQerrorMessage
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_fatal
LBB0_8:
	movq	16(%rbx), %rdi
	movq	_INV_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_lo_open
	movl	%eax, 8(%rbx)
	cmpl	$-1, %eax
	jne	LBB0_14
## %bb.9:
	movq	16(%rbx), %rdi
	callq	_PQerrorMessage
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_fatal
	jmp	LBB0_14
LBB0_10:
	movq	_INV_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpq	%r13, %r12
	jge	LBB0_12
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.4(%rip), %rsi
LBB0_13:
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_ahprintf
LBB0_14:
	movl	$1, 12(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_K_VERS_1_12,8,3                ## @K_VERS_1_12
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"restoring large object with OID %u"

L_.str.1:                               ## @.str.1
	.asciz	"could not create large object %u: %s"

	.comm	_INV_WRITE,4,2                  ## @INV_WRITE
L_.str.2:                               ## @.str.2
	.asciz	"could not open large object %u: %s"

L_.str.3:                               ## @.str.3
	.asciz	"SELECT pg_catalog.lo_open(pg_catalog.lo_create('%u'), %d);\n"

L_.str.4:                               ## @.str.4
	.asciz	"SELECT pg_catalog.lo_open('%u', %d);\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_StartRestoreBlob               ; -- Begin function StartRestoreBlob
	.p2align	2
_StartRestoreBlob:                      ; @StartRestoreBlob
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _K_VERS_1_12@GOTPAGE
Lloh1:
	ldr	x8, [x8, _K_VERS_1_12@GOTPAGEOFF]
	ldr	x22, [x0]
Lloh2:
	ldr	x23, [x8]
	ldr	w8, [x0, #32]
	add	w8, w8, #1
	str	w8, [x0, #32]
	str	xzr, [x0, #24]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pg_log_info
	cbz	w21, LBB0_3
; %bb.1:
	cmp	x22, x23
	b.ge	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_DropBlobIfExists
LBB0_3:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_10
; %bb.4:
	cmp	x22, x23
	b.ge	LBB0_8
; %bb.5:
	mov	x1, x20
	bl	_lo_create
	cbz	x0, LBB0_7
; %bb.6:
	cmp	x0, x20
	b.eq	LBB0_8
LBB0_7:
	ldr	x0, [x19, #16]
	bl	_PQerrorMessage
	mov	x2, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_fatal
LBB0_8:
	ldr	x0, [x19, #16]
Lloh7:
	adrp	x8, _INV_WRITE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INV_WRITE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_lo_open
	str	w0, [x19, #8]
	cmn	w0, #1
	b.ne	LBB0_14
; %bb.9:
	ldr	x0, [x19, #16]
	bl	_PQerrorMessage
	mov	x2, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_fatal
	b	LBB0_14
LBB0_10:
Lloh12:
	adrp	x8, _INV_WRITE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INV_WRITE@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	cmp	x22, x23
	b.ge	LBB0_12
; %bb.11:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_13:
	mov	x0, x19
	mov	x2, x20
	bl	_ahprintf
LBB0_14:
	mov	w8, #1
	str	w8, [x19, #12]
	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
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_K_VERS_1_12,8,3                ; @K_VERS_1_12
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"restoring large object with OID %u"

l_.str.1:                               ; @.str.1
	.asciz	"could not create large object %u: %s"

	.comm	_INV_WRITE,4,2                  ; @INV_WRITE
l_.str.2:                               ; @.str.2
	.asciz	"could not open large object %u: %s"

l_.str.3:                               ; @.str.3
	.asciz	"SELECT pg_catalog.lo_open(pg_catalog.lo_create('%u'), %d);\n"

l_.str.4:                               ; @.str.4
	.asciz	"SELECT pg_catalog.lo_open('%u', %d);\n"

.subsections_via_symbols
