	.file	"extr_bundle.c_bundle_LinkSize.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Cannot determine space required for link\n"
	.text
	.p2align 4
	.globl	bundle_LinkSize
	.type	bundle_LinkSize, @function
bundle_LinkSize:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR SCATTER_SEGMENTS[rip]
	mov	rcx, rsp
	sal	rax, 4
	mov	rdx, rax
	and	rdx, -4096
	sub	rcx, rdx
	mov	rdx, rcx
	cmp	rsp, rdx
	je	.L3
.L17:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rdx
	jne	.L17
.L3:
	and	eax, 4095
	sub	rsp, rax
	test	rax, rax
	jne	.L18
.L4:
	mov	edi, DWORD PTR Version[rip]
	lea	rax, 7[rsp]
	mov	r12, rax
	and	rax, -8
	mov	rbx, rax
	shr	r12, 3
	call	strlen@PLT
	mov	ecx, DWORD PTR SCATTER_SEGMENTS[rip]
	xor	r9d, r9d
	xor	edi, edi
	add	rax, 1
	xor	r8d, r8d
	lea	rdx, -28[rbp]
	mov	rsi, rbx
	mov	QWORD PTR 0[0+r12*8], rax
	mov	QWORD PTR 8[0+r12*8], 0
	mov	DWORD PTR -28[rbp], 1
	call	datalink2iov@PLT
	cmp	eax, -1
	je	.L5
	mov	edx, DWORD PTR -28[rbp]
	test	edx, edx
	jle	.L15
	sub	edx, 1
	mov	rax, rbx
	xor	r8d, r8d
	add	rdx, 1
	sal	rdx, 4
	add	rdx, rbx
	.p2align 4,,10
	.p2align 3
.L8:
	add	r8d, DWORD PTR [rax]
	add	rax, 16
	cmp	rax, rdx
	jne	.L8
.L1:
	mov	rax, QWORD PTR -24[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	lea	rsp, -16[rbp]
	mov	eax, r8d
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L5:
	.cfi_restore_state
	mov	edi, DWORD PTR LogERROR[rip]
	lea	rsi, .LC0[rip]
	call	log_Printf@PLT
.L15:
	xor	r8d, r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	or	QWORD PTR -8[rsp+rax], 0
	jmp	.L4
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bundle_LinkSize, .-bundle_LinkSize
	.comm	Version,4,4
	.comm	SCATTER_SEGMENTS,4,4
	.comm	LogERROR,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_bundle.c_bundle_LinkSize.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Cannot determine space required for link\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bundle_LinkSize
	.syntax unified
	.arm
	.fpu softvfp
	.type	bundle_LinkSize, %function
bundle_LinkSize:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #20
	ldr	r2, .L11
	ldr	r6, .L11+4
	ldr	r0, [r2]
	mov	r2, sp
	ldr	r3, [r6]
	mov	r4, #0
	sub	r3, r2, r3, lsl #3
	mov	sp, r3
	ldr	r3, .L11+8
	add	r5, sp, #8
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	bl	strlen
	mov	ip, #1
	add	r0, r0, ip
	stm	r5, {r0, r4}
	ldr	r3, [r6]
	mov	r1, r5
	str	r4, [sp, #4]
	str	r4, [sp]
	mov	r0, r4
	sub	r2, fp, #28
	str	ip, [fp, #-28]
	bl	datalink2iov
	cmn	r0, #1
	beq	.L2
	ldr	r1, [fp, #-28]
	mov	r0, r4
	cmp	r1, r4
	movgt	r3, r4
	ble	.L1
.L3:
	ldr	r2, [r5, r3, lsl #3]
	add	r3, r3, #1
	cmp	r3, r1
	add	r0, r0, r2
	bne	.L3
.L1:
	ldr	r3, .L11+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L2:
	ldr	r3, .L11+12
	ldr	r1, .L11+16
	ldr	r0, [r3]
	bl	log_Printf
	mov	r0, r4
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	Version
	.word	SCATTER_SEGMENTS
	.word	.LC1
	.word	LogERROR
	.word	.LC0
	.size	bundle_LinkSize, .-bundle_LinkSize
	.comm	Version,4,4
	.comm	SCATTER_SEGMENTS,4,4
	.comm	LogERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
