	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sock_def_write_space
_sock_def_write_space:                  ## @sock_def_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_read_lock
	leaq	12(%rbx), %rdi
	callq	_atomic_read
	addl	%eax, %eax
	cmpl	(%rbx), %eax
	jg	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_sk_has_sleeper
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_POLLOUT@GOTPCREL(%rip), %rax
	movq	_POLLWRNORM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	8(%rbx), %edi
	movq	_POLLWRBAND@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_wake_up_interruptible_sync_poll
LBB0_3:
	movq	%rbx, %rdi
	callq	_sock_writeable
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_SOCK_WAKE_SPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_POLL_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_sk_wake_async
LBB0_5:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_read_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_POLLOUT,4,2                    ## @POLLOUT
	.comm	_POLLWRNORM,4,2                 ## @POLLWRNORM
	.comm	_POLLWRBAND,4,2                 ## @POLLWRBAND
	.comm	_SOCK_WAKE_SPACE,4,2            ## @SOCK_WAKE_SPACE
	.comm	_POLL_OUT,4,2                   ## @POLL_OUT
	.no_dead_strip	_sock_def_write_space
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sock_def_write_space
_sock_def_write_space:                  ; @sock_def_write_space
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_read_lock
	add	x0, x20, #12
	bl	_atomic_read
	ldr	w8, [x20]
	cmp	w8, w0, lsl #1
	b.lt	LBB0_5
; %bb.1:
	mov	x0, x20
	bl	_sk_has_sleeper
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x20, #8]
Lloh0:
	adrp	x8, _POLLOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POLLOUT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _POLLWRNORM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _POLLWRNORM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _POLLWRBAND@GOTPAGE
Lloh7:
	ldr	x9, [x9, _POLLWRBAND@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_wake_up_interruptible_sync_poll
LBB0_3:
	mov	x0, x20
	bl	_sock_writeable
	cbz	x0, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _SOCK_WAKE_SPACE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SOCK_WAKE_SPACE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _POLL_OUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _POLL_OUT@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_sk_wake_async
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_read_unlock
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_POLLOUT,4,2                    ; @POLLOUT
	.comm	_POLLWRNORM,4,2                 ; @POLLWRNORM
	.comm	_POLLWRBAND,4,2                 ; @POLLWRBAND
	.comm	_SOCK_WAKE_SPACE,4,2            ; @SOCK_WAKE_SPACE
	.comm	_POLL_OUT,4,2                   ; @POLL_OUT
	.no_dead_strip	_sock_def_write_space
.subsections_via_symbols
