	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_plan_query                  ## -- Begin function pg_plan_query
	.p2align	4, 0x90
_pg_plan_query:                         ## @pg_plan_query
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_CMD_UTILITY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_2:
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_ActiveSnapshotSet
	movl	%eax, %edi
	callq	_Assert
	xorl	%eax, %eax
	callq	_TRACE_POSTGRESQL_QUERY_PLAN_START
	movq	_log_planner_stats@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_ResetUsage
LBB0_4:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_planner
	movq	%rax, %rbx
	cmpq	$0, (%r12)
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_ShowUsage
LBB0_6:
	movq	_Debug_print_plan@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_LOG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_Debug_pretty_print@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	callq	_elog_node_display
LBB0_8:
	xorl	%eax, %eax
	callq	_TRACE_POSTGRESQL_QUERY_PLAN_DONE
LBB0_9:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_UTILITY,8,3                ## @CMD_UTILITY
	.comm	_log_planner_stats,8,3          ## @log_planner_stats
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PLANNER STATISTICS"

	.comm	_Debug_print_plan,8,3           ## @Debug_print_plan
	.comm	_LOG,4,2                        ## @LOG
L_.str.1:                               ## @.str.1
	.asciz	"plan"

	.comm	_Debug_pretty_print,4,2         ## @Debug_pretty_print
	.comm	_WARNING,4,2                    ## @WARNING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_plan_query                  ; -- Begin function pg_plan_query
	.p2align	2
_pg_plan_query:                         ; @pg_plan_query
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CMD_UTILITY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CMD_UTILITY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x19, #0
	b	LBB0_9
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_ActiveSnapshotSet
	bl	_Assert
	bl	_TRACE_POSTGRESQL_QUERY_PLAN_START
Lloh3:
	adrp	x22, _log_planner_stats@GOTPAGE
Lloh4:
	ldr	x22, [x22, _log_planner_stats@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_4
; %bb.3:
	bl	_ResetUsage
LBB0_4:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_planner
	mov	x19, x0
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.5:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ShowUsage
LBB0_6:
Lloh7:
	adrp	x8, _Debug_print_plan@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Debug_print_plan@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
Lloh10:
	adrp	x8, _LOG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LOG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _Debug_pretty_print@GOTPAGE
Lloh14:
	ldr	x8, [x8, _Debug_pretty_print@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_elog_node_display
LBB0_8:
	bl	_TRACE_POSTGRESQL_QUERY_PLAN_DONE
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_UTILITY,8,3                ; @CMD_UTILITY
	.comm	_log_planner_stats,8,3          ; @log_planner_stats
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PLANNER STATISTICS"

	.comm	_Debug_print_plan,8,3           ; @Debug_print_plan
	.comm	_LOG,4,2                        ; @LOG
l_.str.1:                               ; @.str.1
	.asciz	"plan"

	.comm	_Debug_pretty_print,4,2         ; @Debug_pretty_print
	.comm	_WARNING,4,2                    ; @WARNING
.subsections_via_symbols
