	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sepgsql_relation_setattr       ## -- Begin function sepgsql_relation_setattr
	.p2align	4, 0x90
_sepgsql_relation_setattr:              ## @sepgsql_relation_setattr
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	callq	_get_rel_relkind
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_14
## %bb.1:
	movq	_SEPG_CLASS_DB_TABLE@GOTPCREL(%rip), %rcx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_2:
	movq	_SEPG_CLASS_DB_VIEW@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	movq	_SEPG_CLASS_DB_SEQUENCE@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_RelationRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, %r13d
	movq	_Anum_pg_class_oid@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_F_OIDEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%ebx, %edi
	callq	_ObjectIdGetDatum
	leaq	-56(%rbp), %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_ScanKeyInit
	movq	_ClassOidIndexId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SnapshotSelf@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	movl	%ebx, %r13d
	movl	$1, %edx
	movl	$1, %r8d
	leaq	-56(%rbp), %r9
	callq	_systable_beginscan
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_systable_getnext
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_elog
LBB0_7:
	movl	%ebx, %edi
	callq	_GETSTRUCT
	movq	%rax, %r15
	movq	_RELOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r13d, %edi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	callq	_elog
LBB0_9:
	movl	%r12d, %edi
	callq	_GETSTRUCT
	movq	%rax, %r14
	movq	(%rax), %rdi
	cmpq	%rdi, (%r15)
	je	LBB0_11
## %bb.10:
	callq	_sepgsql_schema_remove_name
	movq	(%r15), %rdi
	callq	_sepgsql_schema_add_name
LBB0_11:
	movl	8(%r15), %edi
	callq	_NameStr
	movl	%eax, %ebx
	movl	8(%r14), %edi
	callq	_NameStr
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	(%r14), %rdi
	callq	_sepgsql_schema_rename
LBB0_13:
	movq	_RelationRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movl	%r13d, -64(%rbp)
	movq	$0, -72(%rbp)
	leaq	-72(%rbp), %r14
	movq	%r14, %rdi
	callq	_getObjectIdentity
	movq	%rax, %rbx
	movq	_SEPG_DB_TABLE__SETATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_sepgsql_avc_check_perms
	movq	%rbx, %rdi
	callq	_pfree
	movl	%r12d, %edi
	callq	_ReleaseSysCache
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_systable_endscan
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_table_close
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%ebx, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sepgsql_index_modify           ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_SEPG_CLASS_DB_TABLE,4,2        ## @SEPG_CLASS_DB_TABLE
	.comm	_SEPG_CLASS_DB_SEQUENCE,4,2     ## @SEPG_CLASS_DB_SEQUENCE
	.comm	_SEPG_CLASS_DB_VIEW,4,2         ## @SEPG_CLASS_DB_VIEW
	.comm	_RelationRelationId,4,2         ## @RelationRelationId
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_Anum_pg_class_oid,4,2          ## @Anum_pg_class_oid
	.comm	_BTEqualStrategyNumber,4,2      ## @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ## @F_OIDEQ
	.comm	_ClassOidIndexId,4,2            ## @ClassOidIndexId
	.comm	_SnapshotSelf,4,2               ## @SnapshotSelf
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not find tuple for relation %u"

	.comm	_RELOID,4,2                     ## @RELOID
L_.str.1:                               ## @.str.1
	.asciz	"cache lookup failed for relation %u"

	.comm	_SEPG_DB_TABLE__SETATTR,4,2     ## @SEPG_DB_TABLE__SETATTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sepgsql_relation_setattr       ; -- Begin function sepgsql_relation_setattr
	.p2align	2
_sepgsql_relation_setattr:              ; @sepgsql_relation_setattr
	.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
	bl	_get_rel_relkind
	sub	w9, w0, #128
	cmp	w9, #4
	b.hi	LBB0_13
; %bb.1:
Lloh0:
	adrp	x8, _SEPG_CLASS_DB_TABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEPG_CLASS_DB_TABLE@GOTPAGEOFF]
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
Lloh4:
	adrp	x8, _SEPG_CLASS_DB_VIEW@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SEPG_CLASS_DB_VIEW@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _SEPG_CLASS_DB_SEQUENCE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEPG_CLASS_DB_SEQUENCE@GOTPAGEOFF]
LBB0_4:
	ldr	w21, [x8]
Lloh8:
	adrp	x27, _RelationRelationId@GOTPAGE
Lloh9:
	ldr	x27, [x27, _RelationRelationId@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh10:
	adrp	x26, _AccessShareLock@GOTPAGE
Lloh11:
	ldr	x26, [x26, _AccessShareLock@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_table_open
	mov	x20, x0
Lloh12:
	adrp	x8, _Anum_pg_class_oid@GOTPAGE
Lloh13:
	ldr	x8, [x8, _Anum_pg_class_oid@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
Lloh15:
	adrp	x8, _BTEqualStrategyNumber@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BTEqualStrategyNumber@GOTPAGEOFF]
Lloh17:
	ldr	w23, [x8]
Lloh18:
	adrp	x8, _F_OIDEQ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _F_OIDEQ@GOTPAGEOFF]
Lloh20:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_ObjectIdGetDatum
	mov	x4, x0
	add	x0, sp, #28
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_ScanKeyInit
Lloh21:
	adrp	x8, _ClassOidIndexId@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ClassOidIndexId@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _SnapshotSelf@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SnapshotSelf@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	add	x5, sp, #28
	mov	x0, x20
	mov	w2, #1
	mov	w4, #1
	bl	_systable_beginscan
	mov	x22, x0
	bl	_systable_getnext
	mov	x23, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_6
; %bb.5:
Lloh27:
	adrp	x8, _ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_elog
LBB0_6:
	mov	x0, x23
	bl	_GETSTRUCT
	mov	x24, x0
Lloh32:
	adrp	x8, _RELOID@GOTPAGE
Lloh33:
	ldr	x8, [x8, _RELOID@GOTPAGEOFF]
Lloh34:
	ldr	w23, [x8]
	mov	x0, x19
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x23
	bl	_SearchSysCache1
	mov	x23, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_8
; %bb.7:
Lloh35:
	adrp	x8, _ERROR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x1, l_.str.1@PAGE
Lloh39:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_elog
LBB0_8:
	mov	x0, x23
	bl	_GETSTRUCT
	mov	x25, x0
	ldr	x8, [x24]
	ldr	x0, [x0]
	cmp	x8, x0
	b.eq	LBB0_10
; %bb.9:
	bl	_sepgsql_schema_remove_name
	ldr	x0, [x24]
	bl	_sepgsql_schema_add_name
LBB0_10:
	ldr	w0, [x24, #8]
	bl	_NameStr
	mov	x24, x0
	ldr	w0, [x25, #8]
	bl	_NameStr
	mov	x1, x0
	mov	x0, x24
	bl	_strcmp
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x0, [x25]
	bl	_sepgsql_schema_rename
LBB0_12:
	ldr	w8, [x27]
	stp	w19, w8, [sp, #16]
	str	xzr, [sp, #8]
	add	x0, sp, #8
	bl	_getObjectIdentity
	mov	x19, x0
Lloh40:
	adrp	x8, _SEPG_DB_TABLE__SETATTR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SEPG_DB_TABLE__SETATTR@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, x21
	mov	x3, x19
	mov	w4, #1
	bl	_sepgsql_avc_check_perms
	mov	x0, x19
	bl	_pfree
	mov	x0, x23
	bl	_ReleaseSysCache
	mov	x0, x22
	bl	_systable_endscan
	ldr	w1, [x26]
	mov	x0, x20
	bl	_table_close
LBB0_13:
	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
LBB0_14:
	mov	x0, x19
	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
	b	_sepgsql_index_modify
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
                                        ; -- End function
	.comm	_SEPG_CLASS_DB_TABLE,4,2        ; @SEPG_CLASS_DB_TABLE
	.comm	_SEPG_CLASS_DB_SEQUENCE,4,2     ; @SEPG_CLASS_DB_SEQUENCE
	.comm	_SEPG_CLASS_DB_VIEW,4,2         ; @SEPG_CLASS_DB_VIEW
	.comm	_RelationRelationId,4,2         ; @RelationRelationId
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_Anum_pg_class_oid,4,2          ; @Anum_pg_class_oid
	.comm	_BTEqualStrategyNumber,4,2      ; @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ; @F_OIDEQ
	.comm	_ClassOidIndexId,4,2            ; @ClassOidIndexId
	.comm	_SnapshotSelf,4,2               ; @SnapshotSelf
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not find tuple for relation %u"

	.comm	_RELOID,4,2                     ; @RELOID
l_.str.1:                               ; @.str.1
	.asciz	"cache lookup failed for relation %u"

	.comm	_SEPG_DB_TABLE__SETATTR,4,2     ; @SEPG_DB_TABLE__SETATTR
.subsections_via_symbols
