	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_stale_rulesets
_remove_stale_rulesets:                 ## @remove_stale_rulesets
	.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
	leaq	-64(%rbp), %r14
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	-48(%rbp), %edi
	movq	_anchorname@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edx
	callq	_strlcpy
	movq	_dev@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_DIOCGETRULESETS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	setne	%bl
	jmp	LBB0_17
LBB0_2:
	movq	-56(%rbp), %r14
	testq	%r14, %r14
	je	LBB0_17
## %bb.3:
	decq	%r14
	movq	_errno@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_anchorname@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi
	callq	_recursive_ruleset_purge
	testq	%rax, %rax
	jne	LBB0_14
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$-1, %r14
	jae	LBB0_16
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, -56(%rbp)
	movl	(%r15), %edi
	movq	_DIOCGETRULESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	$0, (%r13)
	movq	-64(%rbp), %r12
	movq	%r12, %rdi
	movl	$40, %esi
	callq	_strchr
	leaq	1(%rax), %rbx
	testq	%rax, %rax
	cmoveq	%r12, %rbx
	movq	%rbx, %rdi
	leaq	-72(%rbp), %rsi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, %r12
	movq	-64(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, (%r13)
	jne	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %rcx
	movzbl	(%rcx), %ecx
	testb	%cl, %cl
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rax, %rbx
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpb	$41, %cl
	jne	LBB0_14
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_kill
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rax
	movq	_EPERM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_getpid
	cmpq	%rax, %r12
	je	LBB0_13
	jmp	LBB0_15
LBB0_14:
	movl	$1, %ebx
	jmp	LBB0_17
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_anchorname,4,2                 ## @anchorname
	.comm	_dev,4,2                        ## @dev
	.comm	_DIOCGETRULESETS,4,2            ## @DIOCGETRULESETS
	.comm	_errno,8,3                      ## @errno
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_DIOCGETRULESET,4,2             ## @DIOCGETRULESET
	.comm	_EPERM,8,3                      ## @EPERM
	.no_dead_strip	_remove_stale_rulesets
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_stale_rulesets
_remove_stale_rulesets:                 ; @remove_stale_rulesets
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w0, [sp, #24]
Lloh0:
	adrp	x21, _anchorname@GOTPAGE
Lloh1:
	ldr	x21, [x21, _anchorname@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #4
	bl	_strlcpy
Lloh2:
	adrp	x22, _dev@GOTPAGE
Lloh3:
	ldr	x22, [x22, _dev@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh4:
	adrp	x8, _DIOCGETRULESETS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DIOCGETRULESETS@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cbz	x0, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _errno@GOTPAGE
Lloh8:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _EINVAL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	b	LBB0_16
LBB0_2:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_14
; %bb.3:
	sub	x23, x8, #1
Lloh13:
	adrp	x24, _DIOCGETRULESET@GOTPAGE
Lloh14:
	ldr	x24, [x24, _DIOCGETRULESET@GOTPAGEOFF]
Lloh15:
	adrp	x25, _errno@GOTPAGE
Lloh16:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
Lloh17:
	adrp	x26, _EPERM@GOTPAGE
Lloh18:
	ldr	x26, [x26, _EPERM@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x21]
	ldr	x1, [sp, #8]
	bl	_recursive_ruleset_purge
	cbnz	x0, LBB0_15
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	x23, x23, #1
	cmn	x23, #1
	b.eq	LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	x23, [sp, #16]
	ldr	w0, [x22]
	ldr	w1, [x24]
	add	x2, sp, #8
	bl	_ioctl
	cbnz	x0, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x25]
	ldr	x19, [sp, #8]
	mov	x0, x19
	mov	w1, #40
	bl	_strchr
	cmp	x0, #0
	csinc	x20, x19, x0, eq
	mov	x1, sp
	mov	x0, x20
	mov	w2, #10
	bl	_strtoul
	ldr	x8, [sp, #8]
	ldrb	w9, [x8]
	ldr	x10, [x25]
	cmp	w9, #0
	ccmp	x10, #0, #0, ne
	b.ne	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x19, x0
	ldr	x9, [sp]
	ldrb	w9, [x9]
	cbz	w9, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x20, x8
	b.eq	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	w9, #41
	b.ne	LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_kill
	cbz	x0, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_getpid
	cmp	x19, x0
	b.eq	LBB0_4
	b	LBB0_5
LBB0_14:
	mov	w0, #0
	b	LBB0_16
LBB0_15:
	mov	w0, #1
LBB0_16:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_anchorname,4,2                 ; @anchorname
	.comm	_dev,4,2                        ; @dev
	.comm	_DIOCGETRULESETS,4,2            ; @DIOCGETRULESETS
	.comm	_errno,8,3                      ; @errno
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_DIOCGETRULESET,4,2             ; @DIOCGETRULESET
	.comm	_EPERM,8,3                      ; @EPERM
	.no_dead_strip	_remove_stale_rulesets
.subsections_via_symbols
