	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcpip_init                     ## -- Begin function tcpip_init
	.p2align	4, 0x90
_tcpip_init:                            ## @tcpip_init
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	$4, -48(%rbp)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_memr_init
	xorl	%eax, %eax
	callq	_uip_ipinit
	xorl	%eax, %eax
	callq	_uip_pbuf_init
	xorl	%eax, %eax
	callq	_uip_netif_init
	xorl	%eax, %eax
	callq	_uip_tcp_init
	movq	_tcpip_socks@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UIP_TCPIP_SOCKS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	_UIP_MEMSET
	movq	_netif@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_uip_bba_create
	movq	_uip_bba_init@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	_uip_ipinput@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rsp)
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	movl	%eax, %r8d
	callq	_uip_netif_add
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rdi
	callq	_uip_netif_setdefault
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_tcpip_socket
	movq	_listensock@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_htons
	movl	%eax, -60(%rbp)
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movl	(%r14), %edi
	leaq	-64(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_tcpip_bind
	movl	(%r14), %edi
	testq	%rax, %rax
	js	LBB0_3
## %bb.4:
	movl	$1, %esi
	callq	_tcpip_listen
	testq	%rax, %rax
	js	LBB0_5
## %bb.6:
	movq	_netif_device@GOTPCREL(%rip), %rbx
	movl	$-1, (%rbx)
	movq	_waittcpip@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_opentcpip@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_closetcpip@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_readtcpip@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_writetcpip@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_7
LBB0_5:
	movl	(%r14), %edi
LBB0_3:
	callq	_tcpip_close
	movl	$-1, (%r14)
	xorl	%ebx, %ebx
LBB0_7:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tcpip_socks,4,2                ## @tcpip_socks
	.comm	_UIP_TCPIP_SOCKS,4,2            ## @UIP_TCPIP_SOCKS
	.comm	_netif,4,2                      ## @netif
	.comm	_uip_bba_init,4,2               ## @uip_bba_init
	.comm	_uip_ipinput,4,2                ## @uip_ipinput
	.comm	_listensock,4,2                 ## @listensock
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_netif_device,24,2              ## @netif_device
	.comm	_waittcpip,4,2                  ## @waittcpip
	.comm	_opentcpip,4,2                  ## @opentcpip
	.comm	_closetcpip,4,2                 ## @closetcpip
	.comm	_readtcpip,4,2                  ## @readtcpip
	.comm	_writetcpip,4,2                 ## @writetcpip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcpip_init                     ; -- Begin function tcpip_init
	.p2align	2
_tcpip_init:                            ; @tcpip_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w8, #4
	str	w8, [sp, #12]
	bl	_memr_init
	bl	_uip_ipinit
	bl	_uip_pbuf_init
	bl	_uip_netif_init
	bl	_uip_tcp_init
Lloh0:
	adrp	x8, _tcpip_socks@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tcpip_socks@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _UIP_TCPIP_SOCKS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UIP_TCPIP_SOCKS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_UIP_MEMSET
Lloh6:
	adrp	x23, _netif@GOTPAGE
Lloh7:
	ldr	x23, [x23, _netif@GOTPAGEOFF]
	mov	x0, x23
	bl	_uip_bba_create
	mov	x4, x0
Lloh8:
	adrp	x8, _uip_bba_init@GOTPAGE
Lloh9:
	ldr	x8, [x8, _uip_bba_init@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
Lloh11:
	adrp	x8, _uip_ipinput@GOTPAGE
Lloh12:
	ldr	x8, [x8, _uip_ipinput@GOTPAGEOFF]
Lloh13:
	ldr	w6, [x8]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_uip_netif_add
	cbz	x0, LBB0_8
; %bb.1:
	bl	_uip_netif_setdefault
	bl	_tcpip_socket
Lloh14:
	adrp	x20, _listensock@GOTPAGE
Lloh15:
	ldr	x20, [x20, _listensock@GOTPAGEOFF]
	str	w0, [x20]
	tbnz	w0, #31, LBB0_5
; %bb.2:
Lloh16:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	mov	x0, x19
	bl	_htons
Lloh19:
	adrp	x8, _AF_INET@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #16]
	ldr	w0, [x20]
	add	x1, sp, #16
	add	x2, sp, #12
	bl	_tcpip_bind
	mov	x8, x0
	ldr	w0, [x20]
	tbnz	x8, #63, LBB0_7
; %bb.3:
	mov	w1, #1
	bl	_tcpip_listen
	tbnz	x0, #63, LBB0_6
; %bb.4:
Lloh22:
	adrp	x0, _netif_device@GOTPAGE
Lloh23:
	ldr	x0, [x0, _netif_device@GOTPAGEOFF]
	mov	w8, #-1
Lloh24:
	adrp	x9, _waittcpip@GOTPAGE
Lloh25:
	ldr	x9, [x9, _waittcpip@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _opentcpip@GOTPAGE
Lloh28:
	ldr	x10, [x10, _opentcpip@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
Lloh30:
	adrp	x11, _closetcpip@GOTPAGE
Lloh31:
	ldr	x11, [x11, _closetcpip@GOTPAGEOFF]
	stp	w10, w9, [x0, #16]
Lloh32:
	ldr	w9, [x11]
Lloh33:
	adrp	x10, _readtcpip@GOTPAGE
Lloh34:
	ldr	x10, [x10, _readtcpip@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	stp	w10, w9, [x0, #8]
Lloh36:
	adrp	x9, _writetcpip@GOTPAGE
Lloh37:
	ldr	x9, [x9, _writetcpip@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	stp	w8, w9, [x0]
	b	LBB0_8
LBB0_5:
	mov	x0, #0
	b	LBB0_8
LBB0_6:
	ldr	w0, [x20]
LBB0_7:
	bl	_tcpip_close
	mov	x0, #0
	mov	w8, #-1
	str	w8, [x20]
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_tcpip_socks,4,2                ; @tcpip_socks
	.comm	_UIP_TCPIP_SOCKS,4,2            ; @UIP_TCPIP_SOCKS
	.comm	_netif,4,2                      ; @netif
	.comm	_uip_bba_init,4,2               ; @uip_bba_init
	.comm	_uip_ipinput,4,2                ; @uip_ipinput
	.comm	_listensock,4,2                 ; @listensock
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_netif_device,24,2              ; @netif_device
	.comm	_waittcpip,4,2                  ; @waittcpip
	.comm	_opentcpip,4,2                  ; @opentcpip
	.comm	_closetcpip,4,2                 ; @closetcpip
	.comm	_readtcpip,4,2                  ; @readtcpip
	.comm	_writetcpip,4,2                 ; @writetcpip
.subsections_via_symbols
