	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rdma_counter_free
_rdma_counter_free:                     ## @rdma_counter_free
	.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, %r12
	movq	(%rdi), %rax
	movq	24(%rdi), %rcx
	movq	(%rcx), %r15
	leaq	(%rax,%rax,2), %rbx
	leaq	(%r15,%rbx,8), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	decl	16(%r15,%rbx,8)
	jne	LBB0_3
## %bb.1:
	movq	8(%r15,%rbx,8), %rax
	movq	_RDMA_COUNTER_MODE_MANUAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	leaq	(%r15,%rbx,8), %rdi
	addq	$8, %rdi
	movq	_RDMA_COUNTER_MODE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	___counter_set_mode
LBB0_3:
	movq	%r14, %rdi
	callq	_mutex_unlock
	leaq	16(%r12), %rdi
	callq	_rdma_restrack_del
	movq	8(%r12), %rdi
	callq	_kfree
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_kfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RDMA_COUNTER_MODE_MANUAL,8,3   ## @RDMA_COUNTER_MODE_MANUAL
	.comm	_RDMA_COUNTER_MODE_NONE,4,2     ## @RDMA_COUNTER_MODE_NONE
	.no_dead_strip	_rdma_counter_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rdma_counter_free
_rdma_counter_free:                     ; @rdma_counter_free
	.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, x0
	ldr	x8, [x0, #24]
	ldr	x21, [x8]
	ldr	x22, [x0]
	mov	w8, #24
	madd	x20, x22, x8, x21
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x20, #16]
	subs	w8, w8, #1
	str	w8, [x20, #16]
	b.ne	LBB0_3
; %bb.1:
	mov	w8, #24
	madd	x0, x22, x8, x21
	ldr	x8, [x0, #8]!
Lloh0:
	adrp	x9, _RDMA_COUNTER_MODE_MANUAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RDMA_COUNTER_MODE_MANUAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _RDMA_COUNTER_MODE_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RDMA_COUNTER_MODE_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	___counter_set_mode
LBB0_3:
	mov	x0, x20
	bl	_mutex_unlock
	add	x0, x19, #16
	bl	_rdma_restrack_del
	ldr	x0, [x19, #8]
	bl	_kfree
	mov	x0, x19
	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	_kfree
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RDMA_COUNTER_MODE_MANUAL,8,3   ; @RDMA_COUNTER_MODE_MANUAL
	.comm	_RDMA_COUNTER_MODE_NONE,4,2     ; @RDMA_COUNTER_MODE_NONE
	.no_dead_strip	_rdma_counter_free
.subsections_via_symbols
