	.file	"extr_core.c_hidp_verify_sockets.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hidp_verify_sockets, @function
hidp_verify_sockets:
.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
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	l2cap_is_socket@PLT
	test	eax, eax
	jne	.L2
.L4:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	l2cap_is_socket@PLT
	test	eax, eax
	je	.L4
	mov	edi, DWORD PTR [rbx]
	call	l2cap_pi@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	r12, QWORD PTR [rax]
	call	l2cap_pi@PLT
	mov	r13, QWORD PTR [rax]
	lea	rdi, 4[r12]
	lea	rsi, 4[r13]
	call	bacmp@PLT
	test	rax, rax
	je	.L5
.L6:
	mov	eax, DWORD PTR ENOTUNIQ[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rsi, r13
	mov	rdi, r12
	call	bacmp@PLT
	test	rax, rax
	jne	.L6
	mov	edi, DWORD PTR [rbx]
	call	bt_sk@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	rbx, rax
	call	bt_sk@PLT
	mov	rdx, QWORD PTR BT_CONNECTED[rip]
	cmp	QWORD PTR [rbx], rdx
	jne	.L7
	cmp	rdx, QWORD PTR [rax]
	jne	.L7
	mov	rdi, r12
	call	hidp_session_find@PLT
	mov	rdi, rax
	xor	eax, eax
	test	rdi, rdi
	je	.L1
	call	hidp_session_put@PLT
	mov	eax, DWORD PTR EEXIST[rip]
	neg	eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR EBADFD[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	hidp_verify_sockets, .-hidp_verify_sockets
	.comm	ENOTUNIQ,4,4
	.comm	EINVAL,4,4
	.comm	EEXIST,4,4
	.comm	EBADFD,4,4
	.comm	BT_CONNECTED,8,8
	.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_core.c_hidp_verify_sockets.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hidp_verify_sockets, %function
hidp_verify_sockets:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r6, r0
	bl	l2cap_is_socket
	cmp	r0, #0
	bne	.L2
.L4:
	ldr	r3, .L17
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r5
	bl	l2cap_is_socket
	cmp	r0, #0
	beq	.L4
	ldr	r0, [r6]
	bl	l2cap_pi
	mov	r3, r0
	ldr	r0, [r5]
	ldr	r7, [r3]
	bl	l2cap_pi
	ldr	r4, [r0]
	add	r0, r7, #4
	add	r1, r4, #4
	bl	bacmp
	cmp	r0, #0
	beq	.L5
.L6:
	ldr	r3, .L17+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r1, r4
	mov	r0, r7
	bl	bacmp
	subs	r4, r0, #0
	bne	.L6
	ldr	r0, [r6]
	bl	bt_sk
	mov	r6, r0
	ldr	r0, [r5]
	bl	bt_sk
	ldr	r2, .L17+8
	ldr	r3, [r6]
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L7
	ldr	r2, [r0]
	cmp	r3, r2
	bne	.L7
	mov	r0, r7
	bl	hidp_session_find
	cmp	r0, #0
	beq	.L1
	bl	hidp_session_put
	ldr	r3, .L17+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L7:
	ldr	r3, .L17+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L18:
	.align	2
.L17:
	.word	EINVAL
	.word	ENOTUNIQ
	.word	BT_CONNECTED
	.word	EEXIST
	.word	EBADFD
	.size	hidp_verify_sockets, .-hidp_verify_sockets
	.comm	ENOTUNIQ,4,4
	.comm	EINVAL,4,4
	.comm	EEXIST,4,4
	.comm	EBADFD,4,4
	.comm	BT_CONNECTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
