	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function data_b3_req
_data_b3_req:                           ## @data_b3_req
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, %r14d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	callq	_dbug
	movq	__WRONG_IDENTIFIER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r14d, %eax
	sarl	$16, %eax
	movslq	%eax, %r15
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dprintf
	movl	$1, %edi
	movl	%eax, %esi
	callq	_dbug
	cmpl	$65536, %r14d                   ## imm = 0x10000
	jb	LBB0_5
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.2:
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rax
	movq	_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.3:
	movq	_INC_ACT_PENDING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
LBB0_11:
	movq	8(%r12), %rsi
	leaq	(%r15,%r15,2), %r12
	shlq	$4, %r12
	leaq	(%rsi,%r12), %rax
	addq	$8, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rsi,%r12), %rax
	addq	(%rsi,%r12), %rax
	movq	_MAX_DATA_B3@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	cmpq	%rcx, %rax
	cmovaeq	%rcx, %rdx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	40(%rsi,%r12), %r14
	subq	%rdx, %rax
	leaq	(%rax,%rax,4), %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%r14,%r15,8)
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rcx
	movq	(%rbx), %rdx
	movslq	(%rcx), %rax
	cmpq	%rdx, %rcx
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jb	LBB0_13
## %bb.12:
	addq	$32, %rdx
	cmpq	%rcx, %rdx
	ja	LBB0_14
LBB0_13:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_TransmitBufferSet
LBB0_14:
	movq	%rax, 8(%r14,%r15,8)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	8(%r13), %rdi
	callq	_GET_WORD
	movq	%rax, 32(%r14,%r15,8)
	movq	16(%r13), %rdi
	callq	_GET_WORD
	movq	%rax, 24(%r14,%r15,8)
	movq	24(%r13), %rdi
	callq	_GET_WORD
	movl	%eax, 16(%r14,%r15,8)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incq	(%rcx)
	testb	$4, %al
	je	LBB0_16
## %bb.15:
	leaq	(%r14,%r15,8), %rax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	24(%rdx,%r12), %rcx
	movq	32(%rdx,%r12), %r8
	movq	16(%rdx,%r12), %rsi
	addq	%rcx, %rsi
	movq	_MAX_DATA_ACK@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	xorl	%ebx, %ebx
	cmpq	%rdi, %rsi
	cmovaeq	%rdi, %rbx
	subq	%rbx, %rsi
	movq	(%rax), %rdi
	shlq	$4, %rsi
	movq	%rdi, (%r8,%rsi)
	movq	24(%rax), %rax
	movq	%rax, 8(%r8,%rsi)
	incq	%rcx
	movq	%rcx, 24(%rdx,%r12)
LBB0_16:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_send_data
	jmp	LBB0_17
LBB0_4:
	movq	__WRONG_STATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_5:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_17
## %bb.6:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.7:
	movq	(%r13), %rax
	movq	(%rbx), %rcx
	cmpq	%rcx, %rax
	jb	LBB0_10
## %bb.8:
	addq	$32, %rcx
	cmpq	%rax, %rcx
	jbe	LBB0_10
## %bb.9:
	movslq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_TransmitBufferFree
LBB0_10:
	movq	__DATA_B3_R@GOTPCREL(%rip), %rax
	movq	_CONFIRM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	16(%r13), %rdi
	callq	_GET_WORD
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rsp)
	leaq	L_.str.2(%rip), %r8
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r14d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, %r9
	callq	_sendf
LBB0_17:
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"data_b3_req"

	.comm	__WRONG_IDENTIFIER,8,3          ## @_WRONG_IDENTIFIER
L_.str.1:                               ## @.str.1
	.asciz	"ncci=0x%x, plci=0x%x"

	.comm	__WRONG_STATE,8,3               ## @_WRONG_STATE
	.comm	_CONNECTED,8,3                  ## @CONNECTED
	.comm	_INC_ACT_PENDING,8,3            ## @INC_ACT_PENDING
	.comm	_MAX_DATA_B3,8,3                ## @MAX_DATA_B3
	.comm	_MAX_DATA_ACK,8,3               ## @MAX_DATA_ACK
	.comm	__DATA_B3_R,4,2                 ## @_DATA_B3_R
	.comm	_CONFIRM,4,2                    ## @CONFIRM
L_.str.2:                               ## @.str.2
	.asciz	"ww"

	.no_dead_strip	_data_b3_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function data_b3_req
_data_b3_req:                           ; @data_b3_req
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x5
	mov	x21, x4
	mov	x19, x3
	mov	x25, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	bl	_dbug
Lloh2:
	adrp	x8, __WRONG_IDENTIFIER@GOTPAGE
Lloh3:
	ldr	x8, [x8, __WRONG_IDENTIFIER@GOTPAGEOFF]
Lloh4:
	ldr	x24, [x8]
	sbfx	x26, x23, #16, #16
	stp	x26, x19, [sp]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintf
	mov	x1, x0
	mov	w0, #1
	bl	_dbug
	cmp	w23, #16, lsl #12               ; =65536
	b.lo	LBB0_11
; %bb.1:
	cbz	x19, LBB0_11
; %bb.2:
	ldr	x8, [x25]
	ldr	x8, [x8, x26, lsl #3]
Lloh7:
	adrp	x9, _CONNECTED@GOTPAGE
Lloh8:
	ldr	x9, [x9, _CONNECTED@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
Lloh10:
	adrp	x9, _INC_ACT_PENDING@GOTPAGE
Lloh11:
	ldr	x9, [x9, _INC_ACT_PENDING@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
LBB0_4:
	ldr	x23, [x25, #8]
	mov	w8, #48
	madd	x25, x26, x8, x23
	ldr	x8, [x25]
	ldr	x27, [x25, #40]
	ldr	x9, [x25, #8]!
Lloh13:
	adrp	x10, _MAX_DATA_B3@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MAX_DATA_B3@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	add	x8, x9, x8
	cmp	x8, x10
	csel	x9, xzr, x10, lo
	sub	x28, x8, x9
	mov	w8, #40
	madd	x24, x28, x8, x27
	str	x22, [x24]
	ldr	x8, [x20]
	ldr	x9, [x19]
	ldrsw	x1, [x8]
	cmp	x8, x9
	b.lo	LBB0_6
; %bb.5:
	add	x9, x9, #32
	cmp	x9, x8
	b.hi	LBB0_7
LBB0_6:
	mov	x0, x21
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_TransmitBufferSet
	mov	x1, x0
LBB0_7:
	mov	w8, #40
	madd	x21, x28, x8, x27
	str	x1, [x21, #8]
	ldr	x0, [x20, #8]
	bl	_GET_WORD
	str	x0, [x21, #32]
	ldr	x0, [x20, #16]
	bl	_GET_WORD
	str	x0, [x21, #24]!
	ldr	x0, [x20, #24]
	bl	_GET_WORD
	stur	w0, [x21, #-8]
	ldr	x8, [x25]
	add	x8, x8, #1
	str	x8, [x25]
	tbz	w0, #2, LBB0_9
; %bb.8:
	mov	w8, #48
	madd	x8, x26, x8, x23
	ldp	x9, x10, [x8, #16]
Lloh16:
	adrp	x11, _MAX_DATA_ACK@GOTPAGE
Lloh17:
	ldr	x11, [x11, _MAX_DATA_ACK@GOTPAGEOFF]
Lloh18:
	ldr	x11, [x11]
	add	x9, x10, x9
	cmp	x9, x11
	csel	x11, xzr, x11, lo
	sub	x9, x9, x11
	ldr	x11, [x24]
	ldr	x12, [x8, #32]
	add	x9, x12, x9, lsl #4
	ldr	x12, [x21]
	stp	x11, x12, [x9]
	add	x9, x10, #1
	str	x9, [x8, #24]
LBB0_9:
	mov	x0, x19
	bl	_send_data
	b	LBB0_17
LBB0_10:
Lloh19:
	adrp	x8, __WRONG_STATE@GOTPAGE
Lloh20:
	ldr	x8, [x8, __WRONG_STATE@GOTPAGEOFF]
Lloh21:
	ldr	x24, [x8]
LBB0_11:
	cbz	x21, LBB0_17
; %bb.12:
	cbz	x19, LBB0_16
; %bb.13:
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.lo	LBB0_16
; %bb.14:
	add	x9, x9, #32
	cmp	x9, x8
	b.ls	LBB0_16
; %bb.15:
	ldrsw	x1, [x8]
	mov	x0, x21
	bl	_TransmitBufferFree
LBB0_16:
Lloh22:
	adrp	x8, __DATA_B3_R@GOTPAGE
Lloh23:
	ldr	x8, [x8, __DATA_B3_R@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _CONFIRM@GOTPAGE
Lloh26:
	ldr	x9, [x9, _CONFIRM@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w19, w9, w8
	ldr	x0, [x20, #16]
	bl	_GET_WORD
	mov	x5, x0
Lloh28:
	adrp	x4, l_.str.2@PAGE
Lloh29:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	x1, x19
	mov	x2, x23
	mov	x3, x22
	mov	x6, x24
	bl	_sendf
LBB0_17:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"data_b3_req"

	.comm	__WRONG_IDENTIFIER,8,3          ; @_WRONG_IDENTIFIER
l_.str.1:                               ; @.str.1
	.asciz	"ncci=0x%x, plci=0x%x"

	.comm	__WRONG_STATE,8,3               ; @_WRONG_STATE
	.comm	_CONNECTED,8,3                  ; @CONNECTED
	.comm	_INC_ACT_PENDING,8,3            ; @INC_ACT_PENDING
	.comm	_MAX_DATA_B3,8,3                ; @MAX_DATA_B3
	.comm	_MAX_DATA_ACK,8,3               ; @MAX_DATA_ACK
	.comm	__DATA_B3_R,4,2                 ; @_DATA_B3_R
	.comm	_CONFIRM,4,2                    ; @CONFIRM
l_.str.2:                               ; @.str.2
	.asciz	"ww"

	.no_dead_strip	_data_b3_req
.subsections_via_symbols
