	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kernel_rules_generate          ## -- Begin function kernel_rules_generate
	.p2align	4, 0x90
_kernel_rules_generate:                 ## @kernel_rules_generate
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r14
	movq	(%r14), %rdi
	movl	$4, %esi
	callq	_hccalloc
	movq	%rax, %rbx
	movq	_RP_RULE_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_hcmalloc
	movq	%rax, %r13
	cmpq	$0, (%r14)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	8(%r14), %edx
	movl	12(%r14), %esi
	movq	%r13, %rdi
	callq	_generate_random_rule
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_cpu_rule_to_kernel_rule
	incq	%r12
	addq	$4, %rbx
	cmpq	(%r14), %r12
	jl	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r12d, %r12d
LBB0_4:
	movq	%r13, %rdi
	callq	_hcfree
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RP_RULE_SIZE,4,2               ## @RP_RULE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kernel_rules_generate          ; -- Begin function kernel_rules_generate
	.p2align	2
_kernel_rules_generate:                 ; @kernel_rules_generate
	.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	x20, x2
	mov	x19, x1
	ldr	x24, [x0]
	ldr	x0, [x24]
	mov	w1, #4
	bl	_hccalloc
	mov	x21, x0
Lloh0:
	adrp	x25, _RP_RULE_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _RP_RULE_SIZE@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_hcmalloc
	mov	x22, x0
	ldr	x8, [x24]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x26, #0
	mov	x23, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w2, [x25]
	mov	x0, x22
	mov	w1, #0
	bl	_memset
	ldp	w2, w1, [x24, #8]
	mov	x0, x22
	bl	_generate_random_rule
	mov	x1, x0
	mov	x0, x22
	mov	x2, x23
	bl	_cpu_rule_to_kernel_rule
	add	x26, x26, #1
	ldr	x8, [x24]
	add	x23, x23, #4
	cmp	x26, x8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x26, #0
LBB0_4:
	mov	x0, x22
	bl	_hcfree
	str	x26, [x20]
	str	x21, [x19]
	mov	w0, #0
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RP_RULE_SIZE,4,2               ; @RP_RULE_SIZE
.subsections_via_symbols
