	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function RelationBuildRuleLock
_RelationBuildRuleLock:                 ## @RelationBuildRuleLock
	.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	_CacheMemoryContext@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ALLOCSET_SMALL_SIZES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_AllocSetContextCreate
	movq	%rax, %rbx
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
	callq	_RelationGetRelationName
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_MemoryContextCopyAndSetIdentifier
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_MemoryContextAlloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_Anum_pg_rewrite_ev_class@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_F_OIDEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_RelationGetRelid
	movl	%eax, %edi
	callq	_ObjectIdGetDatum
	leaq	-108(%rbp), %r14
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%eax, %r8d
	callq	_ScanKeyInit
	movq	_RewriteRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AccessShareLock@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_table_open
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_RelationGetDescr
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_RewriteRelRulenameIndexId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movq	%r14, %r9
	callq	_systable_beginscan
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_systable_getnext
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	$4, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	(%rsi,%rsi), %ebx
	shll	$4, %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_repalloc
	movl	%ebx, %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, (%rax,%r13,8)
	incq	%r13
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_systable_getnext
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movl	%r15d, %edi
	callq	_GETSTRUCT
	movslq	%eax, %rbx
	movq	%r12, %rdi
	movl	$40, %esi
	callq	_MemoryContextAlloc
	movq	%rax, %r14
	movl	16(%rbx), %eax
	movl	%eax, 32(%r14)
	movq	8(%rbx), %rax
	addq	$-48, %rax
	movq	%rax, 24(%r14)
	movl	4(%rbx), %eax
	movl	%eax, 20(%r14)
	movl	(%rbx), %eax
	movl	%eax, 16(%r14)
	movq	_Anum_pg_rewrite_ev_action@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	leaq	-44(%rbp), %rcx
	callq	_heap_getattr
	movl	%eax, %r13d
	xorl	%edi, %edi
	cmpl	$0, -44(%rbp)
	sete	%dil
	callq	_Assert
	movl	%r13d, %edi
	callq	_TextDatumGetCString
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_MemoryContextSwitchTo
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_stringToNode
	movq	%rax, 8(%r14)
	movq	%r13, %rdi
	movq	-104(%rbp), %r13                ## 8-byte Reload
	callq	_MemoryContextSwitchTo
	movq	%rbx, %rdi
	callq	_pfree
	movq	_Anum_pg_rewrite_ev_qual@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	leaq	-44(%rbp), %rcx
	callq	_heap_getattr
	movl	%eax, %ebx
	xorl	%edi, %edi
	cmpl	$0, -44(%rbp)
	sete	%dil
	callq	_Assert
	movl	%ebx, %edi
	callq	_TextDatumGetCString
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_MemoryContextSwitchTo
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_stringToNode
	movq	%rax, (%r14)
	movq	%r15, %rdi
	callq	_MemoryContextSwitchTo
	movq	%rbx, %rdi
	callq	_pfree
	movq	8(%r14), %rdi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	callq	_setRuleCheckAsUser
	movq	(%r14), %rdi
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	callq	_setRuleCheckAsUser
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movslq	%esi, %rax
	cmpq	%rax, %r13
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_6:
	movq	_AccessShareLock@GOTPCREL(%rip), %r12
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
LBB0_7:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_systable_endscan
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_table_close
	testl	%r13d, %r13d
	je	LBB0_8
## %bb.9:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	$16, %esi
	callq	_MemoryContextAlloc
	movl	%r13d, (%rax)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 8(%rax)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_10
LBB0_8:
	xorps	%xmm0, %xmm0
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movups	%xmm0, (%rax)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_MemoryContextDelete
LBB0_10:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CacheMemoryContext,4,2         ## @CacheMemoryContext
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"relation rules"

	.comm	_ALLOCSET_SMALL_SIZES,4,2       ## @ALLOCSET_SMALL_SIZES
	.comm	_Anum_pg_rewrite_ev_class,4,2   ## @Anum_pg_rewrite_ev_class
	.comm	_BTEqualStrategyNumber,4,2      ## @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ## @F_OIDEQ
	.comm	_RewriteRelationId,4,2          ## @RewriteRelationId
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_RewriteRelRulenameIndexId,4,2  ## @RewriteRelRulenameIndexId
	.comm	_Anum_pg_rewrite_ev_action,4,2  ## @Anum_pg_rewrite_ev_action
	.comm	_Anum_pg_rewrite_ev_qual,4,2    ## @Anum_pg_rewrite_ev_qual
	.no_dead_strip	_RelationBuildRuleLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function RelationBuildRuleLock
_RelationBuildRuleLock:                 ; @RelationBuildRuleLock
	.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, x0
Lloh0:
	adrp	x8, _CacheMemoryContext@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CacheMemoryContext@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _ALLOCSET_SMALL_SIZES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ALLOCSET_SMALL_SIZES@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_AllocSetContextCreate
	mov	x20, x0
	str	x0, [x19, #8]
	mov	x0, x19
	bl	_RelationGetRelationName
	mov	x1, x0
	mov	x0, x20
	bl	_MemoryContextCopyAndSetIdentifier
	mov	x0, x20
	mov	w1, #32
	bl	_MemoryContextAlloc
	mov	x21, x0
Lloh8:
	adrp	x8, _Anum_pg_rewrite_ev_class@GOTPAGE
Lloh9:
	ldr	x8, [x8, _Anum_pg_rewrite_ev_class@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
Lloh11:
	adrp	x8, _BTEqualStrategyNumber@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BTEqualStrategyNumber@GOTPAGEOFF]
Lloh13:
	ldr	w23, [x8]
Lloh14:
	adrp	x8, _F_OIDEQ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _F_OIDEQ@GOTPAGEOFF]
Lloh16:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_RelationGetRelid
	bl	_ObjectIdGetDatum
	mov	x4, x0
	add	x0, sp, #28
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_ScanKeyInit
Lloh17:
	adrp	x8, _RewriteRelationId@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RewriteRelationId@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x22, _AccessShareLock@GOTPAGE
Lloh21:
	ldr	x22, [x22, _AccessShareLock@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_table_open
	mov	x23, x0
	bl	_RelationGetDescr
	mov	x24, x0
Lloh22:
	adrp	x8, _RewriteRelRulenameIndexId@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RewriteRelRulenameIndexId@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x5, sp, #28
	mov	x0, x23
	mov	w2, #1
	mov	x3, #0
	mov	w4, #1
	bl	_systable_beginscan
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	bl	_systable_getnext
	mov	x26, x0
	bl	_HeapTupleIsValid
	cbz	x0, LBB0_6
; %bb.1:
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	mov	x23, #0
	mov	w22, #4
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x27, x23, #1
	str	x25, [x21, x23, lsl #3]
	ldr	w0, [sp, #20]                   ; 4-byte Folded Reload
	bl	_systable_getnext
	mov	x26, x0
	bl	_HeapTupleIsValid
	mov	x23, x27
	cbz	x0, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x26
	bl	_GETSTRUCT
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x27, w0
	mov	x0, x20
	mov	w1, #40
	bl	_MemoryContextAlloc
	mov	x25, x0
	ldr	w8, [x27, #16]
	str	w8, [x0, #32]
	ldr	x8, [x27, #8]
	sub	x8, x8, #48
	str	x8, [x0, #24]
	ldr	d0, [x27]
	str	d0, [x0, #16]
Lloh25:
	adrp	x8, _Anum_pg_rewrite_ev_action@GOTPAGE
Lloh26:
	ldr	x8, [x8, _Anum_pg_rewrite_ev_action@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	add	x3, sp, #24
	mov	x0, x26
	mov	x2, x24
	bl	_heap_getattr
	mov	x27, x0
	ldr	w8, [sp, #24]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x27
	bl	_TextDatumGetCString
	mov	x27, x0
	mov	x0, x20
	bl	_MemoryContextSwitchTo
	mov	x28, x0
	mov	x0, x27
	bl	_stringToNode
	str	x0, [x25, #8]
	mov	x0, x28
	bl	_MemoryContextSwitchTo
	mov	x0, x27
	bl	_pfree
Lloh28:
	adrp	x8, _Anum_pg_rewrite_ev_qual@GOTPAGE
Lloh29:
	ldr	x8, [x8, _Anum_pg_rewrite_ev_qual@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	add	x3, sp, #24
	mov	x0, x26
	mov	x2, x24
	bl	_heap_getattr
	mov	x26, x0
	ldr	w8, [sp, #24]
	cmp	w8, #0
	cset	w0, eq
	bl	_Assert
	mov	x0, x26
	bl	_TextDatumGetCString
	mov	x26, x0
	mov	x0, x20
	bl	_MemoryContextSwitchTo
	mov	x27, x0
	mov	x0, x26
	bl	_stringToNode
	str	x0, [x25]
	mov	x0, x27
	bl	_MemoryContextSwitchTo
	mov	x0, x26
	bl	_pfree
	ldr	x0, [x25, #8]
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	bl	_setRuleCheckAsUser
	ldr	x0, [x25]
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	bl	_setRuleCheckAsUser
	cmp	x23, w22, sxtw
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	lsl	w26, w22, #1
	lsl	w1, w22, #4
	mov	x0, x21
	bl	_repalloc
	mov	x21, x0
	mov	x22, x26
	b	LBB0_2
LBB0_5:
Lloh31:
	adrp	x22, _AccessShareLock@GOTPAGE
Lloh32:
	ldr	x22, [x22, _AccessShareLock@GOTPAGEOFF]
	ldr	x23, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_7
LBB0_6:
	mov	w27, #0
LBB0_7:
	ldr	w0, [sp, #20]                   ; 4-byte Folded Reload
	bl	_systable_endscan
	ldr	w1, [x22]
	mov	x0, x23
	bl	_table_close
	cbz	w27, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	w1, #16
	bl	_MemoryContextAlloc
	str	w27, [x0]
	str	x21, [x0, #8]
	str	x0, [x19]
	b	LBB0_10
LBB0_9:
	stp	xzr, xzr, [x19]
	mov	x0, x20
	bl	_MemoryContextDelete
LBB0_10:
	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 AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_CacheMemoryContext,4,2         ; @CacheMemoryContext
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"relation rules"

	.comm	_ALLOCSET_SMALL_SIZES,4,2       ; @ALLOCSET_SMALL_SIZES
	.comm	_Anum_pg_rewrite_ev_class,4,2   ; @Anum_pg_rewrite_ev_class
	.comm	_BTEqualStrategyNumber,4,2      ; @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ; @F_OIDEQ
	.comm	_RewriteRelationId,4,2          ; @RewriteRelationId
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_RewriteRelRulenameIndexId,4,2  ; @RewriteRelRulenameIndexId
	.comm	_Anum_pg_rewrite_ev_action,4,2  ; @Anum_pg_rewrite_ev_action
	.comm	_Anum_pg_rewrite_ev_qual,4,2    ; @Anum_pg_rewrite_ev_qual
	.no_dead_strip	_RelationBuildRuleLock
.subsections_via_symbols
