	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_poll                      ## -- Begin function sctp_poll
	.p2align	4, 0x90
_sctp_poll:                             ## @sctp_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	(%rsi), %r14
	movq	%r14, %rdi
	callq	_sctp_sk
	movq	%rax, %r15
	movl	32(%r14), %esi
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_poll_wait
	movq	_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sctp_style
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_LISTENING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sctp_sstate
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	(%r15), %rdi
	callq	_list_empty
	movq	_POLLIN@GOTPCREL(%rip), %rcx
	movq	_POLLRDNORM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	xorl	%ebx, %ebx
	testl	%eax, %eax
	cmovel	%edx, %ebx
	jmp	LBB0_18
LBB0_3:
	cmpq	$0, 24(%r14)
	je	LBB0_4
LBB0_5:
	movq	_POLLERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_6
LBB0_4:
	leaq	20(%r14), %rdi
	callq	_skb_queue_empty
	xorl	%ecx, %ecx
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movl	(%r14), %eax
	movq	_RCV_SHUTDOWN@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	andl	%eax, %ebx
	je	LBB0_8
## %bb.7:
	movq	_POLLRDHUP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
LBB0_8:
	movq	_SHUTDOWN_MASK@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	cmpl	(%rsi), %eax
	jne	LBB0_10
## %bb.9:
	movq	_POLLHUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_10:
	orl	%edx, %ecx
	orl	%ecx, %ebx
	leaq	16(%r14), %rdi
	callq	_skb_queue_empty
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	(%r15), %eax
	testl	%eax, (%r14)
	je	LBB0_13
LBB0_12:
	movq	_POLLIN@GOTPCREL(%rip), %rax
	movq	_POLLRDNORM@GOTPCREL(%rip), %rcx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
LBB0_13:
	movq	_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sctp_style
	testq	%rax, %rax
	je	LBB0_14
LBB0_15:
	movq	%r14, %rdi
	callq	_sctp_writeable
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	movq	_SOCK_ASYNC_NOSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rsi
	callq	_set_bit
	movq	%r14, %rdi
	callq	_sctp_writeable
	testq	%rax, %rax
	je	LBB0_18
LBB0_17:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movq	_POLLWRNORM@GOTPCREL(%rip), %rcx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	jmp	LBB0_18
LBB0_14:
	movq	_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sctp_sstate
	testq	%rax, %rax
	je	LBB0_15
LBB0_18:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TCP,4,2                        ## @TCP
	.comm	_LISTENING,4,2                  ## @LISTENING
	.comm	_POLLIN,4,2                     ## @POLLIN
	.comm	_POLLRDNORM,4,2                 ## @POLLRDNORM
	.comm	_POLLERR,4,2                    ## @POLLERR
	.comm	_RCV_SHUTDOWN,4,2               ## @RCV_SHUTDOWN
	.comm	_POLLRDHUP,4,2                  ## @POLLRDHUP
	.comm	_SHUTDOWN_MASK,4,2              ## @SHUTDOWN_MASK
	.comm	_POLLHUP,4,2                    ## @POLLHUP
	.comm	_UDP,4,2                        ## @UDP
	.comm	_CLOSED,4,2                     ## @CLOSED
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLWRNORM,4,2                 ## @POLLWRNORM
	.comm	_SOCK_ASYNC_NOSPACE,4,2         ## @SOCK_ASYNC_NOSPACE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_poll                      ; -- Begin function sctp_poll
	.p2align	2
_sctp_poll:                             ; @sctp_poll
	.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	x21, x2
	mov	x22, x0
	ldr	x19, [x1]
	mov	x0, x19
	bl	_sctp_sk
	mov	x20, x0
	ldr	w1, [x19, #32]
	mov	x0, x22
	mov	x2, x21
	bl	_poll_wait
Lloh0:
	adrp	x8, _TCP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TCP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sctp_style
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _LISTENING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LISTENING@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sctp_sstate
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x20]
	bl	_list_empty
Lloh6:
	adrp	x8, _POLLIN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cmp	w0, #0
	csel	w20, w8, wzr, eq
	b	LBB0_15
LBB0_3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _POLLERR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _POLLERR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	b	LBB0_7
LBB0_5:
	add	x0, x19, #20
	bl	_skb_queue_empty
	cbz	w0, LBB0_4
; %bb.6:
	mov	w8, #0
LBB0_7:
	mov	x0, x19
	ldr	w9, [x0], #16
Lloh15:
	adrp	x21, _RCV_SHUTDOWN@GOTPAGE
Lloh16:
	ldr	x21, [x21, _RCV_SHUTDOWN@GOTPAGEOFF]
	ldr	w10, [x21]
Lloh17:
	adrp	x11, _POLLRDHUP@GOTPAGE
Lloh18:
	ldr	x11, [x11, _POLLRDHUP@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w10, wzr, w11, eq
	orr	w8, w10, w8
Lloh20:
	adrp	x10, _SHUTDOWN_MASK@GOTPAGE
Lloh21:
	ldr	x10, [x10, _SHUTDOWN_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
Lloh23:
	adrp	x11, _POLLHUP@GOTPAGE
Lloh24:
	ldr	x11, [x11, _POLLHUP@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	cmp	w9, w10
	csel	w9, w11, wzr, eq
	orr	w20, w8, w9
	bl	_skb_queue_empty
	cbz	w0, LBB0_9
; %bb.8:
	ldr	w8, [x19]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_9:
Lloh26:
	adrp	x8, _POLLIN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _POLLIN@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _POLLRDNORM@GOTPAGE
Lloh30:
	ldr	x9, [x9, _POLLRDNORM@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w20
	orr	w20, w8, w9
LBB0_10:
Lloh32:
	adrp	x8, _UDP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _UDP@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sctp_style
	cbz	x0, LBB0_14
LBB0_11:
	mov	x0, x19
	bl	_sctp_writeable
	cbnz	x0, LBB0_13
; %bb.12:
Lloh35:
	adrp	x8, _SOCK_ASYNC_NOSPACE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _SOCK_ASYNC_NOSPACE@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	ldr	x1, [x19, #8]
	bl	_set_bit
	mov	x0, x19
	bl	_sctp_writeable
	cbz	x0, LBB0_15
LBB0_13:
Lloh38:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _POLLWRNORM@GOTPAGE
Lloh42:
	ldr	x9, [x9, _POLLWRNORM@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w8, w8, w20
	orr	w20, w8, w9
	b	LBB0_15
LBB0_14:
Lloh44:
	adrp	x8, _CLOSED@GOTPAGE
Lloh45:
	ldr	x8, [x8, _CLOSED@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sctp_sstate
	cbz	x0, LBB0_11
LBB0_15:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_TCP,4,2                        ; @TCP
	.comm	_LISTENING,4,2                  ; @LISTENING
	.comm	_POLLIN,4,2                     ; @POLLIN
	.comm	_POLLRDNORM,4,2                 ; @POLLRDNORM
	.comm	_POLLERR,4,2                    ; @POLLERR
	.comm	_RCV_SHUTDOWN,4,2               ; @RCV_SHUTDOWN
	.comm	_POLLRDHUP,4,2                  ; @POLLRDHUP
	.comm	_SHUTDOWN_MASK,4,2              ; @SHUTDOWN_MASK
	.comm	_POLLHUP,4,2                    ; @POLLHUP
	.comm	_UDP,4,2                        ; @UDP
	.comm	_CLOSED,4,2                     ; @CLOSED
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLWRNORM,4,2                 ; @POLLWRNORM
	.comm	_SOCK_ASYNC_NOSPACE,4,2         ; @SOCK_ASYNC_NOSPACE
.subsections_via_symbols
