	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vnet_ipfw_init
_vnet_ipfw_init:                        ## @vnet_ipfw_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_curvnet@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_DEFAULT_VNET
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	movq	_V_autoinc_step@GOTPCREL(%rip), %rax
	movl	$100, (%rax)
	movq	_V_fw_deny_unknown_exthdrs@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_V_layer3_chain@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_ipfw_init_srv
	xorl	%eax, %eax
	callq	_ipfw_init_counters
	movq	_default_fw_tables@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_V_fw_tables_max@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ipfw_init_tables
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	8(%r14), %rdi
	movq	_M_IPFW@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_free
	movl	(%rbx), %esi
	xorl	%edi, %edi
	callq	_free
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, %rdi
	callq	_IPFW_LOCK_INIT
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_ipfw_alloc_rule
	movq	_IPFW_RULE_NOOPT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 16(%rax)
	movl	$1, (%rax)
	movq	8(%rax), %rcx
	movl	$1, (%rcx)
	movq	_default_to_accept@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	jne	LBB0_2
## %bb.3:
	movq	_O_DENY@GOTPCREL(%rip), %rdx
	jmp	LBB0_4
LBB0_2:
	movq	_O_ACCEPT@GOTPCREL(%rip), %rdx
LBB0_4:
	movl	(%rdx), %edx
	movl	%edx, 4(%rcx)
	movq	%rax, (%r14)
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_ipfw_add_protected_rule
	movq	%r14, %rdi
	callq	_ipfw_dyn_init
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ipfw_eaction_init
	movl	%ebx, %edi
	callq	_ipfw_bpf_init
	movq	_V_ipfw_vnet_ready@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_ipfw_ctl3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_V_ip_fw_ctl_ptr@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ipfw_attach_hooks              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V_layer3_chain,24,3            ## @V_layer3_chain
	.comm	_curvnet,4,2                    ## @curvnet
	.comm	_V_autoinc_step,4,2             ## @V_autoinc_step
	.comm	_V_fw_deny_unknown_exthdrs,4,2  ## @V_fw_deny_unknown_exthdrs
	.comm	_default_fw_tables,4,2          ## @default_fw_tables
	.comm	_V_fw_tables_max,4,2            ## @V_fw_tables_max
	.comm	_M_IPFW,4,2                     ## @M_IPFW
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_IPFW_RULE_NOOPT,4,2            ## @IPFW_RULE_NOOPT
	.comm	_default_to_accept,8,3          ## @default_to_accept
	.comm	_O_ACCEPT,4,2                   ## @O_ACCEPT
	.comm	_O_DENY,4,2                     ## @O_DENY
	.comm	_V_ipfw_vnet_ready,4,2          ## @V_ipfw_vnet_ready
	.comm	_ipfw_ctl3,4,2                  ## @ipfw_ctl3
	.comm	_V_ip_fw_ctl_ptr,4,2            ## @V_ip_fw_ctl_ptr
	.comm	_IPFIREWALL_VERBOSE_LIMIT,4,2   ## @IPFIREWALL_VERBOSE_LIMIT
	.comm	_V_fw_verbose,4,2               ## @V_fw_verbose
	.comm	_V_verbose_limit,4,2            ## @V_verbose_limit
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"ipfw2: setting up tables failed"

	.no_dead_strip	_vnet_ipfw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vnet_ipfw_init
_vnet_ipfw_init:                        ; @vnet_ipfw_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _curvnet@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curvnet@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_DEFAULT_VNET
	cmp	x0, #0
	cset	w19, ne
Lloh3:
	adrp	x8, _V_autoinc_step@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V_autoinc_step@GOTPAGEOFF]
	mov	w9, #100
Lloh5:
	str	w9, [x8]
Lloh6:
	adrp	x8, _V_fw_deny_unknown_exthdrs@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V_fw_deny_unknown_exthdrs@GOTPAGEOFF]
	mov	w21, #1
Lloh8:
	str	w21, [x8]
Lloh9:
	adrp	x20, _V_layer3_chain@GOTPAGE
Lloh10:
	ldr	x20, [x20, _V_layer3_chain@GOTPAGEOFF]
	mov	x0, x20
	bl	_ipfw_init_srv
	bl	_ipfw_init_counters
Lloh11:
	adrp	x8, _default_fw_tables@GOTPAGE
Lloh12:
	ldr	x8, [x8, _default_fw_tables@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _V_fw_tables_max@GOTPAGE
Lloh15:
	ldr	x9, [x9, _V_fw_tables_max@GOTPAGEOFF]
Lloh16:
	str	w8, [x9]
	mov	x0, x20
	mov	x1, x19
	bl	_ipfw_init_tables
	cbz	w0, LBB0_2
; %bb.1:
Lloh17:
	adrp	x0, l_str@PAGE
Lloh18:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldr	x0, [x20, #8]
Lloh19:
	adrp	x19, _M_IPFW@GOTPAGE
Lloh20:
	ldr	x19, [x19, _M_IPFW@GOTPAGEOFF]
	ldr	w1, [x19]
	bl	_free
	ldr	w1, [x19]
	mov	x0, #0
	bl	_free
Lloh21:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x20
	bl	_IPFW_LOCK_INIT
	mov	x0, x20
	mov	w1, #24
	bl	_ipfw_alloc_rule
	mov	x1, x0
Lloh24:
	adrp	x8, _IPFW_RULE_NOOPT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IPFW_RULE_NOOPT@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [x0, #16]
	orr	w8, w9, w8
	str	w8, [x0, #16]
	str	w21, [x0]
	ldr	x8, [x0, #8]
	str	w21, [x8]
Lloh27:
	adrp	x9, _default_to_accept@GOTPAGE
Lloh28:
	ldr	x9, [x9, _default_to_accept@GOTPAGEOFF]
Lloh29:
	adrp	x10, _O_ACCEPT@GOTPAGE
Lloh30:
	ldr	x10, [x10, _O_ACCEPT@GOTPAGEOFF]
Lloh31:
	adrp	x11, _O_DENY@GOTPAGE
Lloh32:
	ldr	x11, [x11, _O_DENY@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, #0
	csel	x9, x11, x10, eq
	ldr	w9, [x9]
	str	w9, [x8, #4]
	str	x0, [x20]
	mov	x0, x20
	mov	w2, #0
	bl	_ipfw_add_protected_rule
	mov	x0, x20
	bl	_ipfw_dyn_init
	mov	x0, x20
	mov	x1, x19
	bl	_ipfw_eaction_init
	mov	x0, x19
	bl	_ipfw_bpf_init
Lloh34:
	adrp	x8, _V_ipfw_vnet_ready@GOTPAGE
Lloh35:
	ldr	x8, [x8, _V_ipfw_vnet_ready@GOTPAGEOFF]
Lloh36:
	str	w21, [x8]
Lloh37:
	adrp	x8, _ipfw_ctl3@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ipfw_ctl3@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	adrp	x9, _V_ip_fw_ctl_ptr@GOTPAGE
Lloh41:
	ldr	x9, [x9, _V_ip_fw_ctl_ptr@GOTPAGEOFF]
Lloh42:
	str	w8, [x9]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ipfw_attach_hooks
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotStr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh33
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_V_layer3_chain,24,3            ; @V_layer3_chain
	.comm	_curvnet,4,2                    ; @curvnet
	.comm	_V_autoinc_step,4,2             ; @V_autoinc_step
	.comm	_V_fw_deny_unknown_exthdrs,4,2  ; @V_fw_deny_unknown_exthdrs
	.comm	_default_fw_tables,4,2          ; @default_fw_tables
	.comm	_V_fw_tables_max,4,2            ; @V_fw_tables_max
	.comm	_M_IPFW,4,2                     ; @M_IPFW
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_IPFW_RULE_NOOPT,4,2            ; @IPFW_RULE_NOOPT
	.comm	_default_to_accept,8,3          ; @default_to_accept
	.comm	_O_ACCEPT,4,2                   ; @O_ACCEPT
	.comm	_O_DENY,4,2                     ; @O_DENY
	.comm	_V_ipfw_vnet_ready,4,2          ; @V_ipfw_vnet_ready
	.comm	_ipfw_ctl3,4,2                  ; @ipfw_ctl3
	.comm	_V_ip_fw_ctl_ptr,4,2            ; @V_ip_fw_ctl_ptr
	.comm	_IPFIREWALL_VERBOSE_LIMIT,4,2   ; @IPFIREWALL_VERBOSE_LIMIT
	.comm	_V_fw_verbose,4,2               ; @V_fw_verbose
	.comm	_V_verbose_limit,4,2            ; @V_verbose_limit
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"ipfw2: setting up tables failed"

	.no_dead_strip	_vnet_ipfw_init
.subsections_via_symbols
