	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctrl_complete
_ctrl_complete:                         ## @ctrl_complete
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	movq	8(%rdi), %rdi
	movl	24(%rdi), %ecx
	movl	%ecx, (%rax)
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	decq	%rax
	movq	%rax, 8(%rdi)
	movq	(%rdi), %rax
	incq	%rax
	movq	%rax, (%rdi)
	movq	_HFC_CTRL_BUFSIZE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	cmovbq	%rax, %rdx
	movq	%rdx, (%rdi)
	popq	%rbp
	jmp	_ctrl_start_transfer            ## TAILCALL
LBB0_1:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HFC_CTRL_BUFSIZE,8,3           ## @HFC_CTRL_BUFSIZE
	.no_dead_strip	_ctrl_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctrl_complete
_ctrl_complete:                         ; @ctrl_complete
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	x0, [x0, #8]
	ldr	w9, [x0, #24]
	str	w9, [x8]
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	sub	x8, x8, #1
	ldr	x9, [x0]
	add	x10, x9, #1
Lloh0:
	adrp	x11, _HFC_CTRL_BUFSIZE@GOTPAGE
Lloh1:
	ldr	x11, [x11, _HFC_CTRL_BUFSIZE@GOTPAGEOFF]
	stp	x10, x8, [x0]
Lloh2:
	ldr	x8, [x11]
	cmp	x10, x8
	csinc	x8, xzr, x9, hs
	str	x8, [x0]
	b	_ctrl_start_transfer
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HFC_CTRL_BUFSIZE,8,3           ; @HFC_CTRL_BUFSIZE
	.no_dead_strip	_ctrl_complete
.subsections_via_symbols
