	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ApplyLogicalMappingFile
_ApplyLogicalMappingFile:               ## @ApplyLogicalMappingFile
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPGPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_sprintf
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movq	_PG_BINARY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_OpenTransientFile
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str.1(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_2:
	leaq	-88(%rbp), %r15
	leaq	-104(%rbp), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%bl, %edi
	callq	_Assert
	movq	%r13, %r12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_WAIT_EVENT_REORDER_LOGICAL_MAPPING_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pgstat_report_wait_start
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_read
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_pgstat_report_wait_end
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$16, %ebx
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str.3(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	$16, %ecx
	xorl	%eax, %eax
	callq	_errmsg
	movl	%r14d, %edi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str.2(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %esi
	callq	_ereport
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-92(%rbp), %eax
	movl	%eax, -84(%rbp)
	leaq	-96(%rbp), %rdi
	movq	%r15, %rsi
	callq	_ItemPointerCopy
	movq	_HASH_FIND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%ecx, %ecx
	callq	_hash_search
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r14
	movl	-100(%rbp), %eax
	movl	%eax, -84(%rbp)
	movq	%r12, %r13
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ItemPointerCopy
	movq	_HASH_ENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	leaq	-68(%rbp), %rcx
	callq	_hash_search
	movq	%rax, %r12
	cmpl	$0, -68(%rbp)
	movq	(%r14), %rax
	je	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movb	$1, %bl
	movb	$1, %cl
	movq	_InvalidCommandId@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	(%r12), %rax
	sete	%cl
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	%cl, %edi
	callq	_Assert
	movq	8(%r14), %rax
	movq	_InvalidCommandId@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	8(%r12), %rax
	sete	%bl
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, (%r12)
	movq	8(%r14), %rax
	movq	%rax, 8(%r12)
	movl	16(%r14), %eax
	movl	%eax, 16(%r12)
	movq	%r13, %r12
	jmp	LBB0_3
LBB0_18:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_CloseTransientFile
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_errcode_for_file_access
	leaq	L_.str.4(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPGPATH,4,2                  ## @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pg_logical/mappings/%s"

	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_PG_BINARY,4,2                  ## @PG_BINARY
	.comm	_ERROR,4,2                      ## @ERROR
L_.str.1:                               ## @.str.1
	.asciz	"could not open file \"%s\": %m"

	.comm	_WAIT_EVENT_REORDER_LOGICAL_MAPPING_READ,4,2 ## @WAIT_EVENT_REORDER_LOGICAL_MAPPING_READ
L_.str.2:                               ## @.str.2
	.asciz	"could not read file \"%s\": %m"

L_.str.3:                               ## @.str.3
	.asciz	"could not read from file \"%s\": read %d instead of %d bytes"

	.comm	_HASH_FIND,4,2                  ## @HASH_FIND
	.comm	_HASH_ENTER,4,2                 ## @HASH_ENTER
	.comm	_InvalidCommandId,8,3           ## @InvalidCommandId
L_.str.4:                               ## @.str.4
	.asciz	"could not close file \"%s\": %m"

	.no_dead_strip	_ApplyLogicalMappingFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ApplyLogicalMappingFile
_ApplyLogicalMappingFile:               ; @ApplyLogicalMappingFile
	.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, #48
	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	x8, _MAXPGPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPGPATH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sprintf
Lloh10:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _PG_BINARY@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PG_BINARY@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_OpenTransientFile
	mov	x21, x0
	tbz	w0, #31, LBB0_2
; %bb.1:
Lloh16:
	adrp	x8, _ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w22, [x8]
	bl	_errcode_for_file_access
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x22
	bl	_ereport
LBB0_2:
	sub	x8, x29, #104
Lloh21:
	adrp	x28, _WAIT_EVENT_REORDER_LOGICAL_MAPPING_READ@GOTPAGE
Lloh22:
	ldr	x28, [x28, _WAIT_EVENT_REORDER_LOGICAL_MAPPING_READ@GOTPAGEOFF]
	add	x22, x8, #8
Lloh23:
	adrp	x24, _HASH_FIND@GOTPAGE
Lloh24:
	ldr	x24, [x24, _HASH_FIND@GOTPAGEOFF]
Lloh25:
	adrp	x23, _HASH_ENTER@GOTPAGE
Lloh26:
	ldr	x23, [x23, _HASH_ENTER@GOTPAGEOFF]
Lloh27:
	adrp	x27, _InvalidCommandId@GOTPAGE
Lloh28:
	ldr	x27, [x27, _InvalidCommandId@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x8, [x26]
	ldr	x8, [x25, #8]
	str	x8, [x26, #8]
	ldr	w8, [x25, #16]
	str	w8, [x26, #16]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #112
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w0, [x28]
	bl	_pgstat_report_wait_start
	sub	x1, x29, #104
	mov	x0, x21
	mov	w2, #16
	bl	_read
	mov	x25, x0
	bl	_pgstat_report_wait_end
	tbnz	w25, #31, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w25, #16
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w25, LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh29:
	adrp	x8, _ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w26, [x8]
	bl	_errcode_for_file_access
	mov	w8, #16
	stp	x25, x8, [sp, #-16]!
Lloh32:
	adrp	x0, l_.str.3@PAGE
Lloh33:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	add	sp, sp, #16
	mov	x1, x0
	mov	x0, x26
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh34:
	adrp	x8, _ERROR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh36:
	ldr	w25, [x8]
	bl	_errcode_for_file_access
Lloh37:
	adrp	x0, l_.str.2@PAGE
Lloh38:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x25
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_ereport
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w8, [x29, #-92]
	stur	w8, [x29, #-108]
	sub	x1, x29, #112
	mov	x0, x22
	bl	_ItemPointerCopy
	ldr	w2, [x24]
	sub	x1, x29, #112
	mov	x0, x20
	mov	x3, #0
	bl	_hash_search
	cbz	x0, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
	ldur	w8, [x29, #-100]
	stur	w8, [x29, #-108]
	sub	x0, x29, #104
	sub	x1, x29, #112
	bl	_ItemPointerCopy
	ldr	w2, [x23]
	sub	x1, x29, #112
	sub	x3, x29, #116
	mov	x0, x20
	bl	_hash_search
	mov	x26, x0
	ldur	w9, [x29, #-116]
	ldr	x8, [x25]
	cbz	w9, LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x26]
	cmp	x8, x9
	cset	w0, eq
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_Assert
	ldr	x8, [x25, #8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	bl	_Assert
	b	LBB0_4
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x26, #8]
	cmp	x8, x9
	cset	w0, eq
	bl	_Assert
	b	LBB0_4
LBB0_18:
	mov	x0, x21
	bl	_CloseTransientFile
	cbz	x0, LBB0_20
; %bb.19:
Lloh39:
	adrp	x8, _ERROR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh41:
	ldr	w20, [x8]
	bl	_errcode_for_file_access
Lloh42:
	adrp	x0, l_.str.4@PAGE
Lloh43:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_20:
	ldur	x8, [x29, #-88]
Lloh44:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh45:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh46:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	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_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPGPATH,4,2                  ; @MAXPGPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pg_logical/mappings/%s"

	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_PG_BINARY,4,2                  ; @PG_BINARY
	.comm	_ERROR,4,2                      ; @ERROR
l_.str.1:                               ; @.str.1
	.asciz	"could not open file \"%s\": %m"

	.comm	_WAIT_EVENT_REORDER_LOGICAL_MAPPING_READ,4,2 ; @WAIT_EVENT_REORDER_LOGICAL_MAPPING_READ
l_.str.2:                               ; @.str.2
	.asciz	"could not read file \"%s\": %m"

l_.str.3:                               ; @.str.3
	.asciz	"could not read from file \"%s\": read %d instead of %d bytes"

	.comm	_HASH_FIND,4,2                  ; @HASH_FIND
	.comm	_HASH_ENTER,4,2                 ; @HASH_ENTER
	.comm	_InvalidCommandId,8,3           ; @InvalidCommandId
l_.str.4:                               ; @.str.4
	.asciz	"could not close file \"%s\": %m"

	.no_dead_strip	_ApplyLogicalMappingFile
.subsections_via_symbols
