	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qtext_load_file
_qtext_load_file:                       ## @qtext_load_file
	.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
	movq	%rdi, %r15
	movq	_PGSS_TEXT_FILE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_PG_BINARY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_OpenTransientFile
	testl	%eax, %eax
	js	LBB0_1
## %bb.4:
	movl	%eax, %ebx
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	(%r13), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	jmp	LBB0_6
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_7:
	movq	-48(%rbp), %r12
	movq	_MaxAllocHugeSize@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jg	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r14
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	%ebx, %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_read
	cmpq	%r12, %rax
	jne	LBB0_11
## %bb.14:
	movl	%ebx, %edi
	callq	_CloseTransientFile
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	(%r13), %esi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_16:
	movq	%r12, (%r15)
	jmp	LBB0_17
LBB0_3:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
	jmp	LBB0_17
LBB0_9:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ERRCODE_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_errmsg
	movl	(%r13), %esi
	leaq	L_.str.3(%rip), %rdi
	callq	_errdetail
LBB0_6:
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
	movl	%ebx, %edi
	callq	_CloseTransientFile
LBB0_17:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_errno@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_13:
	movq	%r14, %rdi
	callq	_free
	movl	%ebx, %edi
	callq	_CloseTransientFile
	xorl	%r14d, %r14d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_PGSS_TEXT_FILE,4,2             ## @PGSS_TEXT_FILE
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_PG_BINARY,4,2                  ## @PG_BINARY
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOENT,8,3                     ## @ENOENT
	.comm	_LOG,4,2                        ## @LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not read file \"%s\": %m"

L_.str.1:                               ## @.str.1
	.asciz	"could not stat file \"%s\": %m"

	.comm	_MaxAllocHugeSize,8,3           ## @MaxAllocHugeSize
	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ## @ERRCODE_OUT_OF_MEMORY
L_.str.2:                               ## @.str.2
	.asciz	"out of memory"

L_.str.3:                               ## @.str.3
	.asciz	"Could not allocate enough memory to read file \"%s\"."

L_.str.4:                               ## @.str.4
	.asciz	"could not close file \"%s\": %m"

	.no_dead_strip	_qtext_load_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qtext_load_file
_qtext_load_file:                       ; @qtext_load_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x0
Lloh0:
	adrp	x23, _PGSS_TEXT_FILE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _PGSS_TEXT_FILE@GOTPAGEOFF]
Lloh2:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _PG_BINARY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PG_BINARY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_OpenTransientFile
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x1, sp, #8
	bl	_fstat
	cbz	x0, LBB0_5
; %bb.2:
Lloh8:
	adrp	x8, _LOG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
	bl	_errcode_for_file_access
	ldr	w8, [x23]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	b	LBB0_12
LBB0_3:
Lloh13:
	adrp	x8, _errno@GOTPAGE
Lloh14:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _ENOENT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.4:
Lloh19:
	adrp	x8, _LOG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh21:
	ldr	w19, [x8]
	bl	_errcode_for_file_access
	ldr	w8, [x23]
	str	x8, [sp]
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
	b	LBB0_14
LBB0_5:
	ldr	x22, [sp, #8]
Lloh24:
	adrp	x8, _MaxAllocHugeSize@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MaxAllocHugeSize@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x22, x8
	b.gt	LBB0_11
; %bb.6:
	mov	x0, x22
	bl	_malloc
	cbz	x0, LBB0_11
; %bb.7:
	mov	x20, x0
Lloh27:
	adrp	x24, _errno@GOTPAGE
Lloh28:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	str	xzr, [x24]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_read
	cmp	x0, x22
	b.ne	LBB0_16
; %bb.8:
	mov	x0, x19
	bl	_CloseTransientFile
	cbz	x0, LBB0_10
; %bb.9:
Lloh29:
	adrp	x8, _LOG@GOTPAGE
Lloh30:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh31:
	ldr	w19, [x8]
	bl	_errcode_for_file_access
	ldr	w8, [x23]
	str	x8, [sp]
Lloh32:
	adrp	x0, l_.str.4@PAGE
Lloh33:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x19
	bl	_ereport
LBB0_10:
	str	x22, [x21]
	b	LBB0_15
LBB0_11:
Lloh34:
	adrp	x8, _LOG@GOTPAGE
Lloh35:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh36:
	ldr	w20, [x8]
Lloh37:
	adrp	x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ERRCODE_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_errcode
Lloh40:
	adrp	x0, l_.str.2@PAGE
Lloh41:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	ldr	w1, [x23]
Lloh42:
	adrp	x0, l_.str.3@PAGE
Lloh43:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errdetail
LBB0_12:
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_13:
	mov	x0, x19
	bl	_CloseTransientFile
LBB0_14:
	mov	x20, #0
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_16:
	ldr	x8, [x24]
	cbz	x8, LBB0_18
; %bb.17:
Lloh44:
	adrp	x8, _LOG@GOTPAGE
Lloh45:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh46:
	ldr	w21, [x8]
	bl	_errcode_for_file_access
	ldr	w8, [x23]
	str	x8, [sp]
Lloh47:
	adrp	x0, l_.str@PAGE
Lloh48:
	add	x0, x0, l_.str@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_18:
	mov	x0, x20
	bl	_free
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_PGSS_TEXT_FILE,4,2             ; @PGSS_TEXT_FILE
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_PG_BINARY,4,2                  ; @PG_BINARY
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOENT,8,3                     ; @ENOENT
	.comm	_LOG,4,2                        ; @LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not read file \"%s\": %m"

l_.str.1:                               ; @.str.1
	.asciz	"could not stat file \"%s\": %m"

	.comm	_MaxAllocHugeSize,8,3           ; @MaxAllocHugeSize
	.comm	_ERRCODE_OUT_OF_MEMORY,4,2      ; @ERRCODE_OUT_OF_MEMORY
l_.str.2:                               ; @.str.2
	.asciz	"out of memory"

l_.str.3:                               ; @.str.3
	.asciz	"Could not allocate enough memory to read file \"%s\"."

l_.str.4:                               ; @.str.4
	.asciz	"could not close file \"%s\": %m"

	.no_dead_strip	_qtext_load_file
.subsections_via_symbols
