	.file	"extr_jsm_tty.c_jsm_remove_uart_port.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"start\n"
.LC1:
	.string	"finish\n"
	.text
	.p2align 4
	.globl	jsm_remove_uart_port
	.type	jsm_remove_uart_port, @function
jsm_remove_uart_port:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L15
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 8[rdi]
	lea	rdx, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	rsi, r13
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR INIT[rip]
	call	jsm_dbg@PLT
	mov	eax, DWORD PTR 4[rbp]
	mov	DWORD PTR 0[rbp], eax
	test	eax, eax
	jle	.L4
	xor	ebx, ebx
	lea	r12, jsm_uart_driver[rip]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR [rax+rbx*8]
	test	rax, rax
	je	.L5
	mov	esi, DWORD PTR linemap[rip]
	mov	edi, DWORD PTR [rax]
	call	clear_bit@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, r12
	mov	rsi, QWORD PTR [rax+rbx*8]
	call	uart_remove_one_port@PLT
.L5:
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L6
.L4:
	mov	edi, DWORD PTR INIT[rip]
	mov	rsi, r13
	lea	rdx, .LC1[rip]
	call	jsm_dbg@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L15:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	mov	eax, DWORD PTR ENXIO[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	jsm_remove_uart_port, .-jsm_remove_uart_port
	.comm	linemap,4,4
	.comm	jsm_uart_driver,4,4
	.comm	INIT,4,4
	.comm	ENXIO,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_jsm_tty.c_jsm_remove_uart_port.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"start\012\000"
	.align	2
.LC1:
	.ascii	"finish\012\000"
	.text
	.align	2
	.global	jsm_remove_uart_port
	.syntax unified
	.arm
	.fpu softvfp
	.type	jsm_remove_uart_port, %function
jsm_remove_uart_port:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r5, r0, #0
	beq	.L13
	ldr	r8, .L14
	add	r9, r5, #8
	mov	r1, r9
	ldr	r0, [r8]
	ldr	r2, .L14+4
	bl	jsm_dbg
	ldr	r3, [r5, #4]
	cmp	r3, #0
	str	r3, [r5]
	ble	.L4
	mov	r4, #0
	ldr	r7, .L14+8
	ldr	r6, .L14+12
.L6:
	ldr	r3, [r5, #12]
	ldr	r3, [r3, r4, lsl #2]
	cmp	r3, #0
	beq	.L5
	ldr	r0, [r3]
	ldr	r1, [r7]
	bl	clear_bit
	ldr	r3, [r5, #12]
	mov	r0, r6
	ldr	r1, [r3, r4, lsl #2]
	bl	uart_remove_one_port
.L5:
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L6
.L4:
	mov	r1, r9
	ldr	r0, [r8]
	ldr	r2, .L14+16
	bl	jsm_dbg
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	ldr	r3, .L14+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	.align	2
.L14:
	.word	INIT
	.word	.LC0
	.word	linemap
	.word	jsm_uart_driver
	.word	.LC1
	.word	ENXIO
	.size	jsm_remove_uart_port, .-jsm_remove_uart_port
	.comm	linemap,4,4
	.comm	jsm_uart_driver,4,4
	.comm	INIT,4,4
	.comm	ENXIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
