	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_tcp_set_callbacks          ## -- Begin function rds_tcp_set_callbacks
	.p2align	4, 0x90
_rds_tcp_set_callbacks:                 ## @rds_tcp_set_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rsi), %rbx
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_rdsdebug
	movq	(%r15), %rdi
	addq	$16, %rdi
	callq	_write_lock_bh
	movq	_rds_tcp_tc_list_lock@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	leaq	32(%rbx), %rdi
	movq	_rds_tcp_tc_list@GOTPCREL(%rip), %rsi
	callq	_list_add_tail
	movq	_rds_tcp_tc_count@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%r12, %rdi
	callq	_spin_unlock
	movq	(%r15), %rdi
	movq	(%rdi), %rax
	movq	_rds_tcp_listen_data_ready@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	8(%rdi), %rax
	movq	%rax, (%rdi)
LBB0_2:
	movq	%r15, 24(%rbx)
	movq	%r14, 16(%rbx)
	movq	%rax, (%rbx)
	movl	24(%rdi), %eax
	movl	%eax, 12(%rbx)
	movl	20(%rdi), %eax
	movl	%eax, 8(%rbx)
	movq	%r14, 8(%rdi)
	movq	_rds_tcp_data_ready@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdi)
	movq	_rds_tcp_write_space@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdi)
	movq	_rds_tcp_state_change@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rdi)
	addq	$16, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_unlock_bh                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting sock %p callbacks to tc %p\n"

	.comm	_rds_tcp_tc_list_lock,4,2       ## @rds_tcp_tc_list_lock
	.comm	_rds_tcp_tc_list,4,2            ## @rds_tcp_tc_list
	.comm	_rds_tcp_tc_count,4,2           ## @rds_tcp_tc_count
	.comm	_rds_tcp_listen_data_ready,8,3  ## @rds_tcp_listen_data_ready
	.comm	_rds_tcp_data_ready,8,3         ## @rds_tcp_data_ready
	.comm	_rds_tcp_write_space,4,2        ## @rds_tcp_write_space
	.comm	_rds_tcp_state_change,4,2       ## @rds_tcp_state_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_tcp_set_callbacks          ; -- Begin function rds_tcp_set_callbacks
	.p2align	2
_rds_tcp_set_callbacks:                 ; @rds_tcp_set_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	x21, x0
	ldr	x20, [x1]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_rdsdebug
	ldr	x8, [x21]
	add	x0, x8, #16
	bl	_write_lock_bh
Lloh2:
	adrp	x22, _rds_tcp_tc_list_lock@GOTPAGE
Lloh3:
	ldr	x22, [x22, _rds_tcp_tc_list_lock@GOTPAGEOFF]
	mov	x0, x22
	bl	_spin_lock
	add	x0, x20, #32
Lloh4:
	adrp	x1, _rds_tcp_tc_list@GOTPAGE
Lloh5:
	ldr	x1, [x1, _rds_tcp_tc_list@GOTPAGEOFF]
	bl	_list_add_tail
Lloh6:
	adrp	x8, _rds_tcp_tc_count@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rds_tcp_tc_count@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x22
	bl	_spin_unlock
	ldr	x8, [x21]
	ldr	x9, [x8]
Lloh8:
	adrp	x10, _rds_tcp_listen_data_ready@GOTPAGE
Lloh9:
	ldr	x10, [x10, _rds_tcp_listen_data_ready@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	ldr	x9, [x8, #8]
	str	x9, [x8]
LBB0_2:
	stp	x19, x21, [x20, #16]
	str	x9, [x20]
	ldur	d0, [x8, #20]
	str	d0, [x20, #8]
Lloh11:
	adrp	x9, _rds_tcp_data_ready@GOTPAGE
Lloh12:
	ldr	x9, [x9, _rds_tcp_data_ready@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	stp	x9, x19, [x8]
Lloh14:
	adrp	x9, _rds_tcp_write_space@GOTPAGE
Lloh15:
	ldr	x9, [x9, _rds_tcp_write_space@GOTPAGEOFF]
Lloh16:
	adrp	x10, _rds_tcp_state_change@GOTPAGE
Lloh17:
	ldr	x10, [x10, _rds_tcp_state_change@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #20]
	add	x0, x8, #16
	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 AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting sock %p callbacks to tc %p\n"

	.comm	_rds_tcp_tc_list_lock,4,2       ; @rds_tcp_tc_list_lock
	.comm	_rds_tcp_tc_list,4,2            ; @rds_tcp_tc_list
	.comm	_rds_tcp_tc_count,4,2           ; @rds_tcp_tc_count
	.comm	_rds_tcp_listen_data_ready,8,3  ; @rds_tcp_listen_data_ready
	.comm	_rds_tcp_data_ready,8,3         ; @rds_tcp_data_ready
	.comm	_rds_tcp_write_space,4,2        ; @rds_tcp_write_space
	.comm	_rds_tcp_state_change,4,2       ; @rds_tcp_state_change
.subsections_via_symbols
