	.file	"extr_canvas.c_set_attr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	set_attr, @function
set_attr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L9
	mov	rbp, rsi
	test	rsi, rsi
	je	.L9
	mov	r12, rsi
	mov	rbx, rdi
	mov	rdi, r12
	call	__isAnsiSequence@PLT
	test	rax, rax
	je	.L24
	.p2align 4,,10
	.p2align 3
.L7:
	movzx	eax, BYTE PTR 2[r12]
	lea	rdx, 2[r12]
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L25:
	and	eax, -3
	cmp	al, 72
	je	.L4
	movzx	eax, BYTE PTR 1[rdx]
	add	rdx, 1
.L22:
	test	al, al
	setne	sil
	cmp	al, 109
	setne	cl
	test	sil, cl
	jne	.L25
.L4:
	lea	r12, 1[rdx]
	mov	rdi, r12
	call	__isAnsiSequence@PLT
	test	rax, rax
	jne	.L7
.L24:
	mov	r13, r12
	sub	r13, rbp
	test	r13d, r13d
	jg	.L26
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L27
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L26:
	.cfi_restore_state
	lea	r14, 4[rsp]
	mov	rdi, r14
	call	r_strbuf_init@PLT
	mov	edx, r13d
	mov	rsi, rbp
	mov	rdi, r14
	call	r_strbuf_append_n@PLT
	mov	rdi, r14
	call	r_strbuf_get@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	r_str_constpool_get@PLT
	mov	rdi, r14
	mov	DWORD PTR 4[rbx], eax
	call	r_strbuf_fini@PLT
	jmp	.L1
.L9:
	xor	r12d, r12d
	jmp	.L1
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	set_attr, .-set_attr
	.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_canvas.c_set_attr.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_attr, %function
set_attr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	cmpne	r0, #0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L20
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	moveq	r6, #0
	beq	.L1
	mov	r6, r1
	mov	r5, r0
	mov	r0, r6
	mov	r4, r1
	bl	__isAnsiSequence
	cmp	r0, #0
	beq	.L16
.L6:
	ldrb	r2, [r6, #2]	@ zero_extendqisi2
	add	ip, r6, #2
	b	.L14
.L17:
	ldrb	r2, [ip, #1]!	@ zero_extendqisi2
.L14:
	subs	r3, r2, #109
	movne	r3, #1
	cmp	r2, #0
	moveq	r3, #0
	and	r2, r2, #253
	cmp	r2, #72
	moveq	r3, #0
	andne	r3, r3, #1
	cmp	r3, #0
	bne	.L17
	add	r6, ip, #1
	mov	r0, r6
	bl	__isAnsiSequence
	cmp	r0, #0
	bne	.L6
.L16:
	sub	r7, r6, r4
	cmp	r7, #0
	bgt	.L18
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L18:
	mov	r0, sp
	bl	r_strbuf_init
	mov	r2, r7
	mov	r1, r4
	mov	r0, sp
	bl	r_strbuf_append_n
	mov	r0, sp
	bl	r_strbuf_get
	mov	r1, r0
	mov	r0, r5
	bl	r_str_constpool_get
	mov	r3, r0
	mov	r0, sp
	str	r3, [r5, #4]
	bl	r_strbuf_fini
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.size	set_attr, .-set_attr
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
