	.file	"extr_zs.c_zs_raw_get_ab_mctrl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	zs_raw_get_ab_mctrl, @function
zs_raw_get_ab_mctrl:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR R0[rip]
	call	read_zsreg@PLT
	mov	esi, DWORD PTR R0[rip]
	mov	rdi, rbp
	mov	ebx, eax
	call	read_zsreg@PLT
	mov	ecx, DWORD PTR DCD[rip]
	test	DWORD PTR CTS[rip], eax
	mov	edx, eax
	mov	eax, 0
	cmovne	eax, DWORD PTR TIOCM_CTS[rip]
	test	ecx, edx
	je	.L3
	or	eax, DWORD PTR TIOCM_CAR[rip]
.L3:
	test	ecx, ebx
	je	.L4
	or	eax, DWORD PTR TIOCM_RNG[rip]
.L4:
	test	DWORD PTR SYNC_HUNT[rip], ebx
	je	.L1
	or	eax, DWORD PTR TIOCM_DSR[rip]
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	zs_raw_get_ab_mctrl, .-zs_raw_get_ab_mctrl
	.comm	TIOCM_RNG,4,4
	.comm	TIOCM_DSR,4,4
	.comm	TIOCM_CTS,4,4
	.comm	TIOCM_CAR,4,4
	.comm	SYNC_HUNT,4,4
	.comm	R0,4,4
	.comm	DCD,4,4
	.comm	CTS,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_zs.c_zs_raw_get_ab_mctrl.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zs_raw_get_ab_mctrl, %function
zs_raw_get_ab_mctrl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, .L18
	mov	r5, r1
	ldr	r1, [r6]
	bl	read_zsreg
	ldr	r1, [r6]
	mov	r4, r0
	mov	r0, r5
	bl	read_zsreg
	mov	r2, r0
	ldr	r3, .L18+4
	ldr	r3, [r3]
	ands	r3, r0, r3
	ldrne	r3, .L18+8
	moveq	r0, r3
	ldrne	r0, [r3]
	ldr	r3, .L18+12
	ldr	r3, [r3]
	tst	r3, r2
	ldrne	r2, .L18+16
	ldrne	r2, [r2]
	orrne	r0, r0, r2
	tst	r3, r4
	ldrne	r3, .L18+20
	ldrne	r3, [r3]
	orrne	r0, r0, r3
	ldr	r3, .L18+24
	ldr	r3, [r3]
	tst	r4, r3
	ldrne	r3, .L18+28
	ldrne	r3, [r3]
	orrne	r0, r0, r3
	pop	{r4, r5, r6, pc}
.L19:
	.align	2
.L18:
	.word	R0
	.word	CTS
	.word	TIOCM_CTS
	.word	DCD
	.word	TIOCM_CAR
	.word	TIOCM_RNG
	.word	SYNC_HUNT
	.word	TIOCM_DSR
	.size	zs_raw_get_ab_mctrl, .-zs_raw_get_ab_mctrl
	.comm	TIOCM_RNG,4,4
	.comm	TIOCM_DSR,4,4
	.comm	TIOCM_CTS,4,4
	.comm	TIOCM_CAR,4,4
	.comm	SYNC_HUNT,4,4
	.comm	R0,4,4
	.comm	DCD,4,4
	.comm	CTS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
