	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_tcp_listen                 ## -- Begin function uip_tcp_listen
	.p2align	4, 0x90
_uip_tcp_listen:                        ## @uip_tcp_listen
	.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	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_UIP_LISTEN@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_4
## %bb.1:
	movq	_uip_listen_tcp_pcbs@GOTPCREL(%rip), %rdi
	callq	_memb_alloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movl	28(%rbx), %eax
	movl	%eax, 36(%r14)
	movl	24(%rbx), %eax
	movl	%eax, 32(%r14)
	movq	(%r15), %rax
	movq	%rax, 24(%r14)
	movq	_UIP_SOF_ACCEPTCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	20(%rbx), %eax
	movl	%eax, 16(%r14)
	movl	16(%rbx), %eax
	movl	%eax, 12(%r14)
	movl	12(%rbx), %eax
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	addq	$4, %rdi
	leaq	8(%rbx), %rsi
	callq	_ip_addr_set
	movq	_uip_tcp_pcbs@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_memb_free
	movq	_uip_tcp_nullaccept@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_uip_tcp_listen_pcbs@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_UIP_TCP_REG
	movq	%r14, %rbx
	jmp	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UIP_LISTEN,8,3                 ## @UIP_LISTEN
	.comm	_uip_listen_tcp_pcbs,4,2        ## @uip_listen_tcp_pcbs
	.comm	_UIP_SOF_ACCEPTCONN,4,2         ## @UIP_SOF_ACCEPTCONN
	.comm	_uip_tcp_pcbs,4,2               ## @uip_tcp_pcbs
	.comm	_uip_tcp_nullaccept,4,2         ## @uip_tcp_nullaccept
	.comm	_uip_tcp_listen_pcbs,4,2        ## @uip_tcp_listen_pcbs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_tcp_listen                 ; -- Begin function uip_tcp_listen
	.p2align	2
_uip_tcp_listen:                        ; @uip_tcp_listen
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x21, _UIP_LISTEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _UIP_LISTEN@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
Lloh2:
	adrp	x0, _uip_listen_tcp_pcbs@GOTPAGE
Lloh3:
	ldr	x0, [x0, _uip_listen_tcp_pcbs@GOTPAGEOFF]
	bl	_memb_alloc
	cbz	x0, LBB0_3
; %bb.2:
	mov	x20, x0
	ldr	d0, [x19, #24]
	str	d0, [x0, #32]
	ldr	x8, [x21]
	str	x8, [x0, #24]
	ldr	w8, [x19, #20]
Lloh4:
	adrp	x9, _UIP_SOF_ACCEPTCONN@GOTPAGE
Lloh5:
	ldr	x9, [x9, _UIP_SOF_ACCEPTCONN@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0, #16]
	ldur	d0, [x19, #12]
	str	d0, [x0, #8]
	add	x0, x0, #4
	add	x1, x19, #8
	bl	_ip_addr_set
Lloh7:
	adrp	x0, _uip_tcp_pcbs@GOTPAGE
Lloh8:
	ldr	x0, [x0, _uip_tcp_pcbs@GOTPAGEOFF]
	mov	x1, x19
	bl	_memb_free
Lloh9:
	adrp	x8, _uip_tcp_nullaccept@GOTPAGE
Lloh10:
	ldr	x8, [x8, _uip_tcp_nullaccept@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh12:
	adrp	x0, _uip_tcp_listen_pcbs@GOTPAGE
Lloh13:
	ldr	x0, [x0, _uip_tcp_listen_pcbs@GOTPAGEOFF]
	mov	x1, x20
	bl	_UIP_TCP_REG
	mov	x19, x20
	b	LBB0_4
LBB0_3:
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_UIP_LISTEN,8,3                 ; @UIP_LISTEN
	.comm	_uip_listen_tcp_pcbs,4,2        ; @uip_listen_tcp_pcbs
	.comm	_UIP_SOF_ACCEPTCONN,4,2         ; @UIP_SOF_ACCEPTCONN
	.comm	_uip_tcp_pcbs,4,2               ; @uip_tcp_pcbs
	.comm	_uip_tcp_nullaccept,4,2         ; @uip_tcp_nullaccept
	.comm	_uip_tcp_listen_pcbs,4,2        ; @uip_tcp_listen_pcbs
.subsections_via_symbols
