	.file	"extr_master_node_protocol.c_GetNextShardId.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	GetNextShardId
	.type	GetNextShardId, @function
GetNextShardId:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR InvalidOid[rip]
	mov	DWORD PTR 4[rsp], 0
	mov	DWORD PTR [rsp], eax
	mov	rax, QWORD PTR NextShardId[rip]
	test	rax, rax
	jle	.L2
	lea	rdx, 1[rax]
	mov	QWORD PTR NextShardId[rip], rdx
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L7
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR SHARDID_SEQUENCE_NAME[rip]
	call	cstring_to_text@PLT
	xor	esi, esi
	mov	rdi, rax
	call	ResolveRelationId@PLT
	mov	edi, eax
	call	ObjectIdGetDatum@PLT
	lea	rsi, 4[rsp]
	mov	rdi, rsp
	mov	ebp, eax
	call	GetUserIdAndSecContext@PLT
	mov	r12d, DWORD PTR SECURITY_LOCAL_USERID_CHANGE[rip]
	xor	eax, eax
	call	CitusExtensionOwner@PLT
	mov	edi, eax
	mov	esi, r12d
	call	SetUserIdAndSecContext@PLT
	mov	edi, DWORD PTR nextval_oid[rip]
	mov	esi, ebp
	call	DirectFunctionCall1@PLT
	mov	edi, DWORD PTR [rsp]
	mov	esi, DWORD PTR 4[rsp]
	mov	ebp, eax
	call	SetUserIdAndSecContext@PLT
	mov	edi, ebp
	call	DatumGetInt64@PLT
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	GetNextShardId, .-GetNextShardId
	.comm	nextval_oid,4,4
	.comm	SHARDID_SEQUENCE_NAME,4,4
	.comm	SECURITY_LOCAL_USERID_CHANGE,4,4
	.comm	NextShardId,8,8
	.comm	InvalidOid,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_master_node_protocol.c_GetNextShardId.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	GetNextShardId
	.syntax unified
	.arm
	.fpu softvfp
	.type	GetNextShardId, %function
GetNextShardId:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, #0
	ldr	r3, .L8
	ldr	r2, .L8+4
	ldr	r0, [r3]
	ldr	r2, [r2]
	ldr	r1, .L8+8
	sub	sp, sp, #16
	cmp	r0, r4
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	stmib	sp, {r2, r4}
	addgt	r2, r0, #1
	strgt	r2, [r3]
	bgt	.L1
	ldr	r3, .L8+12
	ldr	r0, [r3]
	bl	cstring_to_text
	mov	r1, r4
	bl	ResolveRelationId
	bl	ObjectIdGetDatum
	mov	r4, r0
	add	r1, sp, #8
	add	r0, sp, #4
	bl	GetUserIdAndSecContext
	bl	CitusExtensionOwner
	ldr	r3, .L8+16
	ldr	r1, [r3]
	bl	SetUserIdAndSecContext
	ldr	r3, .L8+20
	mov	r1, r4
	ldr	r0, [r3]
	bl	DirectFunctionCall1
	mov	r4, r0
	ldr	r1, [sp, #8]
	ldr	r0, [sp, #4]
	bl	SetUserIdAndSecContext
	mov	r0, r4
	bl	DatumGetInt64
.L1:
	ldr	r3, .L8+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	NextShardId
	.word	InvalidOid
	.word	.LC0
	.word	SHARDID_SEQUENCE_NAME
	.word	SECURITY_LOCAL_USERID_CHANGE
	.word	nextval_oid
	.size	GetNextShardId, .-GetNextShardId
	.comm	nextval_oid,4,4
	.comm	SHARDID_SEQUENCE_NAME,4,4
	.comm	SECURITY_LOCAL_USERID_CHANGE,4,4
	.comm	NextShardId,4,4
	.comm	InvalidOid,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
