	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_wait_for_packet
_sctp_wait_for_packet:                  ## @sctp_wait_for_packet
	.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, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_wait@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_DEFINE_WAIT
	movl	4(%r12), %edi
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_prepare_to_wait_exclusive
	movq	%r12, %rdi
	callq	_sock_error
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_10:
	movl	4(%r12), %edi
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_finish_wait
	movl	%ebx, (%r14)
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	8(%r12), %rdi
	callq	_skb_queue_empty
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	_RCV_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, (%r12)
	jne	LBB0_10
## %bb.3:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_sctp_sk
	movq	(%rax), %rdi
	callq	_list_empty
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_LISTENING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sctp_sstate
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:
	movq	(%r15), %rdi
	callq	_sock_intr_errno
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_7:
	movq	%r12, %rdi
	callq	_sctp_release_sock
	movq	(%r15), %rdi
	callq	_schedule_timeout
	movq	%rax, (%r15)
	movq	%r12, %rdi
	callq	_sctp_lock_sock
LBB0_8:
	movl	4(%r12), %edi
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_finish_wait
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_5:
	negl	%ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_RCV_SHUTDOWN,4,2               ## @RCV_SHUTDOWN
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_LISTENING,4,2                  ## @LISTENING
	.comm	_current,4,2                    ## @current
	.no_dead_strip	_sctp_wait_for_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_wait_for_packet
_sctp_wait_for_packet:                  ; @sctp_wait_for_packet
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _wait@GOTPAGE
Lloh1:
	ldr	x22, [x22, _wait@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_DEFINE_WAIT
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x8, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_prepare_to_wait_exclusive
	mov	x0, x19
	bl	_sock_error
	mov	x22, x0
	cbz	w0, LBB0_3
LBB0_1:
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x1, _wait@GOTPAGE
Lloh6:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	bl	_finish_wait
	str	w22, [x20]
LBB0_2:
	mov	x0, x22
	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_3:
	add	x0, x19, #8
	bl	_skb_queue_empty
	cbz	w0, LBB0_11
; %bb.4:
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _RCV_SHUTDOWN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _RCV_SHUTDOWN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	w22, #0
	b	LBB0_1
LBB0_6:
Lloh10:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_sctp_sk
	ldr	x0, [x0]
	bl	_list_empty
	cbz	x0, LBB0_8
; %bb.7:
Lloh13:
	adrp	x8, _LISTENING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LISTENING@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sctp_sstate
	cbz	w0, LBB0_12
LBB0_8:
Lloh16:
	adrp	x8, _current@GOTPAGE
Lloh17:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_signal_pending
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x0, [x21]
	bl	_sock_intr_errno
	mov	x22, x0
	b	LBB0_1
LBB0_10:
	mov	x0, x19
	bl	_sctp_release_sock
	ldr	x0, [x21]
	bl	_schedule_timeout
	str	x0, [x21]
	mov	x0, x19
	bl	_sctp_lock_sock
LBB0_11:
	ldr	w0, [x19, #4]
Lloh19:
	adrp	x1, _wait@GOTPAGE
Lloh20:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	bl	_finish_wait
	mov	w22, #0
	b	LBB0_2
LBB0_12:
	neg	w22, w22
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_RCV_SHUTDOWN,4,2               ; @RCV_SHUTDOWN
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_LISTENING,4,2                  ; @LISTENING
	.comm	_current,4,2                    ; @current
	.no_dead_strip	_sctp_wait_for_packet
.subsections_via_symbols
