	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_tcp_close                  ## -- Begin function uip_tcp_close
	.p2align	4, 0x90
_uip_tcp_close:                         ## @uip_tcp_close
	.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	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_15
## %bb.1:
	movq	%rdi, %rbx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movq	_UIP_TCP_FIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_uip_tcp_sendctrl
	movq	%rax, %r14
	movq	_UIP_ERR_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_12
## %bb.8:
	movq	_UIP_FIN_WAIT_1@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_15:
	movq	_UIP_ERR_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_14
LBB0_6:
	movq	_UIP_ERR_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_uip_tcp_active_pcbs@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_uip_tcp_pcbremove
	jmp	LBB0_3
LBB0_5:
	movq	_UIP_ERR_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_uip_tcp_listen_pcbs@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_uip_tcp_pcbremove
	movq	_uip_listen_tcp_pcbs@GOTPCREL(%rip), %rdi
	jmp	LBB0_4
LBB0_2:
	movq	_UIP_ERR_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_3:
	movq	_uip_tcp_pcbs@GOTPCREL(%rip), %rdi
LBB0_4:
	movq	%rbx, %rsi
	callq	_memb_free
	jmp	LBB0_14
LBB0_9:
	movq	_UIP_TCP_FIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_uip_tcp_sendctrl
	movq	%rax, %r14
	movq	_UIP_ERR_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_12
## %bb.10:
	movq	_UIP_LAST_ACK@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_12:
	movq	_UIP_ERR_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_uip_tcpoutput
LBB0_14:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_UIP_ERR_OK,8,3                 ## @UIP_ERR_OK
	.comm	_uip_tcp_pcbs,4,2               ## @uip_tcp_pcbs
	.comm	_uip_tcp_listen_pcbs,4,2        ## @uip_tcp_listen_pcbs
	.comm	_uip_listen_tcp_pcbs,4,2        ## @uip_listen_tcp_pcbs
	.comm	_uip_tcp_active_pcbs,8,3        ## @uip_tcp_active_pcbs
	.comm	_UIP_TCP_FIN,4,2                ## @UIP_TCP_FIN
	.comm	_UIP_FIN_WAIT_1,4,2             ## @UIP_FIN_WAIT_1
	.comm	_UIP_LAST_ACK,4,2               ## @UIP_LAST_ACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_tcp_close                  ; -- Begin function uip_tcp_close
	.p2align	2
_uip_tcp_close:                         ; @uip_tcp_close
	.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	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _UIP_TCP_FIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UIP_TCP_FIN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_uip_tcp_sendctrl
	mov	x20, x0
Lloh5:
	adrp	x8, _UIP_ERR_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UIP_ERR_OK@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.3:
Lloh8:
	adrp	x8, _UIP_FIN_WAIT_1@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UIP_FIN_WAIT_1@GOTPAGEOFF]
	b	LBB0_12
LBB0_4:
Lloh10:
	adrp	x8, _UIP_ERR_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UIP_ERR_OK@GOTPAGEOFF]
Lloh12:
	ldr	x20, [x8]
	b	LBB0_15
LBB0_5:
Lloh13:
	adrp	x8, _UIP_ERR_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _UIP_ERR_OK@GOTPAGEOFF]
Lloh15:
	ldr	x20, [x8]
Lloh16:
	adrp	x0, _uip_tcp_active_pcbs@GOTPAGE
Lloh17:
	ldr	x0, [x0, _uip_tcp_active_pcbs@GOTPAGEOFF]
	mov	x1, x19
	bl	_uip_tcp_pcbremove
	b	LBB0_8
LBB0_6:
Lloh18:
	adrp	x8, _UIP_ERR_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _UIP_ERR_OK@GOTPAGEOFF]
Lloh20:
	ldr	x20, [x8]
Lloh21:
	adrp	x0, _uip_tcp_listen_pcbs@GOTPAGE
Lloh22:
	ldr	x0, [x0, _uip_tcp_listen_pcbs@GOTPAGEOFF]
	mov	x1, x19
	bl	_uip_tcp_pcbremove
Lloh23:
	adrp	x0, _uip_listen_tcp_pcbs@GOTPAGE
Lloh24:
	ldr	x0, [x0, _uip_listen_tcp_pcbs@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh25:
	adrp	x8, _UIP_ERR_OK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _UIP_ERR_OK@GOTPAGEOFF]
Lloh27:
	ldr	x20, [x8]
LBB0_8:
Lloh28:
	adrp	x0, _uip_tcp_pcbs@GOTPAGE
Lloh29:
	ldr	x0, [x0, _uip_tcp_pcbs@GOTPAGEOFF]
LBB0_9:
	mov	x1, x19
	bl	_memb_free
	b	LBB0_15
LBB0_10:
Lloh30:
	adrp	x8, _UIP_TCP_FIN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _UIP_TCP_FIN@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_uip_tcp_sendctrl
	mov	x20, x0
Lloh33:
	adrp	x8, _UIP_ERR_OK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _UIP_ERR_OK@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.11:
Lloh36:
	adrp	x8, _UIP_LAST_ACK@GOTPAGE
Lloh37:
	ldr	x8, [x8, _UIP_LAST_ACK@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_13:
Lloh38:
	adrp	x8, _UIP_ERR_OK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _UIP_ERR_OK@GOTPAGEOFF]
Lloh40:
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_uip_tcpoutput
LBB0_15:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_UIP_ERR_OK,8,3                 ; @UIP_ERR_OK
	.comm	_uip_tcp_pcbs,4,2               ; @uip_tcp_pcbs
	.comm	_uip_tcp_listen_pcbs,4,2        ; @uip_tcp_listen_pcbs
	.comm	_uip_listen_tcp_pcbs,4,2        ; @uip_listen_tcp_pcbs
	.comm	_uip_tcp_active_pcbs,8,3        ; @uip_tcp_active_pcbs
	.comm	_UIP_TCP_FIN,4,2                ; @UIP_TCP_FIN
	.comm	_UIP_FIN_WAIT_1,4,2             ; @UIP_FIN_WAIT_1
	.comm	_UIP_LAST_ACK,4,2               ; @UIP_LAST_ACK
.subsections_via_symbols
