	.file	"104047.c"
	.intel_syntax noprefix
	.text
	.globl	sync_mutex
	.bss
	.align 32
	.type	sync_mutex, @object
	.size	sync_mutex, 40
sync_mutex:
	.zero	40
	.globl	cond
	.align 32
	.type	cond, @object
	.size	cond, 48
cond:
	.zero	48
	.section	.rodata
.LC0:
	.string	"sub - lock"
.LC1:
	.string	"sub - sleep 10s"
.LC2:
	.string	"sub - about to exit"
	.text
	.globl	wewake_func_a
	.type	wewake_func_a, @function
wewake_func_a:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, sync_mutex[rip]
	call	pthread_mutex_lock@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 10
	call	sleep@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE6:
	.size	wewake_func_a, .-wewake_func_a
	.section	.rodata
.LC3:
	.string	"main - start sub"
.LC4:
	.string	"wewake_func_a"
	.align 8
.LC5:
	.string	"main - sleep 2s for waiting a lock to be locked by sub"
.LC6:
	.string	"main - wait join"
.LC7:
	.string	"main - unlock mutex"
.LC8:
	.string	"main - wait to aquire mutex"
.LC9:
	.string	"main - after aquire mutex"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 0
	lea	rdi, sync_mutex[rip]
	call	pthread_mutex_init@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rax, -16[rbp]
	lea	rcx, .LC4[rip]
	lea	rdx, wewake_func_a[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 2
	call	sleep@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, -20[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	cmp	DWORD PTR -36[rbp], 1
	jle	.L3
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, sync_mutex[rip]
	call	pthread_mutex_unlock@PLT
.L3:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, sync_mutex[rip]
	call	pthread_mutex_lock@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-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	"104047.c"
	.text
	.comm	sync_mutex,24,4
	.global	cond
	.bss
	.align	3
	.type	cond, %object
	.size	cond, 48
cond:
	.space	48
	.section	.rodata
	.align	2
.LC0:
	.ascii	"sub - lock\000"
	.align	2
.LC1:
	.ascii	"sub - sleep 10s\000"
	.align	2
.LC2:
	.ascii	"sub - about to exit\000"
	.text
	.align	2
	.global	wewake_func_a
	.syntax unified
	.arm
	.fpu softvfp
	.type	wewake_func_a, %function
wewake_func_a:
	@ 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]
	ldr	r0, .L2
	bl	puts
	ldr	r0, .L2+4
	bl	pthread_mutex_lock
	ldr	r0, .L2+8
	bl	puts
	mov	r0, #10
	bl	sleep
	ldr	r0, .L2+12
	bl	puts
	mov	r0, #0
	bl	pthread_exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.word	sync_mutex
	.word	.LC1
	.word	.LC2
	.size	wewake_func_a, .-wewake_func_a
	.section	.rodata
	.align	2
.LC3:
	.ascii	"main - start sub\000"
	.align	2
.LC4:
	.ascii	"wewake_func_a\000"
	.align	2
.LC5:
	.ascii	"main - sleep 2s for waiting a lock to be locked by "
	.ascii	"sub\000"
	.align	2
.LC6:
	.ascii	"main - wait join\000"
	.align	2
.LC7:
	.ascii	"main - unlock mutex\000"
	.align	2
.LC8:
	.ascii	"main - wait to aquire mutex\000"
	.align	2
.LC9:
	.ascii	"main - after aquire mutex\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #0
	ldr	r0, .L8+4
	bl	pthread_mutex_init
	ldr	r0, .L8+8
	bl	puts
	sub	r0, fp, #16
	ldr	r3, .L8+12
	ldr	r2, .L8+16
	mov	r1, #0
	bl	pthread_create
	ldr	r0, .L8+20
	bl	puts
	mov	r0, #2
	bl	sleep
	ldr	r0, .L8+24
	bl	puts
	ldr	r3, [fp, #-16]
	sub	r2, fp, #12
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	ble	.L5
	ldr	r0, .L8+28
	bl	puts
	ldr	r0, .L8+4
	bl	pthread_mutex_unlock
.L5:
	ldr	r0, .L8+32
	bl	puts
	ldr	r0, .L8+4
	bl	pthread_mutex_lock
	ldr	r0, .L8+36
	bl	puts
	mov	r3, #0
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC10
	.word	sync_mutex
	.word	.LC3
	.word	.LC4
	.word	wewake_func_a
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
