	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function poll_tcp
_poll_tcp:                              ## @poll_tcp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_API_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_LWIP_DEBUGF
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	(%rbx), %rdi
	movq	_SYS_SEM_NULL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_5
## %bb.2:
	movq	8(%rbx), %rax
	movq	_NETCONN_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_NETCONN_CLOSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_4:
	callq	_LWP_SemPost
LBB0_5:
	movq	_ERR_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_API_MSG_DEBUG,4,2              ## @API_MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"api_msg: poll_tcp\n"

	.comm	_SYS_SEM_NULL,8,3               ## @SYS_SEM_NULL
	.comm	_NETCONN_WRITE,8,3              ## @NETCONN_WRITE
	.comm	_NETCONN_CLOSE,8,3              ## @NETCONN_CLOSE
	.comm	_ERR_OK,4,2                     ## @ERR_OK
	.no_dead_strip	_poll_tcp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function poll_tcp
_poll_tcp:                              ; @poll_tcp
	.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, x0
Lloh0:
	adrp	x8, _API_MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _API_MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_LWIP_DEBUGF
	cbz	x19, LBB0_4
; %bb.1:
	ldr	x0, [x19]
Lloh5:
	adrp	x8, _SYS_SEM_NULL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SYS_SEM_NULL@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _NETCONN_WRITE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NETCONN_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _NETCONN_CLOSE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _NETCONN_CLOSE@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_4
; %bb.3:
	bl	_LWP_SemPost
LBB0_4:
Lloh14:
	adrp	x8, _ERR_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERR_OK@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_API_MSG_DEBUG,4,2              ; @API_MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"api_msg: poll_tcp\n"

	.comm	_SYS_SEM_NULL,8,3               ; @SYS_SEM_NULL
	.comm	_NETCONN_WRITE,8,3              ; @NETCONN_WRITE
	.comm	_NETCONN_CLOSE,8,3              ; @NETCONN_CLOSE
	.comm	_ERR_OK,4,2                     ; @ERR_OK
	.no_dead_strip	_poll_tcp
.subsections_via_symbols
