	.file	"extr_msg.c_tipc_msg_make_bundle.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tipc_msg_make_bundle
	.type	tipc_msg_make_bundle, @function
tipc_msg_make_bundle:
.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
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	msg_size@PLT
	mov	rdi, rbp
	mov	r15d, DWORD PTR INT_H_SIZE[rip]
	mov	ebx, eax
	call	msg_user@PLT
	cmp	rax, QWORD PTR MSG_FRAGMENTER[rip]
	je	.L4
	mov	rdi, rbp
	call	msg_user@PLT
	cmp	rax, QWORD PTR TUNNEL_PROTOCOL[rip]
	je	.L4
	mov	rdi, rbp
	call	msg_user@PLT
	cmp	rax, QWORD PTR BCAST_PROTOCOL[rip]
	je	.L4
	mov	edi, r12d
	sub	edi, r15d
	mov	eax, edi
	shr	eax, 31
	add	eax, edi
	sar	eax
	cmp	eax, ebx
	jge	.L10
.L4:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	call	tipc_buf_acquire@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L4
	mov	esi, DWORD PTR INT_H_SIZE[rip]
	mov	rdi, rax
	call	skb_trim@PLT
	mov	rdi, rbx
	call	buf_msg@PLT
	mov	r8d, DWORD PTR INT_H_SIZE[rip]
	mov	edx, DWORD PTR MSG_BUNDLER[rip]
	mov	rdi, rbp
	mov	r15, rax
	mov	DWORD PTR 12[rsp], r8d
	mov	DWORD PTR 8[rsp], edx
	call	msg_prevnode@PLT
	mov	r8d, DWORD PTR 12[rsp]
	mov	edx, DWORD PTR 8[rsp]
	xor	ecx, ecx
	mov	r9d, r14d
	mov	rsi, r15
	mov	edi, eax
	call	tipc_msg_init@PLT
	mov	rdi, rbp
	call	msg_importance@PLT
	mov	rdi, r15
	mov	esi, eax
	call	msg_set_importance@PLT
	mov	rdi, rbp
	call	msg_seqno@PLT
	mov	rdi, r15
	mov	esi, eax
	call	msg_set_seqno@PLT
	mov	rdi, rbp
	call	msg_ack@PLT
	mov	rdi, r15
	mov	esi, eax
	call	msg_set_ack@PLT
	mov	rdi, rbp
	call	msg_bcast_ack@PLT
	mov	rdi, r15
	mov	esi, eax
	call	msg_set_bcast_ack@PLT
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, rbx
	call	tipc_msg_bundle@PLT
	mov	QWORD PTR 0[r13], rbx
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	eax, 1
	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
	.cfi_endproc
.LFE0:
	.size	tipc_msg_make_bundle, .-tipc_msg_make_bundle
	.comm	TUNNEL_PROTOCOL,8,8
	.comm	MSG_FRAGMENTER,8,8
	.comm	MSG_BUNDLER,4,4
	.comm	INT_H_SIZE,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	BCAST_PROTOCOL,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_msg.c_tipc_msg_make_bundle.c"
	.text
	.align	2
	.global	tipc_msg_make_bundle
	.syntax unified
	.arm
	.fpu softvfp
	.type	tipc_msg_make_bundle, %function
tipc_msg_make_bundle:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r0
	sub	sp, sp, #8
	mov	r0, r1
	mov	r4, r1
	mov	r8, r3
	mov	r5, r2
	bl	msg_size
	ldr	r10, .L11
	mov	r6, r0
	mov	r0, r4
	ldr	r9, [r10]
	bl	msg_user
	ldr	r3, .L11+4
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L4
	mov	r0, r4
	bl	msg_user
	ldr	r3, .L11+8
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L4
	mov	r0, r4
	bl	msg_user
	ldr	r3, .L11+12
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L4
	sub	r0, r5, r9
	add	r3, r0, r0, lsr #31
	cmp	r6, r3, asr #1
	ble	.L10
.L4:
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	ldr	r3, .L11+16
	ldr	r1, [r3]
	bl	tipc_buf_acquire
	subs	r6, r0, #0
	beq	.L4
	ldr	r1, [r10]
	bl	skb_trim
	mov	r0, r6
	bl	buf_msg
	mov	r9, r0
	mov	r0, r4
	bl	msg_prevnode
	ldr	r2, [r10]
	ldr	r3, .L11+20
	stm	sp, {r2, r8}
	mov	r1, r9
	ldr	r2, [r3]
	mov	r3, #0
	bl	tipc_msg_init
	mov	r0, r4
	bl	msg_importance
	mov	r1, r0
	mov	r0, r9
	bl	msg_set_importance
	mov	r0, r4
	bl	msg_seqno
	mov	r1, r0
	mov	r0, r9
	bl	msg_set_seqno
	mov	r0, r4
	bl	msg_ack
	mov	r1, r0
	mov	r0, r9
	bl	msg_set_ack
	mov	r0, r4
	bl	msg_bcast_ack
	mov	r1, r0
	mov	r0, r9
	bl	msg_set_bcast_ack
	mov	r2, r5
	mov	r1, r4
	mov	r0, r6
	bl	tipc_msg_bundle
	mov	r0, #1
	str	r6, [r7]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	INT_H_SIZE
	.word	MSG_FRAGMENTER
	.word	TUNNEL_PROTOCOL
	.word	BCAST_PROTOCOL
	.word	GFP_ATOMIC
	.word	MSG_BUNDLER
	.size	tipc_msg_make_bundle, .-tipc_msg_make_bundle
	.comm	TUNNEL_PROTOCOL,4,4
	.comm	MSG_FRAGMENTER,4,4
	.comm	MSG_BUNDLER,4,4
	.comm	INT_H_SIZE,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	BCAST_PROTOCOL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
