	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recursive_ruleset_purge
_recursive_ruleset_purge:               ## @recursive_ruleset_purge
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_errno@GOTPCREL(%rip), %r13
	movq	$0, (%r13)
	movl	$1, %edi
	movl	$56, %esi
	callq	_calloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	_PF_RULESET_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leal	1(%r15), %ebx
	movl	%ebx, %edi
	movl	$56, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movl	%ebx, (%r14)
	movl	$56, 4(%r14)
	movq	%rax, 48(%r14)
	testl	%r15d, %r15d
	movq	%rax, %rbx
	js	LBB0_6
## %bb.3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r13
	addq	$16, %r13
	movq	$-1, %r14
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	incq	%r14
	movl	%r14d, -8(%r13)
	movq	(%r13), %rdi
	movl	$8, %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rcx
	movq	%r12, %r8
	callq	_snprintf
	movq	_PF_RULESET_MAX@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	addq	$56, %r13
	cmpq	%r15, %r14
	jl	LBB0_4
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %r13
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_6:
	movslq	%r15d, %rax
	movq	_PF_RULESET_TABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imulq	$56, %rax, %rax
	movl	%ecx, 8(%rbx,%rax)
	movq	_dev@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_DIOCXBEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movl	(%r15), %edi
	movq	_DIOCXCOMMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	(%r13), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
LBB0_9:
	movl	$1, %edi
	movl	$56, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	%rax, %r12
	movq	24(%rax), %rdi
	leaq	L_.str(%rip), %rdx
	movl	$8, %esi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_snprintf
	movl	(%r15), %edi
	movq	_DIOCGETRULESETS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_ioctl
	testq	%rax, %rax
	je	LBB0_20
## %bb.11:
	movq	(%r13), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.12:
	movq	$0, (%r13)
	jmp	LBB0_15
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	xorl	%r12d, %r12d
LBB0_15:
	movq	(%r13), %rax
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.16:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_syslog
	jmp	LBB0_18
LBB0_17:
	xorl	%r12d, %r12d
LBB0_18:
	movq	%r14, %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_free
	movl	(%r13), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	32(%r12), %ebx
	testl	%ebx, %ebx
	je	LBB0_27
## %bb.21:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_DIOCGETRULESET@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, 32(%r12)
	movl	(%r15), %edi
	movl	(%r14), %esi
	movq	%r12, %rdx
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	24(%r12), %rdi
	movq	40(%r12), %rsi
	callq	_recursive_ruleset_purge
	testl	%eax, %eax
	jne	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	decl	%ebx
	jne	LBB0_22
## %bb.25:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_26:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_27:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_PF_RULESET_MAX,4,2             ## @PF_RULESET_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/%s"

	.comm	_PF_RULESET_TABLE,4,2           ## @PF_RULESET_TABLE
	.comm	_dev,4,2                        ## @dev
	.comm	_DIOCXBEGIN,4,2                 ## @DIOCXBEGIN
	.comm	_DIOCXCOMMIT,4,2                ## @DIOCXCOMMIT
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_DIOCGETRULESETS,4,2            ## @DIOCGETRULESETS
	.comm	_DIOCGETRULESET,4,2             ## @DIOCGETRULESET
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.1:                               ## @.str.1
	.asciz	"calloc failed"

	.no_dead_strip	_recursive_ruleset_purge
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recursive_ruleset_purge
_recursive_ruleset_purge:               ; @recursive_ruleset_purge
	.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	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x24, _errno@GOTPAGE
Lloh1:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	str	xzr, [x24]
	mov	w0, #1
	mov	w1, #56
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_12
; %bb.1:
Lloh2:
	adrp	x25, _PF_RULESET_MAX@GOTPAGE
Lloh3:
	ldr	x25, [x25, _PF_RULESET_MAX@GOTPAGEOFF]
	ldr	w26, [x25]
	add	w21, w26, #1
	mov	w27, #56
	mov	x0, x21
	mov	w1, #56
	bl	_calloc
	mov	x20, x0
	cbz	x0, LBB0_13
; %bb.2:
	stp	w21, w27, [x19]
	str	x20, [x19, #48]
	tbnz	w26, #31, LBB0_5
; %bb.3:
	add	x27, x20, #16
	mov	x28, #-1
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x28, x28, #1
	stur	w28, [x27, #-8]
	ldr	x0, [x27], #56
	mov	w1, #8
	mov	x2, x21
	mov	x3, x23
	mov	x4, x22
	bl	_snprintf
	ldrsw	x26, [x25]
	cmp	x28, x26
	b.lt	LBB0_4
LBB0_5:
Lloh6:
	adrp	x8, _PF_RULESET_TABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PF_RULESET_TABLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w9, #56
	smaddl	x9, w26, w9, x20
	str	w8, [x9, #8]
Lloh9:
	adrp	x25, _dev@GOTPAGE
Lloh10:
	ldr	x25, [x25, _dev@GOTPAGEOFF]
	ldr	w0, [x25]
Lloh11:
	adrp	x8, _DIOCXBEGIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DIOCXBEGIN@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_ioctl
Lloh14:
	adrp	x26, _EINVAL@GOTPAGE
Lloh15:
	ldr	x26, [x26, _EINVAL@GOTPAGEOFF]
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x25]
Lloh16:
	adrp	x8, _DIOCXCOMMIT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DIOCXCOMMIT@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_ioctl
	cbz	x0, LBB0_8
LBB0_7:
	ldr	x8, [x24]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_16
LBB0_8:
	mov	w0, #1
	mov	w1, #56
	bl	_calloc
	mov	x21, x0
	cbz	x0, LBB0_14
; %bb.9:
	ldr	x0, [x21, #24]
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #8
	mov	x3, x23
	mov	x4, x22
	bl	_snprintf
	ldr	w0, [x25]
Lloh21:
	adrp	x8, _DIOCGETRULESETS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DIOCGETRULESETS@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_ioctl
	cbz	x0, LBB0_18
; %bb.10:
	ldr	x8, [x24]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.11:
	str	xzr, [x24]
	b	LBB0_14
LBB0_12:
	mov	x20, #0
LBB0_13:
	mov	x21, #0
LBB0_14:
	ldr	x8, [x24]
Lloh24:
	adrp	x9, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x9, [x9, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.15:
Lloh27:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_syslog
	b	LBB0_17
LBB0_16:
	mov	x21, #0
LBB0_17:
	mov	x0, x19
	bl	_free
	mov	x0, x20
	bl	_free
	mov	x0, x21
	bl	_free
	ldr	w0, [x24]
	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_18:
	ldr	w22, [x21, #32]
	cbz	w22, LBB0_14
; %bb.19:
Lloh32:
	adrp	x23, _DIOCGETRULESET@GOTPAGE
Lloh33:
	ldr	x23, [x23, _DIOCGETRULESET@GOTPAGEOFF]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	str	wzr, [x21, #32]
	ldr	w0, [x25]
	ldr	w1, [x23]
	mov	x2, x21
	bl	_ioctl
	cbnz	x0, LBB0_17
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x0, [x21, #24]
	ldr	x1, [x21, #40]
	bl	_recursive_ruleset_purge
	cbnz	w0, LBB0_17
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	subs	w22, w22, #1
	b.ne	LBB0_20
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_PF_RULESET_MAX,4,2             ; @PF_RULESET_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/%s"

	.comm	_PF_RULESET_TABLE,4,2           ; @PF_RULESET_TABLE
	.comm	_dev,4,2                        ; @dev
	.comm	_DIOCXBEGIN,4,2                 ; @DIOCXBEGIN
	.comm	_DIOCXCOMMIT,4,2                ; @DIOCXCOMMIT
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_DIOCGETRULESETS,4,2            ; @DIOCGETRULESETS
	.comm	_DIOCGETRULESET,4,2             ; @DIOCGETRULESET
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.1:                               ; @.str.1
	.asciz	"calloc failed"

	.no_dead_strip	_recursive_ruleset_purge
.subsections_via_symbols
