	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_filter_rpl                     ## -- Begin function filter_rpl
	.p2align	4, 0x90
_filter_rpl:                            ## @filter_rpl
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_GET_TID
	movq	24(%rbx), %r13
	testq	%r13, %r13
	je	LBB0_16
## %bb.1:
	movl	12(%rbx), %ecx
	addl	8(%rbx), %ecx
	movl	16(%rbx), %edx
	movl	%eax, %r15d
	subl	%edx, %r15d
	cmpl	%ecx, %r15d
	jae	LBB0_16
## %bb.2:
	movslq	%r15d, %r12
	shlq	$5, %r12
	cmpl	%eax, (%r13,%r12)
	jne	LBB0_16
## %bb.3:
	leaq	(%r12,%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	callq	_TCB_COOKIE_G
	movq	24(%r13,%r12), %r14
	movq	$0, 24(%r13,%r12)
	movq	_FW_FILTER_WR_FLT_DELETED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_clear_filter
	testq	%r14, %r14
	je	LBB0_16
## %bb.5:
	movl	$0, (%r14)
	jmp	LBB0_15
LBB0_6:
	movq	_FW_FILTER_WR_FLT_ADDED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_13
## %bb.7:
	cmpq	$0, 16(%r13,%r12)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_configure_filter_smac
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_9
## %bb.11:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_clear_filter
	testq	%r14, %r14
	je	LBB0_16
## %bb.12:
	movl	%r15d, (%r14)
	jmp	LBB0_15
LBB0_13:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_dev_err
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_clear_filter
	testq	%r14, %r14
	je	LBB0_16
## %bb.14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_15
LBB0_9:
	movq	$0, 8(%r13,%r12)
	movl	$1, 4(%r13,%r12)
	testq	%r14, %r14
	je	LBB0_16
## %bb.10:
	movl	$0, (%r14)
	movl	%r15d, 4(%r14)
LBB0_15:
	addq	$8, %r14
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_complete                       ## TAILCALL
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_FILTER_WR_FLT_DELETED,4,2   ## @FW_FILTER_WR_FLT_DELETED
	.comm	_FW_FILTER_WR_FLT_ADDED,4,2     ## @FW_FILTER_WR_FLT_ADDED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"filter %u setup failed with error %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_filter_rpl                     ; -- Begin function filter_rpl
	.p2align	2
_filter_rpl:                            ; @filter_rpl
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x1
	mov	x19, x0
	mov	x0, x1
	bl	_GET_TID
	ldr	x24, [x19, #24]
	cbz	x24, LBB0_16
; %bb.1:
	ldp	w8, w9, [x19, #8]
	add	w8, w9, w8
	ldr	w9, [x19, #16]
	sub	w20, w0, w9
	cmp	w20, w8
	b.hs	LBB0_16
; %bb.2:
	sxtw	x25, w20
	add	x21, x24, x25, lsl #5
	ldr	w8, [x21]
	cmp	w8, w0
	b.ne	LBB0_16
; %bb.3:
	ldr	w0, [x22]
	bl	_TCB_COOKIE_G
	ldr	x23, [x21, #24]
	str	xzr, [x21, #24]
Lloh0:
	adrp	x8, _FW_FILTER_WR_FLT_DELETED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_FILTER_WR_FLT_DELETED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x21
	bl	_clear_filter
	cbz	x23, LBB0_16
; %bb.5:
	str	wzr, [x23]
	b	LBB0_15
LBB0_6:
	mov	x3, x0
Lloh3:
	adrp	x8, _FW_FILTER_WR_FLT_ADDED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_FILTER_WR_FLT_ADDED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_11
; %bb.7:
	add	x24, x24, x25, lsl #5
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_13
; %bb.8:
	mov	x0, x19
	mov	x1, x21
	bl	_configure_filter_smac
	cbz	w0, LBB0_13
; %bb.9:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x21
	bl	_clear_filter
	cbz	x23, LBB0_16
; %bb.10:
	str	w22, [x23]
	b	LBB0_15
LBB0_11:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	mov	x0, x19
	mov	x1, x21
	bl	_clear_filter
	cbz	x23, LBB0_16
; %bb.12:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x23]
	b	LBB0_15
LBB0_13:
	str	xzr, [x24, #8]
	mov	w8, #1
	str	w8, [x24, #4]
	cbz	x23, LBB0_16
; %bb.14:
	stp	wzr, w20, [x23]
LBB0_15:
	add	x0, x23, #8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_complete
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_FILTER_WR_FLT_DELETED,4,2   ; @FW_FILTER_WR_FLT_DELETED
	.comm	_FW_FILTER_WR_FLT_ADDED,4,2     ; @FW_FILTER_WR_FLT_ADDED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"filter %u setup failed with error %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
