	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lo_import_internal
_lo_import_internal:                    ## @lo_import_internal
	.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	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_LO_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_PG_STRERROR_R_BUFLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_PG_BINARY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r14, %rdi
	movl	$438, %edx                      ## imm = 0x1B6
	callq	_open
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movl	%eax, %r12d
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rsi, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	_INV_READ@GOTPCREL(%rip), %rax
	movq	_INV_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rdx, %r13
	movq	%rdx, %rdi
	callq	_lo_creat
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_libpq_gettext
	movl	%eax, %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_strerror_r
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r14, %rdx
LBB0_2:
	movl	%eax, %ecx
	callq	_printfPQExpBuffer
LBB0_16:
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_17
LBB0_5:
	movq	%rdx, %r13
	movq	%rdx, %rdi
	callq	_lo_create
LBB0_6:
	movq	_InvalidOid@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	je	LBB0_7
## %bb.8:
	movq	_INV_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r13, %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	_lo_open
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.9:
	movl	%eax, %r15d
	movq	%r13, %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_LO_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_read
	testl	%eax, %eax
	jle	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %r13d
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_lo_write
	cmpl	%r13d, %eax
	je	LBB0_10
## %bb.12:
	movl	%r12d, %edi
	callq	_close
	jmp	LBB0_16
LBB0_7:
	movl	%r12d, %edi
	callq	_close
	movq	(%r14), %rax
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	js	LBB0_14
## %bb.15:
	movl	%r12d, %edi
	callq	_close
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_lo_close
	testq	%rax, %rax
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_16
	jmp	LBB0_17
LBB0_14:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_lo_close
	movl	%r12d, %edi
	callq	_close
	leaq	L_.str.1(%rip), %rdi
	callq	_libpq_gettext
	movl	%eax, %ebx
	movl	%r13d, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_strerror_r
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_2
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_LO_BUFSIZE,4,2                 ## @LO_BUFSIZE
	.comm	_PG_STRERROR_R_BUFLEN,4,2       ## @PG_STRERROR_R_BUFLEN
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_PG_BINARY,4,2                  ## @PG_BINARY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not open file \"%s\": %s\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_InvalidOid,8,3                 ## @InvalidOid
	.comm	_INV_READ,4,2                   ## @INV_READ
	.comm	_INV_WRITE,4,2                  ## @INV_WRITE
L_.str.1:                               ## @.str.1
	.asciz	"could not read from file \"%s\": %s\n"

	.no_dead_strip	_lo_import_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lo_import_internal
_lo_import_internal:                    ; @lo_import_internal
	.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	x25, x2
	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]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x28, _LO_BUFSIZE@GOTPAGE
Lloh4:
	ldr	x28, [x28, _LO_BUFSIZE@GOTPAGEOFF]
	ldr	w8, [x28]
	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	x23, x9, x8
	mov	sp, x23
Lloh7:
	adrp	x8, _PG_STRERROR_R_BUFLEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PG_STRERROR_R_BUFLEN@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
	mov	x9, x21
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
Lloh12:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _PG_BINARY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PG_BINARY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x20
	mov	w2, #438
	bl	_open
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x24, x0
Lloh18:
	adrp	x27, _InvalidOid@GOTPAGE
Lloh19:
	ldr	x27, [x27, _InvalidOid@GOTPAGEOFF]
	ldr	x8, [x27]
Lloh20:
	adrp	x26, _INV_WRITE@GOTPAGE
Lloh21:
	ldr	x26, [x26, _INV_WRITE@GOTPAGEOFF]
	cmp	x8, x25
	b.ne	LBB0_6
; %bb.2:
Lloh22:
	adrp	x8, _INV_READ@GOTPAGE
Lloh23:
	ldr	x8, [x8, _INV_READ@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x26]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_lo_creat
	b	LBB0_7
LBB0_3:
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_libpq_gettext
	mov	x23, x0
Lloh27:
	adrp	x8, _errno@GOTPAGE
Lloh28:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, x21
	bl	_strerror_r
	mov	x3, x0
	mov	x0, x19
	mov	x1, x23
LBB0_4:
	mov	x2, x20
	bl	_printfPQExpBuffer
LBB0_5:
Lloh30:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh31:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh32:
	ldr	x0, [x8]
	b	LBB0_14
LBB0_6:
	mov	x0, x19
	mov	x1, x25
	bl	_lo_create
LBB0_7:
	mov	x25, x0
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_13
; %bb.8:
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x25
	bl	_lo_open
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.9:
	mov	x26, x0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x28]
	mov	x0, x24
	mov	x1, x23
	bl	_read
	mov	x27, x0
	cmp	w0, #1
	b.lt	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	mov	x1, x26
	mov	x2, x23
	mov	x3, x27
	bl	_lo_write
	cmp	w0, w27
	b.eq	LBB0_10
; %bb.12:
	mov	x0, x24
	bl	_close
	b	LBB0_5
LBB0_13:
	mov	x0, x24
	bl	_close
	ldr	x0, [x27]
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.15:
	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_16:
	tbnz	w27, #31, LBB0_18
; %bb.17:
	mov	x0, x24
	bl	_close
	mov	x0, x19
	mov	x1, x26
	bl	_lo_close
Lloh36:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh37:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x0, x25, x8, eq
	b	LBB0_14
LBB0_18:
Lloh39:
	adrp	x8, _errno@GOTPAGE
Lloh40:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh41:
	ldr	w23, [x8]
	mov	x0, x19
	mov	x1, x26
	bl	_lo_close
	mov	x0, x24
	bl	_close
Lloh42:
	adrp	x0, l_.str.1@PAGE
Lloh43:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_libpq_gettext
	mov	x24, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_strerror_r
	mov	x3, x0
	mov	x0, x19
	mov	x1, x24
	b	LBB0_4
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_LO_BUFSIZE,4,2                 ; @LO_BUFSIZE
	.comm	_PG_STRERROR_R_BUFLEN,4,2       ; @PG_STRERROR_R_BUFLEN
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_PG_BINARY,4,2                  ; @PG_BINARY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not open file \"%s\": %s\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_InvalidOid,8,3                 ; @InvalidOid
	.comm	_INV_READ,4,2                   ; @INV_READ
	.comm	_INV_WRITE,4,2                  ; @INV_WRITE
l_.str.1:                               ; @.str.1
	.asciz	"could not read from file \"%s\": %s\n"

	.no_dead_strip	_lo_import_internal
.subsections_via_symbols
