	.file	"extr_tascam-stream.c_begin_session.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	begin_session, @function
begin_session:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	r12, 4[rsp]
	call	cpu_to_be32@PLT
	mov	esi, DWORD PTR TCODE_WRITE_QUADLET_REQUEST[rip]
	mov	edi, DWORD PTR [rbx]
	xor	r9d, r9d
	mov	rdx, QWORD PTR TSCM_OFFSET_ISOC_TX_CH[rip]
	mov	r8d, 4
	mov	rcx, r12
	mov	DWORD PTR 4[rsp], eax
	add	rdx, QWORD PTR TSCM_ADDR_BASE[rip]
	call	snd_fw_transaction@PLT
	test	eax, eax
	js	.L1
	mov	edi, 2
	call	cpu_to_be32@PLT
	mov	esi, DWORD PTR TCODE_WRITE_QUADLET_REQUEST[rip]
	mov	edi, DWORD PTR [rbx]
	xor	r9d, r9d
	mov	rdx, QWORD PTR TSCM_OFFSET_UNKNOWN[rip]
	mov	r8d, 4
	mov	rcx, r12
	mov	DWORD PTR 4[rsp], eax
	add	rdx, QWORD PTR TSCM_ADDR_BASE[rip]
	call	snd_fw_transaction@PLT
	test	eax, eax
	js	.L1
	mov	edi, DWORD PTR 4[rbx]
	call	cpu_to_be32@PLT
	mov	esi, DWORD PTR TCODE_WRITE_QUADLET_REQUEST[rip]
	mov	edi, DWORD PTR [rbx]
	xor	r9d, r9d
	mov	rdx, QWORD PTR TSCM_OFFSET_ISOC_RX_CH[rip]
	mov	r8d, 4
	mov	rcx, r12
	mov	DWORD PTR 4[rsp], eax
	add	rdx, QWORD PTR TSCM_ADDR_BASE[rip]
	call	snd_fw_transaction@PLT
	test	eax, eax
	js	.L1
	mov	edi, 1
	call	cpu_to_be32@PLT
	mov	esi, DWORD PTR TCODE_WRITE_QUADLET_REQUEST[rip]
	mov	edi, DWORD PTR [rbx]
	xor	r9d, r9d
	mov	rdx, QWORD PTR TSCM_OFFSET_START_STREAMING[rip]
	mov	r8d, 4
	mov	rcx, r12
	mov	DWORD PTR 4[rsp], eax
	add	rdx, QWORD PTR TSCM_ADDR_BASE[rip]
	call	snd_fw_transaction@PLT
	test	eax, eax
	js	.L1
	mov	edi, 1
	call	cpu_to_be32@PLT
	mov	esi, DWORD PTR TCODE_WRITE_QUADLET_REQUEST[rip]
	mov	edi, DWORD PTR [rbx]
	xor	r9d, r9d
	mov	rdx, QWORD PTR TSCM_OFFSET_ISOC_RX_ON[rip]
	mov	r8d, 4
	mov	rcx, r12
	mov	DWORD PTR 4[rsp], eax
	add	rdx, QWORD PTR TSCM_ADDR_BASE[rip]
	call	snd_fw_transaction@PLT
	test	eax, eax
	js	.L1
	mov	edi, 8192
	call	cpu_to_be32@PLT
	mov	esi, DWORD PTR TCODE_WRITE_QUADLET_REQUEST[rip]
	mov	edi, DWORD PTR [rbx]
	xor	r9d, r9d
	mov	rdx, QWORD PTR TSCM_OFFSET_SET_OPTION[rip]
	mov	r8d, 4
	mov	rcx, r12
	mov	DWORD PTR 4[rsp], eax
	add	rdx, QWORD PTR TSCM_ADDR_BASE[rip]
	call	snd_fw_transaction@PLT
	test	eax, eax
	js	.L1
	mov	edi, 1
	call	cpu_to_be32@PLT
	mov	esi, DWORD PTR TCODE_WRITE_QUADLET_REQUEST[rip]
	mov	edi, DWORD PTR [rbx]
	xor	r9d, r9d
	mov	rdx, QWORD PTR TSCM_OFFSET_ISOC_TX_ON[rip]
	mov	r8d, 4
	mov	rcx, r12
	mov	DWORD PTR 4[rsp], eax
	add	rdx, QWORD PTR TSCM_ADDR_BASE[rip]
	call	snd_fw_transaction@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L6
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L6:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	begin_session, .-begin_session
	.comm	TSCM_OFFSET_UNKNOWN,8,8
	.comm	TSCM_OFFSET_START_STREAMING,8,8
	.comm	TSCM_OFFSET_SET_OPTION,8,8
	.comm	TSCM_OFFSET_ISOC_TX_ON,8,8
	.comm	TSCM_OFFSET_ISOC_TX_CH,8,8
	.comm	TSCM_OFFSET_ISOC_RX_ON,8,8
	.comm	TSCM_OFFSET_ISOC_RX_CH,8,8
	.comm	TSCM_ADDR_BASE,8,8
	.comm	TCODE_WRITE_QUADLET_REQUEST,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_tascam-stream.c_begin_session.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	begin_session, %function
begin_session:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L7
	sub	sp, sp, #16
	mov	r4, r0
	ldr	r0, [r0, #8]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	cpu_to_be32
	mov	r7, #0
	mov	r6, #4
	mov	ip, r0
	ldr	r8, .L7+4
	ldr	r3, .L7+8
	ldr	r2, [r8]
	ldr	r3, [r3]
	ldr	r5, .L7+12
	ldr	r0, [r4]
	add	r2, r2, r3
	stm	sp, {r6, r7}
	ldr	r1, [r5]
	add	r3, sp, #8
	str	ip, [sp, #8]
	bl	snd_fw_transaction
	cmp	r0, #0
	blt	.L1
	mov	r0, #2
	bl	cpu_to_be32
	mov	ip, r0
	ldr	r3, .L7+16
	ldr	r2, [r8]
	ldr	r3, [r3]
	stm	sp, {r6, r7}
	add	r2, r2, r3
	ldr	r1, [r5]
	ldr	r0, [r4]
	add	r3, sp, #8
	str	ip, [sp, #8]
	bl	snd_fw_transaction
	cmp	r0, #0
	blt	.L1
	ldr	r0, [r4, #4]
	bl	cpu_to_be32
	mov	ip, r0
	ldr	r3, .L7+20
	ldr	r2, [r8]
	ldr	r3, [r3]
	stm	sp, {r6, r7}
	add	r2, r2, r3
	ldr	r1, [r5]
	ldr	r0, [r4]
	add	r3, sp, #8
	str	ip, [sp, #8]
	bl	snd_fw_transaction
	cmp	r0, #0
	blt	.L1
	mov	r0, #1
	bl	cpu_to_be32
	mov	ip, r0
	ldr	r3, .L7+24
	ldr	r2, [r8]
	ldr	r3, [r3]
	stm	sp, {r6, r7}
	add	r2, r2, r3
	ldr	r1, [r5]
	ldr	r0, [r4]
	add	r3, sp, #8
	str	ip, [sp, #8]
	bl	snd_fw_transaction
	cmp	r0, #0
	blt	.L1
	mov	r0, #1
	bl	cpu_to_be32
	mov	ip, r0
	ldr	r3, .L7+28
	ldr	r2, [r8]
	ldr	r3, [r3]
	stm	sp, {r6, r7}
	add	r2, r2, r3
	ldr	r1, [r5]
	ldr	r0, [r4]
	add	r3, sp, #8
	str	ip, [sp, #8]
	bl	snd_fw_transaction
	cmp	r0, #0
	blt	.L1
	mov	r0, #8192
	bl	cpu_to_be32
	mov	ip, r0
	ldr	r3, .L7+32
	ldr	r2, [r8]
	ldr	r3, [r3]
	stm	sp, {r6, r7}
	add	r2, r2, r3
	ldr	r1, [r5]
	ldr	r0, [r4]
	add	r3, sp, #8
	str	ip, [sp, #8]
	bl	snd_fw_transaction
	cmp	r0, #0
	blt	.L1
	mov	r0, #1
	bl	cpu_to_be32
	mov	ip, r0
	ldr	r3, .L7+36
	ldr	lr, [r8]
	ldr	r2, [r3]
	stm	sp, {r6, r7}
	ldr	r1, [r5]
	ldr	r0, [r4]
	add	r3, sp, #8
	add	r2, lr, r2
	str	ip, [sp, #8]
	bl	snd_fw_transaction
.L1:
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L6
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	bl	__stack_chk_fail
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	TSCM_ADDR_BASE
	.word	TSCM_OFFSET_ISOC_TX_CH
	.word	TCODE_WRITE_QUADLET_REQUEST
	.word	TSCM_OFFSET_UNKNOWN
	.word	TSCM_OFFSET_ISOC_RX_CH
	.word	TSCM_OFFSET_START_STREAMING
	.word	TSCM_OFFSET_ISOC_RX_ON
	.word	TSCM_OFFSET_SET_OPTION
	.word	TSCM_OFFSET_ISOC_TX_ON
	.size	begin_session, .-begin_session
	.comm	TSCM_OFFSET_UNKNOWN,4,4
	.comm	TSCM_OFFSET_START_STREAMING,4,4
	.comm	TSCM_OFFSET_SET_OPTION,4,4
	.comm	TSCM_OFFSET_ISOC_TX_ON,4,4
	.comm	TSCM_OFFSET_ISOC_TX_CH,4,4
	.comm	TSCM_OFFSET_ISOC_RX_ON,4,4
	.comm	TSCM_OFFSET_ISOC_RX_CH,4,4
	.comm	TSCM_ADDR_BASE,4,4
	.comm	TCODE_WRITE_QUADLET_REQUEST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
