	.file	"extr_i4l.c_gigaset_isdn_icall.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"8890"
.LC1:
	.string	"8090A3"
.LC2:
	.string	"9090A3"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"RING ignored - unsupported BC %s\n"
	.section	.rodata.str1.1
.LC4:
	.string	"no channel for incoming call\n"
.LC5:
	.string	"Sending ICALL"
.LC6:
	.string	"Response: %d"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"LL requested unsupported feature: Incomplete Number\n"
	.align 8
.LC8:
	.string	"LL requested unsupported feature: Call Deflection\n"
	.section	.rodata.str1.1
.LC9:
	.string	"LL error %d on ICALL\n"
	.text
	.p2align 4
	.globl	gigaset_isdn_icall
	.type	gigaset_isdn_icall, @function
gigaset_isdn_icall:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 80
	.cfi_def_cfa_offset 112
	mov	rdx, QWORD PTR STR_ZBC[rip]
	mov	rbx, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	rbp, QWORD PTR 8[rdi]
	mov	QWORD PTR 56[rsp], 0
	mov	QWORD PTR 48[rsp], 0
	mov	QWORD PTR 24[rsp], 0
	mov	rdi, QWORD PTR [rax+rdx*8]
	test	rdi, rdi
	jne	.L2
	mov	DWORD PTR 24[rsp], 1
.L3:
	mov	rdx, QWORD PTR STR_NMBR[rip]
	mov	rdi, QWORD PTR 40[rsp]
	mov	rsi, QWORD PTR [rax+rdx*8]
	test	rsi, rsi
	jne	.L26
	mov	QWORD PTR [rdi], 0
.L9:
	mov	rdx, QWORD PTR STR_ZCPN[rip]
	mov	rdi, QWORD PTR 32[rsp]
	mov	rsi, QWORD PTR [rax+rdx*8]
	test	rsi, rsi
	jne	.L27
	mov	QWORD PTR [rdi], 0
	test	rbp, rbp
	je	.L28
.L12:
	mov	edi, DWORD PTR DEBUG_CMD[rip]
	lea	rsi, .LC5[rip]
	xor	eax, eax
	call	gig_dbg@PLT
	mov	eax, DWORD PTR ISDN_STAT_ICALL[rip]
	mov	DWORD PTR 16[rsp], eax
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR 8[rsp], rax
.L13:
	mov	eax, DWORD PTR 16[rbx]
	mov	rdi, rsp
	mov	DWORD PTR [rsp], eax
	call	[QWORD PTR 8[rbx]]
	mov	edi, DWORD PTR DEBUG_CMD[rip]
	lea	rsi, .LC6[rip]
	mov	r12d, eax
	xor	eax, eax
	mov	edx, r12d
	call	gig_dbg@PLT
	cmp	r12d, 5
	ja	.L14
	lea	rdx, .L16[rip]
	movsx	rax, DWORD PTR [rdx+r12*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L16:
	.long	.L24-.L16
	.long	.L20-.L16
	.long	.L19-.L16
	.long	.L18-.L16
	.long	.L17-.L16
	.long	.L15-.L16
	.text
.L14:
	mov	edi, DWORD PTR [rbx]
	mov	edx, r12d
	lea	rsi, .LC9[rip]
	call	dev_err@PLT
.L24:
	mov	eax, DWORD PTR ICALL_IGNORE[rip]
.L1:
	mov	rcx, QWORD PTR 72[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L29
	add	rsp, 80
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	mov	DWORD PTR 24[rsp], 7
	mov	rax, QWORD PTR [r12]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edx, 7
	call	strncpy@PLT
	mov	rax, QWORD PTR 40[rsp]
	mov	QWORD PTR 56[rax], 0
	mov	rax, QWORD PTR [r12]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edx, 7
	call	strncpy@PLT
	mov	rax, QWORD PTR 32[rsp]
	mov	QWORD PTR 56[rax], 0
	test	rbp, rbp
	jne	.L12
.L28:
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC4[rip]
	call	dev_notice@PLT
	mov	eax, DWORD PTR ISDN_STAT_ICALLW[rip]
	mov	QWORD PTR 8[rsp], 0
	mov	DWORD PTR 16[rsp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC8[rip]
	xor	eax, eax
	call	dev_warn@PLT
	mov	eax, DWORD PTR ICALL_IGNORE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	eax, DWORD PTR CHS_NOTIFY_LL[rip]
	or	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR ICALL_ACCEPT[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	mov	eax, DWORD PTR ICALL_REJECT[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC7[rip]
	xor	eax, eax
	call	dev_warn@PLT
	mov	eax, DWORD PTR ICALL_IGNORE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	eax, DWORD PTR ICALL_ACCEPT[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR [r12]
	mov	rdx, QWORD PTR STR_ZBC[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, QWORD PTR [rax+rdx*8]
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	mov	DWORD PTR 24[rsp], 1
	mov	rax, QWORD PTR [r12]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR [r12]
	mov	rdx, QWORD PTR STR_ZBC[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, QWORD PTR [rax+rdx*8]
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	movabs	rax, 8589934593
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR [r12]
	jmp	.L3
.L6:
	mov	rax, QWORD PTR [r12]
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC3[rip]
	mov	rdx, QWORD PTR STR_ZBC[rip]
	mov	rdx, QWORD PTR [rax+rdx*8]
	xor	eax, eax
	call	dev_warn@PLT
	mov	eax, DWORD PTR ICALL_IGNORE[rip]
	jmp	.L1
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gigaset_isdn_icall, .-gigaset_isdn_icall
	.comm	STR_ZCPN,8,8
	.comm	STR_ZBC,8,8
	.comm	STR_NMBR,8,8
	.comm	ISDN_STAT_ICALLW,4,4
	.comm	ISDN_STAT_ICALL,4,4
	.comm	ICALL_REJECT,4,4
	.comm	ICALL_IGNORE,4,4
	.comm	ICALL_ACCEPT,4,4
	.comm	DEBUG_CMD,4,4
	.comm	CHS_NOTIFY_LL,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_i4l.c_gigaset_isdn_icall.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"8890\000"
	.align	2
.LC1:
	.ascii	"8090A3\000"
	.align	2
.LC2:
	.ascii	"9090A3\000"
	.align	2
.LC3:
	.ascii	"RING ignored - unsupported BC %s\012\000"
	.align	2
.LC4:
	.ascii	"no channel for incoming call\012\000"
	.align	2
.LC5:
	.ascii	"Sending ICALL\000"
	.align	2
.LC6:
	.ascii	"Response: %d\000"
	.align	2
.LC7:
	.ascii	"LL requested unsupported feature: Incomplete Number"
	.ascii	"\012\000"
	.align	2
.LC8:
	.ascii	"LL requested unsupported feature: Call Deflection\012"
	.ascii	"\000"
	.align	2
.LC9:
	.ascii	"LL error %d on ICALL\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gigaset_isdn_icall
	.syntax unified
	.arm
	.fpu softvfp
	.type	gigaset_isdn_icall, %function
gigaset_isdn_icall:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	ldr	r7, .L30
	sub	sp, sp, #44
	ldr	r1, [r7]
	ldr	r2, [r0]
	str	r3, [sp, #32]
	str	r3, [sp, #28]
	ldr	r0, [r2, r1, lsl #2]
	ldr	r1, .L30+4
	cmp	r0, r3
	ldr	r1, [r1]
	str	r1, [sp, #36]
	mov	r1,#0
	ldr	r5, [r4, #8]
	ldr	r6, [r4, #4]
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	bne	.L2
	mov	r3, #1
	str	r3, [sp, #12]
.L3:
	ldr	r3, .L30+8
	ldr	r0, [sp, #24]
	ldr	r3, [r3]
	ldr	r1, [r2, r3, lsl #2]
	cmp	r1, #0
	streq	r1, [r0]
	bne	.L26
.L9:
	ldr	r3, .L30+12
	ldr	r0, [sp, #20]
	ldr	r3, [r3]
	ldr	r1, [r2, r3, lsl #2]
	cmp	r1, #0
	streq	r1, [r0]
	bne	.L27
	cmp	r6, #0
	beq	.L28
.L12:
	ldr	r7, .L30+16
	ldr	r1, .L30+20
	ldr	r0, [r7]
	bl	gig_dbg
	ldr	r3, .L30+24
	ldr	r2, [r6, #4]
	ldr	r3, [r3]
	stmib	sp, {r2, r3}
.L13:
	ldr	r2, [r5, #8]
	mov	r0, sp
	str	r2, [sp]
	ldr	r3, [r5, #4]
	blx	r3
	mov	r4, r0
	ldr	r1, .L30+28
	mov	r2, r4
	ldr	r0, [r7]
	bl	gig_dbg
	cmp	r4, #5
	ldrls	pc, [pc, r4, asl #2]
	b	.L14
.L16:
	.word	.L24
	.word	.L20
	.word	.L19
	.word	.L18
	.word	.L17
	.word	.L15
.L2:
	ldr	r1, .L30+32
	bl	strcmp
	cmp	r0, #0
	bne	.L4
	mov	r3, #7
	ldr	r2, [r4]
	str	r3, [sp, #12]
	b	.L3
.L26:
	mov	r2, #3
	bl	strncpy
	mov	r1, #0
	ldr	r3, [sp, #24]
	ldr	r2, [r4]
	str	r1, [r3, #12]
	b	.L9
.L27:
	mov	r2, #3
	bl	strncpy
	mov	r2, #0
	ldr	r3, [sp, #20]
	cmp	r6, #0
	str	r2, [r3, #12]
	bne	.L12
.L28:
	ldr	r1, .L30+36
	ldr	r0, [r5]
	bl	dev_notice
	ldr	r3, .L30+40
	ldr	r7, .L30+16
	ldr	r3, [r3]
	str	r6, [sp, #4]
	str	r3, [sp, #8]
	b	.L13
.L15:
	ldr	r0, [r5]
	ldr	r1, .L30+44
	bl	dev_warn
	ldr	r3, .L30+48
	ldr	r0, [r3]
.L1:
	ldr	r3, .L30+4
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L29
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	mov	r2, r4
	ldr	r0, [r5]
	ldr	r1, .L30+52
	bl	dev_err
.L24:
	ldr	r3, .L30+48
	ldr	r0, [r3]
	b	.L1
.L20:
	ldr	r2, .L30+56
	ldr	r3, [r6]
	ldr	r1, [r2]
	ldr	r2, .L30+60
	orr	r3, r3, r1
	ldr	r0, [r2]
	str	r3, [r6]
	b	.L1
.L19:
	ldr	r3, .L30+64
	ldr	r0, [r3]
	b	.L1
.L18:
	ldr	r0, [r5]
	ldr	r1, .L30+68
	bl	dev_warn
	ldr	r3, .L30+48
	ldr	r0, [r3]
	b	.L1
.L17:
	ldr	r3, .L30+60
	ldr	r0, [r3]
	b	.L1
.L4:
	ldr	r2, [r7]
	ldr	r3, [r4]
	ldr	r1, .L30+72
	ldr	r0, [r3, r2, lsl #2]
	bl	strcmp
	cmp	r0, #0
	moveq	r3, #1
	ldreq	r2, [r4]
	streq	r3, [sp, #12]
	beq	.L3
.L5:
	ldr	r2, [r7]
	ldr	r3, [r4]
	ldr	r1, .L30+76
	ldr	r0, [r3, r2, lsl #2]
	bl	strcmp
	cmp	r0, #0
	bne	.L6
	mov	r2, #1
	mov	r3, #2
	str	r2, [sp, #12]
	str	r3, [sp, #16]
	ldr	r2, [r4]
	b	.L3
.L6:
	ldr	r3, [r4]
	ldr	r2, [r7]
	ldr	r0, [r5]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r1, .L30+80
	bl	dev_warn
	ldr	r3, .L30+48
	ldr	r0, [r3]
	b	.L1
.L29:
	bl	__stack_chk_fail
.L31:
	.align	2
.L30:
	.word	STR_ZBC
	.word	.LC10
	.word	STR_NMBR
	.word	STR_ZCPN
	.word	DEBUG_CMD
	.word	.LC5
	.word	ISDN_STAT_ICALL
	.word	.LC6
	.word	.LC0
	.word	.LC4
	.word	ISDN_STAT_ICALLW
	.word	.LC8
	.word	ICALL_IGNORE
	.word	.LC9
	.word	CHS_NOTIFY_LL
	.word	ICALL_ACCEPT
	.word	ICALL_REJECT
	.word	.LC7
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	gigaset_isdn_icall, .-gigaset_isdn_icall
	.comm	STR_ZCPN,4,4
	.comm	STR_ZBC,4,4
	.comm	STR_NMBR,4,4
	.comm	ISDN_STAT_ICALLW,4,4
	.comm	ISDN_STAT_ICALL,4,4
	.comm	ICALL_REJECT,4,4
	.comm	ICALL_IGNORE,4,4
	.comm	ICALL_ACCEPT,4,4
	.comm	DEBUG_CMD,4,4
	.comm	CHS_NOTIFY_LL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
