	.file	"extr_ip2main.c_ip2_putchar.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ip2_putchar, @function
ip2_putchar:
.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	r12d, esi
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR [rdi]
	lea	r13, 12[rbx]
	mov	rdi, r13
	call	write_lock_irqsave@PLT
	movsx	rax, DWORD PTR 8[rbx]
	mov	rdx, QWORD PTR [rbx]
	xor	esi, esi
	mov	rdi, r13
	lea	ecx, 1[rax]
	mov	DWORD PTR 8[rbx], ecx
	mov	BYTE PTR [rdx+rax], r12b
	cmp	DWORD PTR 8[rbx], 8
	je	.L6
	call	write_unlock_irqrestore@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, 1
	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
.L6:
	.cfi_restore_state
	call	write_unlock_irqrestore@PLT
	mov	rdi, rbp
	call	ip2_flush_chars@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, 1
	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
	.cfi_endproc
.LFE0:
	.size	ip2_putchar, .-ip2_putchar
	.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_ip2main.c_ip2_putchar.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ip2_putchar, %function
ip2_putchar:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	ldr	r4, [r0]
	mov	r1, #0
	add	r7, r4, #8
	mov	r5, r0
	mov	r0, r7
	bl	write_lock_irqsave
	ldm	r4, {r2, r3}
	add	r1, r3, #1
	str	r1, [r4, #4]
	strb	r6, [r2, r3]
	ldr	r3, [r4, #4]
	mov	r0, r7
	cmp	r3, #4
	mov	r1, #0
	beq	.L6
	bl	write_unlock_irqrestore
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	bl	write_unlock_irqrestore
	mov	r0, r5
	bl	ip2_flush_chars
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
	.size	ip2_putchar, .-ip2_putchar
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
