	.file	"extr_core.c_hidp_session.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"session %p"
.LC1:
	.string	"khidpd_%04x%04x"
	.text
	.p2align 4
	.type	hidp_session, @function
hidp_session:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rsi, rdi
	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	rbp, rdi
	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
	mov	rax, QWORD PTR [rdi]
	mov	r14, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 8[rdi]
	lea	rdi, .LC0[rip]
	mov	r13, QWORD PTR 8[rax]
	call	BT_DBG@PLT
	mov	rax, QWORD PTR 24[rbp]
	test	rax, rax
	je	.L16
	mov	esi, DWORD PTR [rax]
	mov	edx, DWORD PTR 4[rax]
.L2:
	mov	rax, QWORD PTR 16[rbp]
	test	rax, rax
	je	.L3
	mov	esi, DWORD PTR [rax]
	mov	edx, DWORD PTR 4[rax]
.L3:
	lea	rdi, .LC1[rip]
	lea	r15, 32[rsp]
	call	daemonize@PLT
	mov	edi, DWORD PTR current[rip]
	mov	esi, -15
	lea	rbx, 36[rsp]
	lea	r12, 24[r14]
	call	set_user_nice@PLT
	mov	esi, DWORD PTR current[rip]
	mov	rdi, r15
	mov	QWORD PTR 16[rsp], r15
	call	init_waitqueue_entry@PLT
	mov	esi, DWORD PTR current[rip]
	mov	rdi, rbx
	mov	QWORD PTR 24[rsp], rbx
	call	init_waitqueue_entry@PLT
	mov	rdi, QWORD PTR 8[r14]
	mov	rsi, r15
	call	add_wait_queue@PLT
	mov	rdi, QWORD PTR 8[r13]
	mov	rsi, rbx
	call	add_wait_queue@PLT
	lea	rax, 32[rbp]
	mov	QWORD PTR 8[rsp], rax
	mov	rdi, QWORD PTR 8[rsp]
	call	atomic_read@PLT
	test	eax, eax
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR TASK_INTERRUPTIBLE[rip]
	call	set_current_state@PLT
	mov	rax, QWORD PTR BT_CONNECTED[rip]
	cmp	QWORD PTR [r14], rax
	jne	.L8
	cmp	rax, QWORD PTR 0[r13]
	je	.L9
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r15
	call	skb_orphan@PLT
	mov	rsi, r15
	mov	rdi, rbp
	call	hidp_recv_ctrl_frame@PLT
.L9:
	mov	rdi, r12
	call	skb_dequeue@PLT
	mov	r15, rax
	test	rax, rax
	jne	.L10
	lea	rbx, 24[r13]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, r15
	call	skb_orphan@PLT
	mov	rsi, r15
	mov	rdi, rbp
	call	hidp_recv_intr_frame@PLT
.L11:
	mov	rdi, rbx
	call	skb_dequeue@PLT
	mov	r15, rax
	test	rax, rax
	jne	.L12
	mov	rdi, rbp
	call	hidp_process_transmit@PLT
	xor	eax, eax
	call	schedule@PLT
	mov	rdi, QWORD PTR 8[rsp]
	call	atomic_read@PLT
	test	eax, eax
	je	.L13
.L8:
	mov	edi, DWORD PTR TASK_RUNNING[rip]
	call	set_current_state@PLT
	mov	rdi, QWORD PTR 8[r13]
	mov	rsi, QWORD PTR 24[rsp]
	call	remove_wait_queue@PLT
	mov	rsi, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR 8[r14]
	call	remove_wait_queue@PLT
	lea	rdi, hidp_session_sem[rip]
	call	down_write@PLT
	mov	rdi, rbp
	call	hidp_del_timer@PLT
	mov	rdi, QWORD PTR 24[rbp]
	test	rdi, rdi
	je	.L7
	call	input_unregister_device@PLT
	mov	QWORD PTR 24[rbp], 0
.L7:
	mov	rdi, QWORD PTR 16[rbp]
	test	rdi, rdi
	je	.L14
	call	hid_destroy_device@PLT
	mov	QWORD PTR 16[rbp], 0
.L14:
	mov	rdx, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR EUNATCH[rip]
	mov	rdi, rbp
	mov	rdx, QWORD PTR 8[rdx]
	mov	QWORD PTR 16[rdx], rax
	mov	rdx, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR 8[rdx]
	mov	QWORD PTR 16[rdx], rax
	call	hidp_schedule@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR [rax]
	call	fput@PLT
	mov	edi, 500
	call	msecs_to_jiffies@PLT
	xor	esi, esi
	mov	edx, eax
	mov	rax, QWORD PTR BT_CLOSED[rip]
	cmp	QWORD PTR [r14], rax
	mov	rax, QWORD PTR 8[r14]
	sete	sil
	mov	edi, DWORD PTR [rax]
	call	wait_event_timeout@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR [rax]
	call	fput@PLT
	mov	rdi, rbp
	call	__hidp_unlink_session@PLT
	lea	rdi, hidp_session_sem[rip]
	call	up_write@PLT
	mov	rdi, rbp
	call	kfree@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L16:
	.cfi_restore_state
	xor	edx, edx
	xor	esi, esi
	jmp	.L2
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hidp_session, .-hidp_session
	.comm	hidp_session_sem,4,4
	.comm	current,4,4
	.comm	TASK_RUNNING,4,4
	.comm	TASK_INTERRUPTIBLE,4,4
	.comm	EUNATCH,8,8
	.comm	BT_CONNECTED,8,8
	.comm	BT_CLOSED,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_session.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"session %p\000"
	.align	2
.LC1:
	.ascii	"khidpd_%04x%04x\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hidp_session, %function
hidp_session:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldm	r0, {r2, r3}
	mov	r4, r0
	ldr	ip, .L26
	sub	sp, sp, #20
	mov	r1, r0
	ldr	r0, .L26+4
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	ldr	r8, [r2, #4]
	ldr	r7, [r3, #4]
	bl	BT_DBG
	ldr	r2, [r4, #12]
	ldr	r3, [r4, #8]
	cmp	r2, #0
	ldmne	r2, {r1, r2}
	moveq	r1, r2
	ldr	r5, .L26+8
	cmp	r3, #0
	ldmne	r3, {r1, r2}
	ldr	r0, .L26+12
	bl	daemonize
	mvn	r1, #14
	ldr	r0, [r5]
	bl	set_user_nice
	ldr	r1, [r5]
	add	r0, sp, #4
	bl	init_waitqueue_entry
	ldr	r1, [r5]
	add	r0, sp, #8
	bl	init_waitqueue_entry
	add	r1, sp, #4
	ldr	r0, [r8, #4]
	bl	add_wait_queue
	add	r9, r4, #16
	add	r1, sp, #8
	ldr	r0, [r7, #4]
	bl	add_wait_queue
	mov	r0, r9
	bl	atomic_read
	cmp	r0, #0
	ldr	r10, .L26+16
	add	r6, r8, #12
	bne	.L8
.L13:
	ldr	r3, .L26+20
	ldr	r0, [r3]
	bl	set_current_state
	ldr	r2, [r10]
	ldr	r3, [r8]
	cmp	r3, r2
	bne	.L8
	ldr	r2, [r7]
	cmp	r3, r2
	beq	.L9
	b	.L8
.L10:
	bl	skb_orphan
	mov	r1, r5
	mov	r0, r4
	bl	hidp_recv_ctrl_frame
.L9:
	mov	r0, r6
	bl	skb_dequeue
	subs	r5, r0, #0
	bne	.L10
	add	r5, r7, #12
	b	.L11
.L12:
	bl	skb_orphan
	mov	r1, fp
	mov	r0, r4
	bl	hidp_recv_intr_frame
.L11:
	mov	r0, r5
	bl	skb_dequeue
	subs	fp, r0, #0
	bne	.L12
	mov	r0, r4
	bl	hidp_process_transmit
	bl	schedule
	mov	r0, r9
	bl	atomic_read
	cmp	r0, #0
	beq	.L13
.L8:
	ldr	r3, .L26+24
	ldr	r0, [r3]
	bl	set_current_state
	add	r1, sp, #8
	ldr	r0, [r7, #4]
	bl	remove_wait_queue
	add	r1, sp, #4
	ldr	r0, [r8, #4]
	bl	remove_wait_queue
	ldr	r0, .L26+28
	bl	down_write
	mov	r0, r4
	bl	hidp_del_timer
	ldr	r0, [r4, #12]
	cmp	r0, #0
	beq	.L7
	bl	input_unregister_device
	mov	r3, #0
	str	r3, [r4, #12]
.L7:
	ldr	r0, [r4, #8]
	cmp	r0, #0
	beq	.L14
	bl	hid_destroy_device
	mov	r3, #0
	str	r3, [r4, #8]
.L14:
	ldr	r1, [r4, #4]
	ldr	r2, [r4]
	ldr	r3, .L26+32
	ldr	r1, [r1, #4]
	ldr	r2, [r2, #4]
	ldr	r3, [r3]
	mov	r0, r4
	str	r3, [r1, #8]
	str	r3, [r2, #8]
	bl	hidp_schedule
	ldr	r3, [r4, #4]
	ldr	r0, [r3]
	bl	fput
	ldr	r3, .L26+36
	ldr	r5, [r8]
	ldr	r2, [r3]
	ldr	r3, [r8, #4]
	sub	r5, r5, r2
	clz	r5, r5
	mov	r0, #500
	ldr	r6, [r3]
	bl	msecs_to_jiffies
	lsr	r5, r5, #5
	mov	r2, r0
	mov	r1, r5
	mov	r0, r6
	bl	wait_event_timeout
	ldr	r3, [r4]
	ldr	r0, [r3]
	bl	fput
	mov	r0, r4
	bl	__hidp_unlink_session
	ldr	r0, .L26+28
	bl	up_write
	mov	r0, r4
	bl	kfree
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	.LC2
	.word	.LC0
	.word	current
	.word	.LC1
	.word	BT_CONNECTED
	.word	TASK_INTERRUPTIBLE
	.word	TASK_RUNNING
	.word	hidp_session_sem
	.word	EUNATCH
	.word	BT_CLOSED
	.size	hidp_session, .-hidp_session
	.comm	hidp_session_sem,4,4
	.comm	current,4,4
	.comm	TASK_RUNNING,4,4
	.comm	TASK_INTERRUPTIBLE,4,4
	.comm	EUNATCH,4,4
	.comm	BT_CONNECTED,4,4
	.comm	BT_CLOSED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
