	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_tcp_restore_callbacks      ## -- Begin function rds_tcp_restore_callbacks
	.p2align	4, 0x90
_rds_tcp_restore_callbacks:             ## @rds_tcp_restore_callbacks
	.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	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_rdsdebug
	movq	(%r14), %rdi
	callq	_write_lock_bh
	movq	_rds_tcp_tc_list_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_spin_lock
	leaq	24(%rbx), %rdi
	callq	_list_del_init
	movq	_rds_tcp_tc_count@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	%r15, %rdi
	callq	_spin_unlock
	movq	$0, 16(%rbx)
	movl	8(%rbx), %eax
	movq	(%r14), %rdi
	movl	%eax, 24(%rdi)
	movl	4(%rbx), %eax
	movl	%eax, 20(%rdi)
	movl	(%rbx), %eax
	movl	%eax, 16(%rdi)
	movq	$0, 8(%rdi)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_unlock_bh                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"restoring sock %p callbacks from tc %p\n"

	.comm	_rds_tcp_tc_list_lock,4,2       ## @rds_tcp_tc_list_lock
	.comm	_rds_tcp_tc_count,4,2           ## @rds_tcp_tc_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_tcp_restore_callbacks      ; -- Begin function rds_tcp_restore_callbacks
	.p2align	2
_rds_tcp_restore_callbacks:             ; @rds_tcp_restore_callbacks
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_rdsdebug
	ldr	x0, [x20]
	bl	_write_lock_bh
Lloh2:
	adrp	x21, _rds_tcp_tc_list_lock@GOTPAGE
Lloh3:
	ldr	x21, [x21, _rds_tcp_tc_list_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock
	add	x0, x19, #24
	bl	_list_del_init
Lloh4:
	adrp	x8, _rds_tcp_tc_count@GOTPAGE
Lloh5:
	ldr	x8, [x8, _rds_tcp_tc_count@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	mov	x0, x21
	bl	_spin_unlock
	str	xzr, [x19, #16]
	ldr	w8, [x19, #8]
	ldr	x0, [x20]
	str	w8, [x0, #24]
	ldr	d0, [x19]
	str	d0, [x0, #16]
	str	xzr, [x0, #8]
	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	_write_unlock_bh
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"restoring sock %p callbacks from tc %p\n"

	.comm	_rds_tcp_tc_list_lock,4,2       ; @rds_tcp_tc_list_lock
	.comm	_rds_tcp_tc_count,4,2           ; @rds_tcp_tc_count
.subsections_via_symbols
