	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RestoreGUCState                ## -- Begin function RestoreGUCState
	.p2align	4, 0x90
_RestoreGUCState:                       ## @RestoreGUCState
	.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	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_num_guc_variables@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_guc_variables@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_can_skip_gucvar
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_InitializeOneGUCOption
	jmp	LBB0_4
LBB0_5:
	leaq	-72(%rbp), %rdi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_memcpy
	leaq	4(%r14), %rax
	movq	%rax, -88(%rbp)
	movslq	-72(%rbp), %rax
	movq	_guc_restore_error_context_callback@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -96(%rbp)
	movq	_error_context_stack@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rcx
	movq	%rcx, -104(%rbp)
	movq	$0, -112(%rbp)
	leaq	-112(%rbp), %rdx
	movq	%rdx, (%rsi)
	testq	%rax, %rax
	jle	LBB0_16
## %bb.6:
	leaq	(%rax,%r14), %rbx
	addq	$4, %rbx
	leaq	-88(%rbp), %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	$0, -112(%rbp)
	cmpq	%rbx, -88(%rbp)
	jae	LBB0_15
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_read_gucstate
	movq	%rax, %r13
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_read_gucstate
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_read_gucstate
	movq	%rax, %r15
	cmpb	$0, (%rax)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	leaq	-68(%rbp), %rdx
	movl	$4, %ecx
	callq	_read_gucstate_binary
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	$0, -68(%rbp)
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	leaq	-80(%rbp), %rdx
	movl	$4, %ecx
	callq	_read_gucstate_binary
	movq	%r14, %rdi
	movq	%rbx, %rsi
	leaq	-76(%rbp), %rdx
	movl	$4, %ecx
	callq	_read_gucstate_binary
	movq	%r13, -64(%rbp)
	movq	%r12, -56(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -112(%rbp)
	movl	-76(%rbp), %edx
	movl	-80(%rbp), %ecx
	movq	_GUC_ACTION_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$1, %r9d
	pushq	$1
	pushq	%rax
	callq	_set_config_option
	addq	$16, %rsp
	testl	%eax, %eax
	jle	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpb	$0, (%r15)
	jne	LBB0_13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_ERRCODE_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	callq	_errmsg
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_ereport
	cmpb	$0, (%r15)
	je	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	movl	-68(%rbp), %edx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_set_config_sourcefile
	jmp	LBB0_14
LBB0_15:
	movq	-104(%rbp), %rcx
	movq	_error_context_stack@GOTPCREL(%rip), %rsi
LBB0_16:
	movq	%rcx, (%rsi)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_num_guc_variables,4,2          ## @num_guc_variables
	.comm	_guc_variables,8,3              ## @guc_variables
	.comm	_guc_restore_error_context_callback,4,2 ## @guc_restore_error_context_callback
	.comm	_error_context_stack,8,3        ## @error_context_stack
	.comm	_GUC_ACTION_SET,4,2             ## @GUC_ACTION_SET
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_INTERNAL_ERROR,4,2     ## @ERRCODE_INTERNAL_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"parameter \"%s\" could not be set"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RestoreGUCState                ; -- Begin function RestoreGUCState
	.p2align	2
_RestoreGUCState:                       ; @RestoreGUCState
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	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, #72]
Lloh3:
	adrp	x20, _num_guc_variables@GOTPAGE
Lloh4:
	ldr	x20, [x20, _num_guc_variables@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, #0
Lloh5:
	adrp	x22, _guc_variables@GOTPAGE
Lloh6:
	ldr	x22, [x22, _guc_variables@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w0, [x8, x21, lsl #2]
	bl	_can_skip_gucvar
	cbnz	w0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
	ldr	w0, [x8, x21, lsl #2]
	bl	_InitializeOneGUCOption
	b	LBB0_2
LBB0_5:
	add	x0, sp, #28
	mov	x1, x19
	mov	w2, #4
	bl	_memcpy
	add	x8, x19, #4
	str	x8, [sp, #32]
	ldrsw	x9, [sp, #28]
Lloh7:
	adrp	x8, _guc_restore_error_context_callback@GOTPAGE
Lloh8:
	ldr	x8, [x8, _guc_restore_error_context_callback@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [sp, #16]
Lloh10:
	adrp	x24, _error_context_stack@GOTPAGE
Lloh11:
	ldr	x24, [x24, _error_context_stack@GOTPAGEOFF]
	ldr	x8, [x24]
	stp	xzr, x8, [sp]
	mov	x10, sp
	str	x10, [x24]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.6:
	add	x8, x9, x19
	add	x19, x8, #4
	add	x25, sp, #56
Lloh12:
	adrp	x26, _GUC_ACTION_SET@GOTPAGE
Lloh13:
	ldr	x26, [x26, _GUC_ACTION_SET@GOTPAGEOFF]
Lloh14:
	adrp	x27, _ERROR@GOTPAGE
Lloh15:
	ldr	x27, [x27, _ERROR@GOTPAGEOFF]
Lloh16:
	adrp	x28, _ERRCODE_INTERNAL_ERROR@GOTPAGE
Lloh17:
	ldr	x28, [x28, _ERRCODE_INTERNAL_ERROR@GOTPAGEOFF]
Lloh18:
	adrp	x20, l_.str@PAGE
Lloh19:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	str	xzr, [sp]
	ldr	x8, [sp, #32]
	cmp	x8, x19
	b.hs	LBB0_15
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #32
	mov	x1, x19
	bl	_read_gucstate
	mov	x21, x0
	add	x0, sp, #32
	mov	x1, x19
	bl	_read_gucstate
	mov	x23, x0
	add	x0, sp, #32
	mov	x1, x19
	bl	_read_gucstate
	mov	x22, x0
	ldrb	w8, [x0]
	cbz	w8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x0, sp, #32
	add	x2, sp, #52
	mov	x1, x19
	mov	w3, #4
	bl	_read_gucstate_binary
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	str	wzr, [sp, #52]
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x0, sp, #32
	add	x2, sp, #48
	mov	x1, x19
	mov	w3, #4
	bl	_read_gucstate_binary
	add	x0, sp, #32
	add	x2, sp, #44
	mov	x1, x19
	mov	w3, #4
	bl	_read_gucstate_binary
	stp	x21, x23, [sp, #56]
	str	x25, [sp]
	ldp	w2, w3, [sp, #44]
	ldr	w4, [x26]
	ldr	w6, [x27]
	mov	x0, x21
	mov	x1, x23
	mov	w5, #1
	mov	w7, #1
	bl	_set_config_option
	cmp	w0, #0
	b.le	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldrb	w8, [x22]
	cbnz	w8, LBB0_14
	b	LBB0_7
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w23, [x27]
	ldr	w0, [x28]
	bl	_errcode
	mov	x0, x20
	mov	x1, x21
	bl	_errmsg
	mov	x1, x0
	mov	x0, x23
	bl	_ereport
	ldrb	w8, [x22]
	cbz	w8, LBB0_7
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w2, [sp, #52]
	mov	x0, x21
	mov	x1, x22
	bl	_set_config_sourcefile
	b	LBB0_7
LBB0_15:
	ldr	x8, [sp, #8]
LBB0_16:
	str	x8, [x24]
	ldr	x8, [sp, #72]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_num_guc_variables,4,2          ; @num_guc_variables
	.comm	_guc_variables,8,3              ; @guc_variables
	.comm	_guc_restore_error_context_callback,4,2 ; @guc_restore_error_context_callback
	.comm	_error_context_stack,8,3        ; @error_context_stack
	.comm	_GUC_ACTION_SET,4,2             ; @GUC_ACTION_SET
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_INTERNAL_ERROR,4,2     ; @ERRCODE_INTERNAL_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"parameter \"%s\" could not be set"

.subsections_via_symbols
