	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_filter                     ## -- Begin function add_filter
	.p2align	4, 0x90
_add_filter:                            ## @add_filter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.1:
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.2:
	testl	%r8d, %r8d
	je	LBB0_6
## %bb.3:
	testl	%r9d, %r9d
	je	LBB0_6
## %bb.4:
	movl	%esi, %ebx
	movq	_PF_RULESET_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_prepare_rule
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.5:
	movq	_pfr@GOTPCREL(%rip), %rdx
	movl	%ebx, (%rdx)
	movq	_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DIOCADDRULE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ioctl
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$-1, %ecx
	sete	%al
	negl	%eax
	jmp	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_7:
	movl	$-1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_PF_RULESET_FILTER,4,2          ## @PF_RULESET_FILTER
	.comm	_pfr,4,2                        ## @pfr
	.comm	_dev,4,2                        ## @dev
	.comm	_DIOCADDRULE,4,2                ## @DIOCADDRULE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_filter                     ; -- Begin function add_filter
	.p2align	2
_add_filter:                            ; @add_filter
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x2, LBB0_6
; %bb.1:
	cbz	x3, LBB0_6
; %bb.2:
	cbz	w4, LBB0_6
; %bb.3:
	cbz	w5, LBB0_6
; %bb.4:
	mov	x19, x1
Lloh0:
	adrp	x8, _PF_RULESET_FILTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PF_RULESET_FILTER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_prepare_rule
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.5:
Lloh3:
	adrp	x2, _pfr@GOTPAGE
Lloh4:
	ldr	x2, [x2, _pfr@GOTPAGEOFF]
	str	w19, [x2]
Lloh5:
	adrp	x8, _dev@GOTPAGE
Lloh6:
	ldr	x8, [x8, _dev@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _DIOCADDRULE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DIOCADDRULE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_ioctl
	cmn	w0, #1
	csetm	w0, eq
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _errno@GOTPAGE
Lloh15:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh16:
	str	w8, [x9]
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_PF_RULESET_FILTER,4,2          ; @PF_RULESET_FILTER
	.comm	_pfr,4,2                        ; @pfr
	.comm	_dev,4,2                        ; @dev
	.comm	_DIOCADDRULE,4,2                ; @DIOCADDRULE
.subsections_via_symbols
