	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getRules                       ## -- Begin function getRules
	.p2align	4, 0x90
_getRules:                              ## @getRules
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_createPQExpBuffer
	movq	%rax, %rbx
	cmpl	$80300, (%r14)                  ## imm = 0x139AC
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmovgeq	%rax, %rsi
	movq	%rbx, %rdi
	callq	_appendPQExpBufferStr
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_ExecuteSqlQuery
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_PQntuples
	movl	%eax, %r14d
	movl	%eax, (%r15)
	movl	%eax, %edi
	shll	$6, %edi
	callq	_pg_malloc
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_PQfnumber
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_PQfnumber
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	callq	_PQfnumber
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_PQfnumber
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	callq	_PQfnumber
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	callq	_PQfnumber
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	callq	_PQfnumber
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_14
## %bb.1:
	movl	%r14d, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %ebx
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, 12(%r15)
	incq	%r14
	addq	$64, %r15
	cmpq	%r14, -96(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DO_RULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	24(%r15), %rbx
	movl	%eax, 60(%r15)
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movq	%rax, %rdi
	callq	_atooid
	movq	%rax, 48(%r15)
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movq	%rax, %rdi
	callq	_atooid
	movq	%rax, 40(%r15)
	movq	%rbx, %rdi
	callq	_AssignDumpId
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movq	%rax, %rdi
	callq	_pg_strdup
	movl	%eax, 56(%r15)
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movq	%rax, %rdi
	callq	_atooid
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_findTableByOid
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	40(%r15), %rdx
	leaq	L_.str.9(%rip), %rdi
	movq	%r13, %rsi
	callq	_fatal
	movq	16(%r15), %rax
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rax), %ecx
	movl	%ecx, 32(%r15)
	movl	12(%rax), %eax
	movl	%eax, 28(%r15)
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movzbl	(%rax), %eax
	movb	%al, (%r15)
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	xorl	%ecx, %ecx
	cmpb	$116, (%rax)
	sete	%cl
	movl	%ecx, 4(%r15)
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movzbl	(%rax), %eax
	movb	%al, 8(%r15)
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rax), %rcx
	movq	_RELKIND_VIEW@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_RELKIND_MATVIEW@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$49, (%r15)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, 4(%r15)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	addq	$8, %rax
	movq	%rbx, %rcx
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	addq	$8, %rax
	movl	$1, %ebx
	movq	%rax, %rcx
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %esi
	callq	_addObjectDependency
	jmp	LBB0_13
LBB0_14:
	movq	%r12, %rdi
	callq	_PQclear
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_destroyPQExpBuffer
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SELECT tableoid, oid, rulename, ev_class AS ruletable, ev_type, is_instead, ev_enabled FROM pg_rewrite ORDER BY oid"

L_.str.1:                               ## @.str.1
	.asciz	"SELECT tableoid, oid, rulename, ev_class AS ruletable, ev_type, is_instead, 'O'::char AS ev_enabled FROM pg_rewrite ORDER BY oid"

	.comm	_PGRES_TUPLES_OK,4,2            ## @PGRES_TUPLES_OK
L_.str.2:                               ## @.str.2
	.asciz	"tableoid"

L_.str.3:                               ## @.str.3
	.asciz	"oid"

L_.str.4:                               ## @.str.4
	.asciz	"rulename"

L_.str.5:                               ## @.str.5
	.asciz	"ruletable"

L_.str.6:                               ## @.str.6
	.asciz	"ev_type"

L_.str.7:                               ## @.str.7
	.asciz	"is_instead"

L_.str.8:                               ## @.str.8
	.asciz	"ev_enabled"

	.comm	_DO_RULE,4,2                    ## @DO_RULE
L_.str.9:                               ## @.str.9
	.asciz	"failed sanity check, parent table with OID %u of pg_rewrite entry with OID %u not found"

	.comm	_RELKIND_VIEW,8,3               ## @RELKIND_VIEW
	.comm	_RELKIND_MATVIEW,8,3            ## @RELKIND_MATVIEW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getRules                       ; -- Begin function getRules
	.p2align	2
_getRules:                              ; @getRules
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x1
	mov	x20, x0
	bl	_createPQExpBuffer
	mov	x21, x0
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
	ldr	w9, [x20]
Lloh2:
	adrp	x10, l_.str@PAGE
Lloh3:
	add	x10, x10, l_.str@PAGEOFF
	mov	w11, #14763
	movk	w11, #1, lsl #16
	cmp	w9, w11
	csel	x1, x10, x8, gt
	bl	_appendPQExpBufferStr
	str	x21, [sp]                       ; 8-byte Folded Spill
	ldr	w1, [x21]
Lloh4:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_ExecuteSqlQuery
	mov	x20, x0
	bl	_PQntuples
	mov	x22, x0
	str	w0, [x19]
	lsl	w0, w0, #6
	bl	_pg_malloc
	mov	x21, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_PQfnumber
	str	w0, [sp, #28]                   ; 4-byte Folded Spill
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_PQfnumber
	str	w0, [sp, #24]                   ; 4-byte Folded Spill
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_PQfnumber
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_PQfnumber
	str	w0, [sp, #16]                   ; 4-byte Folded Spill
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_PQfnumber
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
Lloh17:
	adrp	x1, l_.str.7@PAGE
Lloh18:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_PQfnumber
	mov	x27, x0
Lloh19:
	adrp	x1, l_.str.8@PAGE
Lloh20:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_PQfnumber
	cmp	w22, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x28, x0
	mov	w19, #0
	mov	x24, #0
	mov	w8, w22
	lsl	x25, x8, #6
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x21, x24
	str	w23, [x8, #12]
	add	x24, x24, #64
	add	w19, w19, #1
	cmp	x25, x24
	b.eq	LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
Lloh21:
	adrp	x8, _DO_RULE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DO_RULE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	add	x26, x21, x24
	add	x22, x26, #24
	str	w8, [x26, #60]
	mov	x0, x20
	mov	x1, x19
	ldr	w2, [sp, #28]                   ; 4-byte Folded Reload
	bl	_PQgetvalue
	bl	_atooid
	str	x0, [x26, #48]
	mov	x0, x20
	mov	x1, x19
	ldr	w2, [sp, #24]                   ; 4-byte Folded Reload
	bl	_PQgetvalue
	bl	_atooid
	str	x0, [x26, #40]
	mov	x0, x22
	bl	_AssignDumpId
	mov	x0, x20
	mov	x1, x19
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	bl	_PQgetvalue
	bl	_pg_strdup
	str	w0, [x26, #56]
	mov	x0, x20
	mov	x1, x19
	ldr	w2, [sp, #16]                   ; 4-byte Folded Reload
	bl	_PQgetvalue
	bl	_atooid
	mov	x23, x0
	bl	_findTableByOid
	str	x0, [x26, #16]
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x2, [x26, #40]
Lloh24:
	adrp	x0, l_.str.9@PAGE
Lloh25:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, x23
	bl	_fatal
	ldr	x0, [x26, #16]
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldur	d0, [x0, #12]
	stur	d0, [x26, #28]
	mov	x0, x20
	mov	x1, x19
	ldr	w2, [sp, #12]                   ; 4-byte Folded Reload
	bl	_PQgetvalue
	ldrb	w8, [x0]
	strb	w8, [x26]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x27
	bl	_PQgetvalue
	ldrb	w8, [x0]
	cmp	w8, #116
	cset	w8, eq
	str	w8, [x26, #4]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x28
	bl	_PQgetvalue
	ldrb	w8, [x0]
	strb	w8, [x26, #8]
	ldr	x8, [x26, #16]
	cbz	x8, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x8]
Lloh26:
	adrp	x10, _RELKIND_VIEW@GOTPAGE
Lloh27:
	ldr	x10, [x10, _RELKIND_VIEW@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh29:
	adrp	x10, _RELKIND_MATVIEW@GOTPAGE
Lloh30:
	ldr	x10, [x10, _RELKIND_MATVIEW@GOTPAGEOFF]
Lloh31:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w9, [x21, x24]
	cmp	w9, #49
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x26, #4]
	cbz	w9, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w23, #0
	add	x22, x8, #8
	add	x8, x21, x24
	add	x8, x8, #24
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #8
	mov	w23, #1
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x8]
	mov	x0, x22
	bl	_addObjectDependency
	b	LBB0_3
LBB0_14:
	mov	x0, x20
	bl	_PQclear
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_destroyPQExpBuffer
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELECT tableoid, oid, rulename, ev_class AS ruletable, ev_type, is_instead, ev_enabled FROM pg_rewrite ORDER BY oid"

l_.str.1:                               ; @.str.1
	.asciz	"SELECT tableoid, oid, rulename, ev_class AS ruletable, ev_type, is_instead, 'O'::char AS ev_enabled FROM pg_rewrite ORDER BY oid"

	.comm	_PGRES_TUPLES_OK,4,2            ; @PGRES_TUPLES_OK
l_.str.2:                               ; @.str.2
	.asciz	"tableoid"

l_.str.3:                               ; @.str.3
	.asciz	"oid"

l_.str.4:                               ; @.str.4
	.asciz	"rulename"

l_.str.5:                               ; @.str.5
	.asciz	"ruletable"

l_.str.6:                               ; @.str.6
	.asciz	"ev_type"

l_.str.7:                               ; @.str.7
	.asciz	"is_instead"

l_.str.8:                               ; @.str.8
	.asciz	"ev_enabled"

	.comm	_DO_RULE,4,2                    ; @DO_RULE
l_.str.9:                               ; @.str.9
	.asciz	"failed sanity check, parent table with OID %u of pg_rewrite entry with OID %u not found"

	.comm	_RELKIND_VIEW,8,3               ; @RELKIND_VIEW
	.comm	_RELKIND_MATVIEW,8,3            ; @RELKIND_MATVIEW
.subsections_via_symbols
