	.file	"extr_bfin_jtag_comm.c_bfin_jc_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"open %lu\n"
	.text
	.p2align 4
	.type	bfin_jc_open, @function
bfin_jc_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	lea	rdi, bfin_jc_tty_mutex[rip]
	call	mutex_lock@PLT
	mov	esi, DWORD PTR bfin_jc_count[rip]
	lea	rdi, .LC0[rip]
	call	pr_debug@PLT
	mov	edi, DWORD PTR bfin_jc_kthread[rip]
	mov	QWORD PTR bfin_jc_tty[rip], rbx
	add	DWORD PTR bfin_jc_count[rip], 1
	call	wake_up_process@PLT
	lea	rdi, bfin_jc_tty_mutex[rip]
	call	mutex_unlock@PLT
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bfin_jc_open, .-bfin_jc_open
	.comm	bfin_jc_tty_mutex,4,4
	.comm	bfin_jc_tty,8,8
	.comm	bfin_jc_kthread,4,4
	.comm	bfin_jc_count,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_bfin_jtag_comm.c_bfin_jc_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"open %lu\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfin_jc_open, %function
bfin_jc_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r6, .L4
	ldr	r4, .L4+4
	mov	r0, r6
	bl	mutex_lock
	ldr	r1, [r4]
	ldr	r0, .L4+8
	bl	pr_debug
	ldr	r3, [r4]
	ldr	r1, .L4+12
	ldr	r2, .L4+16
	add	r3, r3, #1
	ldr	r0, [r1]
	str	r5, [r2]
	str	r3, [r4]
	bl	wake_up_process
	mov	r0, r6
	bl	mutex_unlock
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	bfin_jc_tty_mutex
	.word	bfin_jc_count
	.word	.LC0
	.word	bfin_jc_kthread
	.word	bfin_jc_tty
	.size	bfin_jc_open, .-bfin_jc_open
	.comm	bfin_jc_tty_mutex,4,4
	.comm	bfin_jc_tty,4,4
	.comm	bfin_jc_kthread,4,4
	.comm	bfin_jc_count,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
