	.file	"extr_bebob_stream.c_map_data_channels.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"in"
.LC1:
	.string	"out"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"fail to get channel position for isoc %s plug 0: %d\n"
	.align 8
.LC3:
	.string	"fail to get section type for isoc %s plug 0: %d\n"
	.text
	.p2align 4
	.type	map_data_channels, @function
map_data_channels:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rsi
	push	rbx
	sub	rsp, 88
	.cfi_offset 3, -56
	mov	QWORD PTR -88[rbp], rdi
	mov	rdi, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR AVC_BRIDGECO_ADDR_BYTES[rip]
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rdi, rax
	and	rdx, -16
	mov	rax, rdi
	cmp	rsp, rax
	je	.L3
.L46:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L46
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L47
.L4:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 256
	mov	QWORD PTR -104[rbp], rsp
	call	kzalloc@PLT
	mov	r15, rax
	test	rax, rax
	je	.L48
	mov	rbx, QWORD PTR -88[rbp]
	mov	r14, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR AVC_BRIDGECO_PLUG_UNIT_ISOC[rip]
	lea	rax, 8[rbx]
	mov	rdi, r14
	cmp	r12, rax
	mov	eax, DWORD PTR AVC_BRIDGECO_PLUG_DIR_OUT[rip]
	cmovne	eax, DWORD PTR AVC_BRIDGECO_PLUG_DIR_IN[rip]
	xor	ecx, ecx
	mov	esi, eax
	mov	DWORD PTR -96[rbp], eax
	call	avc_bridgeco_fill_unit_addr@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	ecx, 256
	mov	rdx, r15
	mov	rsi, r14
	call	avc_bridgeco_get_plug_ch_pos@PLT
	mov	DWORD PTR -76[rbp], eax
	test	eax, eax
	js	.L49
	mov	eax, DWORD PTR [r15]
	mov	DWORD PTR -116[rbp], eax
	test	eax, eax
	je	.L11
	lea	rax, -60[rbp]
	mov	DWORD PTR -72[rbp], 0
	mov	r9d, 1
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	mov	QWORD PTR -112[rbp], rax
.L24:
	mov	rbx, QWORD PTR -104[rbp]
	mov	edx, DWORD PTR AVC_BRIDGECO_PLUG_UNIT_ISOC[rip]
	xor	ecx, ecx
	mov	DWORD PTR -92[rbp], r9d
	mov	esi, DWORD PTR -96[rbp]
	mov	rdi, rbx
	call	avc_bridgeco_fill_unit_addr@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, QWORD PTR -112[rbp]
	mov	rsi, rbx
	mov	edx, DWORD PTR -80[rbp]
	mov	rdi, QWORD PTR [rax]
	call	avc_bridgeco_get_plug_section_type@PLT
	mov	r9d, DWORD PTR -92[rbp]
	test	eax, eax
	mov	DWORD PTR -76[rbp], eax
	js	.L50
	mov	esi, DWORD PTR -60[rbp]
	cmp	esi, 255
	je	.L44
	mov	ebx, DWORD PTR [r15+r9*4]
	lea	r14d, 1[r9]
	test	ebx, ebx
	je	.L28
	mov	eax, r14d
	xor	r13d, r13d
	mov	r14, r15
	mov	r15d, eax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L17:
	mov	ecx, DWORD PTR -68[rbp]
	lea	esi, [rax+rcx]
	cmp	DWORD PTR AM824_MAX_CHANNELS_FOR_PCM[rip], esi
	jbe	.L20
	mov	rdi, r12
	add	r13d, 1
	call	amdtp_am824_set_pcm_position@PLT
	mov	esi, DWORD PTR -60[rbp]
	cmp	ebx, r13d
	je	.L51
.L21:
	lea	eax, 1[r15]
	mov	edx, r15d
	add	r15d, 2
	mov	eax, DWORD PTR [r14+rax*4]
	mov	edx, DWORD PTR [r14+rdx*4]
	sub	eax, 1
	sub	edx, 1
	cmp	ebx, eax
	cmovbe	eax, r13d
	cmp	esi, 10
	jne	.L17
	mov	eax, DWORD PTR -72[rbp]
	test	eax, eax
	je	.L18
	cmp	edx, eax
	jne	.L20
.L18:
	mov	esi, edx
	mov	rdi, r12
	add	r13d, 1
	mov	DWORD PTR -72[rbp], edx
	call	amdtp_am824_set_midi_position@PLT
	mov	esi, DWORD PTR -60[rbp]
	cmp	ebx, r13d
	jne	.L21
.L51:
	mov	eax, r15d
	mov	r15, r14
	mov	r9d, eax
.L15:
	cmp	esi, 10
	je	.L22
	add	DWORD PTR -68[rbp], ebx
.L23:
	add	DWORD PTR -80[rbp], 1
	mov	eax, DWORD PTR -80[rbp]
	cmp	DWORD PTR -116[rbp], eax
	jne	.L24
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, r15
	call	kfree@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L52
	mov	eax, DWORD PTR -76[rbp]
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	r15, r14
.L44:
	mov	eax, DWORD PTR ENOSYS[rip]
	neg	eax
	mov	DWORD PTR -76[rbp], eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L49:
	mov	eax, DWORD PTR -96[rbp]
	lea	rdx, .LC0[rip]
	cmp	DWORD PTR AVC_BRIDGECO_PLUG_DIR_IN[rip], eax
	lea	rax, .LC1[rip]
	cmovne	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	ecx, DWORD PTR -76[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, QWORD PTR [rax]
	call	dev_err@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L47:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	add	DWORD PTR -72[rbp], ebx
	jmp	.L23
.L48:
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	mov	DWORD PTR -76[rbp], eax
	jmp	.L1
.L28:
	mov	r9d, r14d
	jmp	.L15
.L50:
	mov	eax, DWORD PTR -96[rbp]
	lea	rdx, .LC0[rip]
	cmp	DWORD PTR AVC_BRIDGECO_PLUG_DIR_IN[rip], eax
	lea	rax, .LC1[rip]
	cmovne	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	ecx, DWORD PTR -76[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, QWORD PTR [rax]
	call	dev_err@PLT
	jmp	.L11
.L52:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	map_data_channels, .-map_data_channels
	.comm	GFP_KERNEL,4,4
	.comm	ENOSYS,4,4
	.comm	ENOMEM,4,4
	.comm	AVC_BRIDGECO_PLUG_UNIT_ISOC,4,4
	.comm	AVC_BRIDGECO_PLUG_DIR_OUT,4,4
	.comm	AVC_BRIDGECO_PLUG_DIR_IN,4,4
	.comm	AVC_BRIDGECO_ADDR_BYTES,4,4
	.comm	AM824_MAX_CHANNELS_FOR_PCM,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_bebob_stream.c_map_data_channels.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"in\000"
	.align	2
.LC1:
	.ascii	"out\000"
	.align	2
.LC2:
	.ascii	"fail to get channel position for isoc %s plug 0: %d"
	.ascii	"\012\000"
	.align	2
.LC3:
	.ascii	"fail to get section type for isoc %s plug 0: %d\012"
	.ascii	"\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	map_data_channels, %function
map_data_channels:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #44
	mov	r2, r0
	ldr	r3, .L38
	mov	r6, r1
	ldr	r3, [r3]
	ldr	r1, .L38+4
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L38+8
	str	r2, [fp, #-56]
	mov	r0, #256
	ldr	r1, [r1]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	kzalloc
	subs	r3, r0, #0
	str	r3, [fp, #-52]
	str	sp, [fp, #-68]
	beq	.L33
	ldr	r3, [fp, #-56]
	ldr	r4, [fp, #-68]
	add	r3, r3, #4
	cmp	r6, r3
	ldreq	r3, .L38+12
	ldrne	r3, .L38+16
	ldr	r2, .L38+20
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r3, [fp, #-64]
	ldr	r1, [fp, #-64]
	mov	r3, #0
	mov	r0, r4
	bl	avc_bridgeco_fill_unit_addr
	ldr	r0, [fp, #-56]
	mov	r3, #256
	mov	r1, r4
	ldr	r2, [fp, #-52]
	ldr	r0, [r0]
	bl	avc_bridgeco_get_plug_ch_pos
	subs	r3, r0, #0
	str	r3, [fp, #-60]
	blt	.L34
	ldr	r3, [fp, #-52]
	ldr	r3, [r3]
	cmp	r3, #0
	str	r3, [fp, #-76]
	beq	.L8
	mov	r7, #0
	mov	r4, #1
	ldr	r9, .L38+24
	str	r7, [fp, #-72]
	str	r7, [fp, #-48]
.L21:
	ldr	r5, [fp, #-68]
	ldr	r2, .L38+20
	mov	r3, #0
	ldr	r2, [r2]
	ldr	r1, [fp, #-64]
	mov	r0, r5
	bl	avc_bridgeco_fill_unit_addr
	ldr	r0, [fp, #-56]
	sub	r3, fp, #44
	mov	r1, r5
	ldr	r2, [fp, #-72]
	ldr	r0, [r0]
	bl	avc_bridgeco_get_plug_section_type
	subs	r3, r0, #0
	str	r3, [fp, #-60]
	blt	.L35
	ldr	r1, [fp, #-44]
	cmp	r1, #255
	beq	.L36
	ldr	r3, [fp, #-52]
	add	r10, r4, #1
	ldr	r5, [r3, r4, lsl #2]
	add	r4, r3, r4, lsl #2
	cmp	r5, #0
	beq	.L25
	mov	r8, #0
	b	.L18
.L14:
	ldr	r3, [fp, #-48]
	ldr	ip, [r9]
	add	r1, r0, r3
	cmp	ip, r1
	bls	.L17
	mov	r0, r6
	bl	amdtp_am824_set_pcm_position
.L16:
	add	r8, r8, #1
	cmp	r5, r8
	ldr	r1, [fp, #-44]
	add	r4, r4, #8
	beq	.L25
.L18:
	ldr	r0, [r4, #8]
	ldr	r2, [r4, #4]
	sub	r0, r0, #1
	cmp	r5, r0
	movls	r0, r8
	cmp	r1, #10
	add	r10, r10, #2
	sub	r2, r2, #1
	bne	.L14
	cmp	r7, #0
	cmpne	r2, r7
	bne	.L17
	mov	r1, r2
	mov	r0, r6
	mov	r7, r2
	bl	amdtp_am824_set_midi_position
	b	.L16
.L34:
	ldr	r3, .L38+16
	ldr	ip, [fp, #-64]
	ldr	r1, [r3]
	ldr	r0, [fp, #-56]
	ldr	r3, .L38+28
	cmp	r1, ip
	ldr	r2, .L38+32
	ldr	r0, [r0]
	movne	r2, r3
	ldr	r1, .L38+36
	ldr	r3, [fp, #-60]
	bl	dev_err
.L8:
	ldr	r0, [fp, #-52]
	bl	kfree
.L1:
	ldr	r3, .L38+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L37
	ldr	r0, [fp, #-60]
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	cmp	r1, #10
	ldrne	r3, [fp, #-48]
	ldr	r2, [fp, #-76]
	addne	r3, r3, r5
	strne	r3, [fp, #-48]
	ldr	r3, [fp, #-72]
	addeq	r7, r7, r5
	add	r3, r3, #1
	cmp	r2, r3
	mov	r4, r10
	str	r3, [fp, #-72]
	bne	.L21
	b	.L8
.L17:
	ldr	r3, .L38+40
	ldr	r0, [r3]
	rsb	r3, r0, #0
	str	r3, [fp, #-60]
	b	.L8
.L33:
	ldr	r3, .L38+44
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [fp, #-60]
	b	.L1
.L35:
	ldr	r3, .L38+16
	ldr	ip, [fp, #-64]
	ldr	r1, [r3]
	ldr	r0, [fp, #-56]
	ldr	r3, .L38+28
	cmp	r1, ip
	ldr	r2, .L38+32
	ldr	r1, .L38+48
	movne	r2, r3
	ldr	r0, [r0]
	ldr	r3, [fp, #-60]
	bl	dev_err
	b	.L8
.L36:
	ldr	r3, .L38+40
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [fp, #-60]
	b	.L8
.L37:
	bl	__stack_chk_fail
.L39:
	.align	2
.L38:
	.word	AVC_BRIDGECO_ADDR_BYTES
	.word	GFP_KERNEL
	.word	.LC4
	.word	AVC_BRIDGECO_PLUG_DIR_OUT
	.word	AVC_BRIDGECO_PLUG_DIR_IN
	.word	AVC_BRIDGECO_PLUG_UNIT_ISOC
	.word	AM824_MAX_CHANNELS_FOR_PCM
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	ENOSYS
	.word	ENOMEM
	.word	.LC3
	.size	map_data_channels, .-map_data_channels
	.comm	GFP_KERNEL,4,4
	.comm	ENOSYS,4,4
	.comm	ENOMEM,4,4
	.comm	AVC_BRIDGECO_PLUG_UNIT_ISOC,4,4
	.comm	AVC_BRIDGECO_PLUG_DIR_OUT,4,4
	.comm	AVC_BRIDGECO_PLUG_DIR_IN,4,4
	.comm	AVC_BRIDGECO_ADDR_BYTES,4,4
	.comm	AM824_MAX_CHANNELS_FOR_PCM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
