	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_network_file              ## -- Begin function read_network_file
	.p2align	4, 0x90
_read_network_file:                     ## @read_network_file
	.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	$264, %rsp                      ## imm = 0x108
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_rules_num@GOTPCREL(%rip), %r15
	movq	_MAX_RULES@GOTPCREL(%rip), %r12
	leaq	-304(%rbp), %r14
	movq	_network@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	cmpl	(%r12), %eax
	jge	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	$255, %esi
	movq	%rbx, %rdx
	callq	_fgets
	movslq	(%r15), %rsi
	shlq	$2, %rsi
	addq	(%r13), %rsi
	movq	%r14, %rdi
	callq	_read_rule
	addl	%eax, (%r15)
	movq	%rbx, %rdi
	callq	_feof
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_rules_num@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_8:
	movq	%rbx, %rdi
	callq	_fclose
	movq	_rules_num@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	addq	$264, %rsp                      ## imm = 0x108
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rt"

	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"can not open network file (error %m)\n"

	.comm	_rules_num,4,2                  ## @rules_num
	.comm	_MAX_RULES,4,2                  ## @MAX_RULES
	.comm	_network,8,3                    ## @network
	.comm	_verbosity,8,3                  ## @verbosity
L_.str.2:                               ## @.str.2
	.asciz	"Read %d rules from network description file\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_network_file              ; -- Begin function read_network_file
	.p2align	2
_read_network_file:                     ; @read_network_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #336
	.cfi_def_cfa_offset 336
	stp	x28, x27, [sp, #272]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #288]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #304]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #320]            ; 16-byte Folded Spill
	add	x29, sp, #320
	.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 w27, -56
	.cfi_offset w28, -64
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	bl	_feof
Lloh5:
	adrp	x20, _rules_num@GOTPAGE
Lloh6:
	ldr	x20, [x20, _rules_num@GOTPAGEOFF]
	cbnz	w0, LBB0_5
; %bb.2:
Lloh7:
	adrp	x21, _MAX_RULES@GOTPAGE
Lloh8:
	ldr	x21, [x21, _MAX_RULES@GOTPAGEOFF]
Lloh9:
	adrp	x22, _network@GOTPAGE
Lloh10:
	ldr	x22, [x22, _network@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ge	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #8
	mov	w1, #255
	mov	x2, x19
	bl	_fgets
	ldr	x8, [x22]
	ldrsw	x9, [x20]
	add	x1, x8, x9, lsl #2
	add	x0, sp, #8
	bl	_read_rule
	ldr	w8, [x20]
	add	w8, w8, w0
	str	w8, [x20]
	mov	x0, x19
	bl	_feof
	cbz	w0, LBB0_3
LBB0_5:
Lloh11:
	adrp	x8, _verbosity@GOTPAGE
Lloh12:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_7:
	mov	x0, x19
	bl	_fclose
	ldr	w0, [x20]
	b	LBB0_9
LBB0_8:
Lloh19:
	adrp	x8, _stderr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	mov	w0, #0
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #320]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #304]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #288]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #272]            ; 16-byte Folded Reload
	add	sp, sp, #336
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rt"

	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"can not open network file (error %m)\n"

	.comm	_rules_num,4,2                  ; @rules_num
	.comm	_MAX_RULES,4,2                  ; @MAX_RULES
	.comm	_network,8,3                    ; @network
	.comm	_verbosity,8,3                  ; @verbosity
l_.str.2:                               ; @.str.2
	.asciz	"Read %d rules from network description file\n"

.subsections_via_symbols
