	.file	"extr_serial_ks8695.c_ks8695uart_modem_status.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ks8695uart_modem_status, @function
ks8695uart_modem_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rdi, rsi
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	UART_GET_MSR@PLT
	mov	ebx, eax
	mov	esi, eax
	and	esi, DWORD PTR URMS_URDDCD[rip]
	jne	.L20
.L2:
	test	DWORD PTR URMS_URDDST[rip], ebx
	je	.L3
	add	DWORD PTR 12[rbp], 1
.L3:
	mov	esi, ebx
	and	esi, DWORD PTR URMS_URDCTS[rip]
	jne	.L21
.L4:
	test	DWORD PTR URMS_URTERI[rip], ebx
	je	.L5
	add	DWORD PTR 8[rbp], 1
.L5:
	mov	rdi, QWORD PTR 0[rbp]
	call	wake_up_interruptible@PLT
	mov	eax, DWORD PTR IRQ_HANDLED[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rdi, rbp
	call	uart_handle_dcd_change@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, rbp
	call	uart_handle_cts_change@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	ks8695uart_modem_status, .-ks8695uart_modem_status
	.comm	URMS_URTERI,4,4
	.comm	URMS_URDDST,4,4
	.comm	URMS_URDDCD,4,4
	.comm	URMS_URDCTS,4,4
	.comm	IRQ_HANDLED,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_serial_ks8695.c_ks8695uart_modem_status.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ks8695uart_modem_status, %function
ks8695uart_modem_status:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r0, r1
	mov	r5, r1
	bl	UART_GET_MSR
	ldr	r3, .L22
	mov	r4, r0
	ldr	r1, [r3]
	ands	r1, r0, r1
	bne	.L20
.L2:
	ldr	r3, .L22+4
	ldr	r3, [r3]
	tst	r4, r3
	ldrne	r3, [r5, #8]
	addne	r3, r3, #1
	strne	r3, [r5, #8]
	ldr	r3, .L22+8
	ldr	r1, [r3]
	ands	r1, r4, r1
	bne	.L21
.L4:
	ldr	r3, .L22+12
	ldr	r0, [r5]
	ldr	r3, [r3]
	tst	r4, r3
	ldrne	r3, [r5, #4]
	addne	r3, r3, #1
	strne	r3, [r5, #4]
	bl	wake_up_interruptible
	ldr	r3, .L22+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L20:
	mov	r0, r5
	bl	uart_handle_dcd_change
	b	.L2
.L21:
	mov	r0, r5
	bl	uart_handle_cts_change
	b	.L4
.L23:
	.align	2
.L22:
	.word	URMS_URDDCD
	.word	URMS_URDDST
	.word	URMS_URDCTS
	.word	URMS_URTERI
	.word	IRQ_HANDLED
	.size	ks8695uart_modem_status, .-ks8695uart_modem_status
	.comm	URMS_URTERI,4,4
	.comm	URMS_URDDST,4,4
	.comm	URMS_URDDCD,4,4
	.comm	URMS_URDCTS,4,4
	.comm	IRQ_HANDLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
