	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function datalink_Write
_datalink_Write:                        ## @datalink_Write
	.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	%rdx, %r15
	movq	%rsi, %r12
	callq	_descriptor2datalink
	movq	%rax, %r13
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	addl	$-128, %eax
	cmpl	$10, %eax
	ja	LBB0_15
## %bb.1:
	movl	$1573, %ecx                     ## imm = 0x625
	btl	%eax, %ecx
	jae	LBB0_2
## %bb.5:
	movq	%r13, %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_descriptor_IsSet
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_descriptor_Write
	cmpl	$1, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$-1, %eax
	jne	LBB0_10
## %bb.8:
	movq	_CLOSE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_datalink_ComeDown
	jmp	LBB0_10
LBB0_2:
	movl	$216, %ecx
	btl	%eax, %ecx
	jae	LBB0_15
## %bb.3:
	movq	%r13, %rdi
	addq	$20, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_descriptor_Write
	movl	%eax, %r14d
	cmpl	$-1, %eax
	jne	LBB0_15
## %bb.4:
	movq	_CLOSE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_datalink_ComeDown
	xorl	%r14d, %r14d
	jmp	LBB0_15
LBB0_9:
	movl	$1, %r14d
LBB0_10:
	movq	8(%r13), %rdi
	movq	%r15, %rsi
	callq	_descriptor_IsSet
	testl	%eax, %eax
	je	LBB0_15
## %bb.11:
	movq	8(%r13), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_descriptor_Write
	cmpl	$1, %eax
	je	LBB0_14
## %bb.12:
	cmpl	$-1, %eax
	jne	LBB0_15
## %bb.13:
	movq	_CLOSE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_datalink_ComeDown
	jmp	LBB0_15
LBB0_14:
	incl	%r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLOSE_NORMAL,4,2               ## @CLOSE_NORMAL
	.no_dead_strip	_datalink_Write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function datalink_Write
_datalink_Write:                        ; @datalink_Write
	.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, x2
	mov	x21, x1
	bl	_descriptor2datalink
	mov	w22, #0
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #10
	b.hi	LBB0_16
; %bb.1:
	mov	x19, x0
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #1573
	tst	w8, w9
	b.eq	LBB0_7
; %bb.2:
	add	x22, x19, #16
	mov	x0, x22
	mov	x1, x20
	bl	_descriptor_IsSet
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_descriptor_Write
	cmp	w0, #1
	b.eq	LBB0_10
; %bb.4:
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _CLOSE_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLOSE_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_datalink_ComeDown
LBB0_6:
	mov	w22, #0
	b	LBB0_11
LBB0_7:
	mov	w9, #216
	tst	w8, w9
	b.eq	LBB0_16
; %bb.8:
	add	x0, x19, #20
	mov	x1, x21
	mov	x2, x20
	bl	_descriptor_Write
	mov	x22, x0
	cmn	w0, #1
	b.ne	LBB0_16
; %bb.9:
Lloh3:
	adrp	x8, _CLOSE_NORMAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CLOSE_NORMAL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_datalink_ComeDown
	mov	w22, #0
	b	LBB0_16
LBB0_10:
	mov	w22, #1
LBB0_11:
	ldr	x0, [x19, #8]
	mov	x1, x20
	bl	_descriptor_IsSet
	cbz	w0, LBB0_16
; %bb.12:
	ldr	x0, [x19, #8]
	mov	x1, x21
	mov	x2, x20
	bl	_descriptor_Write
	cmp	w0, #1
	b.eq	LBB0_15
; %bb.13:
	cmn	w0, #1
	b.ne	LBB0_16
; %bb.14:
Lloh6:
	adrp	x8, _CLOSE_NORMAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CLOSE_NORMAL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_datalink_ComeDown
	b	LBB0_16
LBB0_15:
	add	w22, w22, #1
LBB0_16:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CLOSE_NORMAL,4,2               ; @CLOSE_NORMAL
	.no_dead_strip	_datalink_Write
.subsections_via_symbols
