	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_lo_import                   ## -- Begin function do_lo_import
	.p2align	4, 0x90
_do_lo_import:                          ## @do_lo_import
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	leaq	-84(%rbp), %rsi
	callq	_start_lo_xact
	testl	%eax, %eax
	je	LBB0_11
## %bb.1:
	xorl	%eax, %eax
	callq	_SetCancelConn
	movq	_pset@GOTPCREL(%rip), %r15
	movl	4(%r15), %edi
	movq	%rbx, %rsi
	callq	_lo_import
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_ResetCancelConn
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_5
## %bb.2:
	movl	4(%r15), %edi
	callq	_PQerrorMessage
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pg_log_info
LBB0_3:
	movl	-84(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_fail_lo_xact
	jmp	LBB0_12
LBB0_5:
	testq	%r13, %r13
	je	LBB0_9
## %bb.6:
	movq	%r13, %rdi
	callq	_strlen
	movslq	%eax, %r12
	leaq	(%r12,%r12), %rdi
	addq	$256, %rdi                      ## imm = 0x100
	movq	_MCXT_ALLOC_NO_OOM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pg_malloc_extended
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	movq	%rax, %r15
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdi
	movq	%r14, %rdx
	callq	_sprintf
	movq	%r15, %rdi
	callq	_strlen
	movslq	%eax, %rbx
	addq	%r15, %rbx
	movq	_pset@GOTPCREL(%rip), %rax
	movl	4(%rax), %edi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	callq	_PQescapeStringConn
	movslq	%eax, %rdi
	addq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcpy
	movq	%r15, %rdi
	callq	_PSQLexec
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	movq	%rax, %rdi
	callq	_PQclear
	movq	%r15, %rdi
	callq	_free
	movq	_pset@GOTPCREL(%rip), %r15
LBB0_9:
	movl	-84(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_finish_lo_xact
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rdi
	movq	%r14, %rsi
	callq	_print_lo_result
	leaq	L_.str.5(%rip), %rsi
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_sprintf
	movl	(%r15), %edi
	leaq	L_.str.6(%rip), %rsi
	movq	%rbx, %rdx
	callq	_SetVariable
	movl	$1, %eax
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_3
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\\lo_import"

	.comm	_pset,8,2                       ## @pset
	.comm	_InvalidOid,8,3                 ## @InvalidOid
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_MCXT_ALLOC_NO_OOM,4,2          ## @MCXT_ALLOC_NO_OOM
L_.str.2:                               ## @.str.2
	.asciz	"COMMENT ON LARGE OBJECT %u IS '"

L_.str.3:                               ## @.str.3
	.asciz	"'"

L_.str.4:                               ## @.str.4
	.asciz	"lo_import %u"

L_.str.5:                               ## @.str.5
	.asciz	"%u"

L_.str.6:                               ## @.str.6
	.asciz	"LASTOID"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_lo_import                   ; -- Begin function do_lo_import
	.p2align	2
_do_lo_import:                          ; @do_lo_import
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #4
	bl	_start_lo_xact
	cbz	w0, LBB0_10
; %bb.1:
	bl	_SetCancelConn
Lloh5:
	adrp	x24, _pset@GOTPAGE
Lloh6:
	ldr	x24, [x24, _pset@GOTPAGEOFF]
	ldr	w0, [x24, #4]
	mov	x1, x19
	bl	_lo_import
	mov	x19, x0
	bl	_ResetCancelConn
Lloh7:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh8:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x19, x8
	b.ne	LBB0_4
; %bb.2:
	ldr	w0, [x24, #4]
	bl	_PQerrorMessage
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pg_log_info
LBB0_3:
	ldr	w1, [sp, #4]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fail_lo_xact
	b	LBB0_10
LBB0_4:
	cbz	x20, LBB0_8
; %bb.5:
	mov	x0, x20
	bl	_strlen
	mov	x22, x0
	sbfiz	x8, x22, #1, #32
	add	x0, x8, #256
Lloh14:
	adrp	x8, _MCXT_ALLOC_NO_OOM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MCXT_ALLOC_NO_OOM@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_pg_malloc_extended
	cbz	x0, LBB0_3
; %bb.6:
	mov	x21, x0
	sxtw	x22, w22
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_sprintf
	mov	x0, x21
	bl	_strlen
	add	x23, x21, w0, sxtw
	ldr	w0, [x24, #4]
	mov	x1, x23
	mov	x2, x20
	mov	x3, x22
	mov	x4, #0
	bl	_PQescapeStringConn
	add	x0, x23, w0, sxtw
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcpy
	mov	x0, x21
	bl	_PSQLexec
	cbz	x0, LBB0_12
; %bb.7:
	bl	_PQclear
	mov	x0, x21
	bl	_free
LBB0_8:
	ldr	w1, [sp, #4]
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_finish_lo_xact
	cbz	w0, LBB0_10
; %bb.9:
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_print_lo_result
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x0, sp, #8
	mov	x2, x19
	bl	_sprintf
	ldr	w0, [x24]
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x2, sp, #8
	bl	_SetVariable
	mov	w0, #1
LBB0_10:
	ldr	x8, [sp, #40]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.11:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_12:
	mov	x0, x21
	bl	_free
	b	LBB0_3
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\\lo_import"

	.comm	_pset,8,2                       ; @pset
	.comm	_InvalidOid,8,3                 ; @InvalidOid
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_MCXT_ALLOC_NO_OOM,4,2          ; @MCXT_ALLOC_NO_OOM
l_.str.2:                               ; @.str.2
	.asciz	"COMMENT ON LARGE OBJECT %u IS '"

l_.str.3:                               ; @.str.3
	.asciz	"'"

l_.str.4:                               ; @.str.4
	.asciz	"lo_import %u"

l_.str.5:                               ; @.str.5
	.asciz	"%u"

l_.str.6:                               ; @.str.6
	.asciz	"LASTOID"

.subsections_via_symbols
