	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcpip_accept_func
_tcpip_accept_func:                     ## @tcpip_accept_func
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_UIP_LOG
	movq	_UIP_ERR_ABRT@GOTPCREL(%rip), %r15
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.1:
	movq	%r14, %rdi
	callq	_tcpip_allocsocket
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movq	%rax, %rdi
	callq	_tcpip_getsocket
	movq	_UIP_TF_NODELAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%rax), %rdx
	orl	%ecx, (%rdx)
	movq	_tcpip_accepted_sockets@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rsi, %rdx
	movq	(%rsi), %rsi
	testq	%rsi, %rsi
	jne	LBB0_4
## %bb.6:
	movq	%rdx, %rcx
LBB0_7:
	movq	%rax, (%rcx)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_uip_tcp_arg
	movq	_tcpip_recved@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_uip_tcp_recv
	movq	_tcpip_sent@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_uip_tcp_sent
	movq	_tcpip_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_uip_tcp_err
	movq	_tcpip_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_uip_tcp_poll
	movq	_UIP_ERR_OK@GOTPCREL(%rip), %r15
	jmp	LBB0_8
LBB0_2:
	movq	%r14, %rdi
	callq	_uip_tcp_close
LBB0_8:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tcpip_accept_func()"

	.comm	_UIP_ERR_ABRT,4,2               ## @UIP_ERR_ABRT
	.comm	_UIP_TF_NODELAY,4,2             ## @UIP_TF_NODELAY
	.comm	_tcpip_accepted_sockets,8,3     ## @tcpip_accepted_sockets
	.comm	_tcpip_recved,4,2               ## @tcpip_recved
	.comm	_tcpip_sent,4,2                 ## @tcpip_sent
	.comm	_tcpip_err,4,2                  ## @tcpip_err
	.comm	_tcpip_poll,4,2                 ## @tcpip_poll
	.comm	_UIP_ERR_OK,4,2                 ## @UIP_ERR_OK
	.no_dead_strip	_tcpip_accept_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcpip_accept_func
_tcpip_accept_func:                     ; @tcpip_accept_func
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_UIP_LOG
	cbz	x20, LBB0_8
; %bb.1:
	mov	x0, x19
	bl	_tcpip_allocsocket
	tbnz	x0, #63, LBB0_7
; %bb.2:
	bl	_tcpip_getsocket
	mov	x1, x0
Lloh2:
	adrp	x8, _UIP_TF_NODELAY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UIP_TF_NODELAY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	x9, [x0, #8]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
Lloh5:
	adrp	x8, _tcpip_accepted_sockets@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tcpip_accepted_sockets@GOTPAGEOFF]
	ldr	x10, [x8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x10, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x9, x10
	ldr	x10, [x10]
	cbnz	x10, LBB0_3
; %bb.5:
	mov	x8, x9
LBB0_6:
	str	x1, [x8]
	mov	x0, x19
	bl	_uip_tcp_arg
Lloh7:
	adrp	x8, _tcpip_recved@GOTPAGE
Lloh8:
	ldr	x8, [x8, _tcpip_recved@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_uip_tcp_recv
Lloh10:
	adrp	x8, _tcpip_sent@GOTPAGE
Lloh11:
	ldr	x8, [x8, _tcpip_sent@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_uip_tcp_sent
Lloh13:
	adrp	x8, _tcpip_err@GOTPAGE
Lloh14:
	ldr	x8, [x8, _tcpip_err@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_uip_tcp_err
Lloh16:
	adrp	x8, _tcpip_poll@GOTPAGE
Lloh17:
	ldr	x8, [x8, _tcpip_poll@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #4
	bl	_uip_tcp_poll
Lloh19:
	adrp	x8, _UIP_ERR_OK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _UIP_ERR_OK@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_uip_tcp_close
LBB0_8:
Lloh21:
	adrp	x8, _UIP_ERR_ABRT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _UIP_ERR_ABRT@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tcpip_accept_func()"

	.comm	_UIP_ERR_ABRT,4,2               ; @UIP_ERR_ABRT
	.comm	_UIP_TF_NODELAY,4,2             ; @UIP_TF_NODELAY
	.comm	_tcpip_accepted_sockets,8,3     ; @tcpip_accepted_sockets
	.comm	_tcpip_recved,4,2               ; @tcpip_recved
	.comm	_tcpip_sent,4,2                 ; @tcpip_sent
	.comm	_tcpip_err,4,2                  ; @tcpip_err
	.comm	_tcpip_poll,4,2                 ; @tcpip_poll
	.comm	_UIP_ERR_OK,4,2                 ; @UIP_ERR_OK
	.no_dead_strip	_tcpip_accept_func
.subsections_via_symbols
