	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function data_ack
_data_ack:                              ## @data_ack
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	24(%rdi), %rbx
	movq	(%rbx), %rax
	movq	32(%rbx), %r8
	movq	(%rax,%rsi,8), %rax
	leaq	(%rax,%rax,2), %rcx
	movq	8(%r8,%rcx,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	leaq	(%r8,%rcx,8), %r14
	movq	24(%rbx), %rdx
	cmpq	$0, (%rdx,%rax,8)
	je	LBB0_6
## %bb.2:
	movq	8(%rbx), %rdx
	movq	(%rdx,%rax,8), %rdx
	cmpq	(%rdi), %rdx
	jne	LBB0_6
## %bb.3:
	shll	$16, %eax
	shll	$8, %edx
	orl	%eax, %edx
	orl	16(%rbx), %edx
	xorl	%eax, %eax
	cmpq	$0, 16(%rdi)
	je	LBB0_5
## %bb.4:
	movq	_EXT_CONTROLLER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	orl	%eax, %edx
	movl	8(%rdi), %edi
	movq	__DATA_B3_R@GOTPCREL(%rip), %rax
	movq	_CONFIRM@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rax), %esi
	movq	16(%r8,%rcx,8), %rax
	movq	(%r14), %rcx
	movl	(%rax,%rcx,8), %r9d
	movl	4(%rax,%rcx,8), %ecx
	movl	$0, (%rsp)
	leaq	L_.str(%rip), %r8
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_sendf
	movq	8(%r14), %rsi
LBB0_6:
	movq	(%r14), %rax
	incq	%rax
	movq	%rax, (%r14)
	movq	_MAX_DATA_ACK@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	cmovneq	%rax, %rdx
	movq	%rdx, (%r14)
	decq	%rsi
	movq	%rsi, 8(%r14)
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXT_CONTROLLER,4,2             ## @EXT_CONTROLLER
	.comm	__DATA_B3_R,4,2                 ## @_DATA_B3_R
	.comm	_CONFIRM,4,2                    ## @CONFIRM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ww"

	.comm	_MAX_DATA_ACK,8,3               ## @MAX_DATA_ACK
	.no_dead_strip	_data_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function data_ack
_data_ack:                              ; @data_ack
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x11, [x0, #24]
	ldr	x8, [x11]
	ldr	x8, [x8, x1, lsl #3]
	ldr	x9, [x11, #32]
	mov	w10, #24
	madd	x20, x8, x10, x9
	mov	x19, x20
	ldr	x10, [x19, #8]!
	cbz	x10, LBB0_5
; %bb.1:
	ldr	x12, [x11, #24]
	ldr	x12, [x12, x8, lsl #3]
	cbz	x12, LBB0_4
; %bb.2:
	ldr	x12, [x11, #8]
	ldr	x12, [x12, x8, lsl #3]
	ldr	x13, [x0]
	cmp	x12, x13
	b.ne	LBB0_4
; %bb.3:
	lsl	w10, w12, #8
	orr	w10, w10, w8, lsl #16
	ldr	w11, [x11, #16]
	orr	w10, w11, w10
	ldr	x11, [x0, #16]
Lloh0:
	adrp	x12, _EXT_CONTROLLER@GOTPAGE
Lloh1:
	ldr	x12, [x12, _EXT_CONTROLLER@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x12]
	cmp	x11, #0
	csel	w11, wzr, w12, eq
	orr	w2, w10, w11
	ldr	w0, [x0, #8]
Lloh3:
	adrp	x10, __DATA_B3_R@GOTPAGE
Lloh4:
	ldr	x10, [x10, __DATA_B3_R@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _CONFIRM@GOTPAGE
Lloh7:
	ldr	x11, [x11, _CONFIRM@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w1, w11, w10
	mov	w10, #24
	madd	x8, x8, x10, x9
	ldr	x8, [x8, #16]
	ldr	x9, [x20]
	add	x8, x8, x9, lsl #3
	ldp	w5, w3, [x8]
Lloh9:
	adrp	x4, l_.str@PAGE
Lloh10:
	add	x4, x4, l_.str@PAGEOFF
	mov	w6, #0
	bl	_sendf
	ldr	x10, [x19]
LBB0_4:
	ldr	x8, [x20]
	add	x9, x8, #1
	str	x9, [x20]
Lloh11:
	adrp	x11, _MAX_DATA_ACK@GOTPAGE
Lloh12:
	ldr	x11, [x11, _MAX_DATA_ACK@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	cmp	x9, x11
	csinc	x8, xzr, x8, eq
	str	x8, [x20]
	sub	x8, x10, #1
	str	x8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EXT_CONTROLLER,4,2             ; @EXT_CONTROLLER
	.comm	__DATA_B3_R,4,2                 ; @_DATA_B3_R
	.comm	_CONFIRM,4,2                    ; @CONFIRM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ww"

	.comm	_MAX_DATA_ACK,8,3               ; @MAX_DATA_ACK
	.no_dead_strip	_data_ack
.subsections_via_symbols
