	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_tcp_listen_stop            ## -- Begin function rds_tcp_listen_stop
	.p2align	4, 0x90
_rds_tcp_listen_stop:                   ## @rds_tcp_listen_stop
	.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	_rds_tcp_listen_sock@GOTPCREL(%rip), %r15
	movq	(%r15), %r14
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	movq	(%r14), %rbx
	movq	%rbx, %rdi
	callq	_lock_sock
	movq	%rbx, %rdi
	callq	_write_lock_bh
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, 16(%rbx)
	movq	$0, 8(%rbx)
LBB0_3:
	movq	%rbx, %rdi
	callq	_write_unlock_bh
	movq	%rbx, %rdi
	callq	_release_sock
	movq	_rds_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_flush_workqueue
	movq	%r14, %rdi
	callq	_sock_release
	movq	$0, (%r15)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rds_tcp_listen_sock,8,3        ## @rds_tcp_listen_sock
	.comm	_rds_wq,4,2                     ## @rds_wq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_tcp_listen_stop            ; -- Begin function rds_tcp_listen_stop
	.p2align	2
_rds_tcp_listen_stop:                   ; @rds_tcp_listen_stop
	.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
Lloh0:
	adrp	x21, _rds_tcp_listen_sock@GOTPAGE
Lloh1:
	ldr	x21, [x21, _rds_tcp_listen_sock@GOTPAGEOFF]
	ldr	x19, [x21]
	cbz	x19, LBB0_4
; %bb.1:
	ldr	x20, [x19]
	mov	x0, x20
	bl	_lock_sock
	mov	x0, x20
	bl	_write_lock_bh
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_3
; %bb.2:
	stp	xzr, x8, [x20, #8]
LBB0_3:
	mov	x0, x20
	bl	_write_unlock_bh
	mov	x0, x20
	bl	_release_sock
Lloh2:
	adrp	x8, _rds_wq@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rds_wq@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_flush_workqueue
	mov	x0, x19
	bl	_sock_release
	str	xzr, [x21]
LBB0_4:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_rds_tcp_listen_sock,8,3        ; @rds_tcp_listen_sock
	.comm	_rds_wq,4,2                     ; @rds_wq
.subsections_via_symbols
