	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sent_tcp
_sent_tcp:                              ## @sent_tcp
	.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
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movq	_API_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	%edx, %rsi
	callq	_LWIP_DEBUGF
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movq	(%rbx), %rdi
	movq	_SYS_SEM_NULL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_3
## %bb.2:
	callq	_LWP_SemPost
LBB0_3:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
## %bb.4:
	movl	16(%rbx), %edi
	callq	_tcp_sndbuf
	movq	_TCP_SNDLOWAT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_6
## %bb.5:
	movq	_NETCONN_EVTSENDPLUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	*8(%rbx)
LBB0_6:
	movq	_ERR_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_API_MSG_DEBUG,4,2              ## @API_MSG_DEBUG
	.comm	_SYS_SEM_NULL,8,3               ## @SYS_SEM_NULL
	.comm	_TCP_SNDLOWAT,8,3               ## @TCP_SNDLOWAT
	.comm	_NETCONN_EVTSENDPLUS,4,2        ## @NETCONN_EVTSENDPLUS
	.comm	_ERR_OK,4,2                     ## @ERR_OK
	.no_dead_strip	_sent_tcp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sent_tcp
_sent_tcp:                              ; @sent_tcp
	.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
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _API_MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _API_MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	sxtw	x1, w19
	bl	_LWIP_DEBUGF
	cbz	x20, LBB0_6
; %bb.1:
	ldr	x0, [x20]
Lloh3:
	adrp	x8, _SYS_SEM_NULL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYS_SEM_NULL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	bl	_LWP_SemPost
LBB0_3:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w0, [x20, #16]
	bl	_tcp_sndbuf
Lloh6:
	adrp	x8, _TCP_SNDLOWAT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TCP_SNDLOWAT@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_6
; %bb.5:
	ldr	x8, [x20, #8]
Lloh9:
	adrp	x9, _NETCONN_EVTSENDPLUS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NETCONN_EVTSENDPLUS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	mov	x0, x20
	mov	x2, x19
	blr	x8
LBB0_6:
Lloh12:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_API_MSG_DEBUG,4,2              ; @API_MSG_DEBUG
	.comm	_SYS_SEM_NULL,8,3               ; @SYS_SEM_NULL
	.comm	_TCP_SNDLOWAT,8,3               ; @TCP_SNDLOWAT
	.comm	_NETCONN_EVTSENDPLUS,4,2        ; @NETCONN_EVTSENDPLUS
	.comm	_ERR_OK,4,2                     ; @ERR_OK
	.no_dead_strip	_sent_tcp
.subsections_via_symbols
