	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_datalink2iov                   ## -- Begin function datalink2iov
	.p2align	4, 0x90
_datalink2iov:                          ## @datalink2iov
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %rbx
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	leaq	28(%rbx), %rdi
	callq	_timer_Stop
	leaq	24(%rbx), %rdi
	callq	_cbcp_Down
	leaq	20(%rbx), %rdi
	callq	_timer_Stop
	leaq	16(%rbx), %rdi
	callq	_timer_Stop
LBB0_2:
	movslq	(%r13), %rax
	leal	-1(%r12), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_3
## %bb.5:
	movq	%rax, %rcx
	shlq	$4, %rcx
	incl	%eax
	movq	%rbx, 8(%r14,%rcx)
	movl	%eax, (%r13)
	movl	$32, (%r14,%rcx)
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.6:
	movq	(%rbx), %rdi
	movq	_DATALINK_MAXNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_realloc
	movslq	(%r13), %rcx
	leal	1(%rcx), %edx
	shlq	$4, %rcx
	movq	%rax, 8(%r14,%rcx)
	movq	_DATALINK_MAXNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%edx, (%r13)
	movl	%eax, (%r14,%rcx)
	movq	8(%rbx), %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	movq	%r15, %r8
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	_physical2iov
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	movq	(%rbx), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
	movl	$-1, %r14d
	jmp	LBB0_8
LBB0_3:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_log_Printf
	movl	$-1, %r14d
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.4:
	movq	(%rbx), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movslq	(%r13), %rax
	leal	1(%rax), %ecx
	shlq	$4, %rax
	movq	$0, 8(%r14,%rax)
	movq	_DATALINK_MAXNAME@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%ecx, (%r13)
	movl	%edx, (%r14,%rax)
	xorl	%edi, %edi
	movq	%r14, %rsi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	movq	%r15, %r8
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_physical2iov                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LogERROR,4,2                   ## @LogERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Toiov: No room for datalink !\n"

	.comm	_DATALINK_MAXNAME,4,2           ## @DATALINK_MAXNAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_datalink2iov                   ; -- Begin function datalink2iov
	.p2align	2
_datalink2iov:                          ; @datalink2iov
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	add	x0, x19, #28
	bl	_timer_Stop
	add	x0, x19, #24
	bl	_cbcp_Down
	add	x0, x19, #20
	bl	_timer_Stop
	add	x0, x19, #16
	bl	_timer_Stop
LBB0_2:
	ldrsw	x8, [x23]
	sub	w9, w22, #1
	cmp	w8, w9
	b.ge	LBB0_5
; %bb.3:
	add	x9, x24, x8, lsl #4
	str	x19, [x9, #8]
	add	w8, w8, #1
	str	w8, [x23]
	mov	w8, #32
	str	w8, [x9]
	cbz	x19, LBB0_9
; %bb.4:
	ldr	x0, [x19]
Lloh0:
	adrp	x25, _DATALINK_MAXNAME@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DATALINK_MAXNAME@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_realloc
	ldrsw	x8, [x23]
	add	x9, x24, x8, lsl #4
	str	x0, [x9, #8]
	ldr	w10, [x25]
	add	w8, w8, #1
	str	w8, [x23]
	str	w10, [x9]
	ldr	x0, [x19, #8]
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	bl	_physical2iov
	cmn	w0, #1
	b.ne	LBB0_8
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _LogERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LogERROR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
	cbz	x19, LBB0_7
LBB0_6:
	ldr	x0, [x19]
	bl	_free
	mov	x0, x19
	bl	_free
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldrsw	x8, [x23]
	add	x9, x24, x8, lsl #4
	str	xzr, [x9, #8]
Lloh7:
	adrp	x10, _DATALINK_MAXNAME@GOTPAGE
Lloh8:
	ldr	x10, [x10, _DATALINK_MAXNAME@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	add	w8, w8, #1
	str	w8, [x23]
	str	w10, [x9]
	mov	x0, #0
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_physical2iov
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_LogERROR,4,2                   ; @LogERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Toiov: No room for datalink !\n"

	.comm	_DATALINK_MAXNAME,4,2           ; @DATALINK_MAXNAME
.subsections_via_symbols
