	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_analyze_and_rewrite_params  ## -- Begin function pg_analyze_and_rewrite_params
	.p2align	4, 0x90
_pg_analyze_and_rewrite_params:         ## @pg_analyze_and_rewrite_params
	.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	%r8, %r13
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	testq	%rsi, %rsi
	setne	%dil
	callq	_Assert
	movq	%r14, %rdi
	callq	_TRACE_POSTGRESQL_QUERY_REWRITE_START
	movq	_log_parser_stats@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_ResetUsage
LBB0_2:
	xorl	%edi, %edi
	callq	_make_parsestate
	movq	%rax, %r15
	movq	%r14, (%rax)
	movq	%r13, 8(%rax)
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	*%rbx
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_transformTopLevelStmt
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_post_parse_analyze_hook
	movq	%r15, %rdi
	callq	_free_parsestate
	movq	_log_parser_stats@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_ShowUsage
LBB0_4:
	movq	%rbx, %rdi
	callq	_pg_rewrite_query
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_TRACE_POSTGRESQL_QUERY_REWRITE_DONE
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_log_parser_stats,8,3           ## @log_parser_stats
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PARSE ANALYSIS STATISTICS"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_analyze_and_rewrite_params  ; -- Begin function pg_analyze_and_rewrite_params
	.p2align	2
_pg_analyze_and_rewrite_params:         ; @pg_analyze_and_rewrite_params
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x4
	mov	x22, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	cmp	x1, #0
	cset	w0, ne
	bl	_Assert
	mov	x0, x19
	bl	_TRACE_POSTGRESQL_QUERY_REWRITE_START
Lloh0:
	adrp	x25, _log_parser_stats@GOTPAGE
Lloh1:
	ldr	x25, [x25, _log_parser_stats@GOTPAGEOFF]
	ldr	x8, [x25]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_ResetUsage
LBB0_2:
	mov	x0, #0
	bl	_make_parsestate
	mov	x24, x0
	stp	x19, x23, [x0]
	mov	x1, x22
	blr	x21
	mov	x0, x24
	mov	x1, x20
	bl	_transformTopLevelStmt
	mov	x20, x0
	mov	x0, x24
	mov	x1, x20
	bl	_post_parse_analyze_hook
	mov	x0, x24
	bl	_free_parsestate
	ldr	x8, [x25]
	cbz	x8, LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ShowUsage
LBB0_4:
	mov	x0, x20
	bl	_pg_rewrite_query
	mov	x20, x0
	mov	x0, x19
	bl	_TRACE_POSTGRESQL_QUERY_REWRITE_DONE
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_log_parser_stats,8,3           ; @log_parser_stats
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PARSE ANALYSIS STATISTICS"

.subsections_via_symbols
