	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_ulpevent_make_rcvmsg      ## -- Begin function sctp_ulpevent_make_rcvmsg
	.p2align	4, 0x90
_sctp_ulpevent_make_rcvmsg:             ## @sctp_ulpevent_make_rcvmsg
	.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
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	24(%rdi), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	16(%r15), %rdi
	jmp	LBB0_3
LBB0_2:
	movq	8(%r15), %rdi
	addq	$8, %rdi
LBB0_3:
	callq	_atomic_read
	movq	8(%r15), %rdi
	cmpl	(%rdi), %eax
	jge	LBB0_4
LBB0_6:
	movq	32(%r14), %rdi
	movl	%ebx, %esi
	callq	_skb_clone
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	movq	%rax, %r12
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_ntohl
	movl	24(%r14), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_sctp_tsnmap_mark
	testq	%rax, %rax
	je	LBB0_8
## %bb.11:
	movq	%r12, %rdi
	callq	_kfree_skb
	jmp	LBB0_12
LBB0_4:
	movq	_SOCK_RCVBUF_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rdi)
	je	LBB0_5
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	32(%r14), %rax
	movl	(%rax), %esi
	callq	_sk_rmem_schedule
	testl	%eax, %eax
	jne	LBB0_6
	jmp	LBB0_12
LBB0_8:
	movq	8(%r14), %rax
	movl	4(%rax), %edi
	callq	_ntohs
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_WORD_ROUND
	addq	(%r14), %rbx
	addq	(%r12), %rax
	subq	%rax, %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_skb_trim
	movq	%r12, %rdi
	callq	_sctp_skb2event
	movq	%rax, %rbx
	movl	8(%r12), %edx
	addl	$16, %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_sctp_ulpevent_init
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_sctp_ulpevent_receive_data
	movq	16(%r14), %rax
	movl	12(%rax), %edi
	callq	_ntohs
	movq	%rax, 32(%rbx)
	movq	16(%r14), %rax
	movl	8(%rax), %edi
	callq	_ntohs
	movq	%rax, 24(%rbx)
	movq	16(%r14), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 20(%rbx)
	movq	8(%r14), %rcx
	movq	_SCTP_DATA_UNORDERED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	je	LBB0_10
## %bb.9:
	movq	_SCTP_UNORDERED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movq	%r15, %rdi
	callq	_sctp_tsnmap_get_ctsn
	movl	%eax, 12(%rbx)
	movq	16(%r14), %rax
LBB0_10:
	movl	(%rax), %edi
	callq	_ntohl
	movl	%eax, 8(%rbx)
	movq	8(%r14), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_sctp_chunk_iif
	movl	%eax, 4(%rbx)
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_SOCK_RCVBUF_LOCK,4,2           ## @SOCK_RCVBUF_LOCK
	.comm	_SCTP_DATA_UNORDERED,4,2        ## @SCTP_DATA_UNORDERED
	.comm	_SCTP_UNORDERED,4,2             ## @SCTP_UNORDERED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_ulpevent_make_rcvmsg      ; -- Begin function sctp_ulpevent_make_rcvmsg
	.p2align	2
_sctp_ulpevent_make_rcvmsg:             ; @sctp_ulpevent_make_rcvmsg
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	add	x0, x20, #16
	b	LBB0_3
LBB0_2:
	ldr	x8, [x20, #8]
	add	x0, x8, #8
LBB0_3:
	bl	_atomic_read
	mov	x8, x0
	ldr	x0, [x20, #8]
	ldr	w9, [x0]
	cmp	w8, w9
	b.ge	LBB0_7
LBB0_4:
	ldr	x0, [x19, #32]
	mov	x1, x21
	bl	_skb_clone
	cbz	x0, LBB0_8
; %bb.5:
	mov	x22, x0
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_ntohl
	mov	x1, x0
	ldr	w2, [x19, #24]
	mov	x0, x20
	bl	_sctp_tsnmap_mark
	cbz	x0, LBB0_11
; %bb.6:
	mov	x0, x22
	bl	_kfree_skb
	b	LBB0_8
LBB0_7:
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _SOCK_RCVBUF_LOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SOCK_RCVBUF_LOCK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_8:
	mov	x21, #0
LBB0_9:
	mov	x0, x21
	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
LBB0_10:
	ldr	x8, [x19, #32]
	ldr	w1, [x8]
	bl	_sk_rmem_schedule
	cbnz	w0, LBB0_4
	b	LBB0_8
LBB0_11:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	bl	_ntohs
	mov	x21, x0
	bl	_WORD_ROUND
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x8, x8, x21
	add	x9, x0, x9
	sub	x1, x8, x9
	mov	x0, x22
	bl	_skb_trim
	mov	x0, x22
	bl	_sctp_skb2event
	mov	x21, x0
	ldr	w8, [x22, #8]
	add	w2, w8, #16
	mov	w1, #0
	bl	_sctp_ulpevent_init
	mov	x0, x21
	mov	x1, x20
	bl	_sctp_ulpevent_receive_data
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #12]
	bl	_ntohs
	str	x0, [x21, #32]
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #8]
	bl	_ntohs
	str	x0, [x21, #24]
	ldp	x9, x8, [x19, #8]
	ldr	w10, [x8, #4]
	str	w10, [x21, #20]
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _SCTP_DATA_UNORDERED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SCTP_DATA_UNORDERED@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.12:
Lloh6:
	adrp	x8, _SCTP_UNORDERED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCTP_UNORDERED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x21, #16]
	orr	w8, w9, w8
	str	w8, [x21, #16]
	mov	x0, x20
	bl	_sctp_tsnmap_get_ctsn
	str	w0, [x21, #12]
	ldr	x8, [x19, #16]
LBB0_13:
	ldr	w0, [x8]
	bl	_ntohl
	str	w0, [x21, #8]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	mov	x0, x19
	bl	_sctp_chunk_iif
	str	w0, [x21, #4]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_RCVBUF_LOCK,4,2           ; @SOCK_RCVBUF_LOCK
	.comm	_SCTP_DATA_UNORDERED,4,2        ; @SCTP_DATA_UNORDERED
	.comm	_SCTP_UNORDERED,4,2             ; @SCTP_UNORDERED
.subsections_via_symbols
