	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vi_softc_linkup                ## -- Begin function vi_softc_linkup
	.p2align	4, 0x90
_vi_softc_linkup:                       ## @vi_softc_linkup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	xorl	%edi, %edi
	cmpq	%rdx, %rbx
	sete	%dil
	callq	_assert
	movq	%r12, 16(%rbx)
	movq	%r15, 8(%rbx)
	movq	%rbx, (%r15)
	movq	%r14, (%rbx)
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.1:
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.2:
	xorl	%ecx, %ecx
	jmp	LBB0_5
LBB0_3:
	movl	%eax, %edx
	andl	$-2, %edx
	leaq	24(%r14), %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -16(%rsi)
	movl	%ecx, -24(%rsi)
	movq	%rbx, (%rsi)
	leal	1(%rcx), %edi
	movl	%edi, -8(%rsi)
	addq	$2, %rcx
	addq	$32, %rsi
	cmpq	%rdx, %rcx
	jne	LBB0_4
LBB0_5:
	testb	$1, %al
	je	LBB0_7
## %bb.6:
	movq	%rcx, %rax
	shlq	$4, %rax
	movq	%rbx, 8(%r14,%rax)
	movl	%ecx, (%r14,%rax)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vi_softc_linkup                ; -- Begin function vi_softc_linkup
	.p2align	2
_vi_softc_linkup:                       ; @vi_softc_linkup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x4
	mov	x21, x3
	mov	x22, x1
	mov	x19, x0
	cmp	x0, x2
	cset	w0, eq
	bl	_assert
	str	x22, [x19, #16]
	str	x19, [x21]
	stp	x20, x21, [x19]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	cmp	w8, #4
	b.hs	LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_6
LBB0_3:
	mov	x10, #0
	and	x9, x8, #0xfffffffc
	add	x11, x20, #32
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w12, w10, #1
	stur	x19, [x11, #-24]
	add	w13, w10, #2
	add	w14, w10, #3
	stur	x19, [x11, #-8]
	str	x19, [x11, #8]
	str	x19, [x11, #24]
	stur	w10, [x11, #-32]
	stur	w12, [x11, #-16]
	add	x10, x10, #4
	str	w13, [x11]
	str	w14, [x11, #16]
	add	x11, x11, #64
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x8
	b.eq	LBB0_8
LBB0_6:
	add	x10, x20, x9, lsl #4
	add	x10, x10, #8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	str	x19, [x10]
	stur	w9, [x10, #-8]
	add	x9, x9, #1
	add	x10, x10, #16
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
