	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bundle_LinkSize                ## -- Begin function bundle_LinkSize
	.p2align	4, 0x90
_bundle_LinkSize:                       ## @bundle_LinkSize
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_SCATTER_SEGMENTS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_Version@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strlen
	incq	%rax
	movq	%rax, (%r14)
	movq	$0, 8(%r14)
	movl	$1, -28(%rbp)
	movl	(%rbx), %ecx
	xorl	%ebx, %ebx
	leaq	-28(%rbp), %rdx
	xorl	%edi, %edi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_datalink2iov
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.1:
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.2:
	cmpl	$5, %eax
	jae	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_11:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_log_Printf
	jmp	LBB0_9
LBB0_4:
	movl	%eax, %ecx
	andl	$3, %ecx
	testq	%rcx, %rcx
	movl	$4, %edx
	cmovneq	%rcx, %rdx
	movq	%rax, %rcx
	subq	%rdx, %rcx
	leaq	32(%r14), %rdx
	pxor	%xmm0, %xmm0
	movq	%rcx, %rsi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	-32(%rdx), %xmm2
	movdqa	(%rdx), %xmm3
	punpckldq	-16(%rdx), %xmm2        ## xmm2 = xmm2[0],mem[0],xmm2[1],mem[1]
	punpckldq	16(%rdx), %xmm3         ## xmm3 = xmm3[0],mem[0],xmm3[1],mem[1]
	paddd	%xmm2, %xmm0
	paddd	%xmm3, %xmm1
	addq	$64, %rdx
	addq	$-4, %rsi
	jne	LBB0_5
## %bb.6:
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %ebx
LBB0_7:
	subq	%rcx, %rax
	shlq	$4, %rcx
	addq	%rcx, %r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	addl	(%r14), %ebx
	addq	$16, %r14
	decq	%rax
	jne	LBB0_8
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_12
## %bb.10:
	movl	%ebx, %eax
	leaq	-16(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SCATTER_SEGMENTS,4,2           ## @SCATTER_SEGMENTS
	.comm	_Version,4,2                    ## @Version
	.comm	_LogERROR,4,2                   ## @LogERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot determine space required for link\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bundle_LinkSize                ; -- Begin function bundle_LinkSize
	.p2align	2
_bundle_LinkSize:                       ; @bundle_LinkSize
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x20, _SCATTER_SEGMENTS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SCATTER_SEGMENTS@GOTPAGEOFF]
	ldr	w8, [x20]
	lsl	x8, x8, #4
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x19, x9, x8
	mov	sp, x19
Lloh7:
	adrp	x8, _Version@GOTPAGE
Lloh8:
	ldr	x8, [x8, _Version@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_strlen
	add	x8, x0, #1
	stp	x8, xzr, [x19]
	mov	w8, #1
	stur	w8, [x29, #-28]
	ldr	w3, [x20]
	sub	x2, x29, #28
	mov	x0, #0
	mov	x1, x19
	mov	x4, #0
	mov	x5, #0
	bl	_datalink2iov
	cmn	w0, #1
	b.eq	LBB0_4
; %bb.1:
	ldur	w8, [x29, #-28]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	cmp	w8, #9
	b.hs	LBB0_6
; %bb.3:
	mov	x9, #0
	mov	w0, #0
	b	LBB0_9
LBB0_4:
Lloh10:
	adrp	x8, _LogERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
LBB0_5:
	mov	w0, #0
	b	LBB0_11
LBB0_6:
	ands	x9, x8, #0x7
	mov	w10, #8
	csel	x9, x10, x9, eq
	sub	x9, x8, x9
	movi.2d	v0, #0000000000000000
	add	x10, x19, #64
	mov	x11, x9
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	x12, x10, #64
	ld2.2d	{ v4, v5 }, [x12]
	sub	x12, x10, #32
	ld2.2d	{ v6, v7 }, [x12]
	mov	x12, x10
	ld2.2d	{ v16, v17 }, [x12], #32
	ld2.2d	{ v18, v19 }, [x12]
	xtn.2s	v4, v4
	xtn.2s	v5, v6
	xtn.2s	v6, v16
	xtn.2s	v7, v18
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	add	x10, x10, #128
	subs	x11, x11, #8
	b.ne	LBB0_7
; %bb.8:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w0, s0
LBB0_9:
	add	x10, x19, x9, lsl #4
	sub	x8, x8, x9
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x10], #16
	add	w0, w0, w9
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	ldur	x8, [x29, #-24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #16
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SCATTER_SEGMENTS,4,2           ; @SCATTER_SEGMENTS
	.comm	_Version,4,2                    ; @Version
	.comm	_LogERROR,4,2                   ; @LogERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot determine space required for link\n"

.subsections_via_symbols
