	.file	"extr_hvc_iucv.c_hvc_iucv_send.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hvc_iucv_send, @function
hvc_iucv_send:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	cmp	rax, QWORD PTR IUCV_SEVERED[rip]
	je	.L17
	cmp	rax, QWORD PTR IUCV_DISCONN[rip]
	je	.L18
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR 8[rdi]
	test	eax, eax
	jne	.L19
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	mov	edi, eax
	call	alloc_tty_buffer@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	test	rbp, rbp
	je	.L1
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR 8[rbx]
	mov	esi, DWORD PTR 20[rbx]
	mov	edi, DWORD PTR 8[rax]
	call	memcpy@PLT
	movsx	rdi, DWORD PTR 8[rbx]
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR [rax], rdi
	call	MSG_SIZE@PLT
	lea	rsi, 16[rbx]
	mov	rdi, rbp
	mov	DWORD PTR 4[rbp], eax
	call	list_add_tail@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	r9d, DWORD PTR 4[rbp]
	xor	ecx, ecx
	mov	r8, QWORD PTR 8[rbp]
	xor	edx, edx
	lea	rsi, 4[rbp]
	call	__iucv_message_send@PLT
	test	eax, eax
	jne	.L20
.L6:
	mov	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR 8[rbx], 0
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore 3
	.cfi_restore 6
	mov	eax, DWORD PTR EPIPE[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	mov	rdi, rbp
	call	list_del@PLT
	mov	rdi, rbp
	call	destroy_tty_buffer@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	hvc_iucv_send, .-hvc_iucv_send
	.comm	IUCV_SEVERED,8,8
	.comm	IUCV_DISCONN,8,8
	.comm	GFP_ATOMIC,4,4
	.comm	EPIPE,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,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_hvc_iucv.c_hvc_iucv_send.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hvc_iucv_send, %function
hvc_iucv_send:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L22
	ldr	r3, [r0]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L17
	ldr	r2, .L22+4
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L18
	push	{r4, r5, lr}
	mov	r4, r0
	ldr	r0, [r0, #4]
	sub	sp, sp, #12
	cmp	r0, #0
	bne	.L19
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L19:
	ldr	r3, .L22+8
	ldr	r1, [r3]
	bl	alloc_tty_buffer
	subs	r5, r0, #0
	beq	.L20
	ldr	r3, [r5, #8]
	ldr	r2, [r4, #4]
	ldr	r1, [r4, #16]
	ldr	r0, [r3, #4]
	bl	memcpy
	ldr	r3, [r5, #8]
	ldr	r0, [r4, #4]
	str	r0, [r3]
	bl	MSG_SIZE
	add	r1, r4, #12
	str	r0, [r5, #4]
	mov	r0, r5
	bl	list_add_tail
	mov	r3, #0
	ldr	r1, [r5, #4]
	mov	r2, r3
	str	r1, [sp, #4]
	ldr	r0, [r5, #8]
	add	r1, r5, #4
	str	r0, [sp]
	ldr	r0, [r4, #8]
	bl	__iucv_message_send
	cmp	r0, #0
	bne	.L21
.L6:
	mov	r3, #0
	ldr	r0, [r4, #4]
	str	r3, [r4, #4]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L17:
	ldr	r3, .L22+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L21:
	mov	r0, r5
	bl	list_del
	mov	r0, r5
	bl	destroy_tty_buffer
	b	.L6
.L18:
	ldr	r3, .L22+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L20:
	ldr	r3, .L22+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L23:
	.align	2
.L22:
	.word	IUCV_SEVERED
	.word	IUCV_DISCONN
	.word	GFP_ATOMIC
	.word	EPIPE
	.word	EIO
	.word	ENOMEM
	.size	hvc_iucv_send, .-hvc_iucv_send
	.comm	IUCV_SEVERED,4,4
	.comm	IUCV_DISCONN,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	EPIPE,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
