	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_offload_policy
_parse_offload_policy:                  ## @parse_offload_policy
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r13
	movq	_DLT_EN10MB@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$128, %esi
	callq	_pcap_open_dead
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	$0, -88(%rbp)
	movl	$0, (%r14)
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	$0, 8(%r14)
	movq	$0, -56(%rbp)
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %r12
	leaq	-88(%rbp), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_getline
	cmpq	$-1, %rax
	je	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r15
	incl	%ebx
	movq	-56(%rbp), %rdi
	movq	%rax, %rsi
	callq	_isempty_line
	testq	%rax, %rax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx), %ecx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpl	%eax, %ecx
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_REALLOC_STRIDE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movq	8(%rdx), %rdi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leal	(,%rax,4), %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_24
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	movl	(%rcx), %ecx
	jmp	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rdx), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %r8
	movq	-56(%rbp), %rsi
	movl	%ebx, %edi
	movq	%r15, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_parse_offload_policy_line
	testl	%eax, %eax
	jne	LBB0_23
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	jmp	LBB0_3
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_warn
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_22
LBB0_12:
	movq	-56(%rbp), %rdi
	callq	_free
	movq	%r13, %rdi
	callq	_feof
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:
	xorl	%r15d, %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$0, (%rbx)
	jne	LBB0_19
## %bb.14:
	leaq	L_.str.6(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_warnx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_19
LBB0_15:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_warnx
	movq	%r13, %rdi
	callq	_fclose
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_22
LBB0_16:
	leaq	L_.str.5(%rip), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_warn
	movq	_errno@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %r15d
LBB0_18:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_19:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_pcap_close
	movq	%r13, %rdi
	callq	_fclose
	testl	%r15d, %r15d
	je	LBB0_21
## %bb.20:
	movq	%rbx, %rdi
	callq	_free_offload_policy
	jmp	LBB0_22
LBB0_21:
	xorl	%r15d, %r15d
LBB0_22:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rdi
	movl	%ebx, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_warnx
	jmp	LBB0_18
LBB0_24:
	leaq	L_.str.3(%rip), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_warnx
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"Unable to open file \"%s\""

	.comm	_errno,4,2                      ## @errno
	.comm	_DLT_EN10MB,4,2                 ## @DLT_EN10MB
L_.str.2:                               ## @.str.2
	.asciz	"Failed to open pcap device"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_REALLOC_STRIDE,8,3             ## @REALLOC_STRIDE
L_.str.3:                               ## @.str.3
	.asciz	"failed to allocate memory for %d rules"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.4:                               ## @.str.4
	.asciz	"Error parsing line %d of \"%s\""

L_.str.5:                               ## @.str.5
	.asciz	"Error while reading from file \"%s\" at line %d"

L_.str.6:                               ## @.str.6
	.asciz	"No valid rules found in \"%s\""

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_parse_offload_policy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_offload_policy
_parse_offload_policy:                  ; @parse_offload_policy
	.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
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_11
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x8, _DLT_EN10MB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DLT_EN10MB@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #128
	bl	_pcap_open_dead
	cbz	x0, LBB0_15
; %bb.2:
	mov	x21, x0
	mov	w25, #0
	mov	w23, #0
	stp	xzr, xzr, [sp, #16]
	str	wzr, [x19]
	str	xzr, [x19, #8]
Lloh5:
	adrp	x26, _REALLOC_STRIDE@GOTPAGE
Lloh6:
	ldr	x26, [x26, _REALLOC_STRIDE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #24
	add	x1, sp, #16
	mov	x2, x20
	bl	_getline
	cmn	x0, #1
	b.eq	LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	add	w23, w23, #1
	ldr	x0, [sp, #24]
	mov	x1, x24
	bl	_isempty_line
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	cmp	w8, w25
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x26]
	add	w25, w25, w8
	ldr	x0, [x19, #8]
	lsl	w1, w25, #2
	bl	_realloc
	cbz	x0, LBB0_23
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	str	x0, [x19, #8]
	ldr	w8, [x19]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19, #8]
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x4, x0, w8, sxtw #2
	ldr	x1, [sp, #24]
	mov	x0, x23
	mov	x2, x24
	mov	x3, x21
	bl	_parse_offload_policy_line
	cbnz	w0, LBB0_22
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_3
LBB0_11:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_warn
Lloh9:
	adrp	x8, _errno@GOTPAGE
Lloh10:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
	b	LBB0_21
LBB0_12:
	ldr	x0, [sp, #24]
	bl	_free
	mov	x0, x20
	bl	_feof
	cbz	w0, LBB0_16
; %bb.13:
	ldr	w8, [x19]
	cbz	w8, LBB0_17
; %bb.14:
	mov	w24, #0
	b	LBB0_19
LBB0_15:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_warnx
	mov	x0, x20
	bl	_fclose
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w24, [x8]
	b	LBB0_21
LBB0_16:
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	str	x23, [sp]
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x22
	bl	_warn
Lloh19:
	adrp	x8, _errno@GOTPAGE
Lloh20:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
	str	x22, [sp]
Lloh21:
	adrp	x0, l_.str.6@PAGE
Lloh22:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_warnx
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w24, [x8]
LBB0_19:
	mov	x0, x21
	bl	_pcap_close
	mov	x0, x20
	bl	_fclose
	cbz	w24, LBB0_21
; %bb.20:
	mov	x0, x19
	bl	_free_offload_policy
LBB0_21:
	mov	x0, x24
	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
LBB0_22:
	mov	x24, x0
	stp	x23, x22, [sp]
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warnx
	b	LBB0_19
LBB0_23:
	str	x25, [sp]
Lloh27:
	adrp	x0, l_.str.3@PAGE
Lloh28:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warnx
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"Unable to open file \"%s\""

	.comm	_errno,4,2                      ; @errno
	.comm	_DLT_EN10MB,4,2                 ; @DLT_EN10MB
l_.str.2:                               ; @.str.2
	.asciz	"Failed to open pcap device"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_REALLOC_STRIDE,8,3             ; @REALLOC_STRIDE
l_.str.3:                               ; @.str.3
	.asciz	"failed to allocate memory for %d rules"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.4:                               ; @.str.4
	.asciz	"Error parsing line %d of \"%s\""

l_.str.5:                               ; @.str.5
	.asciz	"Error while reading from file \"%s\" at line %d"

l_.str.6:                               ; @.str.6
	.asciz	"No valid rules found in \"%s\""

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_parse_offload_policy
.subsections_via_symbols
