	.file	"extr_l2cap.c_l2cap_read_channel_list.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"UNKNOWN"
.LC1:
	.string	"L2CAP channels:\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Remote BD_ADDR     SCID/ DCID   PSM  IMTU/ OMTU State\n"
	.align 8
.LC3:
	.string	"%-17.17s %5d/%5d %5d %5d/%5d %s\n"
	.text
	.p2align 4
	.type	l2cap_read_channel_list, @function
l2cap_read_channel_list:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	edx, 16
	xor	esi, esi
	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
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r13, 16[rsp]
	mov	eax, DWORD PTR OK[rip]
	mov	rdi, r13
	mov	DWORD PTR 12[rsp], eax
	call	memset@PLT
	mov	edi, DWORD PTR NG_L2CAP_MAX_CHAN_NUM[rip]
	mov	esi, 4
	mov	DWORD PTR 16[rsp], edi
	call	calloc@PLT
	mov	QWORD PTR 24[rsp], rax
	test	rax, rax
	je	.L13
	mov	esi, DWORD PTR SIOC_L2CAP_NODE_GET_CHAN_LIST[rip]
	mov	ecx, 16
	mov	rdx, r13
	mov	edi, ebp
	call	ioctl@PLT
	test	rax, rax
	js	.L14
	mov	edi, DWORD PTR stdout[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, DWORD PTR stdout[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	eax, DWORD PTR 16[rsp]
	test	eax, eax
	jle	.L5
	xor	ebx, ebx
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR 24[rsp]
	lea	rdi, state.1962[rip]
	mov	r14d, DWORD PTR 20[rax+rbx]
	xor	eax, eax
	call	SIZE@PLT
	mov	rdi, QWORD PTR 24[rsp]
	lea	r8, .LC0[rip]
	add	rdi, rbx
	cmp	r14d, eax
	jge	.L7
	movsx	rdx, DWORD PTR 20[rdi]
	lea	rax, state.1962[rip]
	mov	r8, QWORD PTR [rax+rdx*8]
.L7:
	mov	esi, DWORD PTR 16[rdi]
	mov	r12d, DWORD PTR 12[rdi]
	add	rdi, 24
	mov	QWORD PTR [rsp], r8
	mov	r13d, DWORD PTR -16[rdi]
	mov	r15d, DWORD PTR -20[rdi]
	add	ebp, 1
	add	rbx, 28
	mov	DWORD PTR 8[rsp], esi
	mov	r14d, DWORD PTR -24[rdi]
	call	bdaddrpr@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	edi, DWORD PTR stdout[rip]
	mov	r9d, r13d
	mov	r8, QWORD PTR 8[rsp]
	mov	rdx, rax
	mov	ecx, r14d
	xor	eax, eax
	push	r8
	.cfi_def_cfa_offset 128
	mov	esi, DWORD PTR 24[rsp]
	mov	r8d, r15d
	push	rsi
	.cfi_def_cfa_offset 136
	lea	rsi, .LC3[rip]
	push	r12
	.cfi_def_cfa_offset 144
	call	fprintf@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 112
	cmp	DWORD PTR 16[rsp], ebp
	jg	.L8
.L5:
	mov	rdi, QWORD PTR 24[rsp]
	call	free@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	mov	eax, DWORD PTR 12[rsp]
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L14:
	.cfi_restore_state
	mov	eax, DWORD PTR ERROR[rip]
	mov	DWORD PTR 12[rsp], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, DWORD PTR ENOMEM[rip]
	mov	DWORD PTR errno[rip], eax
	mov	eax, DWORD PTR ERROR[rip]
	mov	DWORD PTR 12[rsp], eax
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	l2cap_read_channel_list, .-l2cap_read_channel_list
	.section	.rodata.str1.1
.LC4:
	.string	"CLOSED"
.LC5:
	.string	"W4_L2CAP_CON_RSP"
.LC6:
	.string	"W4_L2CA_CON_RSP"
.LC7:
	.string	"CONFIG"
.LC8:
	.string	"OPEN"
.LC9:
	.string	"W4_L2CAP_DISCON_RSP"
.LC10:
	.string	"W4_L2CA_DISCON_RSP"
	.section	.data.rel.ro.local,"aw"
	.align 32
	.type	state.1962, @object
	.size	state.1962, 56
state.1962:
	.quad	.LC4
	.quad	.LC5
	.quad	.LC6
	.quad	.LC7
	.quad	.LC8
	.quad	.LC9
	.quad	.LC10
	.comm	stdout,4,4
	.comm	errno,4,4
	.comm	SIOC_L2CAP_NODE_GET_CHAN_LIST,4,4
	.comm	OK,4,4
	.comm	NG_L2CAP_MAX_CHAN_NUM,4,4
	.comm	ERROR,4,4
	.comm	ENOMEM,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_l2cap.c_l2cap_read_channel_list.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"UNKNOWN\000"
	.align	2
.LC1:
	.ascii	"L2CAP channels:\012\000"
	.align	2
.LC2:
	.ascii	"Remote BD_ADDR     SCID/ DCID   PSM  IMTU/ OMTU Sta"
	.ascii	"te\012\000"
	.align	2
.LC3:
	.ascii	"%-17.17s %5d/%5d %5d %5d/%5d %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	l2cap_read_channel_list, %function
l2cap_read_channel_list:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r1, .L16
	ldr	r2, .L16+4
	ldr	r3, .L16+8
	sub	sp, sp, #60
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	mov	r4, r0
	ldr	r3, [r2]
	ldr	r0, [r1]
	mov	r1, #4
	str	r0, [sp, #44]
	str	r3, [sp, #36]
	bl	calloc
	cmp	r0, #0
	str	r0, [sp, #48]
	beq	.L13
	ldr	r3, .L16+12
	mov	r0, r4
	ldr	r1, [r3]
	add	r2, sp, #44
	mov	r3, #8
	bl	ioctl
	cmp	r0, #0
	blt	.L14
	ldr	r3, .L16+16
	ldr	r1, .L16+20
	mov	r4, r3
	ldr	r0, [r3]
	bl	fprintf
	ldr	r0, [r4]
	ldr	r1, .L16+24
	bl	fprintf
	ldr	r3, [sp, #44]
	cmp	r3, #0
	ble	.L5
	mov	r4, #0
	mov	r6, r4
.L7:
	ldr	r0, [sp, #48]
	ldr	r3, .L16+16
	add	r0, r0, r4
	add	r0, r0, #24
	ldr	r7, [r3]
	bl	bdaddrpr
	ldr	r3, [sp, #48]
	mov	r5, r0
	add	r1, r3, r4
	ldr	r2, [r1, #20]
	ldr	r8, [r3, r4]
	ldr	r3, [r1, #16]
	ldr	r0, .L16+28
	ldmib	r1, {r9, r10, fp}
	str	r3, [sp, #32]
	str	r2, [sp, #28]
	bl	SIZE
	ldr	r2, [sp, #28]
	ldr	r3, [sp, #32]
	cmp	r2, r0
	ldrlt	r2, [sp, #48]
	ldrlt	r1, .L16+28
	addlt	r2, r2, r4
	ldrlt	r2, [r2, #20]
	ldrge	r2, .L16+32
	ldrlt	r2, [r1, r2, lsl #2]
	str	r3, [sp, #12]
	str	r2, [sp, #16]
	mov	r3, r8
	mov	r2, r5
	mov	r0, r7
	stm	sp, {r9, r10, fp}
	ldr	r1, .L16+36
	bl	fprintf
	ldr	r3, [sp, #44]
	add	r6, r6, #1
	cmp	r3, r6
	add	r4, r4, #28
	bgt	.L7
.L5:
	ldr	r0, [sp, #48]
	bl	free
.L1:
	ldr	r3, .L16+8
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	ldr	r0, [sp, #36]
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r3, .L16+40
	ldr	r3, [r3]
	str	r3, [sp, #36]
	b	.L5
.L13:
	ldr	r3, .L16+44
	ldr	r2, .L16+48
	ldr	r1, [r3]
	ldr	r3, .L16+40
	str	r1, [r2]
	ldr	r3, [r3]
	str	r3, [sp, #36]
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	NG_L2CAP_MAX_CHAN_NUM
	.word	OK
	.word	.LC4
	.word	SIOC_L2CAP_NODE_GET_CHAN_LIST
	.word	stdout
	.word	.LC1
	.word	.LC2
	.word	.LANCHOR0
	.word	.LC0
	.word	.LC3
	.word	ERROR
	.word	ENOMEM
	.word	errno
	.size	l2cap_read_channel_list, .-l2cap_read_channel_list
	.section	.rodata.str1.4
	.align	2
.LC5:
	.ascii	"CLOSED\000"
	.align	2
.LC6:
	.ascii	"W4_L2CAP_CON_RSP\000"
	.align	2
.LC7:
	.ascii	"W4_L2CA_CON_RSP\000"
	.align	2
.LC8:
	.ascii	"CONFIG\000"
	.align	2
.LC9:
	.ascii	"OPEN\000"
	.align	2
.LC10:
	.ascii	"W4_L2CAP_DISCON_RSP\000"
	.align	2
.LC11:
	.ascii	"W4_L2CA_DISCON_RSP\000"
	.comm	stdout,4,4
	.comm	errno,4,4
	.comm	SIOC_L2CAP_NODE_GET_CHAN_LIST,4,4
	.comm	OK,4,4
	.comm	NG_L2CAP_MAX_CHAN_NUM,4,4
	.comm	ERROR,4,4
	.comm	ENOMEM,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	state.4246, %object
	.size	state.4246, 28
state.4246:
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
