	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_link_level                     ## -- Begin function link_level
	.p2align	4, 0x90
_link_level:                            ## @link_level
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	cmpl	$1, %esi
	je	LBB0_11
## %bb.3:
	cmpl	$2, %esi
	jne	LBB0_17
## %bb.4:
	movq	_rules_num@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_17
## %bb.5:
	xorl	%ebx, %ebx
	movq	_network@GOTPCREL(%rip), %rdx
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_network@GOTPCREL(%rip), %rdx
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	movslq	(%r14), %rax
	addq	$12, %rbx
	cmpq	%rax, %r15
	jge	LBB0_18
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %r13
	cmpl	$2, (%r13,%rbx)
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	leaq	(%rbx,%r13), %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_check_rule
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r13,%rbx), %eax
	cmpl	%r12d, %eax
	cmovgl	%eax, %r12d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_9
LBB0_1:
	movl	$32, -44(%rbp)                  ## 4-byte Folded Spill
	jmp	LBB0_18
LBB0_11:
	movq	_rules_num@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_17
## %bb.12:
	xorl	%ebx, %ebx
	movq	_network@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r15
	movslq	(%r12), %rax
	addq	$12, %rbx
	cmpq	%rax, %r15
	jge	LBB0_18
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %r13
	cmpl	$1, (%r13,%rbx)
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	(%rbx,%r13), %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_check_rule
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	4(%r13,%rbx), %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %eax
	cmovgl	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_16
LBB0_17:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_18:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rules_num,4,2                  ## @rules_num
	.comm	_network,8,3                    ## @network
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_link_level                     ; -- Begin function link_level
	.p2align	2
_link_level:                            ; @link_level
	.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
	cbz	w1, LBB0_9
; %bb.1:
	mov	x19, x0
	cmp	w1, #1
	b.eq	LBB0_10
; %bb.2:
	cmp	w1, #2
	b.ne	LBB0_16
; %bb.3:
Lloh0:
	adrp	x21, _rules_num@GOTPAGE
Lloh1:
	ldr	x21, [x21, _rules_num@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.4:
	mov	x22, #0
	mov	x23, #0
	mov	w20, #0
Lloh2:
	adrp	x24, _network@GOTPAGE
Lloh3:
	ldr	x24, [x24, _network@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #12
	cmp	x23, x8
	b.ge	LBB0_17
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x24]
	add	x0, x25, x22
	ldr	w8, [x0]
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x1, x19
	bl	_check_rule
	cbz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x25, x22
	ldr	w8, [x8, #8]
	cmp	w8, w20
	csel	w20, w8, w20, gt
	b	LBB0_5
LBB0_9:
	mov	w20, #32
	b	LBB0_17
LBB0_10:
Lloh4:
	adrp	x21, _rules_num@GOTPAGE
Lloh5:
	ldr	x21, [x21, _rules_num@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.11:
	mov	x22, #0
	mov	x23, #0
	mov	w20, #0
Lloh6:
	adrp	x24, _network@GOTPAGE
Lloh7:
	ldr	x24, [x24, _network@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #12
	cmp	x23, x8
	b.ge	LBB0_17
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x25, [x24]
	add	x0, x25, x22
	ldr	w8, [x0]
	cmp	w8, #1
	b.ne	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x1, x19
	bl	_check_rule
	cbz	x0, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x8, x25, x22
	ldr	w8, [x8, #4]
	cmp	w8, w20
	csel	w20, w8, w20, gt
	b	LBB0_12
LBB0_16:
	mov	w20, #0
LBB0_17:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_rules_num,4,2                  ; @rules_num
	.comm	_network,8,3                    ; @network
.subsections_via_symbols
