	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_poll                       ## -- Begin function tcp_poll
	.p2align	4, 0x90
_tcp_poll:                              ## @tcp_poll
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	(%rsi), %r12
	movq	%r12, %rdi
	callq	_tcp_sk
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_inet_sock_cpu_or_flow_record
	movl	24(%r12), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_sock_poll_wait
	movl	(%r12), %eax
	movq	_TCP_LISTEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.18:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_inet_csk_listen_poll           ## TAILCALL
LBB0_1:
	movl	4(%r12), %ecx
	movq	_SHUTDOWN_MASK@GOTPCREL(%rip), %rdx
	movq	_TCP_CLOSE@GOTPCREL(%rip), %rsi
	xorl	%r13d, %r13d
	cmpl	(%rsi), %eax
	movq	_POLLHUP@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmovel	%esi, %r13d
	cmpl	(%rdx), %ecx
	cmovel	%esi, %r13d
	movq	_RCV_SHUTDOWN@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_3
## %bb.2:
	movq	_POLLIN@GOTPCREL(%rip), %rcx
	movq	_POLLRDNORM@GOTPCREL(%rip), %rdx
	movq	_POLLRDHUP@GOTPCREL(%rip), %rsi
	orl	(%rcx), %r13d
	orl	(%rdx), %r13d
	orl	(%rsi), %r13d
LBB0_3:
	movq	_TCPF_SYN_SENT@GOTPCREL(%rip), %rcx
	movq	_TCPF_SYN_RECV@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	btl	%eax, %edx
	jb	LBB0_15
## %bb.4:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_sock_rcvlowat
	movl	%eax, %r15d
	movq	(%r14), %rax
	cmpq	8(%r14), %rax
	jne	LBB0_5
## %bb.6:
	movq	_SOCK_URGINLINE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sock_flag
	testl	%eax, %eax
	movl	$0, %edi
	jne	LBB0_8
## %bb.7:
	cmpl	$1, 16(%r14)
	sbbl	$-1, %r15d
	jmp	LBB0_8
LBB0_5:
	xorl	%edi, %edi
LBB0_8:
	movslq	20(%r14), %rax
	subq	8(%r14), %rax
	movslq	%r15d, %rcx
	movq	_POLLIN@GOTPCREL(%rip), %rdx
	movq	_POLLRDNORM@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	orl	(%rdx), %ebx
	cmpq	%rcx, %rax
	cmovll	%edi, %ebx
	orl	%r13d, %ebx
	movq	_SEND_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	jne	LBB0_12
## %bb.9:
	movq	%r12, %rdi
	callq	_sk_stream_wspace
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_sk_stream_min_wspace
	cmpq	%rax, %r15
	jge	LBB0_11
## %bb.10:
	movq	_SOCK_ASYNC_NOSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r12), %rsi
	callq	_set_bit
	movq	_SOCK_NOSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r12), %rsi
	callq	_set_bit
	movq	%r12, %rdi
	callq	_sk_stream_wspace
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_sk_stream_min_wspace
	cmpq	%rax, %r15
	jl	LBB0_12
LBB0_11:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movq	_POLLWRNORM@GOTPCREL(%rip), %rcx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
LBB0_12:
	movq	_TCP_URG_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	16(%r14), %r13d
	je	LBB0_14
## %bb.13:
	movq	_POLLPRI@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_14:
	orl	%ebx, %r13d
LBB0_15:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_smp_rmb
	cmpq	$0, 8(%r12)
	je	LBB0_17
## %bb.16:
	movq	_POLLERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_17:
	orl	%r13d, %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCP_LISTEN,4,2                 ## @TCP_LISTEN
	.comm	_SHUTDOWN_MASK,4,2              ## @SHUTDOWN_MASK
	.comm	_TCP_CLOSE,4,2                  ## @TCP_CLOSE
	.comm	_POLLHUP,4,2                    ## @POLLHUP
	.comm	_RCV_SHUTDOWN,4,2               ## @RCV_SHUTDOWN
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.comm	_POLLRDHUP,4,2                  ## @POLLRDHUP
	.comm	_TCPF_SYN_SENT,4,2              ## @TCPF_SYN_SENT
	.comm	_TCPF_SYN_RECV,4,2              ## @TCPF_SYN_RECV
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_SOCK_URGINLINE,4,2             ## @SOCK_URGINLINE
	.comm	_SEND_SHUTDOWN,4,2              ## @SEND_SHUTDOWN
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLWRNORM,4,2                 ## @POLLWRNORM
	.comm	_SOCK_ASYNC_NOSPACE,4,2         ## @SOCK_ASYNC_NOSPACE
	.comm	_SOCK_NOSPACE,4,2               ## @SOCK_NOSPACE
	.comm	_TCP_URG_VALID,4,2              ## @TCP_URG_VALID
	.comm	_POLLPRI,4,2                    ## @POLLPRI
	.comm	_POLLERR,4,2                    ## @POLLERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_poll                       ; -- Begin function tcp_poll
	.p2align	2
_tcp_poll:                              ; @tcp_poll
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x22, x0
	ldr	x19, [x1]
	mov	x0, x19
	bl	_tcp_sk
	mov	x20, x0
	mov	x0, x19
	bl	_inet_sock_cpu_or_flow_record
	ldr	w1, [x19, #24]
	mov	x0, x22
	mov	x2, x21
	bl	_sock_poll_wait
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _TCP_LISTEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TCP_LISTEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_inet_csk_listen_poll
LBB0_2:
	ldr	w9, [x19, #4]
Lloh3:
	adrp	x10, _SHUTDOWN_MASK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SHUTDOWN_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _TCP_CLOSE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _TCP_CLOSE@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	w8, w11
	ccmp	w9, w10, #4, ne
Lloh9:
	adrp	x10, _POLLHUP@GOTPAGE
Lloh10:
	ldr	x10, [x10, _POLLHUP@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	csel	w22, w10, wzr, eq
Lloh12:
	adrp	x10, _RCV_SHUTDOWN@GOTPAGE
Lloh13:
	ldr	x10, [x10, _RCV_SHUTDOWN@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x23, _POLLIN@GOTPAGE
Lloh16:
	ldr	x23, [x23, _POLLIN@GOTPAGEOFF]
Lloh17:
	adrp	x24, _POLLRDNORM@GOTPAGE
Lloh18:
	ldr	x24, [x24, _POLLRDNORM@GOTPAGEOFF]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.3:
	ldr	w9, [x23]
	ldr	w10, [x24]
Lloh19:
	adrp	x11, _POLLRDHUP@GOTPAGE
Lloh20:
	ldr	x11, [x11, _POLLRDHUP@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	orr	w9, w9, w22
	orr	w9, w9, w10
	orr	w22, w9, w11
LBB0_4:
Lloh22:
	adrp	x9, _TCPF_SYN_SENT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _TCPF_SYN_SENT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x10, _TCPF_SYN_RECV@GOTPAGE
Lloh26:
	ldr	x10, [x10, _TCPF_SYN_RECV@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	orr	w9, w10, w9
	lsr	w8, w9, w8
	tbnz	w8, #0, LBB0_13
; %bb.5:
Lloh28:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh29:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #0
	bl	_sock_rcvlowat
	mov	x21, x0
	ldp	x8, x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
Lloh31:
	adrp	x8, _SOCK_URGINLINE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _SOCK_URGINLINE@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_flag
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	w8, [x20, #16]
	cmp	w8, #0
	cinc	w21, w21, ne
LBB0_8:
	ldrsw	x8, [x20, #20]
	ldr	x9, [x20, #8]
	sub	x8, x8, x9
	ldr	w9, [x23]
	ldr	w10, [x24]
	orr	w9, w10, w9
	cmp	x8, w21, sxtw
	csel	w8, wzr, w9, lt
	orr	w22, w8, w22
	ldr	w8, [x19, #4]
Lloh34:
	adrp	x9, _SEND_SHUTDOWN@GOTPAGE
Lloh35:
	ldr	x9, [x9, _SEND_SHUTDOWN@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.9:
	mov	x0, x19
	bl	_sk_stream_wspace
	mov	x21, x0
	mov	x0, x19
	bl	_sk_stream_min_wspace
	cmp	x21, x0
	b.ge	LBB0_11
; %bb.10:
Lloh37:
	adrp	x8, _SOCK_ASYNC_NOSPACE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SOCK_ASYNC_NOSPACE@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	ldr	x1, [x19, #16]
	bl	_set_bit
Lloh40:
	adrp	x8, _SOCK_NOSPACE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SOCK_NOSPACE@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	ldr	x1, [x19, #16]
	bl	_set_bit
	mov	x0, x19
	bl	_sk_stream_wspace
	mov	x21, x0
	mov	x0, x19
	bl	_sk_stream_min_wspace
	cmp	x21, x0
	b.lt	LBB0_12
LBB0_11:
Lloh43:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh44:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x9, _POLLWRNORM@GOTPAGE
Lloh47:
	ldr	x9, [x9, _POLLWRNORM@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	orr	w8, w8, w22
	orr	w22, w8, w9
LBB0_12:
	ldr	w8, [x20, #16]
Lloh49:
	adrp	x9, _TCP_URG_VALID@GOTPAGE
Lloh50:
	ldr	x9, [x9, _TCP_URG_VALID@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
Lloh52:
	adrp	x10, _POLLPRI@GOTPAGE
Lloh53:
	ldr	x10, [x10, _POLLPRI@GOTPAGEOFF]
Lloh54:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w8, wzr, w10, eq
	orr	w22, w8, w22
LBB0_13:
	bl	_smp_rmb
Lloh55:
	adrp	x8, _POLLERR@GOTPAGE
Lloh56:
	ldr	x8, [x8, _POLLERR@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh57:
	ldr	w8, [x8]
	cmp	x9, #0
	csel	w8, wzr, w8, eq
	orr	w0, w8, w22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_TCP_LISTEN,4,2                 ; @TCP_LISTEN
	.comm	_SHUTDOWN_MASK,4,2              ; @SHUTDOWN_MASK
	.comm	_TCP_CLOSE,4,2                  ; @TCP_CLOSE
	.comm	_POLLHUP,4,2                    ; @POLLHUP
	.comm	_RCV_SHUTDOWN,4,2               ; @RCV_SHUTDOWN
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.comm	_POLLRDHUP,4,2                  ; @POLLRDHUP
	.comm	_TCPF_SYN_SENT,4,2              ; @TCPF_SYN_SENT
	.comm	_TCPF_SYN_RECV,4,2              ; @TCPF_SYN_RECV
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_SOCK_URGINLINE,4,2             ; @SOCK_URGINLINE
	.comm	_SEND_SHUTDOWN,4,2              ; @SEND_SHUTDOWN
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLWRNORM,4,2                 ; @POLLWRNORM
	.comm	_SOCK_ASYNC_NOSPACE,4,2         ; @SOCK_ASYNC_NOSPACE
	.comm	_SOCK_NOSPACE,4,2               ; @SOCK_NOSPACE
	.comm	_TCP_URG_VALID,4,2              ; @TCP_URG_VALID
	.comm	_POLLPRI,4,2                    ; @POLLPRI
	.comm	_POLLERR,4,2                    ; @POLLERR
.subsections_via_symbols
