	.file	"extr_money-data.c_long_check_transaction.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	long_check_transaction
	.type	long_check_transaction, @function
long_check_transaction:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	get_transaction@PLT
	test	rax, rax
	je	.L8
	mov	rdx, QWORD PTR [rax]
	cmp	rdx, QWORD PTR trs_cancelled[rip]
	mov	rbx, rax
	je	.L3
	cmp	rdx, QWORD PTR trs_long_locked[rip]
	je	.L3
	xor	eax, eax
	cmp	rdx, QWORD PTR trs_committed[rip]
	je	.L3
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR 16[rbx]
	test	eax, eax
	je	.L6
	mov	rsi, rsp
	mov	rdi, rbx
	call	compute_lock_codes@PLT
	mov	rcx, QWORD PTR [rsp]
	cmp	rcx, rbp
	je	.L5
	cmp	QWORD PTR 8[rsp], rbp
	jne	.L6
.L5:
	mov	rdx, QWORD PTR [rbx]
	cmp	rdx, QWORD PTR trs_committed[rip]
	mov	eax, 1
	je	.L1
	cmp	rdx, QWORD PTR trs_cancelled[rip]
	je	.L11
	mov	eax, 2
	cmp	rcx, rbp
	jne	.L1
	mov	rdx, QWORD PTR LONG_LOCK_CANCEL_TIMEOUT[rip]
	add	rdx, QWORD PTR now[rip]
	mov	QWORD PTR 8[rbx], rdx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, 3
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, -1
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	long_check_transaction, .-long_check_transaction
	.comm	trs_long_locked,8,8
	.comm	trs_committed,8,8
	.comm	trs_cancelled,8,8
	.comm	now,8,8
	.comm	LONG_LOCK_CANCEL_TIMEOUT,8,8
	.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_money-data.c_long_check_transaction.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	long_check_transaction
	.syntax unified
	.arm
	.fpu softvfp
	.type	long_check_transaction, %function
long_check_transaction:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L17
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, r2
	bl	get_transaction
	subs	r4, r0, #0
	beq	.L9
	ldr	r6, .L17+4
	ldr	r3, [r4]
	ldr	r2, [r6]
	cmp	r3, r2
	beq	.L3
	ldr	r2, .L17+8
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L3
	ldr	r2, .L17+12
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L9
.L3:
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L6
	mov	r0, r4
	add	r1, sp, #4
	bl	compute_lock_codes
	ldr	r2, [sp, #4]
	cmp	r2, r5
	beq	.L5
	ldr	r3, [sp, #8]
	cmp	r3, r5
	bne	.L6
.L5:
	ldr	r1, .L17+12
	ldr	r3, [r4]
	ldr	r1, [r1]
	cmp	r3, r1
	moveq	r0, #1
	beq	.L1
	ldr	r1, [r6]
	cmp	r3, r1
	beq	.L11
	cmp	r2, r5
	movne	r0, #2
	beq	.L15
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	mov	r0, #0
	b	.L1
.L15:
	ldr	r3, .L17+16
	ldr	r2, .L17+20
	ldr	r3, [r3]
	ldr	r2, [r2]
	mov	r0, #2
	add	r3, r3, r2
	str	r3, [r4, #4]
	b	.L1
.L11:
	mov	r0, #3
	b	.L1
.L6:
	mvn	r0, #0
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	trs_cancelled
	.word	trs_long_locked
	.word	trs_committed
	.word	now
	.word	LONG_LOCK_CANCEL_TIMEOUT
	.size	long_check_transaction, .-long_check_transaction
	.comm	trs_long_locked,4,4
	.comm	trs_committed,4,4
	.comm	trs_cancelled,4,4
	.comm	now,4,4
	.comm	LONG_LOCK_CANCEL_TIMEOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
