	.file	"extr_yealink.c_setChar.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	setChar, @function
setChar:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	movsx	rbx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rdi, QWORD PTR lcdMap[rip]
	call	ARRAY_SIZE@PLT
	cmp	eax, ebx
	jle	.L19
	lea	eax, -9[rbp]
	cmp	eax, 1
	jbe	.L17
	mov	rax, QWORD PTR [r12]
	mov	DWORD PTR [rax+rbx*4], ebp
	mov	rax, QWORD PTR lcdMap[rip]
	sal	rbx, 5
	add	rax, rbx
	cmp	BYTE PTR [rax], 46
	je	.L20
	mov	esi, ebp
	lea	rdi, map_seg7[rip]
	xor	r13d, r13d
	call	map_to_seg7@PLT
	mov	rcx, QWORD PTR lcdMap[rip]
	mov	ebp, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rcx, QWORD PTR lcdMap[rip]
	mov	rdx, r13
	sal	rdx, 5
	add	rdx, QWORD PTR 16[rcx+rbx]
	mov	eax, DWORD PTR 4[rdx]
	test	eax, eax
	je	.L8
	movsx	rsi, DWORD PTR 8[rdx]
	mov	rdx, QWORD PTR 8[r12]
	lea	rsi, [rdx+rsi*4]
	mov	edx, eax
	mov	edi, DWORD PTR [rsi]
	not	edx
	and	edx, edi
	or	eax, edi
	test	bpl, 1
	cmove	eax, edx
	sar	ebp
	mov	DWORD PTR [rsi], eax
.L8:
	add	r13, 1
.L7:
	mov	rdi, QWORD PTR 16[rcx]
	call	ARRAY_SIZE@PLT
	cmp	eax, r13d
	jg	.L11
.L17:
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	movsx	rcx, DWORD PTR 24[rax]
	mov	edx, DWORD PTR 28[rax]
	mov	rax, QWORD PTR 8[r12]
	lea	rax, [rax+rcx*4]
	mov	ecx, DWORD PTR [rax]
	cmp	ebp, 32
	je	.L6
	or	edx, ecx
	mov	DWORD PTR [rax], edx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L6:
	not	edx
	and	edx, ecx
	mov	DWORD PTR [rax], edx
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	setChar, .-setChar
	.comm	map_seg7,4,4
	.comm	lcdMap,8,8
	.comm	EINVAL,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_yealink.c_setChar.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setChar, %function
setChar:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, .L21
	mov	r7, r0
	ldr	r0, [r8]
	mov	r5, r1
	mov	r4, r2
	bl	ARRAY_SIZE
	cmp	r0, r5
	ble	.L19
	sub	r3, r4, #9
	cmp	r3, #1
	bls	.L17
	ldr	r2, [r7]
	ldr	r3, [r8]
	str	r4, [r2, r5, lsl #2]
	add	r5, r5, r5, lsl #1
	ldrb	r2, [r3, r5, lsl #3]	@ zero_extendqisi2
	add	r3, r3, r5, lsl #3
	cmp	r2, #46
	lsl	r5, r5, #3
	beq	.L20
	mov	r1, r4
	ldr	r0, .L21+4
	bl	map_to_seg7
	mov	r4, #0
	mov	r6, r0
	ldr	r1, [r8]
	b	.L7
.L11:
	ldr	r1, [r8]
	add	r3, r1, r5
	ldr	r3, [r3, #12]
	add	r3, r3, r2, lsl #3
	ldr	r2, [r3, #4]
	cmp	r2, #0
	beq	.L8
	ldr	r0, [r3, #8]
	ldr	r3, [r7, #4]
	tst	r6, #1
	ldr	ip, [r3, r0, lsl #2]
	asr	r6, r6, #1
	orrne	r2, r2, ip
	biceq	r2, ip, r2
	str	r2, [r3, r0, lsl #2]
.L8:
	add	r4, r4, #1
.L7:
	ldr	r0, [r1, #12]
	bl	ARRAY_SIZE
	cmp	r0, r4
	add	r2, r4, r4, lsl #1
	bgt	.L11
.L17:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	ldr	r3, .L21+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	ldr	r1, [r3, #16]
	ldr	r2, [r7, #4]
	cmp	r4, #32
	ldr	r3, [r3, #20]
	ldr	r0, [r2, r1, lsl #2]
	beq	.L6
	orr	r3, r3, r0
	str	r3, [r2, r1, lsl #2]
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	bic	r3, r0, r3
	str	r3, [r2, r1, lsl #2]
	b	.L17
.L22:
	.align	2
.L21:
	.word	lcdMap
	.word	map_seg7
	.word	EINVAL
	.size	setChar, .-setChar
	.comm	map_seg7,4,4
	.comm	lcdMap,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
