	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_sp1_ptp_ht_gc_collect
_mlxsw_sp1_ptp_ht_gc_collect:           ## @mlxsw_sp1_ptp_ht_gc_collect
	.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
	xorl	%eax, %eax
	callq	_local_bh_disable
	leaq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	leaq	12(%r15), %rdi
	leaq	24(%r14), %rsi
	movq	_mlxsw_sp1_ptp_unmatched_ht_params@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_rhltable_remove
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_spin_unlock
	testl	%r12d, %r12d
	jne	LBB0_4
## %bb.1:
	movq	(%r15), %rdi
	movq	(%rdi), %rax
	movq	8(%r14), %rcx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	8(%rax), %rcx
	cmpq	$0, 16(%r14)
	cmoveq	%rax, %rcx
	xorl	%eax, %eax
	cmpq	$0, (%r14)
	setne	%al
	incl	(%rcx,%rax,4)
LBB0_3:
	movq	%r14, %rsi
	callq	_mlxsw_sp1_ptp_unmatched_finish
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_local_bh_enable                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mlxsw_sp1_ptp_unmatched_ht_params,4,2 ## @mlxsw_sp1_ptp_unmatched_ht_params
	.no_dead_strip	_mlxsw_sp1_ptp_ht_gc_collect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_sp1_ptp_ht_gc_collect
_mlxsw_sp1_ptp_ht_gc_collect:           ; @mlxsw_sp1_ptp_ht_gc_collect
	.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
	bl	_local_bh_disable
	add	x21, x20, #8
	mov	x0, x21
	bl	_spin_lock
	add	x0, x20, #12
	add	x1, x19, #24
Lloh0:
	adrp	x8, _mlxsw_sp1_ptp_unmatched_ht_params@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mlxsw_sp1_ptp_unmatched_ht_params@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_rhltable_remove
	mov	x22, x0
	mov	x0, x21
	bl	_spin_unlock
	cbnz	w22, LBB0_4
; %bb.1:
	ldr	x0, [x20]
	ldr	x8, [x0]
	ldr	x9, [x19, #8]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x9, [x19, #16]
	add	x10, x8, #8
	cmp	x9, #0
	csel	x8, x8, x10, eq
	ldr	x9, [x19]
	cmp	x9, #0
	cset	w9, ne
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
LBB0_3:
	mov	x1, x19
	bl	_mlxsw_sp1_ptp_unmatched_finish
LBB0_4:
	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	_local_bh_enable
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mlxsw_sp1_ptp_unmatched_ht_params,4,2 ; @mlxsw_sp1_ptp_unmatched_ht_params
	.no_dead_strip	_mlxsw_sp1_ptp_ht_gc_collect
.subsections_via_symbols
