	.file	"125141812.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d -> %d transfer $%d\n"
	.text
	.globl	deadlock_transfer
	.type	deadlock_transfer, @function
deadlock_transfer:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR 48[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 48[rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 8
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, 8
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	sub	edx, ecx
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	edx, ecx
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, 8
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 8
	mov	rdi, rax
	call	pthread_mutex_unlock@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	deadlock_transfer, .-deadlock_transfer
	.globl	create_account
	.type	create_account, @function
create_account:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR aid.1[rip]
	add	eax, 1
	mov	DWORD PTR aid.1[rip], eax
	mov	edx, DWORD PTR aid.1[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 48[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	mov	esi, 0
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	create_account, .-create_account
	.section	.rodata
	.align 8
.LC1:
	.string	"main begin: a1's balance=%d, a2's balance=%d\n"
.LC2:
	.string	"pthread_create failed.\n"
.LC3:
	.string	"the_stack_data/125141812.c"
.LC4:
	.string	"pthread_join(p1, NULL) == 0"
.LC5:
	.string	"pthread_join(p2, NULL) == 0"
	.align 8
.LC6:
	.string	"main end: a1's balance=%d, a2's balance=%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	DWORD PTR -212[rbp], edi
	mov	QWORD PTR -224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -128[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	create_account
	lea	rax, -64[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	create_account
	mov	edx, DWORD PTR -64[rbp]
	mov	eax, DWORD PTR -128[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -128[rbp]
	mov	QWORD PTR -192[rbp], rax
	lea	rax, -64[rbp]
	mov	QWORD PTR -184[rbp], rax
	mov	DWORD PTR -176[rbp], 100
	lea	rax, -64[rbp]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -128[rbp]
	mov	QWORD PTR -152[rbp], rax
	mov	DWORD PTR -144[rbp], 100
	lea	rdx, -192[rbp]
	lea	rax, -208[rbp]
	mov	rcx, rdx
	lea	rdx, deadlock_transfer[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	lea	rdx, -160[rbp]
	lea	rax, -200[rbp]
	mov	rcx, rdx
	lea	rdx, deadlock_transfer[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -208[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	test	eax, eax
	je	.L7
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 74
	lea	rsi, .LC3[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L7:
	mov	rax, QWORD PTR -200[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	test	eax, eax
	je	.L8
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 75
	lea	rsi, .LC3[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L8:
	mov	edx, DWORD PTR -64[rbp]
	mov	eax, DWORD PTR -128[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -128[rbp]
	add	rax, 8
	mov	rdi, rax
	call	pthread_mutex_destroy@PLT
	lea	rax, -64[rbp]
	add	rax, 8
	mov	rdi, rax
	call	pthread_mutex_destroy@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.local	aid.1
	.comm	aid.1,4,4
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"125141812.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d -> %d transfer $%d\012\000"
	.text
	.align	2
	.global	deadlock_transfer
	.syntax unified
	.arm
	.fpu softvfp
	.type	deadlock_transfer, %function
deadlock_transfer:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r1, [r3, #28]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r0, .L3
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r3, r3, #4
	mov	r0, r3
	bl	pthread_mutex_lock
	mov	r0, #1
	bl	sleep
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	add	r3, r3, #4
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	sub	r2, r1, r2
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	add	r3, r3, #4
	mov	r0, r3
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r3, r3, #4
	mov	r0, r3
	bl	pthread_mutex_unlock
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	deadlock_transfer, .-deadlock_transfer
	.align	2
	.global	create_account
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_account, %function
create_account:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, .L6
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L6
	str	r3, [r2]
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #28]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r1, #0
	mov	r0, r3
	bl	pthread_mutex_init
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	aid.6255
	.size	create_account, .-create_account
	.section	.rodata
	.align	2
.LC1:
	.ascii	"main begin: a1's balance=%d, a2's balance=%d\012\000"
	.align	2
.LC2:
	.ascii	"pthread_create failed.\012\000"
	.align	2
.LC3:
	.ascii	"the_stack_data/125141812.c\000"
	.align	2
.LC4:
	.ascii	"pthread_join(p1, NULL) == 0\000"
	.align	2
.LC5:
	.ascii	"pthread_join(p2, NULL) == 0\000"
	.align	2
.LC6:
	.ascii	"main end: a1's balance=%d, a2's balance=%d\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #72
	mov	r1, #1000
	mov	r0, r3
	bl	create_account
	sub	r3, fp, #40
	mov	r1, #1000
	mov	r0, r3
	bl	create_account
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-40]
	mov	r1, r3
	ldr	r0, .L15+4
	bl	printf
	sub	r3, fp, #72
	str	r3, [fp, #-96]
	sub	r3, fp, #40
	str	r3, [fp, #-92]
	mov	r3, #100
	str	r3, [fp, #-88]
	sub	r3, fp, #40
	str	r3, [fp, #-84]
	sub	r3, fp, #72
	str	r3, [fp, #-80]
	mov	r3, #100
	str	r3, [fp, #-76]
	sub	r3, fp, #96
	sub	r0, fp, #104
	ldr	r2, .L15+8
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L15+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L9:
	sub	r3, fp, #84
	sub	r0, fp, #100
	ldr	r2, .L15+8
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L15+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L10:
	ldr	r3, [fp, #-104]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, r0
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L15+20
	mov	r2, #74
	ldr	r1, .L15+24
	ldr	r0, .L15+28
	bl	__assert_fail
.L11:
	ldr	r3, [fp, #-100]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L15+20
	mov	r2, #75
	ldr	r1, .L15+24
	ldr	r0, .L15+32
	bl	__assert_fail
.L12:
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-40]
	mov	r1, r3
	ldr	r0, .L15+36
	bl	printf
	sub	r3, fp, #72
	add	r3, r3, #4
	mov	r0, r3
	bl	pthread_mutex_destroy
	sub	r3, fp, #40
	add	r3, r3, #4
	mov	r0, r3
	bl	pthread_mutex_destroy
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC7
	.word	.LC1
	.word	deadlock_transfer
	.word	stderr
	.word	.LC2
	.word	__PRETTY_FUNCTION__.6266
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.local	aid.6255
	.comm	aid.6255,4,4
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6266, %object
	.size	__PRETTY_FUNCTION__.6266, 5
__PRETTY_FUNCTION__.6266:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
