	.file	"extr_spi.c_SPI_register_relation.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	SPI_register_relation
	.type	SPI_register_relation, @function
SPI_register_relation:
.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, 8
	.cfi_def_cfa_offset 32
	test	rdi, rdi
	je	.L2
	cmp	QWORD PTR [rdi], 0
	mov	rbp, rdi
	je	.L2
	xor	edi, edi
	call	_SPI_begin_call@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rdi, QWORD PTR 0[rbp]
	call	_SPI_find_ENR_by_name@PLT
	mov	r12d, DWORD PTR SPI_ERROR_REL_DUPLICATE[rip]
	test	rax, rax
	je	.L13
.L6:
	xor	edi, edi
	call	_SPI_end_call@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	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	r12d, DWORD PTR SPI_ERROR_ARGUMENT[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	r12, QWORD PTR _SPI_current[rip]
	mov	rdi, QWORD PTR [r12]
	test	rdi, rdi
	je	.L14
.L7:
	mov	rsi, rbp
	call	register_ENR@PLT
	mov	r12d, DWORD PTR SPI_OK_REL_REGISTER[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	xor	eax, eax
	call	create_queryEnv@PLT
	mov	QWORD PTR [r12], rax
	mov	rax, QWORD PTR _SPI_current[rip]
	mov	rdi, QWORD PTR [rax]
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	SPI_register_relation, .-SPI_register_relation
	.comm	_SPI_current,8,8
	.comm	SPI_OK_REL_REGISTER,4,4
	.comm	SPI_ERROR_REL_DUPLICATE,4,4
	.comm	SPI_ERROR_ARGUMENT,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_spi.c_SPI_register_relation.c"
	.text
	.align	2
	.global	SPI_register_relation
	.syntax unified
	.arm
	.fpu softvfp
	.type	SPI_register_relation, %function
SPI_register_relation:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r0, #0
	beq	.L2
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L2
	mov	r0, #0
	bl	_SPI_begin_call
	subs	r5, r0, #0
	blt	.L1
	ldr	r0, [r4]
	bl	_SPI_find_ENR_by_name
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L14
	ldr	r5, [r3]
.L6:
	mov	r0, #0
	bl	_SPI_end_call
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L14+4
	ldr	r5, [r3]
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r6, .L14+8
	ldr	r5, [r6]
	ldr	r0, [r5]
	cmp	r0, #0
	beq	.L13
.L7:
	mov	r1, r4
	bl	register_ENR
	ldr	r3, .L14+12
	ldr	r5, [r3]
	b	.L6
.L13:
	bl	create_queryEnv
	ldr	r3, [r6]
	str	r0, [r5]
	ldr	r0, [r3]
	b	.L7
.L15:
	.align	2
.L14:
	.word	SPI_ERROR_REL_DUPLICATE
	.word	SPI_ERROR_ARGUMENT
	.word	_SPI_current
	.word	SPI_OK_REL_REGISTER
	.size	SPI_register_relation, .-SPI_register_relation
	.comm	_SPI_current,4,4
	.comm	SPI_OK_REL_REGISTER,4,4
	.comm	SPI_ERROR_REL_DUPLICATE,4,4
	.comm	SPI_ERROR_ARGUMENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
