	.file	"extr_motu-stream.c_snd_motu_stream_start_duplex.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"fail to start isochronous comm: %d\n"
	.align 8
.LC1:
	.string	"fail to enable frame fetching: %d\n"
	.text
	.p2align 4
	.globl	snd_motu_stream_start_duplex
	.type	snd_motu_stream_start_duplex, @function
snd_motu_stream_start_duplex:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	QWORD PTR [rdi], 0
	jne	.L2
.L9:
	xor	r12d, r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	r13, 32[rdi]
	mov	r12d, DWORD PTR 40[rdi]
	mov	rbp, rdi
	mov	rdi, r13
	call	amdtp_streaming_error@PLT
	test	rax, rax
	jne	.L6
	lea	rdi, 36[rbp]
	call	amdtp_streaming_error@PLT
	test	rax, rax
	jne	.L6
.L5:
	mov	rdi, QWORD PTR 16[rbp]
	call	fw_parent_device@PLT
	mov	rax, QWORD PTR 8[rax]
	cmp	DWORD PTR [rax], r12d
	je	.L10
	lea	rdi, 40[rbp]
	call	fw_iso_resources_update@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	lea	rdi, 48[rbp]
	call	fw_iso_resources_update@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
.L10:
	mov	rdi, r13
	call	amdtp_stream_running@PLT
	test	eax, eax
	jne	.L9
	mov	rdi, QWORD PTR 16[rbp]
	call	fw_parent_device@PLT
	mov	rdi, rbp
	mov	r14d, DWORD PTR [rax]
	call	ensure_packet_formats@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rdi, rbp
	lea	rbx, 8[rbp]
	call	begin_session@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L20
	mov	edx, DWORD PTR 52[rbp]
	lea	r15, 36[rbp]
	mov	ecx, r14d
	mov	rdi, rbx
	mov	rsi, r15
	call	amdtp_domain_add_stream@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L12
	mov	edx, DWORD PTR 44[rbp]
	mov	ecx, r14d
	mov	rsi, r13
	mov	rdi, rbx
	call	amdtp_domain_add_stream@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L12
	mov	rdi, rbx
	call	amdtp_domain_start@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L12
	mov	esi, DWORD PTR CALLBACK_TIMEOUT[rip]
	mov	rdi, r15
	call	amdtp_stream_wait_callback@PLT
	test	eax, eax
	je	.L14
	mov	esi, DWORD PTR CALLBACK_TIMEOUT[rip]
	mov	rdi, r13
	call	amdtp_stream_wait_callback@PLT
	test	eax, eax
	je	.L14
	mov	rax, QWORD PTR 24[rbp]
	mov	esi, 1
	mov	rdi, rbp
	mov	rax, QWORD PTR [rax]
	call	[QWORD PTR [rax]]
	mov	r12d, eax
	test	eax, eax
	jns	.L9
	mov	rdi, QWORD PTR 16[rbp]
	mov	edx, eax
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, rbx
	call	amdtp_domain_stop@PLT
	mov	rdi, rbp
	call	finish_session@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rdi, 8[rbp]
	call	amdtp_domain_stop@PLT
	mov	rdi, rbp
	call	finish_session@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, QWORD PTR 16[rbp]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L12
.L14:
	mov	r12d, DWORD PTR ETIMEDOUT[rip]
	neg	r12d
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	snd_motu_stream_start_duplex, .-snd_motu_stream_start_duplex
	.comm	ETIMEDOUT,4,4
	.comm	CALLBACK_TIMEOUT,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_motu-stream.c_snd_motu_stream_start_duplex.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fail to start isochronous comm: %d\012\000"
	.align	2
.LC1:
	.ascii	"fail to enable frame fetching: %d\012\000"
	.text
	.align	2
	.global	snd_motu_stream_start_duplex
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_motu_stream_start_duplex, %function
snd_motu_stream_start_duplex:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	r3, #0
	bne	.L2
.L9:
	mov	r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r4, r0
	add	r6, r0, #16
	mov	r0, r6
	ldr	r5, [r4, #24]
	bl	amdtp_streaming_error
	cmp	r0, #0
	bne	.L6
	add	r0, r4, #20
	bl	amdtp_streaming_error
	cmp	r0, #0
	bne	.L6
.L5:
	ldr	r0, [r4, #8]
	bl	fw_parent_device
	ldr	r3, [r0, #4]
	ldr	r3, [r3]
	cmp	r3, r5
	beq	.L10
	add	r0, r4, #24
	bl	fw_iso_resources_update
	subs	r5, r0, #0
	blt	.L1
	add	r0, r4, #32
	bl	fw_iso_resources_update
	subs	r5, r0, #0
	blt	.L1
.L10:
	mov	r0, r6
	bl	amdtp_stream_running
	cmp	r0, #0
	bne	.L9
	ldr	r0, [r4, #8]
	bl	fw_parent_device
	mov	r3, r0
	mov	r0, r4
	ldr	r8, [r3]
	bl	ensure_packet_formats
	subs	r5, r0, #0
	blt	.L1
	mov	r0, r4
	bl	begin_session
	subs	r5, r0, #0
	add	r7, r4, #4
	blt	.L20
	add	r9, r4, #20
	mov	r1, r9
	mov	r3, r8
	mov	r0, r7
	ldr	r2, [r4, #36]
	bl	amdtp_domain_add_stream
	subs	r5, r0, #0
	blt	.L12
	mov	r3, r8
	mov	r1, r6
	mov	r0, r7
	ldr	r2, [r4, #28]
	bl	amdtp_domain_add_stream
	subs	r5, r0, #0
	blt	.L12
	mov	r0, r7
	bl	amdtp_domain_start
	subs	r5, r0, #0
	blt	.L12
	ldr	r5, .L21
	mov	r0, r9
	ldr	r1, [r5]
	bl	amdtp_stream_wait_callback
	cmp	r0, #0
	beq	.L14
	mov	r0, r6
	ldr	r1, [r5]
	bl	amdtp_stream_wait_callback
	cmp	r0, #0
	beq	.L14
	ldr	r3, [r4, #12]
	mov	r1, #1
	ldr	r3, [r3]
	mov	r0, r4
	ldr	r3, [r3]
	blx	r3
	subs	r5, r0, #0
	bge	.L9
	mov	r2, r5
	ldr	r1, .L21+4
	ldr	r0, [r4, #8]
	bl	dev_err
.L12:
	mov	r0, r7
	bl	amdtp_domain_stop
	mov	r0, r4
	bl	finish_session
	b	.L1
.L6:
	add	r0, r4, #4
	bl	amdtp_domain_stop
	mov	r0, r4
	bl	finish_session
	b	.L5
.L20:
	mov	r2, r5
	ldr	r1, .L21+8
	ldr	r0, [r4, #8]
	bl	dev_err
	b	.L12
.L14:
	ldr	r3, .L21+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L12
.L22:
	.align	2
.L21:
	.word	CALLBACK_TIMEOUT
	.word	.LC1
	.word	.LC0
	.word	ETIMEDOUT
	.size	snd_motu_stream_start_duplex, .-snd_motu_stream_start_duplex
	.comm	ETIMEDOUT,4,4
	.comm	CALLBACK_TIMEOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
