	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_filter_count
_get_filter_count:                      ## @get_filter_count
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rcx, %r15
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	_TP_CMM_TCB_BASE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_t4_read_reg
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_is_hashfilter
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.1:
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	cmpl	%r12d, 8(%r13)
	jbe	LBB0_8
## %bb.3:
	movq	32(%r13), %rax
	movl	%r12d, %ecx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	jne	LBB0_11
	jmp	LBB0_4
LBB0_6:
	movl	12(%r13), %eax
	movl	16(%r13), %ecx
	addl	%eax, %ecx
	decl	%ecx
	cmpl	%r12d, %ecx
	je	LBB0_9
## %bb.7:
	cmpl	%r12d, %eax
	ja	LBB0_9
LBB0_8:
	movq	_E2BIG@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	movq	24(%r13), %rax
	movl	%r12d, %ecx
	cmpl	$0, 4(%rax,%rcx,8)
	je	LBB0_4
## %bb.10:
	leaq	(%rax,%rcx,8), %rax
LBB0_11:
	movq	_TCB_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	imull	(%rax), %r12d
	addl	%r14d, %r12d
	movq	%r13, %rdi
	callq	_spin_lock
	movl	4(%r13), %edi
	callq	_is_t4
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	$0, (%r15)
	movq	_MEMWIN_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MEM_EDC0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	$16, %r12d
	movq	_T4_MEMORY_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	-48(%rbp), %r9
	movq	%r13, %rdi
	movl	%r12d, %ecx
	movl	$4, %r8d
	callq	_t4_memory_rw
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_19
## %bb.13:
	movl	-48(%rbp), %edi
	callq	_be64_to_cpu
	jmp	LBB0_18
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_14:
	movq	_MEMWIN_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MEM_EDC0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leal	16(%r12), %ecx
	movq	_T4_MEMORY_READ@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	%eax, (%rsp)
	leaq	-52(%rbp), %r9
	movq	%r13, %rdi
	movl	$4, %r8d
	callq	_t4_memory_rw
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movl	-52(%rbp), %edi
	callq	_be64_to_cpu
	movq	%rax, (%r15)
	movq	_MEMWIN_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MEM_EDC0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	$24, %r12d
	movl	(%r14), %eax
	movl	%eax, (%rsp)
	leaq	-44(%rbp), %r9
	movq	%r13, %rdi
	movl	%r12d, %ecx
	movl	$4, %r8d
	callq	_t4_memory_rw
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_19
## %bb.17:
	movl	-44(%rbp), %edi
	callq	_be32_to_cpu
LBB0_18:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_19
LBB0_15:
	movl	%eax, %ebx
LBB0_19:
	movq	%r13, %rdi
	callq	_spin_unlock
LBB0_20:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TP_CMM_TCB_BASE_A,4,2          ## @TP_CMM_TCB_BASE_A
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_E2BIG,4,2                      ## @E2BIG
	.comm	_TCB_SIZE,4,2                   ## @TCB_SIZE
	.comm	_MEMWIN_NIC,4,2                 ## @MEMWIN_NIC
	.comm	_MEM_EDC0,4,2                   ## @MEM_EDC0
	.comm	_T4_MEMORY_READ,4,2             ## @T4_MEMORY_READ
	.no_dead_strip	_get_filter_count
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_filter_count
_get_filter_count:                      ; @get_filter_count
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x4
	mov	x21, x3
	mov	x20, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _TP_CMM_TCB_BASE_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TP_CMM_TCB_BASE_A@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_t4_read_reg
	mov	x22, x0
	mov	x0, x19
	bl	_is_hashfilter
	cbz	w24, LBB0_5
; %bb.1:
	cbz	x0, LBB0_5
; %bb.2:
	ldr	w8, [x19, #8]
	cmp	w8, w23
	b.ls	LBB0_10
; %bb.3:
	ldr	x8, [x19, #32]
	ldr	x8, [x8, w23, uxtw #3]
	cbnz	x8, LBB0_7
LBB0_4:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	ldp	w8, w9, [x19, #12]
	add	w9, w8, w9
	sub	w9, w9, #1
	cmp	w9, w23
	ccmp	w8, w23, #2, ne
	b.ls	LBB0_10
; %bb.6:
	ldr	x8, [x19, #24]
	add	x8, x8, w23, uxtw #3
	ldr	w9, [x8, #4]
	cbz	w9, LBB0_4
LBB0_7:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _TCB_SIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TCB_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	madd	w23, w9, w8, w22
	mov	x0, x19
	bl	_spin_lock
	ldr	w0, [x19, #4]
	bl	_is_t4
	cbz	x0, LBB0_12
; %bb.8:
	str	xzr, [x21]
Lloh8:
	adrp	x8, _MEMWIN_NIC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MEMWIN_NIC@GOTPAGEOFF]
Lloh10:
	adrp	x9, _MEM_EDC0@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MEM_EDC0@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	ldr	w2, [x9]
	add	w3, w23, #16
Lloh14:
	adrp	x8, _T4_MEMORY_READ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _T4_MEMORY_READ@GOTPAGEOFF]
Lloh16:
	ldr	w6, [x8]
	add	x5, sp, #8
	mov	x0, x19
	mov	w4, #4
	bl	_t4_memory_rw
	mov	x22, x0
	tbnz	w0, #31, LBB0_17
; %bb.9:
	ldr	w0, [sp, #8]
	bl	_be64_to_cpu
	b	LBB0_15
LBB0_10:
Lloh17:
	adrp	x8, _E2BIG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E2BIG@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_18
LBB0_12:
Lloh19:
	adrp	x24, _MEMWIN_NIC@GOTPAGE
Lloh20:
	ldr	x24, [x24, _MEMWIN_NIC@GOTPAGEOFF]
Lloh21:
	adrp	x25, _MEM_EDC0@GOTPAGE
Lloh22:
	ldr	x25, [x25, _MEM_EDC0@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	w2, [x25]
	add	w3, w23, #16
Lloh23:
	adrp	x26, _T4_MEMORY_READ@GOTPAGE
Lloh24:
	ldr	x26, [x26, _T4_MEMORY_READ@GOTPAGEOFF]
	ldr	w6, [x26]
	add	x5, sp, #12
	mov	x0, x19
	mov	w4, #4
	bl	_t4_memory_rw
	tbnz	w0, #31, LBB0_16
; %bb.13:
	ldr	w0, [sp, #12]
	bl	_be64_to_cpu
	str	x0, [x21]
	ldr	w1, [x24]
	ldr	w2, [x25]
	add	w3, w23, #24
	ldr	w6, [x26]
	add	x5, sp, #4
	mov	x0, x19
	mov	w4, #4
	bl	_t4_memory_rw
	mov	x22, x0
	tbnz	w0, #31, LBB0_17
; %bb.14:
	ldr	w0, [sp, #4]
	bl	_be32_to_cpu
LBB0_15:
	str	x0, [x20]
	b	LBB0_17
LBB0_16:
	mov	x22, x0
LBB0_17:
	mov	x0, x19
	bl	_spin_unlock
LBB0_18:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TP_CMM_TCB_BASE_A,4,2          ; @TP_CMM_TCB_BASE_A
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_E2BIG,4,2                      ; @E2BIG
	.comm	_TCB_SIZE,4,2                   ; @TCB_SIZE
	.comm	_MEMWIN_NIC,4,2                 ; @MEMWIN_NIC
	.comm	_MEM_EDC0,4,2                   ; @MEM_EDC0
	.comm	_T4_MEMORY_READ,4,2             ; @T4_MEMORY_READ
	.no_dead_strip	_get_filter_count
.subsections_via_symbols
