	.file	"extr_large_obj.c_do_lo_import.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"\\lo_import"
.LC1:
	.string	"%s"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"COMMENT ON LARGE OBJECT %u IS '"
	.section	.rodata.str1.1
.LC3:
	.string	"'"
.LC4:
	.string	"lo_import %u"
.LC5:
	.string	"%u"
.LC6:
	.string	"LASTOID"
	.text
	.p2align 4
	.globl	do_lo_import
	.type	do_lo_import, @function
do_lo_import:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 64
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	rsi, 12[rsp]
	call	start_lo_xact@PLT
	test	eax, eax
	jne	.L2
.L8:
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 56[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L19
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	eax, eax
	call	SetCancelConn@PLT
	mov	edi, DWORD PTR pset[rip+4]
	mov	rsi, rbp
	call	lo_import@PLT
	mov	r13, rax
	xor	eax, eax
	call	ResetCancelConn@PLT
	cmp	QWORD PTR InvalidOid[rip], r13
	je	.L20
	test	r12, r12
	je	.L5
	mov	rdi, r12
	call	strlen@PLT
	mov	esi, DWORD PTR MCXT_ALLOC_NO_OOM[rip]
	movsx	r14, eax
	lea	rdi, 256[r14+r14]
	call	pg_malloc_extended@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L17
	mov	rdx, r13
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	sprintf@PLT
	mov	rdi, rbp
	call	strlen@PLT
	xor	r8d, r8d
	mov	rcx, r14
	mov	rdx, r12
	movsx	rbx, eax
	mov	edi, DWORD PTR pset[rip+4]
	add	rbx, rbp
	mov	rsi, rbx
	call	PQescapeStringConn@PLT
	lea	rsi, .LC3[rip]
	movsx	rdi, eax
	add	rdi, rbx
	call	strcpy@PLT
	mov	rdi, rbp
	call	PSQLexec@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L21
	call	PQclear@PLT
	mov	rdi, rbp
	call	free@PLT
.L5:
	mov	esi, DWORD PTR 12[rsp]
	lea	rdi, .LC0[rip]
	call	finish_lo_xact@PLT
	test	eax, eax
	je	.L8
	mov	rsi, r13
	lea	rdi, .LC4[rip]
	lea	r12, 16[rsp]
	call	print_lo_result@PLT
	mov	rdx, r13
	lea	rsi, .LC5[rip]
	mov	rdi, r12
	call	sprintf@PLT
	mov	edi, DWORD PTR pset[rip]
	mov	rdx, r12
	lea	rsi, .LC6[rip]
	call	SetVariable@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, rbp
	call	free@PLT
.L17:
	mov	esi, DWORD PTR 12[rsp]
	lea	rdi, .LC0[rip]
	call	fail_lo_xact@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, DWORD PTR pset[rip+4]
	call	PQerrorMessage@PLT
	lea	rdi, .LC1[rip]
	mov	esi, eax
	call	pg_log_info@PLT
	mov	esi, DWORD PTR 12[rsp]
	lea	rdi, .LC0[rip]
	call	fail_lo_xact@PLT
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	do_lo_import, .-do_lo_import
	.comm	pset,8,8
	.comm	MCXT_ALLOC_NO_OOM,4,4
	.comm	InvalidOid,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_large_obj.c_do_lo_import.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\\lo_import\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"COMMENT ON LARGE OBJECT %u IS '\000"
	.align	2
.LC3:
	.ascii	"'\000"
	.align	2
.LC4:
	.ascii	"lo_import %u\000"
	.align	2
.LC5:
	.ascii	"%u\000"
	.align	2
.LC6:
	.ascii	"LASTOID\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	do_lo_import
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_lo_import, %function
do_lo_import:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L22
	sub	sp, sp, #52
	mov	r4, r0
	mov	r6, r1
	ldr	r0, .L22+4
	add	r1, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	bl	start_lo_xact
	cmp	r0, #0
	bne	.L2
.L8:
	mov	r0, #0
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L2:
	ldr	r7, .L22+8
	bl	SetCancelConn
	mov	r1, r4
	ldr	r0, [r7, #4]
	bl	lo_import
	mov	r4, r0
	bl	ResetCancelConn
	ldr	r3, .L22+12
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L20
	cmp	r6, #0
	beq	.L5
	mov	r0, r6
	bl	strlen
	ldr	r3, .L22+16
	mov	r9, r0
	add	r0, r0, #128
	ldr	r1, [r3]
	lsl	r0, r0, #1
	bl	pg_malloc_extended
	subs	r5, r0, #0
	beq	.L17
	mov	r2, r4
	ldr	r1, .L22+20
	bl	sprintf
	mov	r0, r5
	bl	strlen
	mov	ip, #0
	add	r8, r5, r0
	mov	r3, r9
	str	ip, [sp]
	mov	r2, r6
	mov	r1, r8
	ldr	r0, [r7, #4]
	bl	PQescapeStringConn
	mov	r2, #2
	ldr	r1, .L22+24
	add	r0, r8, r0
	bl	memcpy
	mov	r0, r5
	bl	PSQLexec
	cmp	r0, #0
	beq	.L21
	bl	PQclear
	mov	r0, r5
	bl	free
.L5:
	ldr	r1, [sp, #8]
	ldr	r0, .L22+4
	bl	finish_lo_xact
	cmp	r0, #0
	beq	.L8
	mov	r1, r4
	ldr	r0, .L22+28
	bl	print_lo_result
	mov	r2, r4
	ldr	r1, .L22+32
	add	r0, sp, #12
	bl	sprintf
	ldr	r0, [r7]
	ldr	r1, .L22+36
	add	r2, sp, #12
	bl	SetVariable
	mov	r0, #1
	b	.L1
.L21:
	mov	r0, r5
	bl	free
.L17:
	ldr	r1, [sp, #8]
	ldr	r0, .L22+4
	bl	fail_lo_xact
	b	.L1
.L20:
	ldr	r0, [r7, #4]
	bl	PQerrorMessage
	mov	r1, r0
	ldr	r0, .L22+40
	bl	pg_log_info
	ldr	r1, [sp, #8]
	ldr	r0, .L22+4
	bl	fail_lo_xact
	b	.L1
.L19:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC7
	.word	.LC0
	.word	pset
	.word	InvalidOid
	.word	MCXT_ALLOC_NO_OOM
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC1
	.size	do_lo_import, .-do_lo_import
	.comm	pset,8,4
	.comm	MCXT_ALLOC_NO_OOM,4,4
	.comm	InvalidOid,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
