	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_filter_remove_id_safe      ## -- Begin function efx_filter_remove_id_safe
	.p2align	4, 0x90
_efx_filter_remove_id_safe:             ## @efx_filter_remove_id_safe
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	(%rdi), %rbx
	movl	%edx, %edi
	callq	_efx_filter_id_table_id
	movq	_EFX_FILTER_TABLE_COUNT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jae	LBB0_1
## %bb.2:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	8(%rbx), %rcx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rbx
	movl	%eax, %r14d
	shlq	$5, %r14
	movl	%r15d, %edi
	callq	_efx_filter_id_index
	cmpl	(%rbx,%r14), %eax
	jae	LBB0_1
## %bb.3:
	movl	%eax, %r12d
	movq	24(%rbx,%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	callq	_efx_filter_id_flags
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_lock_bh
	movl	16(%rbx,%r14), %esi
	movl	%r12d, %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movl	%r12d, %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmpl	%ecx, (%rdx,%rax,4)
	jne	LBB0_7
## %bb.5:
	leaq	(%rbx,%r14), %r15
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_efx_filter_table_clear_entry
	movq	%rbx, %rax
	xorl	%ebx, %ebx
	cmpq	$0, 8(%rax,%r14)
	jne	LBB0_8
## %bb.6:
	movq	%r15, %rdi
	callq	_efx_filter_table_reset_search_depth
	jmp	LBB0_8
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_7:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_bh
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EFX_FILTER_TABLE_COUNT,4,2     ## @EFX_FILTER_TABLE_COUNT
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_efx_filter_remove_id_safe      ; -- Begin function efx_filter_remove_id_safe
	.p2align	2
_efx_filter_remove_id_safe:             ; @efx_filter_remove_id_safe
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0]
	mov	x0, x2
	bl	_efx_filter_id_table_id
Lloh0:
	adrp	x8, _EFX_FILTER_TABLE_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EFX_FILTER_TABLE_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.hs	LBB0_6
; %bb.1:
	ldr	x25, [x19, #8]
	mov	w26, w0
	add	x22, x25, x26, lsl #5
	mov	x0, x24
	bl	_efx_filter_id_index
	ldr	w8, [x22]
	cmp	w0, w8
	b.hs	LBB0_6
; %bb.2:
	mov	x23, x0
	ldr	x27, [x22, #24]
	mov	x0, x24
	bl	_efx_filter_id_flags
	mov	x0, x19
	bl	_spin_lock_bh
	ldr	w1, [x22, #16]
	mov	x0, x23
	bl	_test_bit
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w8, [x27, w23, uxtw #2]
	cmp	w8, w21
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_efx_filter_table_clear_entry
	add	x8, x25, x26, lsl #5
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_10
; %bb.5:
	mov	w20, #0
	b	LBB0_8
LBB0_6:
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _ENOENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x19
	bl	_spin_unlock_bh
LBB0_9:
	mov	x0, x20
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x22
	bl	_efx_filter_table_reset_search_depth
	mov	w20, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EFX_FILTER_TABLE_COUNT,4,2     ; @EFX_FILTER_TABLE_COUNT
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
