	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_tcp_write                  ## -- Begin function uip_tcp_write
	.p2align	4, 0x90
_uip_tcp_write:                         ## @uip_tcp_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	%ecx, %r8d
	movq	(%rdi), %rax
	movq	_UIP_ESTABLISHED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.1:
	movq	_UIP_CLOSE_WAIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	movq	_UIP_SYN_SENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_UIP_SYN_RCVD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.7:
	movq	_UIP_ERR_CONN@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	testq	%rdx, %rdx
	jle	LBB0_6
## %bb.5:
	movl	$0, (%rsp)
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_uip_tcpenqueue
	jmp	LBB0_9
LBB0_6:
	movq	_UIP_ERR_OK@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UIP_ESTABLISHED,8,3            ## @UIP_ESTABLISHED
	.comm	_UIP_CLOSE_WAIT,8,3             ## @UIP_CLOSE_WAIT
	.comm	_UIP_SYN_SENT,8,3               ## @UIP_SYN_SENT
	.comm	_UIP_SYN_RCVD,8,3               ## @UIP_SYN_RCVD
	.comm	_UIP_ERR_OK,4,2                 ## @UIP_ERR_OK
	.comm	_UIP_ERR_CONN,4,2               ## @UIP_ERR_CONN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_tcp_write                  ; -- Begin function uip_tcp_write
	.p2align	2
_uip_tcp_write:                         ; @uip_tcp_write
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _UIP_ESTABLISHED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UIP_ESTABLISHED@GOTPAGEOFF]
Lloh2:
	adrp	x10, _UIP_CLOSE_WAIT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _UIP_CLOSE_WAIT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _UIP_SYN_SENT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _UIP_SYN_SENT@GOTPAGEOFF]
Lloh8:
	adrp	x12, _UIP_SYN_RCVD@GOTPAGE
Lloh9:
	ldr	x12, [x12, _UIP_SYN_RCVD@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
Lloh11:
	ldr	x12, [x12]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	b.ne	LBB0_3
; %bb.1:
	cmp	x2, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x4, x3
	mov	w3, #0
	mov	x5, #0
	mov	w6, #0
	b	_uip_tcpenqueue
LBB0_3:
Lloh12:
	adrp	x8, _UIP_ERR_CONN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _UIP_ERR_CONN@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ret
LBB0_4:
Lloh15:
	adrp	x8, _UIP_ERR_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _UIP_ERR_OK@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_UIP_ESTABLISHED,8,3            ; @UIP_ESTABLISHED
	.comm	_UIP_CLOSE_WAIT,8,3             ; @UIP_CLOSE_WAIT
	.comm	_UIP_SYN_SENT,8,3               ; @UIP_SYN_SENT
	.comm	_UIP_SYN_RCVD,8,3               ; @UIP_SYN_RCVD
	.comm	_UIP_ERR_OK,4,2                 ; @UIP_ERR_OK
	.comm	_UIP_ERR_CONN,4,2               ; @UIP_ERR_CONN
.subsections_via_symbols
