	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sepgsql_proc_setattr           ## -- Begin function sepgsql_proc_setattr
	.p2align	4, 0x90
_sepgsql_proc_setattr:                  ## @sepgsql_proc_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, %r14d
	movq	_ProcedureRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_table_open
	movl	%eax, %ebx
	movq	_Anum_pg_proc_oid@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_BTEqualStrategyNumber@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_F_OIDEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r14d, %edi
	callq	_ObjectIdGetDatum
	leaq	-56(%rbp), %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_ScanKeyInit
	movq	_ProcedureOidIndexId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SnapshotSelf@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	$1, %edx
	movl	$1, %r8d
	leaq	-56(%rbp), %r9
	callq	_systable_beginscan
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_systable_getnext
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_elog
LBB0_2:
	movl	%ebx, %edi
	callq	_GETSTRUCT
	movq	%rax, %r12
	movq	_PROCOID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_ObjectIdGetDatum
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_SearchSysCache1
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_HeapTupleIsValid
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edx
	callq	_elog
LBB0_4:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	callq	_GETSTRUCT
	movq	%rax, %r14
	movq	(%rax), %rdi
	cmpq	%rdi, (%r12)
	je	LBB0_6
## %bb.5:
	callq	_sepgsql_schema_remove_name
	movq	(%r14), %rdi
	callq	_sepgsql_schema_add_name
LBB0_6:
	movl	16(%r12), %edi
	callq	_NameStr
	movl	%eax, %ebx
	movl	16(%r14), %edi
	callq	_NameStr
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	(%r14), %rdi
	callq	_sepgsql_schema_rename
LBB0_8:
	movq	_SEPG_DB_PROCEDURE__SETATTR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	cmpq	$0, 8(%r14)
	je	LBB0_10
## %bb.9:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_12
LBB0_10:
	cmpq	$0, 8(%r12)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_12
## %bb.11:
	movq	_SEPG_DB_PROCEDURE__INSTALL@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
LBB0_12:
	movq	_ProcedureRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movl	%ecx, -64(%rbp)
	movq	$0, -72(%rbp)
	leaq	-72(%rbp), %r14
	movq	%r14, %rdi
	callq	_getObjectIdentity
	movq	%rax, %rbx
	movq	_SEPG_CLASS_DB_PROCEDURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	movl	$1, %r8d
	callq	_sepgsql_avc_check_perms
	movq	%rbx, %rdi
	callq	_pfree
	movl	%r13d, %edi
	callq	_ReleaseSysCache
	movl	-48(%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
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ProcedureRelationId,4,2        ## @ProcedureRelationId
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
	.comm	_Anum_pg_proc_oid,4,2           ## @Anum_pg_proc_oid
	.comm	_BTEqualStrategyNumber,4,2      ## @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ## @F_OIDEQ
	.comm	_ProcedureOidIndexId,4,2        ## @ProcedureOidIndexId
	.comm	_SnapshotSelf,4,2               ## @SnapshotSelf
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not find tuple for function %u"

	.comm	_PROCOID,4,2                    ## @PROCOID
L_.str.1:                               ## @.str.1
	.asciz	"cache lookup failed for function %u"

	.comm	_SEPG_DB_PROCEDURE__SETATTR,4,2 ## @SEPG_DB_PROCEDURE__SETATTR
	.comm	_SEPG_DB_PROCEDURE__INSTALL,4,2 ## @SEPG_DB_PROCEDURE__INSTALL
	.comm	_SEPG_CLASS_DB_PROCEDURE,4,2    ## @SEPG_CLASS_DB_PROCEDURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sepgsql_proc_setattr           ; -- Begin function sepgsql_proc_setattr
	.p2align	2
_sepgsql_proc_setattr:                  ; @sepgsql_proc_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	x20, x0
Lloh0:
	adrp	x27, _ProcedureRelationId@GOTPAGE
Lloh1:
	ldr	x27, [x27, _ProcedureRelationId@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh2:
	adrp	x26, _AccessShareLock@GOTPAGE
Lloh3:
	ldr	x26, [x26, _AccessShareLock@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_table_open
	mov	x19, x0
Lloh4:
	adrp	x8, _Anum_pg_proc_oid@GOTPAGE
Lloh5:
	ldr	x8, [x8, _Anum_pg_proc_oid@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
Lloh7:
	adrp	x8, _BTEqualStrategyNumber@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BTEqualStrategyNumber@GOTPAGEOFF]
Lloh9:
	ldr	w22, [x8]
Lloh10:
	adrp	x8, _F_OIDEQ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _F_OIDEQ@GOTPAGEOFF]
Lloh12:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_ObjectIdGetDatum
	mov	x4, x0
	add	x0, sp, #28
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_ScanKeyInit
Lloh13:
	adrp	x8, _ProcedureOidIndexId@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ProcedureOidIndexId@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _SnapshotSelf@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SnapshotSelf@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	add	x5, sp, #28
	mov	x0, x19
	mov	w2, #1
	mov	w4, #1
	bl	_systable_beginscan
	mov	x21, x0
	bl	_systable_getnext
	mov	x22, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_2
; %bb.1:
Lloh19:
	adrp	x8, _ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_elog
LBB0_2:
	mov	x0, x22
	bl	_GETSTRUCT
	mov	x23, x0
Lloh24:
	adrp	x8, _PROCOID@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PROCOID@GOTPAGEOFF]
Lloh26:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_ObjectIdGetDatum
	mov	x1, x0
	mov	x0, x22
	bl	_SearchSysCache1
	mov	x22, x0
	bl	_HeapTupleIsValid
	cbnz	w0, LBB0_4
; %bb.3:
Lloh27:
	adrp	x8, _ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_elog
LBB0_4:
	mov	x0, x22
	bl	_GETSTRUCT
	mov	x24, x0
	ldr	x8, [x23]
	ldr	x0, [x0]
	cmp	x8, x0
	b.eq	LBB0_6
; %bb.5:
	bl	_sepgsql_schema_remove_name
	ldr	x0, [x24]
	bl	_sepgsql_schema_add_name
LBB0_6:
	ldr	w0, [x23, #16]
	bl	_NameStr
	mov	x25, x0
	ldr	w0, [x24, #16]
	bl	_NameStr
	mov	x1, x0
	mov	x0, x25
	bl	_strcmp
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x24]
	bl	_sepgsql_schema_rename
LBB0_8:
Lloh32:
	adrp	x8, _SEPG_DB_PROCEDURE__SETATTR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SEPG_DB_PROCEDURE__SETATTR@GOTPAGEOFF]
Lloh34:
	ldr	w25, [x8]
	ldr	x8, [x24, #8]
	cbnz	x8, LBB0_11
; %bb.9:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_11
; %bb.10:
Lloh35:
	adrp	x8, _SEPG_DB_PROCEDURE__INSTALL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SEPG_DB_PROCEDURE__INSTALL@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	orr	w25, w8, w25
LBB0_11:
	ldr	w8, [x27]
	stp	w20, w8, [sp, #16]
	str	xzr, [sp, #8]
	add	x0, sp, #8
	bl	_getObjectIdentity
	mov	x20, x0
Lloh38:
	adrp	x8, _SEPG_CLASS_DB_PROCEDURE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _SEPG_CLASS_DB_PROCEDURE@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	x2, x25
	mov	x3, x20
	mov	w4, #1
	bl	_sepgsql_avc_check_perms
	mov	x0, x20
	bl	_pfree
	mov	x0, x22
	bl	_ReleaseSysCache
	mov	x0, x21
	bl	_systable_endscan
	ldr	w1, [x26]
	mov	x0, x19
	bl	_table_close
	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	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_ProcedureRelationId,4,2        ; @ProcedureRelationId
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
	.comm	_Anum_pg_proc_oid,4,2           ; @Anum_pg_proc_oid
	.comm	_BTEqualStrategyNumber,4,2      ; @BTEqualStrategyNumber
	.comm	_F_OIDEQ,4,2                    ; @F_OIDEQ
	.comm	_ProcedureOidIndexId,4,2        ; @ProcedureOidIndexId
	.comm	_SnapshotSelf,4,2               ; @SnapshotSelf
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not find tuple for function %u"

	.comm	_PROCOID,4,2                    ; @PROCOID
l_.str.1:                               ; @.str.1
	.asciz	"cache lookup failed for function %u"

	.comm	_SEPG_DB_PROCEDURE__SETATTR,4,2 ; @SEPG_DB_PROCEDURE__SETATTR
	.comm	_SEPG_DB_PROCEDURE__INSTALL,4,2 ; @SEPG_DB_PROCEDURE__INSTALL
	.comm	_SEPG_CLASS_DB_PROCEDURE,4,2    ; @SEPG_CLASS_DB_PROCEDURE
.subsections_via_symbols
