	.file	"extr_firewire.c_fw_xferwait.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fw_xferwait"
	.text
	.p2align 4
	.globl	fw_xferwait
	.type	fw_xferwait, @function
fw_xferwait:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR 8[rdi]
	mov	rdi, r13
	call	mtx_lock@PLT
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR FWXF_WAKE[rip], eax
	jne	.L4
	lea	rbp, .LC0[rip]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, DWORD PTR PWAIT[rip]
	xor	r8d, r8d
	mov	rcx, rbp
	mov	rsi, r13
	or	edx, DWORD PTR PCATCH[rip]
	mov	rdi, rbx
	call	msleep@PLT
	mov	r12d, eax
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR FWXF_WAKE[rip], eax
	je	.L3
.L2:
	mov	rdi, r13
	call	mtx_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xor	r12d, r12d
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	fw_xferwait, .-fw_xferwait
	.comm	PWAIT,4,4
	.comm	PCATCH,4,4
	.comm	FWXF_WAKE,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_firewire.c_fw_xferwait.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fw_xferwait\000"
	.text
	.align	2
	.global	fw_xferwait
	.syntax unified
	.arm
	.fpu softvfp
	.type	fw_xferwait, %function
fw_xferwait:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	ldr	r7, [r0, #4]
	ldr	r8, .L9
	mov	r0, r7
	sub	sp, sp, #12
	bl	mtx_lock
	ldr	r6, [r5]
	ldr	r3, [r8]
	ands	r6, r6, r3
	bne	.L4
	ldr	r10, .L9+4
	ldr	r9, .L9+8
	ldr	fp, .L9+12
.L3:
	ldr	r3, [r9]
	ldr	r2, [r10]
	mov	r1, r7
	orr	r2, r2, r3
	mov	r0, r5
	mov	r3, fp
	str	r6, [sp]
	bl	msleep
	ldr	r2, [r5]
	ldr	r3, [r8]
	mov	r4, r0
	tst	r2, r3
	beq	.L3
.L2:
	mov	r0, r7
	bl	mtx_unlock
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	mov	r4, #0
	b	.L2
.L10:
	.align	2
.L9:
	.word	FWXF_WAKE
	.word	PWAIT
	.word	PCATCH
	.word	.LC0
	.size	fw_xferwait, .-fw_xferwait
	.comm	PWAIT,4,4
	.comm	PCATCH,4,4
	.comm	FWXF_WAKE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
