	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_tcp_write_space            ## -- Begin function rds_tcp_write_space
	.p2align	4, 0x90
_rds_tcp_write_space:                   ## @rds_tcp_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	24(%rdi), %r14
	movq	%r14, %rdi
	callq	_read_lock
	movq	32(%r12), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	8(%r15), %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_rdsdebug
	movq	(%rbx), %r13
	movq	_s_tcp_write_space_calls@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rds_tcp_stats_inc
	movq	%rbx, %rdi
	callq	_rds_tcp_snd_una
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_rdsdebug
	movq	%rbx, %rdi
	callq	_rds_tcp_snd_una
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_rds_tcp_snd_una
	movq	_rds_tcp_is_acked@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_rds_send_drop_acked
	leaq	28(%r12), %rdi
	callq	_atomic_read
	addl	%eax, %eax
	cmpl	8(%r12), %eax
	jg	LBB0_4
## %bb.3:
	movq	_rds_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_queue_delayed_work
	jmp	LBB0_4
LBB0_1:
	movq	(%r12), %r13
LBB0_4:
	movq	%r14, %rdi
	callq	_read_unlock
	movq	%r12, %rdi
	callq	*%r13
	movq	16(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.6:
	movq	_SOCK_NOSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_bit                        ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write_space for tc %p\n"

	.comm	_s_tcp_write_space_calls,4,2    ## @s_tcp_write_space_calls
L_.str.1:                               ## @.str.1
	.asciz	"tcp una %u\n"

	.comm	_rds_tcp_is_acked,4,2           ## @rds_tcp_is_acked
	.comm	_rds_wq,4,2                     ## @rds_wq
	.comm	_SOCK_NOSPACE,4,2               ## @SOCK_NOSPACE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_tcp_write_space            ; -- Begin function rds_tcp_write_space
	.p2align	2
_rds_tcp_write_space:                   ; @rds_tcp_write_space
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	add	x20, x0, #24
	mov	x0, x20
	bl	_read_lock
	ldr	x21, [x19, #32]
	cbz	x21, LBB0_3
; %bb.1:
	ldr	x22, [x21, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_rdsdebug
	ldr	x23, [x22]
Lloh2:
	adrp	x8, _s_tcp_write_space_calls@GOTPAGE
Lloh3:
	ldr	x8, [x8, _s_tcp_write_space_calls@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_rds_tcp_stats_inc
	mov	x0, x22
	bl	_rds_tcp_snd_una
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_rdsdebug
	mov	x0, x22
	bl	_rds_tcp_snd_una
	str	x0, [x22, #8]
	mov	x0, x22
	bl	_rds_tcp_snd_una
	mov	x1, x0
Lloh7:
	adrp	x8, _rds_tcp_is_acked@GOTPAGE
Lloh8:
	ldr	x8, [x8, _rds_tcp_is_acked@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_rds_send_drop_acked
	add	x0, x19, #28
	bl	_atomic_read
	ldr	w8, [x19, #8]
	cmp	w8, w0, lsl #1
	b.lt	LBB0_4
; %bb.2:
Lloh10:
	adrp	x8, _rds_wq@GOTPAGE
Lloh11:
	ldr	x8, [x8, _rds_wq@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	mov	x1, x21
	mov	w2, #0
	bl	_queue_delayed_work
	b	LBB0_4
LBB0_3:
	ldr	x23, [x19]
LBB0_4:
	mov	x0, x20
	bl	_read_unlock
	mov	x0, x19
	blr	x23
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _SOCK_NOSPACE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SOCK_NOSPACE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_set_bit
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write_space for tc %p\n"

	.comm	_s_tcp_write_space_calls,4,2    ; @s_tcp_write_space_calls
l_.str.1:                               ; @.str.1
	.asciz	"tcp una %u\n"

	.comm	_rds_tcp_is_acked,4,2           ; @rds_tcp_is_acked
	.comm	_rds_wq,4,2                     ; @rds_wq
	.comm	_SOCK_NOSPACE,4,2               ; @SOCK_NOSPACE
.subsections_via_symbols
