	.file	"extr_link.c_tipc_link_send_long_buf.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Link unable to fragment message\n"
	.text
	.p2align 4
	.globl	tipc_link_send_long_buf
	.type	tipc_link_send_long_buf, @function
tipc_link_send_long_buf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 24[rsp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	buf_msg@PLT
	mov	r15, rax
	mov	rdi, rax
	call	msg_size@PLT
	mov	rdi, r15
	mov	r13, rax
	call	msg_data_sz@PLT
	mov	rdi, rbp
	mov	r14, QWORD PTR [rbx]
	mov	QWORD PTR 16[rsp], rax
	call	link_max_pkt@PLT
	mov	rdi, r15
	sub	rax, QWORD PTR INT_H_SIZE[rip]
	mov	rbx, rax
	call	msg_short@PLT
	test	rax, rax
	je	.L2
	mov	r8, QWORD PTR 0[rbp]
.L3:
	mov	rdi, r15
	mov	QWORD PTR 8[rsp], r8
	call	msg_routed@PLT
	mov	r8, QWORD PTR 8[rsp]
	test	rax, rax
	jne	.L19
.L4:
	mov	rcx, QWORD PTR INT_H_SIZE[rip]
	mov	edx, DWORD PTR FIRST_FRAGMENT[rip]
	lea	r12, 36[rsp]
	mov	esi, DWORD PTR MSG_FRAGMENTER[rip]
	mov	rdi, r12
	call	msg_init@PLT
	mov	rdi, r15
	call	msg_link_selector@PLT
	mov	rdi, r12
	mov	esi, eax
	call	msg_set_link_selector@PLT
	mov	edi, DWORD PTR 16[rbp]
	lea	eax, 1[rdi]
	mov	DWORD PTR 16[rbp], eax
	call	mod@PLT
	mov	rdi, r12
	mov	esi, eax
	call	msg_set_long_msgno@PLT
	mov	esi, 1
	mov	rdi, r12
	call	msg_set_fragm_no@PLT
	add	DWORD PTR 12[rbp], 1
	test	r13, r13
	jle	.L5
	mov	QWORD PTR 8[rsp], 1
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, QWORD PTR INT_H_SIZE[rip]
	add	rdi, rbx
	call	buf_acquire@PLT
	mov	r15, rax
	test	rax, rax
	je	.L20
	mov	rsi, QWORD PTR INT_H_SIZE[rip]
	mov	rdi, r12
	add	rsi, rbx
	call	msg_set_size@PLT
	mov	rdx, QWORD PTR INT_H_SIZE[rip]
	mov	rsi, r12
	mov	rdi, r15
	call	skb_copy_to_linear_data@PLT
	mov	rcx, rbx
	mov	rdx, r14
	mov	rdi, r15
	mov	rsi, QWORD PTR INT_H_SIZE[rip]
	call	skb_copy_to_linear_data_offset@PLT
	add	DWORD PTR 8[rbp], 1
	mov	rdi, rbp
	mov	rsi, r15
	call	tipc_link_send_buf@PLT
	mov	rdi, rbp
	call	tipc_link_is_up@PLT
	test	eax, eax
	je	.L17
	add	QWORD PTR 8[rsp], 1
	mov	rdi, r12
	lea	r14, [r14+rbx*4]
	sub	r13, rbx
	mov	rax, QWORD PTR 8[rsp]
	mov	rsi, rax
	call	msg_set_fragm_no@PLT
	mov	esi, DWORD PTR FRAGMENT[rip]
	mov	rdi, r12
	call	msg_set_type@PLT
	test	r13, r13
	jle	.L5
.L10:
	cmp	rbx, r13
	jl	.L6
	mov	esi, DWORD PTR LAST_FRAGMENT[rip]
	mov	rdi, r12
	mov	rbx, r13
	call	msg_set_type@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L20:
	lea	rdi, .LC0[rip]
	call	warn@PLT
	mov	rax, QWORD PTR ENOMEM[rip]
	neg	rax
	mov	QWORD PTR 16[rsp], rax
.L5:
	mov	rdi, QWORD PTR 24[rsp]
	call	buf_discard@PLT
.L17:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	mov	eax, DWORD PTR 16[rsp]
	jne	.L21
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	esi, DWORD PTR tipc_own_addr[rip]
	mov	rdi, r15
	call	msg_set_prevnode@PLT
	mov	r8, QWORD PTR 8[rsp]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, r15
	call	msg_destnode@PLT
	mov	r8, rax
	jmp	.L3
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	tipc_link_send_long_buf, .-tipc_link_send_long_buf
	.comm	tipc_own_addr,4,4
	.comm	MSG_FRAGMENTER,4,4
	.comm	LAST_FRAGMENT,4,4
	.comm	INT_H_SIZE,8,8
	.comm	FRAGMENT,4,4
	.comm	FIRST_FRAGMENT,4,4
	.comm	ENOMEM,8,8
	.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_link.c_tipc_link_send_long_buf.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Link unable to fragment message\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	tipc_link_send_long_buf
	.syntax unified
	.arm
	.fpu softvfp
	.type	tipc_link_send_long_buf, %function
tipc_link_send_long_buf:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L23
	sub	sp, sp, #28
	str	r1, [sp, #12]
	mov	r6, r0
	mov	r0, r1
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	buf_msg
	mov	r4, r0
	bl	msg_size
	mov	r7, r0
	mov	r0, r4
	bl	msg_data_sz
	mov	r3, r0
	mov	r0, r6
	ldr	r9, [r5]
	str	r3, [sp, #8]
	bl	link_max_pkt
	mov	r5, r0
	ldr	r8, .L23+4
	mov	r0, r4
	ldr	r3, [r8]
	sub	r5, r5, r3
	bl	msg_short
	cmp	r0, #0
	beq	.L2
	ldr	r10, [r6]
.L3:
	mov	r0, r4
	bl	msg_routed
	cmp	r0, #0
	bne	.L20
.L4:
	ldr	r3, .L23+8
	ldr	r2, .L23+12
	str	r10, [sp]
	ldr	r2, [r2]
	ldr	r1, [r3]
	add	r0, sp, #16
	ldr	r3, [r8]
	bl	msg_init
	mov	r0, r4
	bl	msg_link_selector
	mov	r1, r0
	add	r0, sp, #16
	bl	msg_set_link_selector
	ldr	r0, [r6, #12]
	add	r3, r0, #1
	str	r3, [r6, #12]
	bl	mod
	mov	r1, r0
	add	r0, sp, #16
	bl	msg_set_long_msgno
	mov	r1, #1
	add	r0, sp, #16
	bl	msg_set_fragm_no
	ldr	r3, [r6, #8]
	cmp	r7, #0
	add	r3, r3, #1
	str	r3, [r6, #8]
	ble	.L5
	mov	r10, #1
	ldr	fp, .L23+16
	b	.L9
.L6:
	ldr	r0, [r8]
	add	r0, r5, r0
	bl	buf_acquire
	subs	r4, r0, #0
	beq	.L21
	ldr	r1, [r8]
	add	r0, sp, #16
	add	r1, r5, r1
	bl	msg_set_size
	ldr	r2, [r8]
	add	r1, sp, #16
	mov	r0, r4
	bl	skb_copy_to_linear_data
	mov	r2, r9
	mov	r3, r5
	ldr	r1, [r8]
	mov	r0, r4
	bl	skb_copy_to_linear_data_offset
	ldr	r3, [r6, #4]
	mov	r1, r4
	add	r3, r3, #1
	str	r3, [r6, #4]
	mov	r0, r6
	bl	tipc_link_send_buf
	mov	r0, r6
	bl	tipc_link_is_up
	cmp	r0, #0
	beq	.L1
	add	r10, r10, #1
	mov	r1, r10
	add	r0, sp, #16
	bl	msg_set_fragm_no
	sub	r7, r7, r5
	ldr	r1, [fp]
	add	r0, sp, #16
	bl	msg_set_type
	cmp	r7, #0
	add	r9, r9, r5, lsl #2
	ble	.L5
.L9:
	cmp	r5, r7
	blt	.L6
	ldr	r3, .L23+20
	add	r0, sp, #16
	ldr	r1, [r3]
	bl	msg_set_type
	mov	r5, r7
	b	.L6
.L21:
	ldr	r0, .L23+24
	bl	warn
	ldr	r3, .L23+28
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [sp, #8]
.L5:
	ldr	r0, [sp, #12]
	bl	buf_discard
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	ldr	r0, [sp, #8]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	ldr	r3, .L23+32
	mov	r0, r4
	ldr	r1, [r3]
	bl	msg_set_prevnode
	b	.L4
.L2:
	mov	r0, r4
	bl	msg_destnode
	mov	r10, r0
	b	.L3
.L22:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC1
	.word	INT_H_SIZE
	.word	MSG_FRAGMENTER
	.word	FIRST_FRAGMENT
	.word	FRAGMENT
	.word	LAST_FRAGMENT
	.word	.LC0
	.word	ENOMEM
	.word	tipc_own_addr
	.size	tipc_link_send_long_buf, .-tipc_link_send_long_buf
	.comm	tipc_own_addr,4,4
	.comm	MSG_FRAGMENTER,4,4
	.comm	LAST_FRAGMENT,4,4
	.comm	INT_H_SIZE,4,4
	.comm	FRAGMENT,4,4
	.comm	FIRST_FRAGMENT,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
