	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfctl_clear_states             ## -- Begin function pfctl_clear_states
	.p2align	4, 0x90
_pfctl_clear_states:                    ## @pfctl_clear_states
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movl	%edi, %r15d
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movl	-28(%rbp), %edi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_strlcpy
	cmpl	$4, %eax
	jb	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	callq	_errx
LBB0_3:
	movq	_DIOCCLRSTATES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movl	%r15d, %edi
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_5:
	movq	_PF_OPT_QUIET@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-32(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid interface: %s"

	.comm	_DIOCCLRSTATES,4,2              ## @DIOCCLRSTATES
L_.str.1:                               ## @.str.1
	.asciz	"DIOCCLRSTATES"

	.comm	_PF_OPT_QUIET,4,2               ## @PF_OPT_QUIET
	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"%d states cleared\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pfctl_clear_states             ; -- Begin function pfctl_clear_states
	.p2align	2
_pfctl_clear_states:                    ; @pfctl_clear_states
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x21, x1
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	cbz	x21, LBB0_3
; %bb.1:
	ldr	w0, [sp, #12]
	mov	x1, x21
	mov	w2, #4
	bl	_strlcpy
	cmp	w0, #4
	b.lo	LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_errx
LBB0_3:
Lloh2:
	adrp	x8, _DIOCCLRSTATES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DIOCCLRSTATES@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_ioctl
	cbz	x0, LBB0_5
; %bb.4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_5:
Lloh7:
	adrp	x8, _PF_OPT_QUIET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PF_OPT_QUIET@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w19
	b.ne	LBB0_7
; %bb.6:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w2, [sp, #8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_7:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid interface: %s"

	.comm	_DIOCCLRSTATES,4,2              ; @DIOCCLRSTATES
l_.str.1:                               ; @.str.1
	.asciz	"DIOCCLRSTATES"

	.comm	_PF_OPT_QUIET,4,2               ; @PF_OPT_QUIET
	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"%d states cleared\n"

.subsections_via_symbols
