	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AlterDatabaseSet               ## -- Begin function AlterDatabaseSet
	.p2align	4, 0x90
_AlterDatabaseSet:                      ## @AlterDatabaseSet
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	xorl	%esi, %esi
	callq	_get_database_oid
	movl	%eax, %ebx
	movq	_DatabaseRelationId@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_shdepLockAndCheckObject
	xorl	%eax, %eax
	callq	_GetUserId
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pg_database_ownercheck
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_ACLCHECK_NOT_OWNER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_OBJECT_DATABASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	callq	_aclcheck_error
LBB0_2:
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movl	%ebx, %edi
	callq	_AlterSetting
	movl	(%r15), %edi
	movq	_AccessShareLock@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_UnlockSharedObject
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DatabaseRelationId,4,2         ## @DatabaseRelationId
	.comm	_ACLCHECK_NOT_OWNER,4,2         ## @ACLCHECK_NOT_OWNER
	.comm	_OBJECT_DATABASE,4,2            ## @OBJECT_DATABASE
	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_AccessShareLock,4,2            ## @AccessShareLock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AlterDatabaseSet               ; -- Begin function AlterDatabaseSet
	.p2align	2
_AlterDatabaseSet:                      ; @AlterDatabaseSet
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	w0, [x0, #4]
	mov	w1, #0
	bl	_get_database_oid
	mov	x19, x0
Lloh0:
	adrp	x21, _DatabaseRelationId@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DatabaseRelationId@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	x1, x19
	bl	_shdepLockAndCheckObject
	bl	_GetUserId
	mov	x1, x0
	mov	x0, x19
	bl	_pg_database_ownercheck
	cbnz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ACLCHECK_NOT_OWNER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ACLCHECK_NOT_OWNER@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x8, _OBJECT_DATABASE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OBJECT_DATABASE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	bl	_aclcheck_error
LBB0_2:
Lloh8:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh9:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_AlterSetting
	ldr	w0, [x21]
Lloh11:
	adrp	x8, _AccessShareLock@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AccessShareLock@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x1, x19
	mov	w2, #0
	bl	_UnlockSharedObject
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DatabaseRelationId,4,2         ; @DatabaseRelationId
	.comm	_ACLCHECK_NOT_OWNER,4,2         ; @ACLCHECK_NOT_OWNER
	.comm	_OBJECT_DATABASE,4,2            ; @OBJECT_DATABASE
	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_AccessShareLock,4,2            ; @AccessShareLock
.subsections_via_symbols
