	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function user_mapping_ddl_aclcheck
_user_mapping_ddl_aclcheck:             ## @user_mapping_ddl_aclcheck
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_GetUserId
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_pg_foreign_server_ownercheck
	testl	%eax, %eax
	je	LBB0_1
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpq	%r15, %rbx
	jne	LBB0_4
## %bb.2:
	movq	_ACL_USAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_pg_foreign_server_aclcheck
	movq	%rax, %rdi
	movq	_ACLCHECK_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_3
	jmp	LBB0_5
LBB0_4:
	movq	_ACLCHECK_NOT_OWNER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_5:
	movq	_OBJECT_FOREIGN_SERVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_aclcheck_error                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ACL_USAGE,4,2                  ## @ACL_USAGE
	.comm	_ACLCHECK_OK,8,3                ## @ACLCHECK_OK
	.comm	_OBJECT_FOREIGN_SERVER,4,2      ## @OBJECT_FOREIGN_SERVER
	.comm	_ACLCHECK_NOT_OWNER,8,3         ## @ACLCHECK_NOT_OWNER
	.no_dead_strip	_user_mapping_ddl_aclcheck
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function user_mapping_ddl_aclcheck
_user_mapping_ddl_aclcheck:             ; @user_mapping_ddl_aclcheck
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_GetUserId
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_pg_foreign_server_ownercheck
	cbz	w0, LBB0_2
LBB0_1:
	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
LBB0_2:
	cmp	x22, x20
	b.ne	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _ACL_USAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACL_USAGE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_pg_foreign_server_aclcheck
Lloh3:
	adrp	x8, _ACLCHECK_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACLCHECK_OK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_1
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _ACLCHECK_NOT_OWNER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ACLCHECK_NOT_OWNER@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
LBB0_5:
Lloh9:
	adrp	x8, _OBJECT_FOREIGN_SERVER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OBJECT_FOREIGN_SERVER@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x2, 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
	b	_aclcheck_error
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ACL_USAGE,4,2                  ; @ACL_USAGE
	.comm	_ACLCHECK_OK,8,3                ; @ACLCHECK_OK
	.comm	_OBJECT_FOREIGN_SERVER,4,2      ; @OBJECT_FOREIGN_SERVER
	.comm	_ACLCHECK_NOT_OWNER,8,3         ; @ACLCHECK_NOT_OWNER
	.no_dead_strip	_user_mapping_ddl_aclcheck
.subsections_via_symbols
