	.file	"728885.c"
	.intel_syntax noprefix
	.text
	.globl	__blast_assert
	.type	__blast_assert, @function
__blast_assert:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
.L2:
	mov	eax, 0
	call	__VERIFIER_error@PLT
	.cfi_endproc
.LFE0:
	.size	__blast_assert, .-__blast_assert
	.globl	ldv_mutex
	.data
	.align 4
	.type	ldv_mutex, @object
	.size	ldv_mutex, 4
ldv_mutex:
	.long	1
	.globl	open_called
	.bss
	.align 4
	.type	open_called, @object
	.size	open_called, 4
open_called:
	.zero	4
	.text
	.globl	mutex_lock
	.type	mutex_lock, @function
mutex_lock:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR ldv_mutex[rip]
	cmp	eax, 1
	je	.L4
	call	__blast_assert
.L4:
	mov	DWORD PTR ldv_mutex[rip], 2
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	mutex_lock, .-mutex_lock
	.globl	mutex_unlock
	.type	mutex_unlock, @function
mutex_unlock:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR ldv_mutex[rip]
	cmp	eax, 2
	je	.L6
	call	__blast_assert
.L6:
	mov	DWORD PTR ldv_mutex[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	mutex_unlock, .-mutex_unlock
	.globl	check_final_state
	.type	check_final_state, @function
check_final_state:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR ldv_mutex[rip]
	cmp	eax, 1
	je	.L9
	call	__blast_assert
.L9:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	check_final_state, .-check_final_state
	.type	misc_release, @function
misc_release:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR open_called[rip]
	test	eax, eax
	je	.L11
	call	mutex_lock
	call	mutex_unlock
	mov	DWORD PTR open_called[rip], 0
	jmp	.L12
.L11:
	call	mutex_lock
	call	mutex_lock
.L12:
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	misc_release, .-misc_release
	.type	misc_llseek, @function
misc_llseek:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	misc_llseek, .-misc_llseek
	.type	misc_read, @function
misc_read:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	misc_read, .-misc_read
	.type	misc_open, @function
misc_open:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	__VERIFIER_nondet_int@PLT
	test	eax, eax
	je	.L19
	mov	eax, 1
	jmp	.L20
.L19:
	mov	DWORD PTR open_called[rip], 1
	mov	eax, 0
.L20:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	misc_open, .-misc_open
	.type	my_init, @function
my_init:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR open_called[rip], 0
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	my_init, .-my_init
	.globl	main
	.type	main, @function
main:
.LFB9:
	.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	DWORD PTR -4[rbp], 0
	call	my_init
	jmp	.L24
.L34:
	call	__VERIFIER_nondet_int@PLT
	cmp	eax, 3
	je	.L25
	cmp	eax, 3
	jg	.L36
	cmp	eax, 2
	je	.L27
	cmp	eax, 2
	jg	.L36
	test	eax, eax
	je	.L28
	cmp	eax, 1
	je	.L29
	jmp	.L26
.L28:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L24
	mov	eax, 0
	call	misc_open
	add	DWORD PTR -4[rbp], 1
	jmp	.L24
.L29:
	cmp	DWORD PTR -4[rbp], 1
	jne	.L24
	mov	eax, 0
	call	misc_read
	add	DWORD PTR -4[rbp], 1
	jmp	.L24
.L27:
	cmp	DWORD PTR -4[rbp], 2
	jne	.L24
	mov	eax, 0
	call	misc_llseek
	add	DWORD PTR -4[rbp], 1
	jmp	.L24
.L25:
	cmp	DWORD PTR -4[rbp], 3
	jne	.L24
	mov	eax, 0
	call	misc_release
	mov	DWORD PTR -4[rbp], 0
	jmp	.L24
.L26:
.L36:
	nop
.L24:
	call	__VERIFIER_nondet_int@PLT
	test	eax, eax
	jne	.L34
	call	check_final_state
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"728885.c"
	.text
	.align	2
	.global	__blast_assert
	.syntax unified
	.arm
	.fpu softvfp
	.type	__blast_assert, %function
__blast_assert:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
.L2:
	bl	__VERIFIER_error
	.size	__blast_assert, .-__blast_assert
	.global	ldv_mutex
	.data
	.align	2
	.type	ldv_mutex, %object
	.size	ldv_mutex, 4
ldv_mutex:
	.word	1
	.global	open_called
	.bss
	.align	2
	.type	open_called, %object
	.size	open_called, 4
open_called:
	.space	4
	.text
	.align	2
	.global	mutex_lock
	.syntax unified
	.arm
	.fpu softvfp
	.type	mutex_lock, %function
mutex_lock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L5
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L4
	bl	__blast_assert
.L4:
	ldr	r3, .L5
	mov	r2, #2
	str	r2, [r3]
	nop
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	ldv_mutex
	.size	mutex_lock, .-mutex_lock
	.align	2
	.global	mutex_unlock
	.syntax unified
	.arm
	.fpu softvfp
	.type	mutex_unlock, %function
mutex_unlock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L9
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L8
	bl	__blast_assert
.L8:
	ldr	r3, .L9
	mov	r2, #1
	str	r2, [r3]
	nop
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	ldv_mutex
	.size	mutex_unlock, .-mutex_unlock
	.align	2
	.global	check_final_state
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_final_state, %function
check_final_state:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L14
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L13
	bl	__blast_assert
.L13:
	nop
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	ldv_mutex
	.size	check_final_state, .-check_final_state
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	misc_release, %function
misc_release:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L17
	bl	mutex_lock
	bl	mutex_unlock
	ldr	r3, .L20
	mov	r2, #0
	str	r2, [r3]
	b	.L18
.L17:
	bl	mutex_lock
	bl	mutex_lock
.L18:
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	open_called
	.size	misc_release, .-misc_release
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	misc_llseek, %function
misc_llseek:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	misc_llseek, .-misc_llseek
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	misc_read, %function
misc_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	misc_read, .-misc_read
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	misc_open, %function
misc_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	__VERIFIER_nondet_int
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	mov	r3, #1
	b	.L28
.L27:
	ldr	r3, .L29
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #0
.L28:
	mov	r0, r3
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	open_called
	.size	misc_open, .-misc_open
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_init, %function
my_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L33
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L34:
	.align	2
.L33:
	.word	open_called
	.size	my_init, .-my_init
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	bl	my_init
	b	.L36
.L47:
	bl	__VERIFIER_nondet_int
	mov	r3, r0
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L49
.L39:
	.word	.L42
	.word	.L41
	.word	.L40
	.word	.L38
.L42:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L36
	bl	misc_open
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L36
.L41:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L36
	bl	misc_read
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L36
.L40:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L36
	bl	misc_llseek
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L36
.L38:
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	bne	.L36
	bl	misc_release
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L36
.L49:
	nop
.L36:
	bl	__VERIFIER_nondet_int
	mov	r3, r0
	cmp	r3, #0
	bne	.L47
	bl	check_final_state
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
