	.file	"extr_raw1394.c_state_opened.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	state_opened, @function
state_opened:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rax, QWORD PTR RAW1394_REQ_INITIALIZE[rip]
	mov	rbp, rsi
	cmp	QWORD PTR [rsi], rax
	je	.L11
	mov	eax, DWORD PTR RAW1394_ERROR_STATE_ORDER[rip]
	mov	DWORD PTR 24[rsi], eax
.L5:
	mov	QWORD PTR 16[rbp], 0
	mov	rdi, rbp
	call	queue_complete_req@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	eax, DWORD PTR 8[rsi]
	cmp	eax, 3
	je	.L3
	cmp	eax, 128
	je	.L3
	mov	eax, DWORD PTR RAW1394_ERROR_COMPAT[rip]
	mov	DWORD PTR 8[rsi], 128
	mov	DWORD PTR 24[rsi], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR initialized[rip]
	mov	DWORD PTR [rdi], eax
	mov	eax, DWORD PTR RAW1394_ERROR_NONE[rip]
	mov	DWORD PTR 4[rdi], edx
	lea	rdi, internal_generation[rip]
	mov	DWORD PTR 24[rbp], eax
	call	atomic_read@PLT
	mov	DWORD PTR 28[rbp], eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	state_opened, .-state_opened
	.comm	internal_generation,4,4
	.comm	initialized,4,4
	.comm	RAW1394_REQ_INITIALIZE,8,8
	.comm	RAW1394_ERROR_STATE_ORDER,4,4
	.comm	RAW1394_ERROR_NONE,4,4
	.comm	RAW1394_ERROR_COMPAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_raw1394.c_state_opened.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	state_opened, %function
state_opened:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	ldr	r2, [r1]
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	cmp	r2, r3
	mov	r4, r1
	beq	.L11
	ldr	r3, .L12+4
	ldr	r3, [r3]
	str	r3, [r1, #12]
.L5:
	mov	r5, #0
	mov	r0, r4
	str	r5, [r4, #8]
	bl	queue_complete_req
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L11:
	ldr	r3, [r1, #4]
	cmp	r3, #3
	beq	.L3
	cmp	r3, #128
	beq	.L3
	mov	r2, #128
	ldr	r3, .L12+8
	str	r2, [r1, #4]
	ldr	r3, [r3]
	str	r3, [r1, #12]
	b	.L5
.L3:
	ldr	r1, .L12+12
	ldr	r2, .L12+16
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r1, [r0, #4]
	str	r3, [r0]
	ldr	r0, .L12+20
	str	r2, [r4, #12]
	bl	atomic_read
	str	r0, [r4, #16]
	b	.L5
.L13:
	.align	2
.L12:
	.word	RAW1394_REQ_INITIALIZE
	.word	RAW1394_ERROR_STATE_ORDER
	.word	RAW1394_ERROR_COMPAT
	.word	initialized
	.word	RAW1394_ERROR_NONE
	.word	internal_generation
	.size	state_opened, .-state_opened
	.comm	internal_generation,4,4
	.comm	initialized,4,4
	.comm	RAW1394_REQ_INITIALIZE,4,4
	.comm	RAW1394_ERROR_STATE_ORDER,4,4
	.comm	RAW1394_ERROR_NONE,4,4
	.comm	RAW1394_ERROR_COMPAT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
