	.file	"132954335.c"
	.intel_syntax noprefix
	.text
	.globl	buzzer_on
	.bss
	.align 4
	.type	buzzer_on, @object
	.size	buzzer_on, 4
buzzer_on:
	.zero	4
	.globl	buzz_cnt
	.align 4
	.type	buzz_cnt, @object
	.size	buzz_cnt, 4
buzz_cnt:
	.zero	4
	.section	.rodata
.LC0:
	.string	"/dev/cnbuzzer"
	.align 8
.LC1:
	.string	"driver (//dev//cnbuzzer) open error.\n"
.LC2:
	.string	"I'm in buzzer!!!"
	.text
	.globl	buzzer
	.type	buzzer, @function
buzzer:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -24[rbp], 1
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 0
	mov	esi, 2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	lea	rdi, mtx[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR level[rip]
	cmp	DWORD PTR -16[rbp], eax
	jne	.L4
	mov	DWORD PTR buzzer_on[rip], 1
	add	DWORD PTR -16[rbp], 1
.L4:
	mov	eax, DWORD PTR buzzer_on[rip]
	cmp	eax, 1
	jne	.L5
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rcx, -24[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edi, 500000
	call	usleep@PLT
	lea	rcx, -20[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR buzzer_on[rip], 0
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 5
	jne	.L6
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	mov	DWORD PTR -24[rbp], eax
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 12
	jne	.L8
	mov	DWORD PTR -24[rbp], 1
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 2
	mov	DWORD PTR -24[rbp], eax
.L7:
	mov	eax, DWORD PTR buzz_cnt[rip]
	add	eax, 1
	mov	DWORD PTR buzz_cnt[rip], eax
.L5:
	lea	rdi, mtx[rip]
	call	pthread_mutex_unlock@PLT
	mov	edi, 100000
	call	usleep@PLT
.L3:
	mov	eax, DWORD PTR level[rip]
	cmp	eax, 6
	jne	.L9
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	nop
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	buzzer, .-buzzer
	.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	"132954335.c"
	.text
	.comm	buzzer_on,4,4
	.comm	buzz_cnt,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/cnbuzzer\000"
	.align	2
.LC1:
	.ascii	"driver (//dev//cnbuzzer) open error.\012\000"
	.align	2
.LC2:
	.ascii	"I'm in buzzer!!!\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	buzzer
	.syntax unified
	.arm
	.fpu softvfp
	.type	buzzer, %function
buzzer:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r1, #2
	ldr	r0, .L12+4
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L3
	ldr	r0, .L12+8
	bl	perror
	mov	r0, #1
	bl	exit
.L9:
	ldr	r0, .L12+12
	bl	pthread_mutex_lock
	ldr	r3, .L12+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L4
	ldr	r3, .L12+20
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L4:
	ldr	r3, .L12+20
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L5
	ldr	r0, .L12+24
	bl	puts
	sub	r3, fp, #24
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	write
	ldr	r0, .L12+28
	bl	usleep
	sub	r3, fp, #20
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	write
	ldr	r3, .L12+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	cmp	r3, #5
	bne	.L6
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	b	.L7
.L6:
	ldr	r3, [fp, #-24]
	cmp	r3, #12
	bne	.L8
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L7
.L8:
	ldr	r3, [fp, #-24]
	add	r3, r3, #2
	str	r3, [fp, #-24]
.L7:
	ldr	r3, .L12+32
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L12+32
	str	r3, [r2]
.L5:
	ldr	r0, .L12+12
	bl	pthread_mutex_unlock
	ldr	r0, .L12+36
	bl	usleep
.L3:
	ldr	r3, .L12+16
	ldr	r3, [r3]
	cmp	r3, #6
	bne	.L9
	ldr	r0, [fp, #-12]
	bl	close
	nop
	nop
	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	.LC3
	.word	.LC0
	.word	.LC1
	.word	mtx
	.word	level
	.word	buzzer_on
	.word	.LC2
	.word	500000
	.word	buzz_cnt
	.word	100000
	.size	buzzer, .-buzzer
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
