	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rds_release
_rds_release:                           ## @rds_release
	.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	(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	movq	%r15, %rdi
	callq	_rds_sk_to_rs
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_sock_orphan
	movq	%rbx, %rdi
	callq	_rds_clear_recv_queue
	movq	%rbx, %rdi
	callq	_rds_cong_remove_socket
	movq	%rbx, %rdi
	callq	_rds_remove_bound
	xorl	%eax, %eax
	callq	_synchronize_rcu
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_rds_send_drop_to
	movq	%rbx, %rdi
	callq	_rds_rdma_drop_keys
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_rds_notify_queue_get
	movq	_rds_sock_lock@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	leaq	4(%rbx), %rdi
	callq	_list_del_init
	movq	_rds_sock_count@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	%r12, %rdi
	callq	_spin_unlock_bh
	movl	(%rbx), %edi
	callq	_rds_trans_put
	movq	$0, (%r14)
	movq	%r15, %rdi
	callq	_sock_put
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rds_sock_lock,4,2              ## @rds_sock_lock
	.comm	_rds_sock_count,4,2             ## @rds_sock_count
	.no_dead_strip	_rds_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rds_release
_rds_release:                           ; @rds_release
	.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
	ldr	x19, [x0]
	cbz	x19, LBB0_2
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_rds_sk_to_rs
	mov	x21, x0
	mov	x0, x19
	bl	_sock_orphan
	mov	x0, x21
	bl	_rds_clear_recv_queue
	mov	x0, x21
	bl	_rds_cong_remove_socket
	mov	x0, x21
	bl	_rds_remove_bound
	bl	_synchronize_rcu
	mov	x0, x21
	mov	x1, #0
	bl	_rds_send_drop_to
	mov	x0, x21
	bl	_rds_rdma_drop_keys
	mov	x0, x21
	mov	x1, #0
	bl	_rds_notify_queue_get
Lloh0:
	adrp	x22, _rds_sock_lock@GOTPAGE
Lloh1:
	ldr	x22, [x22, _rds_sock_lock@GOTPAGEOFF]
	mov	x0, x22
	bl	_spin_lock_bh
	add	x0, x21, #4
	bl	_list_del_init
Lloh2:
	adrp	x8, _rds_sock_count@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rds_sock_count@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	mov	x0, x22
	bl	_spin_unlock_bh
	ldr	w0, [x21]
	bl	_rds_trans_put
	str	xzr, [x20]
	mov	x0, x19
	bl	_sock_put
LBB0_2:
	mov	w0, #0
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_rds_sock_lock,4,2              ; @rds_sock_lock
	.comm	_rds_sock_count,4,2             ; @rds_sock_count
	.no_dead_strip	_rds_release
.subsections_via_symbols
