	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2EndDataTransfer             ## -- Begin function Cs2EndDataTransfer
	.p2align	4, 0x90
_Cs2EndDataTransfer:                    ## @Cs2EndDataTransfer
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_Cs2Area@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %edx
	movl	4(%rax), %ecx
	shll	$8, %ecx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movl	%edx, %esi
	shrl	$17, %esi
	movzbl	%sil, %esi
	orl	%esi, %ecx
	sarl	%edx
	jmp	LBB0_3
LBB0_2:
	orl	$255, %ecx
	movl	$65535, %edx                    ## imm = 0xFFFF
LBB0_3:
	movl	%ecx, 40(%rax)
	movl	%edx, 44(%rax)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%rax)
	movl	8(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_10
## %bb.4:
	cmpl	$2, %ecx
	jne	LBB0_11
## %bb.5:
	movq	80(%rax), %rdi
	cmpl	$0, (%rdi)
	jle	LBB0_11
## %bb.6:
	movl	$-1, 8(%rax)
	movq	16(%rax), %rbx
	movq	24(%rax), %rax
	addq	%rbx, %rax
	cmpq	%rax, %rbx
	jae	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rdi), %rax
	movq	(%rax,%rbx,8), %rdi
	callq	_Cs2FreeBlock
	movq	(%r14), %rax
	movq	80(%rax), %rax
	movq	24(%rax), %rax
	movq	$0, (%rax,%rbx,8)
	movq	(%r14), %rax
	movq	80(%rax), %rdi
	movq	8(%rdi), %rcx
	movl	$255, (%rcx,%rbx,4)
	incq	%rbx
	movq	24(%rax), %rcx
	addq	16(%rax), %rcx
	cmpq	%rcx, %rbx
	jb	LBB0_7
LBB0_8:
	callq	_Cs2SortBlocks
	movq	(%r14), %rax
	movl	(%rax), %ecx
	movq	80(%rax), %rdx
	subl	%ecx, (%rdx)
	movq	24(%rax), %rcx
	subq	%rcx, 16(%rdx)
	cmpl	$200, 32(%rax)
	jne	LBB0_10
## %bb.9:
	movl	$0, 72(%rax)
LBB0_10:
	movq	_CDB_HIRQ_EHST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 48(%rax)
LBB0_11:
	movl	$0, (%rax)
	movq	_CDB_HIRQ_CMOK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 48(%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Cs2Area,8,3                    ## @Cs2Area
	.comm	_CDB_HIRQ_EHST,4,2              ## @CDB_HIRQ_EHST
	.comm	_CDB_HIRQ_CMOK,4,2              ## @CDB_HIRQ_CMOK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cs2EndDataTransfer             ; -- Begin function Cs2EndDataTransfer
	.p2align	2
_Cs2EndDataTransfer:                    ; @Cs2EndDataTransfer
	.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
Lloh0:
	adrp	x19, _Cs2Area@GOTPAGE
Lloh1:
	ldr	x19, [x19, _Cs2Area@GOTPAGEOFF]
	ldr	x8, [x19]
	ldp	w9, w10, [x8]
	lsl	w10, w10, #8
	orr	w11, w10, #0xff
	mov	w12, #65535
	ubfx	w13, w9, #17, #8
	orr	w10, w10, w13
	asr	w13, w9, #1
	cmp	w9, #0
	csel	w9, w11, w10, eq
	csel	w10, w12, w13, eq
	stp	w9, w10, [x8, #40]
	stp	xzr, xzr, [x8, #56]
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_8
; %bb.1:
	cmp	w9, #2
	b.ne	LBB0_9
; %bb.2:
	ldr	x0, [x8, #80]
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.3:
	mov	w9, #-1
	str	w9, [x8, #8]
	ldp	x20, x8, [x8, #16]
	add	x8, x8, x20
	cmp	x20, x8
	b.hs	LBB0_6
; %bb.4:
	mov	w21, #255
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0, #24]
	lsl	x22, x20, #3
	ldr	x0, [x8, x22]
	bl	_Cs2FreeBlock
	ldr	x8, [x19]
	ldr	x8, [x8, #80]
	ldr	x8, [x8, #24]
	str	xzr, [x8, x22]
	ldr	x8, [x19]
	ldr	x0, [x8, #80]
	ldr	x9, [x0, #8]
	str	w21, [x9, x20, lsl #2]
	add	x20, x20, #1
	ldp	x9, x8, [x8, #16]
	add	x8, x8, x9
	cmp	x20, x8
	b.lo	LBB0_5
LBB0_6:
	bl	_Cs2SortBlocks
	ldr	x8, [x19]
	ldr	w9, [x8]
	ldr	x10, [x8, #80]
	ldr	w11, [x10]
	sub	w9, w11, w9
	str	w9, [x10]
	ldr	x9, [x8, #24]
	ldr	x11, [x10, #16]
	sub	x9, x11, x9
	str	x9, [x10, #16]
	ldr	w9, [x8, #32]
	cmp	w9, #200
	b.ne	LBB0_8
; %bb.7:
	str	wzr, [x8, #72]
LBB0_8:
Lloh2:
	adrp	x9, _CDB_HIRQ_EHST@GOTPAGE
Lloh3:
	ldr	x9, [x9, _CDB_HIRQ_EHST@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	w10, [x8, #48]
	orr	w9, w10, w9
	str	w9, [x8, #48]
LBB0_9:
	str	wzr, [x8]
Lloh5:
	adrp	x9, _CDB_HIRQ_CMOK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CDB_HIRQ_CMOK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ldr	w10, [x8, #48]
	orr	w9, w10, w9
	str	w9, [x8, #48]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_Cs2Area,8,3                    ; @Cs2Area
	.comm	_CDB_HIRQ_EHST,4,2              ; @CDB_HIRQ_EHST
	.comm	_CDB_HIRQ_CMOK,4,2              ; @CDB_HIRQ_CMOK
.subsections_via_symbols
