	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_ulpevent_make_remote_error ## -- Begin function sctp_ulpevent_make_remote_error
	.p2align	4, 0x90
_sctp_ulpevent_make_remote_error:       ## @sctp_ulpevent_make_remote_error
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	4(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_ntohs
	movl	%eax, %edi
	callq	_WORD_ROUND
	movl	%eax, %r12d
	leal	-8(%r12), %r14d
	movq	(%rbx), %rdi
	movl	$8, %esi
	callq	_skb_pull
	movq	(%rbx), %rdi
	xorl	%r15d, %r15d
	movl	$32, %esi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	callq	_skb_copy_expand
	movq	%rax, %r13
	movq	(%rbx), %rdi
	movl	%r14d, %esi
	callq	_skb_pull
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_sctp_skb2event
	movq	%rax, %r15
	movq	_MSG_NOTIFICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r13), %edx
	movq	%r15, %rdi
	callq	_sctp_ulpevent_init
	movq	%r13, %rdi
	movl	$32, %esi
	callq	_skb_push
	movq	%rax, %rbx
	addl	$24, %r12d
	movq	%r13, %rdi
	movl	%r12d, %esi
	callq	_skb_trim
	movq	_SCTP_REMOTE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	$0, 16(%rbx)
	movl	(%r13), %eax
	movl	%eax, 8(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movq	%r15, %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_sctp_ulpevent_set_owner
	movq	%r14, %rdi
	callq	_sctp_assoc2id
	movl	%eax, (%rbx)
LBB0_2:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_NOTIFICATION,4,2           ## @MSG_NOTIFICATION
	.comm	_SCTP_REMOTE_ERROR,4,2          ## @SCTP_REMOTE_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_ulpevent_make_remote_error ; -- Begin function sctp_ulpevent_make_remote_error
	.p2align	2
_sctp_ulpevent_make_remote_error:       ; @sctp_ulpevent_make_remote_error
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x23, x1
	mov	x19, x0
	ldr	x8, [x1]
	ldr	x8, [x8]
	ldp	w0, w25, [x8]
	bl	_ntohs
	bl	_WORD_ROUND
	mov	x20, x0
	sub	w24, w0, #8
	ldr	x0, [x23]
	mov	w1, #8
	bl	_skb_pull
	ldr	x0, [x23]
	mov	w1, #32
	mov	w2, #0
	mov	x3, x21
	bl	_skb_copy_expand
	mov	x22, x0
	ldr	x0, [x23]
	mov	x1, x24
	bl	_skb_pull
	cbz	x22, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_sctp_skb2event
	mov	x21, x0
Lloh0:
	adrp	x8, _MSG_NOTIFICATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_NOTIFICATION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x22, #4]
	bl	_sctp_ulpevent_init
	mov	x0, x22
	mov	w1, #32
	bl	_skb_push
	mov	x23, x0
	add	w1, w20, #24
	mov	x0, x22
	bl	_skb_trim
Lloh3:
	adrp	x8, _SCTP_REMOTE_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCTP_REMOTE_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x23, #24]
	str	xzr, [x23, #16]
	ldr	w8, [x22]
	stp	w25, w8, [x23, #4]
	mov	x0, x21
	mov	x1, x19
	bl	_sctp_ulpevent_set_owner
	mov	x0, x19
	bl	_sctp_assoc2id
	str	w0, [x23]
	b	LBB0_3
LBB0_2:
	mov	x21, #0
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_NOTIFICATION,4,2           ; @MSG_NOTIFICATION
	.comm	_SCTP_REMOTE_ERROR,4,2          ; @SCTP_REMOTE_ERROR
.subsections_via_symbols
