	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netconn_delete
_netconn_delete:                        ## @netconn_delete
	.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
	movq	%rdi, %r14
	movq	$0, -56(%rbp)
	movq	_API_LIB_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_LWIP_DEBUGF
	movq	_ERR_OK@GOTPCREL(%rip), %rax
	testq	%r14, %r14
	je	LBB0_20
## %bb.1:
	movq	_MEMP_API_MSG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_memp_malloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rbx
	movq	_APIMSG_DELCONN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%r14, 40(%rbx)
	movq	%rbx, %rdi
	callq	_apimsg_post
	movq	8(%r14), %rdi
	leaq	-56(%rbp), %rsi
	movq	_MQ_MSG_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_MQ_Receive
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_memp_free
	movq	16(%r14), %r12
	movq	_SYS_MBOX_NULL@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, 16(%r14)
	cmpq	%rax, %r12
	je	LBB0_12
## %bb.4:
	leaq	-48(%rbp), %r15
	movq	_MQ_MSG_NOBLOCK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_MQ_Receive
	movq	_TRUE@GOTPCREL(%rip), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	callq	_netbuf_delete
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_MQ_Receive
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%r13), %rax
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r14), %rax
	movq	_NETCONN_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	_pbuf_free
	jmp	LBB0_10
LBB0_2:
	movq	_ERR_MEM@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_11:
	movq	%r12, %rdi
	callq	_MQ_Close
	movq	_SYS_MBOX_NULL@GOTPCREL(%rip), %r15
	movq	(%r15), %r12
LBB0_12:
	movq	24(%r14), %rbx
	movq	%r12, 24(%r14)
	cmpq	%r12, %rbx
	je	LBB0_19
## %bb.13:
	leaq	-48(%rbp), %r15
	movq	_MQ_MSG_NOBLOCK@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_MQ_Receive
	movq	_TRUE@GOTPCREL(%rip), %r13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_MQ_Receive
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpq	(%r13), %rax
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	callq	_netconn_delete
	jmp	LBB0_17
LBB0_18:
	movq	%rbx, %rdi
	callq	_MQ_Close
	movq	_SYS_MBOX_NULL@GOTPCREL(%rip), %r15
LBB0_19:
	movq	8(%r14), %rdi
	callq	_MQ_Close
	movq	(%r15), %rax
	movq	%rax, 8(%r14)
	movl	32(%r14), %edi
	callq	_LWP_SemDestroy
	movq	_SYS_SEM_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	_MEMP_NETCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_memp_free
	movq	_ERR_OK@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_API_LIB_DEBUG,4,2              ## @API_LIB_DEBUG
	.comm	_ERR_OK,4,2                     ## @ERR_OK
	.comm	_MEMP_API_MSG,4,2               ## @MEMP_API_MSG
	.comm	_ERR_MEM,4,2                    ## @ERR_MEM
	.comm	_APIMSG_DELCONN,8,3             ## @APIMSG_DELCONN
	.comm	_MQ_MSG_BLOCK,4,2               ## @MQ_MSG_BLOCK
	.comm	_SYS_MBOX_NULL,8,3              ## @SYS_MBOX_NULL
	.comm	_MQ_MSG_NOBLOCK,4,2             ## @MQ_MSG_NOBLOCK
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_NETCONN_TCP,8,3                ## @NETCONN_TCP
	.comm	_SYS_SEM_NULL,4,2               ## @SYS_SEM_NULL
	.comm	_MEMP_NETCONN,4,2               ## @MEMP_NETCONN
	.no_dead_strip	_netconn_delete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netconn_delete
_netconn_delete:                        ; @netconn_delete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _API_LIB_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _API_LIB_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_LWIP_DEBUGF
	cbz	x19, LBB0_18
; %bb.1:
Lloh3:
	adrp	x21, _MEMP_API_MSG@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MEMP_API_MSG@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_memp_malloc
	cbz	x0, LBB0_10
; %bb.2:
	mov	x20, x0
Lloh5:
	adrp	x8, _APIMSG_DELCONN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _APIMSG_DELCONN@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x0]
	str	x19, [x0, #40]
	bl	_apimsg_post
	ldr	x0, [x19, #8]
Lloh8:
	adrp	x8, _MQ_MSG_BLOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MQ_MSG_BLOCK@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	add	x1, sp, #8
	bl	_MQ_Receive
	ldr	w0, [x21]
	mov	x1, x20
	bl	_memp_free
	ldr	x20, [x19, #16]
Lloh11:
	adrp	x22, _SYS_MBOX_NULL@GOTPAGE
Lloh12:
	ldr	x22, [x22, _SYS_MBOX_NULL@GOTPAGEOFF]
	ldr	x8, [x22]
	str	x8, [x19, #16]
Lloh13:
	adrp	x23, _MQ_MSG_NOBLOCK@GOTPAGE
Lloh14:
	ldr	x23, [x23, _MQ_MSG_NOBLOCK@GOTPAGEOFF]
Lloh15:
	adrp	x24, _TRUE@GOTPAGE
Lloh16:
	ldr	x24, [x24, _TRUE@GOTPAGEOFF]
	cmp	x20, x8
	b.eq	LBB0_12
; %bb.3:
	ldr	w2, [x23]
	mov	x1, sp
	mov	x0, x20
	bl	_MQ_Receive
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.4:
Lloh17:
	adrp	x21, _NETCONN_TCP@GOTPAGE
Lloh18:
	ldr	x21, [x21, _NETCONN_TCP@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_netbuf_delete
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x23]
	mov	x1, sp
	mov	x0, x20
	bl	_MQ_Receive
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp]
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_pbuf_free
	b	LBB0_6
LBB0_10:
Lloh19:
	adrp	x8, _ERR_MEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERR_MEM@GOTPAGEOFF]
	b	LBB0_19
LBB0_11:
	mov	x0, x20
	bl	_MQ_Close
	ldr	x20, [x22]
LBB0_12:
	ldr	x21, [x19, #24]
	str	x20, [x19, #24]
	cmp	x21, x20
	b.eq	LBB0_17
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x23]
	mov	x1, sp
	mov	x0, x21
	bl	_MQ_Receive
	ldr	x8, [x24]
	cmp	x0, x8
	b.ne	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x0, [sp]
	cbz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	bl	_netconn_delete
	b	LBB0_13
LBB0_16:
	mov	x0, x21
	bl	_MQ_Close
LBB0_17:
	ldr	x0, [x19, #8]
	bl	_MQ_Close
	ldr	x8, [x22]
	str	x8, [x19, #8]
	ldr	w0, [x19, #32]
	bl	_LWP_SemDestroy
Lloh21:
	adrp	x8, _SYS_SEM_NULL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SYS_SEM_NULL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19, #32]
Lloh24:
	adrp	x8, _MEMP_NETCONN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MEMP_NETCONN@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_memp_free
LBB0_18:
Lloh27:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
LBB0_19:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_API_LIB_DEBUG,4,2              ; @API_LIB_DEBUG
	.comm	_ERR_OK,4,2                     ; @ERR_OK
	.comm	_MEMP_API_MSG,4,2               ; @MEMP_API_MSG
	.comm	_ERR_MEM,4,2                    ; @ERR_MEM
	.comm	_APIMSG_DELCONN,8,3             ; @APIMSG_DELCONN
	.comm	_MQ_MSG_BLOCK,4,2               ; @MQ_MSG_BLOCK
	.comm	_SYS_MBOX_NULL,8,3              ; @SYS_MBOX_NULL
	.comm	_MQ_MSG_NOBLOCK,4,2             ; @MQ_MSG_NOBLOCK
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_NETCONN_TCP,8,3                ; @NETCONN_TCP
	.comm	_SYS_SEM_NULL,4,2               ; @SYS_SEM_NULL
	.comm	_MEMP_NETCONN,4,2               ; @MEMP_NETCONN
	.no_dead_strip	_netconn_delete
.subsections_via_symbols
