	.file	"859895.c"
	.intel_syntax noprefix
	.text
	.globl	ch
	.data
	.type	ch, @object
	.size	ch, 1
ch:
	.byte	97
	.globl	sem1
	.bss
	.align 32
	.type	sem1, @object
	.size	sem1, 32
sem1:
	.zero	32
	.globl	sem2
	.align 32
	.type	sem2, @object
	.size	sem2, 32
sem2:
	.zero	32
	.section	.rodata
.LC0:
	.string	"the ansic is %d\n"
	.text
	.globl	func1
	.type	func1, @function
func1:
.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
.L2:
	lea	rdi, sem1[rip]
	call	sem_wait@PLT
	movzx	eax, BYTE PTR ch[rip]
	add	eax, 1
	mov	BYTE PTR ch[rip], al
	movzx	eax, BYTE PTR ch[rip]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	mov	eax, 0
	call	sleep@PLT
	lea	rdi, sem2[rip]
	call	sem_post@PLT
	jmp	.L2
	.cfi_endproc
.LFE6:
	.size	func1, .-func1
	.section	.rodata
.LC1:
	.string	"the character is %c\n"
	.text
	.globl	func2
	.type	func2, @function
func2:
.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
.L4:
	lea	rdi, sem2[rip]
	call	sem_wait@PLT
	movzx	eax, BYTE PTR ch[rip]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	mov	eax, 0
	call	sleep@PLT
	lea	rdi, sem1[rip]
	call	sem_post@PLT
	jmp	.L4
	.cfi_endproc
.LFE7:
	.size	func2, .-func2
	.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, 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	edx, 1
	mov	esi, 0
	lea	rdi, sem1[rip]
	call	sem_init@PLT
	mov	edx, 0
	mov	esi, 0
	lea	rdi, sem2[rip]
	call	sem_init@PLT
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, func1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, func2[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"859895.c"
	.text
	.global	ch
	.data
	.type	ch, %object
	.size	ch, 1
ch:
	.byte	97
	.comm	sem1,16,4
	.comm	sem2,16,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the ansic is %d\012\000"
	.text
	.align	2
	.global	func1
	.syntax unified
	.arm
	.fpu softvfp
	.type	func1, %function
func1:
	@ 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]
.L2:
	ldr	r0, .L3
	bl	sem_wait
	ldr	r3, .L3+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, .L3+4
	strb	r2, [r3]
	ldr	r3, .L3+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L3+8
	bl	printf
	mov	r0, #1
	bl	sleep
	ldr	r0, .L3+12
	bl	sem_post
	b	.L2
.L4:
	.align	2
.L3:
	.word	sem1
	.word	ch
	.word	.LC0
	.word	sem2
	.size	func1, .-func1
	.section	.rodata
	.align	2
.LC1:
	.ascii	"the character is %c\012\000"
	.text
	.align	2
	.global	func2
	.syntax unified
	.arm
	.fpu softvfp
	.type	func2, %function
func2:
	@ 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]
.L6:
	ldr	r0, .L7
	bl	sem_wait
	ldr	r3, .L7+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L7+8
	bl	printf
	mov	r0, #1
	bl	sleep
	ldr	r0, .L7+12
	bl	sem_post
	b	.L6
.L8:
	.align	2
.L7:
	.word	sem2
	.word	ch
	.word	.LC1
	.word	sem1
	.size	func2, .-func2
	.section	.rodata
	.align	2
.LC2:
	.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, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #1
	mov	r1, #0
	ldr	r0, .L12+4
	bl	sem_init
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L12+8
	bl	sem_init
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L12+12
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L12+16
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	sem1
	.word	sem2
	.word	func1
	.word	func2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
