	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sk_stream_write_space          ## -- Begin function sk_stream_write_space
	.p2align	4, 0x90
_sk_stream_write_space:                 ## @sk_stream_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, %r15
	movq	16(%rdi), %r14
	callq	_sk_stream_wspace
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_sk_stream_min_wspace
	cmpq	%rax, %rbx
	jl	LBB0_7
## %bb.1:
	testq	%r14, %r14
	je	LBB0_7
## %bb.2:
	movq	_SOCK_NOSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r14), %rsi
	callq	_clear_bit
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	callq	_waitqueue_active
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movq	_POLLWRNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	8(%r15), %rdi
	movq	_POLLWRBAND@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_wake_up_interruptible_poll
LBB0_5:
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.6:
	movq	_SEND_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_8
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	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	_SOCK_NOSPACE,4,2               ## @SOCK_NOSPACE
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLWRNORM,4,2                 ## @POLLWRNORM
	.comm	_POLLWRBAND,4,2                 ## @POLLWRBAND
	.comm	_SEND_SHUTDOWN,4,2              ## @SEND_SHUTDOWN
	.comm	_SOCK_WAKE_SPACE,4,2            ## @SOCK_WAKE_SPACE
	.comm	_POLL_OUT,4,2                   ## @POLL_OUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sk_stream_write_space          ; -- Begin function sk_stream_write_space
	.p2align	2
_sk_stream_write_space:                 ; @sk_stream_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	x20, x0
	ldr	x19, [x0, #16]
	bl	_sk_stream_wspace
	mov	x21, x0
	mov	x0, x20
	bl	_sk_stream_min_wspace
	cmp	x21, x0
	b.lt	LBB0_7
; %bb.1:
	cbz	x19, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _SOCK_NOSPACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCK_NOSPACE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_clear_bit
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_5
; %bb.3:
	bl	_waitqueue_active
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x20, #8]
Lloh3:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _POLLWRNORM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _POLLWRNORM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _POLLWRBAND@GOTPAGE
Lloh10:
	ldr	x9, [x9, _POLLWRBAND@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_wake_up_interruptible_poll
LBB0_5:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _SEND_SHUTDOWN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SEND_SHUTDOWN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_7:
	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_8:
Lloh15:
	adrp	x8, _SOCK_WAKE_SPACE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SOCK_WAKE_SPACE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _POLL_OUT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _POLL_OUT@GOTPAGEOFF]
Lloh20:
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SOCK_NOSPACE,4,2               ; @SOCK_NOSPACE
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLWRNORM,4,2                 ; @POLLWRNORM
	.comm	_POLLWRBAND,4,2                 ; @POLLWRBAND
	.comm	_SEND_SHUTDOWN,4,2              ; @SEND_SHUTDOWN
	.comm	_SOCK_WAKE_SPACE,4,2            ; @SOCK_WAKE_SPACE
	.comm	_POLL_OUT,4,2                   ; @POLL_OUT
.subsections_via_symbols
