	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_tcp_conn_shutdown          ## -- Begin function rds_tcp_conn_shutdown
	.p2align	4, 0x90
_rds_tcp_conn_shutdown:                 ## @rds_tcp_conn_shutdown
	.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, %rsi
	movq	(%rdi), %r14
	movq	24(%r14), %rbx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	callq	_rdsdebug
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rax
	movq	_RCV_SHUTDOWN@GOTPCREL(%rip), %rcx
	movq	_SEND_SHUTDOWN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movq	%rbx, %rdi
	callq	*(%rax)
	movl	(%rbx), %edi
	callq	_lock_sock
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_rds_tcp_restore_callbacks
	movl	(%rbx), %edi
	callq	_release_sock
	movq	%rbx, %rdi
	callq	_sock_release
LBB0_2:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_rds_inc_put
	movq	$0, 16(%r14)
LBB0_4:
	movl	$4, (%r14)
	movq	$0, 8(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"shutting down conn %p tc %p sock %p\n"

	.comm	_RCV_SHUTDOWN,4,2               ## @RCV_SHUTDOWN
	.comm	_SEND_SHUTDOWN,4,2              ## @SEND_SHUTDOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_tcp_conn_shutdown          ; -- Begin function rds_tcp_conn_shutdown
	.p2align	2
_rds_tcp_conn_shutdown:                 ; @rds_tcp_conn_shutdown
	.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	x1, x0
	ldr	x19, [x0]
	ldr	x20, [x19, #24]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_rdsdebug
	cbz	x20, LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
Lloh2:
	adrp	x9, _RCV_SHUTDOWN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RCV_SHUTDOWN@GOTPAGEOFF]
	ldr	x8, [x8]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _SEND_SHUTDOWN@GOTPAGE
Lloh6:
	ldr	x10, [x10, _SEND_SHUTDOWN@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	orr	w1, w10, w9
	mov	x0, x20
	blr	x8
	ldr	w0, [x20]
	bl	_lock_sock
	mov	x0, x20
	mov	x1, x19
	bl	_rds_tcp_restore_callbacks
	ldr	w0, [x20]
	bl	_release_sock
	mov	x0, x20
	bl	_sock_release
LBB0_2:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_rds_inc_put
	str	xzr, [x19, #16]
LBB0_4:
	mov	w8, #4
	str	w8, [x19]
	str	xzr, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"shutting down conn %p tc %p sock %p\n"

	.comm	_RCV_SHUTDOWN,4,2               ; @RCV_SHUTDOWN
	.comm	_SEND_SHUTDOWN,4,2              ; @SEND_SHUTDOWN
.subsections_via_symbols
