	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __sctp_write_space
___sctp_write_space:                    ## @__sctp_write_space
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	16(%r15), %r14
	callq	_sctp_wspace
	testq	%rax, %rax
	jle	LBB0_10
## %bb.1:
	testq	%r14, %r14
	je	LBB0_10
## %bb.2:
	movq	%rbx, %rdi
	callq	_waitqueue_active
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_wake_up_interruptible
LBB0_4:
	movq	%r15, %rdi
	callq	_sctp_writeable
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.6:
	callq	_waitqueue_active
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	8(%r15), %rdi
	callq	_wake_up_interruptible
LBB0_8:
	cmpq	$0, (%r14)
	je	LBB0_10
## %bb.9:
	movq	_SEND_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_11
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_SOCK_WAKE_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_POLL_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sock_wake_async                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SEND_SHUTDOWN,4,2              ## @SEND_SHUTDOWN
	.comm	_SOCK_WAKE_SPACE,4,2            ## @SOCK_WAKE_SPACE
	.comm	_POLL_OUT,4,2                   ## @POLL_OUT
	.no_dead_strip	___sctp_write_space
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __sctp_write_space
___sctp_write_space:                    ; @__sctp_write_space
	.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, x0
	ldr	x20, [x0, #8]
	ldr	x19, [x20, #16]
	bl	_sctp_wspace
	cmp	x0, #1
	b.lt	LBB0_10
; %bb.1:
	cbz	x19, LBB0_10
; %bb.2:
	mov	x0, x21
	bl	_waitqueue_active
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_wake_up_interruptible
LBB0_4:
	mov	x0, x20
	bl	_sctp_writeable
	cbz	x0, LBB0_10
; %bb.5:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_8
; %bb.6:
	bl	_waitqueue_active
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x20, #8]
	bl	_wake_up_interruptible
LBB0_8:
	ldr	x8, [x19]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _SEND_SHUTDOWN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SEND_SHUTDOWN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_10:
	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_11:
Lloh3:
	adrp	x8, _SOCK_WAKE_SPACE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_WAKE_SPACE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _POLL_OUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _POLL_OUT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	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
	b	_sock_wake_async
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SEND_SHUTDOWN,4,2              ; @SEND_SHUTDOWN
	.comm	_SOCK_WAKE_SPACE,4,2            ; @SOCK_WAKE_SPACE
	.comm	_POLL_OUT,4,2                   ; @POLL_OUT
	.no_dead_strip	___sctp_write_space
.subsections_via_symbols
