	.file	"extr_ruleutils.c_pg_get_ruledef_worker.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"SPI_connect failed"
.LC1:
	.string	"SPI_prepare failed for \"%s\""
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"failed to get pg_rewrite tuple for rule %u"
	.section	.rodata.str1.1
.LC3:
	.string	"SPI_finish failed"
	.text
	.p2align 4
	.type	pg_get_ruledef_worker, @function
pg_get_ruledef_worker:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rbp, rsp
	mov	rdi, rbp
	call	initStringInfo@PLT
	xor	eax, eax
	call	SPI_connect@PLT
	cmp	rax, QWORD PTR SPI_OK_CONNECT[rip]
	je	.L2
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	elog@PLT
.L2:
	cmp	QWORD PTR plan_getrulebyoid[rip], 0
	lea	r14, 16[rsp]
	je	.L14
.L3:
	mov	edi, r12d
	call	ObjectIdGetDatum@PLT
	xor	r8d, r8d
	lea	rdx, 23[rsp]
	mov	rsi, r14
	mov	rdi, QWORD PTR plan_getrulebyoid[rip]
	mov	ecx, 1
	mov	DWORD PTR 16[rsp], eax
	mov	BYTE PTR 23[rsp], 32
	call	SPI_execute_plan@PLT
	cmp	DWORD PTR SPI_OK_SELECT[rip], eax
	je	.L5
	mov	edi, DWORD PTR ERROR[rip]
	mov	edx, r12d
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	elog@PLT
.L5:
	cmp	DWORD PTR SPI_processed[rip], 1
	je	.L15
.L6:
	xor	eax, eax
	call	SPI_finish@PLT
	cmp	rax, QWORD PTR SPI_OK_FINISH[rip]
	je	.L7
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	elog@PLT
.L7:
	cmp	QWORD PTR [rsp], 0
	je	.L10
	mov	rax, QWORD PTR 8[rsp]
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rax, QWORD PTR SPI_tuptable[rip]
	mov	ecx, r13d
	mov	rdi, rbp
	mov	rsi, QWORD PTR 8[rax]
	mov	edx, DWORD PTR [rax]
	mov	esi, DWORD PTR [rsi]
	call	make_ruledef@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR OIDOID[rip]
	mov	edi, DWORD PTR query_getrulebyoid[rip]
	mov	rdx, r14
	mov	esi, 1
	mov	DWORD PTR 16[rsp], eax
	call	SPI_prepare@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L17
.L4:
	mov	rdi, rbx
	call	SPI_keepplan@PLT
	mov	QWORD PTR plan_getrulebyoid[rip], rbx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edx, DWORD PTR query_getrulebyoid[rip]
	mov	edi, DWORD PTR ERROR[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	elog@PLT
	jmp	.L4
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pg_get_ruledef_worker, .-pg_get_ruledef_worker
	.comm	query_getrulebyoid,4,4
	.comm	plan_getrulebyoid,8,8
	.comm	SPI_tuptable,8,8
	.comm	SPI_processed,4,4
	.comm	SPI_OK_SELECT,4,4
	.comm	SPI_OK_FINISH,8,8
	.comm	SPI_OK_CONNECT,8,8
	.comm	OIDOID,4,4
	.comm	ERROR,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_ruleutils.c_pg_get_ruledef_worker.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SPI_connect failed\000"
	.align	2
.LC1:
	.ascii	"SPI_prepare failed for \"%s\"\000"
	.align	2
.LC2:
	.ascii	"failed to get pg_rewrite tuple for rule %u\000"
	.align	2
.LC3:
	.ascii	"SPI_finish failed\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pg_get_ruledef_worker, %function
pg_get_ruledef_worker:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L19
	sub	sp, sp, #36
	mov	r4, r0
	add	r0, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r5, r1
	bl	initStringInfo
	bl	SPI_connect
	ldr	r3, .L19+4
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L2
	ldr	r3, .L19+8
	ldr	r1, .L19+12
	ldr	r0, [r3]
	bl	elog
.L2:
	ldr	r6, .L19+16
	ldr	r3, [r6]
	cmp	r3, #0
	addne	r7, sp, #20
	beq	.L15
.L3:
	mov	r0, r4
	bl	ObjectIdGetDatum
	mov	r3, #0
	mov	r2, r0
	mov	ip, #32
	str	r3, [sp]
	str	r2, [sp, #20]
	mov	r3, #1
	mov	r1, r7
	ldr	r0, [r6]
	add	r2, sp, #24
	strb	ip, [sp, #24]
	bl	SPI_execute_plan
	ldr	r3, .L19+20
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L5
	ldr	r3, .L19+8
	mov	r2, r4
	ldr	r0, [r3]
	ldr	r1, .L19+24
	bl	elog
.L5:
	ldr	r3, .L19+28
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L16
.L6:
	bl	SPI_finish
	ldr	r3, .L19+32
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L7
	ldr	r3, .L19+8
	ldr	r1, .L19+36
	ldr	r0, [r3]
	bl	elog
.L7:
	ldr	r0, [sp, #12]
	ldr	r3, .L19
	cmp	r0, #0
	ldrne	r0, [sp, #16]
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L16:
	ldr	r2, .L19+40
	mov	r3, r5
	ldr	r2, [r2]
	add	r0, sp, #12
	ldr	r1, [r2, #4]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	make_ruledef
	b	.L6
.L15:
	ldr	r3, .L19+44
	ldr	r9, .L19+48
	ldr	r3, [r3]
	add	r7, sp, #20
	mov	r2, r7
	mov	r1, #1
	ldr	r0, [r9]
	str	r3, [sp, #20]
	bl	SPI_prepare
	subs	r8, r0, #0
	beq	.L18
.L4:
	mov	r0, r8
	bl	SPI_keepplan
	str	r8, [r6]
	b	.L3
.L18:
	ldr	r3, .L19+8
	ldr	r2, [r9]
	ldr	r0, [r3]
	ldr	r1, .L19+52
	bl	elog
	b	.L4
.L17:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC4
	.word	SPI_OK_CONNECT
	.word	ERROR
	.word	.LC0
	.word	plan_getrulebyoid
	.word	SPI_OK_SELECT
	.word	.LC2
	.word	SPI_processed
	.word	SPI_OK_FINISH
	.word	.LC3
	.word	SPI_tuptable
	.word	OIDOID
	.word	query_getrulebyoid
	.word	.LC1
	.size	pg_get_ruledef_worker, .-pg_get_ruledef_worker
	.comm	query_getrulebyoid,4,4
	.comm	plan_getrulebyoid,4,4
	.comm	SPI_tuptable,4,4
	.comm	SPI_processed,4,4
	.comm	SPI_OK_SELECT,4,4
	.comm	SPI_OK_FINISH,4,4
	.comm	SPI_OK_CONNECT,4,4
	.comm	OIDOID,4,4
	.comm	ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
