	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_ulpq_tail_event           ## -- Begin function sctp_ulpq_tail_event
	.p2align	4, 0x90
_sctp_ulpq_tail_event:                  ## @sctp_ulpq_tail_event
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r15
	movq	%rsi, %rdi
	callq	_sctp_event2skb
	movq	%rax, %r12
	movq	(%rax), %r13
	movq	_SOCK_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sock_flag
	testq	%rax, %rax
	jne	LBB0_19
## %bb.1:
	movq	_RCV_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_2
LBB0_19:
	testq	%r13, %r13
	je	LBB0_21
## %bb.20:
	movq	%r13, %rdi
	callq	_sctp_queue_purge_ulpevents
	jmp	LBB0_22
LBB0_21:
	movq	%rbx, %rdi
	callq	_sctp_ulpevent_free
LBB0_22:
	xorl	%ebx, %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, %rdi
	callq	_sctp_sk
	leaq	20(%rax), %rsi
	movq	%rbx, %rdi
	callq	_sctp_ulpevent_is_enabled
	testl	%eax, %eax
	je	LBB0_19
## %bb.3:
	movq	%r15, %rdi
	callq	_sctp_sk
	leaq	16(%rax), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	cmpq	$0, (%r14)
	je	LBB0_9
## %bb.6:
	movl	(%rbx), %ebx
	movq	_MSG_NOTIFICATION@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_10
## %bb.7:
	movq	_SCTP_DATA_NOT_FRAG@GOTPCREL(%rip), %rax
	movq	_SCTP_DATA_FRAG_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	cmpl	%ecx, (%rax)
	je	LBB0_10
## %bb.8:
	movq	_MSG_EOR@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	leaq	16(%r15), %rax
	jmp	LBB0_12
LBB0_9:
	movq	%r15, %rdi
	callq	_sctp_sk
	cmpq	$0, 8(%rax)
	je	LBB0_10
LBB0_4:
	leaq	16(%r15), %rax
	jmp	LBB0_11
LBB0_10:
	movq	%r15, %rdi
	callq	_sctp_sk
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	testq	%r13, %r13
	je	LBB0_14
## %bb.13:
	movq	%r13, %rdi
	movq	%rax, %r13
	movq	%rax, %rsi
	callq	_sctp_skb_list_tail
	testl	%ebx, %ebx
	je	LBB0_17
LBB0_16:
	movq	%r14, %rdi
	callq	_sctp_ulpq_clear_pd
LBB0_17:
	leaq	16(%r15), %rax
	movl	$1, %ebx
	cmpq	%rax, %r13
	jne	LBB0_23
## %bb.18:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	*8(%r15)
	jmp	LBB0_23
LBB0_14:
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	___skb_queue_tail
	testl	%ebx, %ebx
	jne	LBB0_16
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_DEAD,4,2                  ## @SOCK_DEAD
	.comm	_RCV_SHUTDOWN,4,2               ## @RCV_SHUTDOWN
	.comm	_MSG_NOTIFICATION,4,2           ## @MSG_NOTIFICATION
	.comm	_SCTP_DATA_NOT_FRAG,4,2         ## @SCTP_DATA_NOT_FRAG
	.comm	_SCTP_DATA_FRAG_MASK,4,2        ## @SCTP_DATA_FRAG_MASK
	.comm	_MSG_EOR,4,2                    ## @MSG_EOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_ulpq_tail_event           ; -- Begin function sctp_ulpq_tail_event
	.p2align	2
_sctp_ulpq_tail_event:                  ; @sctp_ulpq_tail_event
	.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	x23, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
	mov	x0, x1
	bl	_sctp_event2skb
	mov	x22, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _SOCK_DEAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_DEAD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_flag
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _RCV_SHUTDOWN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RCV_SHUTDOWN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_2:
	cbz	x21, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_sctp_queue_purge_ulpevents
	b	LBB0_5
LBB0_4:
	mov	x0, x23
	bl	_sctp_ulpevent_free
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
LBB0_7:
	mov	x0, x19
	bl	_sctp_sk
	add	x1, x0, #20
	mov	x0, x23
	bl	_sctp_ulpevent_is_enabled
	cbz	w0, LBB0_2
; %bb.8:
	mov	x0, x19
	bl	_sctp_sk
	add	x0, x0, #16
	bl	_atomic_read
	cbz	x0, LBB0_14
; %bb.9:
	ldr	x8, [x20]
	cbz	x8, LBB0_13
; %bb.10:
	ldr	w8, [x23]
Lloh6:
	adrp	x9, _MSG_NOTIFICATION@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MSG_NOTIFICATION@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_19
; %bb.11:
Lloh9:
	adrp	x9, _SCTP_DATA_NOT_FRAG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SCTP_DATA_NOT_FRAG@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _SCTP_DATA_FRAG_MASK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SCTP_DATA_FRAG_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	and	w10, w10, w8
	cmp	w9, w10
	b.eq	LBB0_19
; %bb.12:
Lloh15:
	adrp	x9, _MSG_EOR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MSG_EOR@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w24, w9, w8
	add	x23, x19, #16
	cbnz	x21, LBB0_15
	b	LBB0_20
LBB0_13:
	mov	x0, x19
	bl	_sctp_sk
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_19
LBB0_14:
	mov	w24, #0
	add	x23, x19, #16
	cbz	x21, LBB0_20
LBB0_15:
	mov	x0, x21
	mov	x1, x23
	bl	_sctp_skb_list_tail
	cbz	w24, LBB0_17
LBB0_16:
	mov	x0, x20
	bl	_sctp_ulpq_clear_pd
LBB0_17:
	add	x8, x19, #16
	cmp	x23, x8
	b.eq	LBB0_21
; %bb.18:
	mov	w0, #1
	b	LBB0_6
LBB0_19:
	mov	x0, x19
	bl	_sctp_sk
	mov	x23, x0
	mov	w24, #0
	cbnz	x21, LBB0_15
LBB0_20:
	mov	x0, x23
	mov	x1, x22
	bl	___skb_queue_tail
	cbnz	w24, LBB0_16
	b	LBB0_17
LBB0_21:
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	mov	w0, #1
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_DEAD,4,2                  ; @SOCK_DEAD
	.comm	_RCV_SHUTDOWN,4,2               ; @RCV_SHUTDOWN
	.comm	_MSG_NOTIFICATION,4,2           ; @MSG_NOTIFICATION
	.comm	_SCTP_DATA_NOT_FRAG,4,2         ; @SCTP_DATA_NOT_FRAG
	.comm	_SCTP_DATA_FRAG_MASK,4,2        ; @SCTP_DATA_FRAG_MASK
	.comm	_MSG_EOR,4,2                    ; @MSG_EOR
.subsections_via_symbols
