	.file	"extr_isdn_tty.c_isdn_tty_modem_escape.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	isdn_tty_modem_escape
	.type	isdn_tty_modem_escape, @function
isdn_tty_modem_escape:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR ISDN_MAX_CHANNELS[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	eax, eax
	jle	.L7
	xor	ebx, ebx
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR dev[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	USG_MODEM@PLT
	test	rax, rax
	je	.L3
	mov	rdx, QWORD PTR dev[rip]
	mov	rax, QWORD PTR [rdx]
	movsx	rax, DWORD PTR [rax+rbx*4]
	test	eax, eax
	js	.L3
	lea	rcx, [rax+rax*2]
	mov	rax, QWORD PTR 8[rdx]
	lea	r12, [rax+rcx*8]
	cmp	QWORD PTR [r12], 0
	je	.L3
	cmp	DWORD PTR 8[r12], 3
	je	.L4
.L16:
	mov	ebp, 1
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbx, 1
	cmp	DWORD PTR ISDN_MAX_CHANNELS[rip], ebx
	jg	.L6
.L2:
	mov	edi, DWORD PTR ISDN_TIMER_MODEMPLUS[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	esi, ebp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	isdn_timer_ctrl@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR jiffies[rip]
	mov	rsi, QWORD PTR PLUSWAIT2[rip]
	add	rsi, QWORD PTR 16[r12]
	call	time_after@PLT
	test	rax, rax
	je	.L16
	mov	DWORD PTR 8[r12], 0
	mov	edi, DWORD PTR RESULT_OK[rip]
	mov	rsi, r12
	mov	QWORD PTR [r12], 0
	call	isdn_tty_modem_result@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L7:
	xor	ebp, ebp
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	isdn_tty_modem_escape, .-isdn_tty_modem_escape
	.comm	jiffies,4,4
	.comm	dev,8,8
	.comm	RESULT_OK,4,4
	.comm	PLUSWAIT2,8,8
	.comm	ISDN_TIMER_MODEMPLUS,4,4
	.comm	ISDN_MAX_CHANNELS,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_isdn_tty.c_isdn_tty_modem_escape.c"
	.text
	.align	2
	.global	isdn_tty_modem_escape
	.syntax unified
	.arm
	.fpu softvfp
	.type	isdn_tty_modem_escape, %function
isdn_tty_modem_escape:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r10, .L21
	sub	sp, sp, #12
	ldr	r3, [r10]
	cmp	r3, #0
	ble	.L7
	mov	r4, #0
	mov	r5, r4
	ldr	r9, .L21+4
	ldr	r7, .L21+8
	ldr	r6, .L21+12
	ldr	r8, .L21+16
.L6:
	ldr	r3, [r9]
	ldr	r3, [r3, #8]
	ldr	r0, [r3, r4, lsl #2]
	bl	USG_MODEM
	cmp	r0, #0
	beq	.L3
	ldr	r2, [r9]
	ldr	r3, [r2]
	ldr	r3, [r3, r4, lsl #2]
	cmp	r3, #0
	add	fp, r3, r3, lsl #1
	blt	.L3
	ldr	r3, [r2, #4]
	ldr	r1, [r3, fp, lsl #2]
	add	r2, r3, fp, lsl #2
	cmp	r1, #0
	beq	.L3
	ldr	r1, [r2, #4]
	cmp	r1, #3
	beq	.L4
.L19:
	mov	r5, #1
.L3:
	ldr	r3, [r10]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L6
.L2:
	mov	r1, r5
	ldr	r3, .L21+20
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	isdn_timer_ctrl
.L4:
	ldr	ip, [r2, #8]
	ldr	r1, [r7]
	ldr	r0, [r6]
	add	r1, ip, r1
	str	r3, [sp, #4]
	str	r2, [sp]
	bl	time_after
	ldm	sp, {r2, r3}
	cmp	r0, #0
	beq	.L19
	mov	r0, #0
	mov	r1, r2
	str	r0, [r2, #4]
	str	r0, [r3, fp, lsl #2]
	ldr	r0, [r8]
	bl	isdn_tty_modem_result
	b	.L19
.L7:
	mov	r5, #0
	b	.L2
.L22:
	.align	2
.L21:
	.word	ISDN_MAX_CHANNELS
	.word	dev
	.word	PLUSWAIT2
	.word	jiffies
	.word	RESULT_OK
	.word	ISDN_TIMER_MODEMPLUS
	.size	isdn_tty_modem_escape, .-isdn_tty_modem_escape
	.comm	jiffies,4,4
	.comm	dev,4,4
	.comm	RESULT_OK,4,4
	.comm	PLUSWAIT2,4,4
	.comm	ISDN_TIMER_MODEMPLUS,4,4
	.comm	ISDN_MAX_CHANNELS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
