	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lo_export                      ## -- Begin function lo_export
	.p2align	4, 0x90
_lo_export:                             ## @lo_export
	.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	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	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, %r13
	movq	_PG_STRERROR_R_BUFLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_INV_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_lo_open
	movl	$-1, %ebx
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.1:
	movl	%eax, %r14d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movq	_O_WRONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_TRUNC@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_PG_BINARY@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r15, %rdi
	movl	$438, %edx                      ## imm = 0x1B6
	callq	_open
	movq	%r15, %r12
	testl	%eax, %eax
	js	LBB0_16
## %bb.2:
	movl	%eax, %r15d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_LO_BUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_lo_read
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r12d
	movl	%r15d, %edi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_write
	cmpl	%r12d, %eax
	je	LBB0_3
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_lo_close
	movl	%r15d, %edi
	callq	_close
	leaq	L_.str.1(%rip), %rdi
	callq	_libpq_gettext
	movl	%eax, %r14d
	movl	%r12d, %edi
LBB0_12:
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_strerror_r
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_printfPQExpBuffer
	jmp	LBB0_13
LBB0_16:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_lo_close
	leaq	L_.str(%rip), %rdi
	callq	_libpq_gettext
	movl	%eax, %r14d
	movl	%r15d, %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_strerror_r
	movq	%rbx, %rdi
	movl	$-1, %ebx
	movl	%r14d, %esi
	movq	%r12, %rdx
	movl	%eax, %ecx
	callq	_printfPQExpBuffer
	jmp	LBB0_14
LBB0_6:
	js	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_lo_close
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movl	%r15d, %edi
	callq	_close
LBB0_13:
	movl	$-1, %ebx
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.15:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%r15d, %edi
	callq	_close
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	callq	_libpq_gettext
	movl	%eax, %r14d
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_12
LBB0_10:
	movl	$1, %ebx
	jmp	LBB0_14
LBB0_17:
	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	_INV_READ,4,2                   ## @INV_READ
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_PG_BINARY,4,2                  ## @PG_BINARY
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not open file \"%s\": %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"could not write to file \"%s\": %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lo_export                      ; -- Begin function lo_export
	.p2align	2
_lo_export:                             ; @lo_export
	.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, x2
	mov	x20, 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	x27, _LO_BUFSIZE@GOTPAGE
Lloh4:
	ldr	x27, [x27, _LO_BUFSIZE@GOTPAGEOFF]
	ldr	w8, [x27]
	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, _INV_READ@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INV_READ@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_lo_open
	cmn	w0, #1
	b.eq	LBB0_13
; %bb.1:
	mov	x24, x0
Lloh15:
	adrp	x8, _O_CREAT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _O_CREAT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _O_WRONLY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _O_WRONLY@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh21:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh22:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh24:
	adrp	x9, _PG_BINARY@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PG_BINARY@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	mov	w2, #438
	bl	_open
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x25, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x27]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x23
	bl	_lo_read
	mov	x26, x0
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	mov	x1, x23
	mov	x2, x26
	bl	_write
	cmp	w0, w26
	b.eq	LBB0_3
; %bb.5:
Lloh27:
	adrp	x8, _errno@GOTPAGE
Lloh28:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh29:
	ldr	w23, [x8]
	mov	x0, x20
	mov	x1, x24
	bl	_lo_close
	mov	x0, x25
	bl	_close
Lloh30:
	adrp	x0, l_.str.1@PAGE
Lloh31:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh32:
	adrp	x8, _errno@GOTPAGE
Lloh33:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh34:
	ldr	w23, [x8]
	mov	x0, x20
	mov	x1, x24
	bl	_lo_close
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	bl	_libpq_gettext
	mov	x24, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_strerror_r
	mov	x3, x0
	mov	x0, x20
	mov	x1, x24
LBB0_8:
	mov	x2, x19
	bl	_printfPQExpBuffer
	b	LBB0_12
LBB0_9:
	tbnz	w26, #31, LBB0_11
; %bb.10:
	mov	x0, x20
	mov	x1, x24
	bl	_lo_close
	cbz	x0, LBB0_15
LBB0_11:
	mov	x0, x25
	bl	_close
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldur	x8, [x29, #-88]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.14:
	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_15:
	mov	x0, x25
	bl	_close
	cbz	x0, LBB0_17
; %bb.16:
Lloh40:
	adrp	x0, l_.str.1@PAGE
Lloh41:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_libpq_gettext
	mov	x23, x0
Lloh42:
	adrp	x8, _errno@GOTPAGE
Lloh43:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	mov	x1, x22
	mov	x2, x21
	bl	_strerror_r
	mov	x3, x0
	mov	x0, x20
	mov	x1, x23
	b	LBB0_8
LBB0_17:
	mov	w0, #1
	b	LBB0_13
LBB0_18:
	bl	___stack_chk_fail
	.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 AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	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	_INV_READ,4,2                   ; @INV_READ
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_PG_BINARY,4,2                  ; @PG_BINARY
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not open file \"%s\": %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"could not write to file \"%s\": %s\n"

.subsections_via_symbols
