	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_soreceive                 ## -- Begin function sctp_soreceive
	.p2align	4, 0x90
_sctp_soreceive:                        ## @sctp_soreceive
	.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	$1096, %rsp                     ## imm = 0x448
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -1128(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_8
## %bb.1:
	movq	%r8, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rdx, -1104(%rbp)               ## 8-byte Spill
	movq	%rcx, -1112(%rbp)               ## 8-byte Spill
	movq	_SCTP_PCB_FLAGS_RECVDATAIOEVNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sctp_is_feature_off
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	_SCTP_PCB_FLAGS_RECVRCVINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sctp_is_feature_off
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	_SCTP_PCB_FLAGS_RECVNXTINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_sctp_is_feature_off
	testq	%r13, %r13
	je	LBB0_9
## %bb.4:
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:
	xorl	%eax, %eax
	movl	$1, %r10d
	jmp	LBB0_10
LBB0_6:
	testq	%r13, %r13
	je	LBB0_9
## %bb.7:
	movl	$1, %r10d
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_8:
	movq	_SCTP_FROM_SCTPUTIL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SCTP_LTRACE_ERR_RET
	movl	(%rbx), %r14d
	jmp	LBB0_30
LBB0_9:
	xorl	%r10d, %r10d
	movb	$1, %al
LBB0_10:
	movq	%r13, -1120(%rbp)               ## 8-byte Spill
	movq	%rbx, -1088(%rbp)               ## 8-byte Spill
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.11:
	leaq	-1072(%rbp), %r13
	movq	$0, -1072(%rbp)
	movl	$1024, %r12d                    ## imm = 0x400
	jmp	LBB0_13
LBB0_12:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
LBB0_13:
	movl	%eax, -1092(%rbp)               ## 4-byte Spill
	testb	%al, %al
	jne	LBB0_15
## %bb.14:
	leaq	-1080(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	movq	%r13, %rbx
	movq	%r10, %r13
	callq	_memset
	movq	%r13, %r10
	movq	%rbx, %r13
LBB0_15:
	movq	-1128(%rbp), %rax               ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%rax, %rbx
	movl	(%rax), %eax
	movl	%eax, -1076(%rbp)
	leaq	-1080(%rbp), %rax
	leaq	-1076(%rbp), %r9
	movq	%r14, %rdi
	movq	-1104(%rbp), %rsi               ## 8-byte Reload
	movq	-1112(%rbp), %rdx               ## 8-byte Reload
	movq	%r13, %rcx
	movl	%r12d, %r8d
	pushq	%r10
	pushq	%rax
	callq	_sctp_sorecvmsg
	addq	$16, %rsp
	movl	%eax, %r14d
	movl	-1076(%rbp), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_18
LBB0_17:
	movl	$0, -1076(%rbp)
	leaq	-1080(%rbp), %rax
	leaq	-1076(%rbp), %r9
	movq	%r14, %rdi
	movq	-1104(%rbp), %rsi               ## 8-byte Reload
	movq	-1112(%rbp), %rdx               ## 8-byte Reload
	movq	%r13, %rcx
	movl	%r12d, %r8d
	pushq	%r10
	pushq	%rax
	callq	_sctp_sorecvmsg
	addq	$16, %rsp
	movl	%eax, %r14d
LBB0_18:
	cmpq	$0, -1120(%rbp)                 ## 8-byte Folded Reload
	movl	-1092(%rbp), %eax               ## 4-byte Reload
	je	LBB0_25
## %bb.19:
	testb	%al, %al
	jne	LBB0_20
## %bb.21:
	movq	_MSG_NOTIFICATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -1076(%rbp)
	je	LBB0_23
LBB0_20:
	xorl	%eax, %eax
LBB0_24:
	movq	-1120(%rbp), %rcx               ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_25:
	cmpq	$0, -1088(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_30
## %bb.26:
	testq	%r13, %r13
	je	LBB0_29
## %bb.27:
	cmpq	$0, (%r13)
	je	LBB0_29
## %bb.28:
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_sodupsockaddr
	movq	-1088(%rbp), %rcx               ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_30
LBB0_29:
	movq	-1088(%rbp), %rax               ## 8-byte Reload
	movq	$0, (%rax)
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.31:
	movl	%r14d, %eax
	addq	$1096, %rsp                     ## imm = 0x448
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	leaq	-1080(%rbp), %rsi
	movq	%r15, %rdi
	callq	_sctp_build_ctl_nchunk
	jmp	LBB0_24
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_FROM_SCTPUTIL,4,2         ## @SCTP_FROM_SCTPUTIL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SCTP_PCB_FLAGS_RECVDATAIOEVNT,4,2 ## @SCTP_PCB_FLAGS_RECVDATAIOEVNT
	.comm	_SCTP_PCB_FLAGS_RECVRCVINFO,4,2 ## @SCTP_PCB_FLAGS_RECVRCVINFO
	.comm	_SCTP_PCB_FLAGS_RECVNXTINFO,4,2 ## @SCTP_PCB_FLAGS_RECVNXTINFO
	.comm	_MSG_NOTIFICATION,4,2           ## @MSG_NOTIFICATION
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_soreceive                 ; -- Begin function sctp_soreceive
	.p2align	2
_sctp_soreceive:                        ; @sctp_soreceive
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1072
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x21, [x0]
	cbz	x21, LBB0_13
; %bb.1:
	mov	x25, x5
	mov	x20, x4
	mov	x22, x2
	mov	x19, x1
	mov	x24, x0
	str	x3, [sp, #8]                    ; 8-byte Folded Spill
Lloh3:
	adrp	x8, _SCTP_PCB_FLAGS_RECVDATAIOEVNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCTP_PCB_FLAGS_RECVDATAIOEVNT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_sctp_is_feature_off
	cbz	x0, LBB0_7
; %bb.2:
Lloh6:
	adrp	x8, _SCTP_PCB_FLAGS_RECVRCVINFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCTP_PCB_FLAGS_RECVRCVINFO@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_sctp_is_feature_off
	cbz	x0, LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _SCTP_PCB_FLAGS_RECVNXTINFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SCTP_PCB_FLAGS_RECVNXTINFO@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_sctp_is_feature_off
	cbz	x20, LBB0_5
; %bb.4:
	cbz	x0, LBB0_8
LBB0_5:
	mov	w27, #0
	mov	w23, #1
	cbnz	x19, LBB0_9
LBB0_6:
	mov	w28, #0
	mov	x26, #0
	tbz	w23, #0, LBB0_10
	b	LBB0_11
LBB0_7:
	cbz	x20, LBB0_5
LBB0_8:
	mov	w23, #0
	mov	w27, #1
	cbz	x19, LBB0_6
LBB0_9:
	add	x26, sp, #32
	str	xzr, [sp, #32]
	mov	w28, #1024
	tbnz	w23, #0, LBB0_11
LBB0_10:
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #4
	bl	_memset
LBB0_11:
	cbz	x25, LBB0_14
; %bb.12:
	ldr	w8, [x25]
	str	w8, [sp, #20]
	add	x5, sp, #20
	add	x6, sp, #24
	mov	x0, x24
	mov	x1, x22
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	mov	x3, x26
	mov	x4, x28
	mov	x7, x27
	bl	_sctp_sorecvmsg
	mov	x22, x0
	ldr	w8, [sp, #20]
	str	w8, [x25]
	cbnz	x20, LBB0_15
	b	LBB0_19
LBB0_13:
Lloh12:
	adrp	x8, _SCTP_FROM_SCTPUTIL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SCTP_FROM_SCTPUTIL@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x19, _EINVAL@GOTPAGE
Lloh16:
	ldr	x19, [x19, _EINVAL@GOTPAGEOFF]
	ldr	w4, [x19]
	mov	x0, #0
	mov	x1, #0
	mov	x2, #0
	bl	_SCTP_LTRACE_ERR_RET
	ldr	w22, [x19]
	b	LBB0_24
LBB0_14:
	str	wzr, [sp, #20]
	add	x5, sp, #20
	add	x6, sp, #24
	mov	x0, x24
	mov	x1, x22
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	mov	x3, x26
	mov	x4, x28
	mov	x7, x27
	bl	_sctp_sorecvmsg
	mov	x22, x0
	cbz	x20, LBB0_19
LBB0_15:
	tbnz	w23, #0, LBB0_17
; %bb.16:
	ldr	w8, [sp, #20]
Lloh17:
	adrp	x9, _MSG_NOTIFICATION@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MSG_NOTIFICATION@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
LBB0_17:
	mov	x0, #0
LBB0_18:
	str	x0, [x20]
LBB0_19:
	cbz	x19, LBB0_24
; %bb.20:
	cbz	x26, LBB0_23
; %bb.21:
	ldr	x8, [x26]
	cbz	x8, LBB0_23
; %bb.22:
Lloh20:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x26
	bl	_sodupsockaddr
	str	x0, [x19]
	b	LBB0_24
LBB0_23:
	str	xzr, [x19]
LBB0_24:
	ldur	x8, [x29, #-96]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.25:
	mov	x0, x22
	add	sp, sp, #1072
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_26:
	add	x1, sp, #24
	mov	x0, x21
	bl	_sctp_build_ctl_nchunk
	b	LBB0_18
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_FROM_SCTPUTIL,4,2         ; @SCTP_FROM_SCTPUTIL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SCTP_PCB_FLAGS_RECVDATAIOEVNT,4,2 ; @SCTP_PCB_FLAGS_RECVDATAIOEVNT
	.comm	_SCTP_PCB_FLAGS_RECVRCVINFO,4,2 ; @SCTP_PCB_FLAGS_RECVRCVINFO
	.comm	_SCTP_PCB_FLAGS_RECVNXTINFO,4,2 ; @SCTP_PCB_FLAGS_RECVNXTINFO
	.comm	_MSG_NOTIFICATION,4,2           ; @MSG_NOTIFICATION
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
.subsections_via_symbols
