	.file	"extr_ip2main.c_ip2_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ip2_write, @function
ip2_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r8d, edx
	mov	r14, rsi
	mov	esi, DWORD PTR ITRC_WRITE[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r9d, -1
	mov	ecx, 2
	xor	eax, eax
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	mov	edx, DWORD PTR ITRC_ENTER[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r13, QWORD PTR [rdi]
	mov	edi, DWORD PTR CHANN[rip]
	call	ip2trace@PLT
	mov	rdi, rbp
	xor	ebp, ebp
	call	ip2_flush_chars@PLT
	mov	rsi, rbp
	mov	rdi, r13
	call	write_lock_irqsave@PLT
	mov	edx, r12d
	mov	rsi, r14
	mov	rdi, r13
	call	i2Output@PLT
	mov	rsi, rbp
	mov	rdi, r13
	mov	ebx, eax
	call	write_unlock_irqrestore@PLT
	mov	edx, DWORD PTR ITRC_RETURN[rip]
	mov	r8d, ebx
	xor	eax, eax
	mov	esi, DWORD PTR ITRC_WRITE[rip]
	mov	edi, DWORD PTR CHANN[rip]
	mov	ecx, 1
	call	ip2trace@PLT
	test	ebx, ebx
	mov	eax, 0
	cmovns	eax, ebx
	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
	.cfi_endproc
.LFE0:
	.size	ip2_write, .-ip2_write
	.comm	ITRC_WRITE,4,4
	.comm	ITRC_RETURN,4,4
	.comm	ITRC_ENTER,4,4
	.comm	CHANN,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_ip2main.c_ip2_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ip2_write, %function
ip2_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r2
	mvn	r2, #0
	mov	r5, r0
	mov	r9, #0
	mov	r10, r1
	sub	sp, sp, #8
	str	r4, [sp]
	ldr	r8, .L4
	ldr	r7, .L4+4
	ldr	r3, .L4+8
	ldr	r6, [r0]
	str	r2, [sp, #4]
	ldr	r2, [r3]
	ldr	r1, [r8]
	mov	r3, #2
	ldr	r0, [r7]
	bl	ip2trace
	mov	r0, r5
	bl	ip2_flush_chars
	mov	r1, r9
	mov	r0, r6
	bl	write_lock_irqsave
	mov	r2, r4
	mov	r1, r10
	mov	r0, r6
	bl	i2Output
	mov	r4, r0
	mov	r1, r9
	mov	r0, r6
	bl	write_unlock_irqrestore
	ldr	r3, .L4+12
	str	r4, [sp]
	ldr	r2, [r3]
	ldr	r1, [r8]
	mov	r3, #1
	ldr	r0, [r7]
	bl	ip2trace
	bic	r0, r4, r4, asr #31
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	.align	2
.L4:
	.word	ITRC_WRITE
	.word	CHANN
	.word	ITRC_ENTER
	.word	ITRC_RETURN
	.size	ip2_write, .-ip2_write
	.comm	ITRC_WRITE,4,4
	.comm	ITRC_RETURN,4,4
	.comm	ITRC_ENTER,4,4
	.comm	CHANN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
