	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function accept_func
_accept_func:                           ## @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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_API_LIB_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	%edx, %rsi
	callq	_LWIP_DEBUGF
	movl	28(%rbx), %r14d
	movq	_MEMP_NETCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_memp_malloc
	movq	%rax, %r15
	movq	_ERR_MEM@GOTPCREL(%rip), %rax
	testq	%r15, %r15
	je	LBB0_12
## %bb.1:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	leaq	48(%r15), %rdi
	movq	_MQBOX_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_MQ_Init
	movq	_MQ_ERROR_SUCCESSFUL@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_2
## %bb.4:
	leaq	44(%r15), %rdi
	movl	(%r13), %esi
	callq	_MQ_Init
	cmpq	(%r14), %rax
	jne	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	addq	$52, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_LWP_SemInit
	cmpl	$-1, %eax
	movq	_MEMP_NETCONN@GOTPCREL(%rip), %r14
	je	LBB0_7
## %bb.8:
	movq	_NETCONN_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%r15)
	movq	%r15, %rdi
	callq	_setuptcp
	movq	_SYS_MBOX_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r15)
	movl	%r12d, 24(%r15)
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.10:
	movq	_NETCONN_EVTRCVPLUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	*%rcx
	movq	16(%rbx), %rax
	jmp	LBB0_11
LBB0_5:
	movl	48(%r15), %edi
	callq	_MQ_Close
LBB0_2:
	movq	_MEMP_NETCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_3:
	movq	%r15, %rsi
	callq	_memp_free
	movq	_ERR_MEM@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	48(%r15), %edi
	callq	_MQ_Close
	movl	44(%r15), %edi
	callq	_MQ_Close
	movl	(%r14), %edi
	jmp	LBB0_3
LBB0_9:
	xorl	%eax, %eax
LBB0_11:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rax, 16(%r15)
	movl	$-1, (%r15)
	movq	$0, 8(%r15)
	movq	_MQ_MSG_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_MQ_Send
	movq	_ERR_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_API_LIB_DEBUG,4,2              ## @API_LIB_DEBUG
	.comm	_MEMP_NETCONN,4,2               ## @MEMP_NETCONN
	.comm	_ERR_MEM,4,2                    ## @ERR_MEM
	.comm	_MQBOX_SIZE,4,2                 ## @MQBOX_SIZE
	.comm	_MQ_ERROR_SUCCESSFUL,8,3        ## @MQ_ERROR_SUCCESSFUL
	.comm	_NETCONN_TCP,4,2                ## @NETCONN_TCP
	.comm	_SYS_MBOX_NULL,4,2              ## @SYS_MBOX_NULL
	.comm	_NETCONN_EVTRCVPLUS,4,2         ## @NETCONN_EVTRCVPLUS
	.comm	_MQ_MSG_BLOCK,4,2               ## @MQ_MSG_BLOCK
	.comm	_ERR_OK,4,2                     ## @ERR_OK
	.no_dead_strip	_accept_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function accept_func
_accept_func:                           ; @accept_func
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _API_LIB_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _API_LIB_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	sxtw	x1, w22
	bl	_LWIP_DEBUGF
	ldr	w20, [x21, #28]
Lloh3:
	adrp	x24, _MEMP_NETCONN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MEMP_NETCONN@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_memp_malloc
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	add	x0, x0, #48
Lloh5:
	adrp	x25, _MQBOX_SIZE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _MQBOX_SIZE@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_MQ_Init
Lloh7:
	adrp	x26, _MQ_ERROR_SUCCESSFUL@GOTPAGE
Lloh8:
	ldr	x26, [x26, _MQ_ERROR_SUCCESSFUL@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.2:
	add	x0, x19, #44
	ldr	w1, [x25]
	bl	_MQ_Init
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.3:
	add	x0, x19, #52
	mov	w1, #0
	mov	w2, #1
	bl	_LWP_SemInit
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.4:
Lloh9:
	adrp	x8, _NETCONN_TCP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NETCONN_TCP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #40]
	str	x23, [x19, #32]
	mov	x0, x19
	bl	_setuptcp
Lloh12:
	adrp	x8, _SYS_MBOX_NULL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SYS_MBOX_NULL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	stp	w22, w8, [x19, #24]
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_6
; %bb.5:
Lloh15:
	adrp	x9, _NETCONN_EVTRCVPLUS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NETCONN_EVTRCVPLUS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
	mov	x0, x21
	mov	w2, #0
	blr	x8
	ldr	x8, [x21, #16]
LBB0_6:
	mov	w9, #-1
	str	w9, [x19]
	stp	xzr, x8, [x19, #8]
Lloh18:
	adrp	x8, _MQ_MSG_BLOCK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MQ_MSG_BLOCK@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_MQ_Send
Lloh21:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
	ldr	w0, [x19, #48]
	b	LBB0_9
LBB0_8:
	ldr	w0, [x19, #48]
	bl	_MQ_Close
	ldr	w0, [x19, #44]
LBB0_9:
	bl	_MQ_Close
LBB0_10:
	ldr	w0, [x24]
	mov	x1, x19
	bl	_memp_free
LBB0_11:
Lloh23:
	adrp	x8, _ERR_MEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ERR_MEM@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_API_LIB_DEBUG,4,2              ; @API_LIB_DEBUG
	.comm	_MEMP_NETCONN,4,2               ; @MEMP_NETCONN
	.comm	_ERR_MEM,4,2                    ; @ERR_MEM
	.comm	_MQBOX_SIZE,4,2                 ; @MQBOX_SIZE
	.comm	_MQ_ERROR_SUCCESSFUL,8,3        ; @MQ_ERROR_SUCCESSFUL
	.comm	_NETCONN_TCP,4,2                ; @NETCONN_TCP
	.comm	_SYS_MBOX_NULL,4,2              ; @SYS_MBOX_NULL
	.comm	_NETCONN_EVTRCVPLUS,4,2         ; @NETCONN_EVTRCVPLUS
	.comm	_MQ_MSG_BLOCK,4,2               ; @MQ_MSG_BLOCK
	.comm	_ERR_OK,4,2                     ; @ERR_OK
	.no_dead_strip	_accept_func
.subsections_via_symbols
