	.file	"extr_uart_emul.c_modem_status.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	modem_status, @function
modem_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	test	DWORD PTR MCR_LOOPBACK[rip], edi
	je	.L2
	mov	r12d, edi
	and	r12d, DWORD PTR MCR_RTS[rip]
	cmovne	r12d, DWORD PTR MSR_CTS[rip]
	test	DWORD PTR MCR_DTR[rip], edi
	je	.L4
	or	r12d, DWORD PTR MSR_DSR[rip]
.L4:
	test	DWORD PTR MCR_OUT1[rip], edi
	je	.L5
	or	r12d, DWORD PTR MSR_RI[rip]
.L5:
	test	DWORD PTR MCR_OUT2[rip], edi
	je	.L6
	or	r12d, DWORD PTR MSR_DCD[rip]
.L6:
	xor	edi, edi
	test	DWORD PTR MSR_DELTA_MASK[rip], r12d
	sete	dil
	call	assert@PLT
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12d, DWORD PTR MSR_DCD[rip]
	or	r12d, DWORD PTR MSR_DSR[rip]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	modem_status, .-modem_status
	.comm	MSR_RI,4,4
	.comm	MSR_DSR,4,4
	.comm	MSR_DELTA_MASK,4,4
	.comm	MSR_DCD,4,4
	.comm	MSR_CTS,4,4
	.comm	MCR_RTS,4,4
	.comm	MCR_OUT2,4,4
	.comm	MCR_OUT1,4,4
	.comm	MCR_LOOPBACK,4,4
	.comm	MCR_DTR,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_uart_emul.c_modem_status.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	modem_status, %function
modem_status:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L21
	push	{r4, lr}
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L2
	ldr	r3, .L21+4
	ldr	r4, [r3]
	ands	r4, r0, r4
	ldrne	r3, .L21+8
	ldrne	r4, [r3]
	ldr	r3, .L21+12
	ldr	r3, [r3]
	tst	r0, r3
	ldrne	r3, .L21+16
	ldrne	r3, [r3]
	orrne	r4, r4, r3
	ldr	r3, .L21+20
	ldr	r3, [r3]
	tst	r0, r3
	ldrne	r3, .L21+24
	ldrne	r3, [r3]
	orrne	r4, r4, r3
	ldr	r3, .L21+28
	ldr	r3, [r3]
	tst	r0, r3
	ldrne	r3, .L21+32
	ldrne	r3, [r3]
	orrne	r4, r4, r3
.L6:
	ldr	r3, .L21+36
	ldr	r3, [r3]
	tst	r4, r3
	moveq	r0, #1
	movne	r0, #0
	bl	assert
	mov	r0, r4
	pop	{r4, pc}
.L2:
	ldr	r2, .L21+32
	ldr	r3, .L21+16
	ldr	r4, [r2]
	ldr	r3, [r3]
	orr	r4, r4, r3
	b	.L6
.L22:
	.align	2
.L21:
	.word	MCR_LOOPBACK
	.word	MCR_RTS
	.word	MSR_CTS
	.word	MCR_DTR
	.word	MSR_DSR
	.word	MCR_OUT1
	.word	MSR_RI
	.word	MCR_OUT2
	.word	MSR_DCD
	.word	MSR_DELTA_MASK
	.size	modem_status, .-modem_status
	.comm	MSR_RI,4,4
	.comm	MSR_DSR,4,4
	.comm	MSR_DELTA_MASK,4,4
	.comm	MSR_DCD,4,4
	.comm	MSR_CTS,4,4
	.comm	MCR_RTS,4,4
	.comm	MCR_OUT2,4,4
	.comm	MCR_OUT1,4,4
	.comm	MCR_LOOPBACK,4,4
	.comm	MCR_DTR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
