	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RemoveUserMapping              ## -- Begin function RemoveUserMapping
	.p2align	4, 0x90
_RemoveUserMapping:                     ## @RemoveUserMapping
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_ROLESPEC_PUBLIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movq	_ACL_ID_PUBLIC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_2
LBB0_7:
	movl	4(%r15), %esi
	movq	%rbx, %rdi
	callq	_get_rolespec_oid
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_OidIsValid
	testl	%eax, %eax
	je	LBB0_8
LBB0_2:
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_GetForeignServerByName
	testq	%rax, %rax
	je	LBB0_3
## %bb.10:
	movq	%rax, %r12
	movq	_USERMAPPINGUSERSERVER@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_Anum_pg_user_mapping_oid@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_ObjectIdGetDatum
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%eax, %r14d
	movl	4(%r12), %edi
	callq	_ObjectIdGetDatum
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_GetSysCacheOid2
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_OidIsValid
	testl	%eax, %eax
	je	LBB0_11
## %bb.14:
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_user_mapping_ddl_aclcheck
	movq	_UserMappingRelationId@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	%ebx, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	_DROP_CASCADE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdi
	xorl	%edx, %edx
	callq	_performDeletion
	jmp	LBB0_15
LBB0_3:
	cmpl	$0, 4(%r15)
	jne	LBB0_5
## %bb.4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_UNDEFINED_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_5:
	movq	_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_errmsg
	jmp	LBB0_6
LBB0_8:
	movq	_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_elog
	jmp	LBB0_9
LBB0_11:
	cmpl	$0, 4(%r15)
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jne	LBB0_13
## %bb.12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ERRCODE_UNDEFINED_OBJECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_errcode
	movl	%r14d, %edi
	callq	_MappingUserName
	movl	(%r15), %edx
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_13:
	movq	_NOTICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r14d, %edi
	callq	_MappingUserName
	movl	(%r15), %edx
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_errmsg
LBB0_6:
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ereport
LBB0_9:
	movq	_InvalidOid@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ROLESPEC_PUBLIC,8,3            ## @ROLESPEC_PUBLIC
	.comm	_ACL_ID_PUBLIC,4,2              ## @ACL_ID_PUBLIC
	.comm	_NOTICE,4,2                     ## @NOTICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"role \"%s\" does not exist, skipping"

	.comm	_InvalidOid,4,2                 ## @InvalidOid
	.comm	_ERROR,4,2                      ## @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ## @ERRCODE_UNDEFINED_OBJECT
L_.str.1:                               ## @.str.1
	.asciz	"server \"%s\" does not exist"

L_.str.2:                               ## @.str.2
	.asciz	"server \"%s\" does not exist, skipping"

	.comm	_USERMAPPINGUSERSERVER,4,2      ## @USERMAPPINGUSERSERVER
	.comm	_Anum_pg_user_mapping_oid,4,2   ## @Anum_pg_user_mapping_oid
L_.str.3:                               ## @.str.3
	.asciz	"user mapping for \"%s\" does not exist for server \"%s\""

L_.str.4:                               ## @.str.4
	.asciz	"user mapping for \"%s\" does not exist for server \"%s\", skipping"

	.comm	_UserMappingRelationId,4,2      ## @UserMappingRelationId
	.comm	_DROP_CASCADE,4,2               ## @DROP_CASCADE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_RemoveUserMapping              ; -- Begin function RemoveUserMapping
	.p2align	2
_RemoveUserMapping:                     ; @RemoveUserMapping
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	x21, [x0, #8]
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _ROLESPEC_PUBLIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ROLESPEC_PUBLIC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ACL_ID_PUBLIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ACL_ID_PUBLIC@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_3
LBB0_2:
	ldr	w1, [x19, #4]
	mov	x0, x21
	bl	_get_rolespec_oid
	mov	x20, x0
	bl	_OidIsValid
	cbz	w0, LBB0_9
LBB0_3:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_GetForeignServerByName
	cbz	x0, LBB0_6
; %bb.4:
	mov	x22, x0
Lloh6:
	adrp	x8, _USERMAPPINGUSERSERVER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _USERMAPPINGUSERSERVER@GOTPAGEOFF]
Lloh8:
	ldr	w21, [x8]
Lloh9:
	adrp	x8, _Anum_pg_user_mapping_oid@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Anum_pg_user_mapping_oid@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_ObjectIdGetDatum
	mov	x24, x0
	ldr	w0, [x22, #4]
	bl	_ObjectIdGetDatum
	mov	x3, x0
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	bl	_GetSysCacheOid2
	mov	x21, x0
	bl	_OidIsValid
	cbz	w0, LBB0_10
; %bb.5:
	ldp	w2, w1, [x22]
	mov	x0, x20
	bl	_user_mapping_ddl_aclcheck
Lloh12:
	adrp	x8, _UserMappingRelationId@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UserMappingRelationId@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	stp	w21, w8, [sp, #24]
	str	xzr, [sp, #16]
Lloh15:
	adrp	x8, _DROP_CASCADE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DROP_CASCADE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x0, sp, #16
	mov	w2, #0
	bl	_performDeletion
	b	LBB0_15
LBB0_6:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_8
; %bb.7:
Lloh18:
	adrp	x8, _ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
Lloh21:
	adrp	x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_errcode
	ldr	w1, [x19]
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	bl	_ereport
LBB0_8:
Lloh26:
	adrp	x8, _NOTICE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NOTICE@GOTPAGEOFF]
Lloh28:
	ldr	w20, [x8]
	ldr	w1, [x19]
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x20
	b	LBB0_13
LBB0_9:
Lloh31:
	adrp	x8, _NOTICE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _NOTICE@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	ldr	w2, [x21, #8]
Lloh34:
	adrp	x1, l_.str@PAGE
Lloh35:
	add	x1, x1, l_.str@PAGEOFF
	bl	_elog
	b	LBB0_14
LBB0_10:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_12
; %bb.11:
Lloh36:
	adrp	x8, _ERROR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh38:
	ldr	w21, [x8]
Lloh39:
	adrp	x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ERRCODE_UNDEFINED_OBJECT@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	bl	_errcode
	mov	x0, x20
	bl	_MappingUserName
	mov	x1, x0
	ldr	w8, [x19]
	str	x8, [sp]
Lloh42:
	adrp	x0, l_.str.3@PAGE
Lloh43:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
	bl	_ereport
LBB0_12:
Lloh44:
	adrp	x8, _NOTICE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _NOTICE@GOTPAGEOFF]
Lloh46:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_MappingUserName
	mov	x1, x0
	ldr	w8, [x19]
	str	x8, [sp]
Lloh47:
	adrp	x0, l_.str.4@PAGE
Lloh48:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_errmsg
	mov	x1, x0
	mov	x0, x21
LBB0_13:
	bl	_ereport
LBB0_14:
Lloh49:
	adrp	x8, _InvalidOid@GOTPAGE
Lloh50:
	ldr	x8, [x8, _InvalidOid@GOTPAGEOFF]
Lloh51:
	ldr	w21, [x8]
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_ROLESPEC_PUBLIC,8,3            ; @ROLESPEC_PUBLIC
	.comm	_ACL_ID_PUBLIC,4,2              ; @ACL_ID_PUBLIC
	.comm	_NOTICE,4,2                     ; @NOTICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"role \"%s\" does not exist, skipping"

	.comm	_InvalidOid,4,2                 ; @InvalidOid
	.comm	_ERROR,4,2                      ; @ERROR
	.comm	_ERRCODE_UNDEFINED_OBJECT,4,2   ; @ERRCODE_UNDEFINED_OBJECT
l_.str.1:                               ; @.str.1
	.asciz	"server \"%s\" does not exist"

l_.str.2:                               ; @.str.2
	.asciz	"server \"%s\" does not exist, skipping"

	.comm	_USERMAPPINGUSERSERVER,4,2      ; @USERMAPPINGUSERSERVER
	.comm	_Anum_pg_user_mapping_oid,4,2   ; @Anum_pg_user_mapping_oid
l_.str.3:                               ; @.str.3
	.asciz	"user mapping for \"%s\" does not exist for server \"%s\""

l_.str.4:                               ; @.str.4
	.asciz	"user mapping for \"%s\" does not exist for server \"%s\", skipping"

	.comm	_UserMappingRelationId,4,2      ; @UserMappingRelationId
	.comm	_DROP_CASCADE,4,2               ; @DROP_CASCADE
.subsections_via_symbols
