	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_defense_level
_update_defense_level:                  ## @update_defense_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-40(%rbp), %rdi
	callq	_si_meminfo
	movl	-36(%rbp), %ebx
	addl	-40(%rbp), %ebx
	movq	_sysctl_ip_vs_amemthresh@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	xorl	%eax, %eax
	callq	_local_bh_disable
	movq	___ip_vs_dropentry_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	_sysctl_ip_vs_drop_entry@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	cmpq	$3, %rax
	ja	LBB0_9
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	cmpl	%r14d, %ebx
	jge	LBB0_4
## %bb.3:
	movq	_ip_vs_dropentry@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	callq	_atomic_set
	movl	$2, (%r12)
	jmp	LBB0_9
LBB0_4:
	movq	_ip_vs_dropentry@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	jmp	LBB0_8
LBB0_5:
	cmpl	%r14d, %ebx
	jge	LBB0_6
LBB0_7:
	movq	_ip_vs_dropentry@GOTPCREL(%rip), %rdi
	movl	$1, %esi
LBB0_8:
	callq	_atomic_set
LBB0_9:
	movq	___ip_vs_dropentry_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	movq	___ip_vs_droppacket_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	_sysctl_ip_vs_drop_packet@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	cmpq	$3, %rax
	ja	LBB0_19
## %bb.10:
	leaq	LJTI0_1(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_11:
	cmpl	%r14d, %ebx
	jge	LBB0_13
## %bb.12:
	movl	(%r15), %eax
	movl	%eax, %esi
	subl	%ebx, %esi
	cltd
	idivl	%esi
	movq	_ip_vs_drop_counter@GOTPCREL(%rip), %rdx
	movl	%eax, (%rdx)
	movq	_ip_vs_drop_rate@GOTPCREL(%rip), %rdx
	movl	%eax, (%rdx)
	movl	$2, (%rcx)
	jmp	LBB0_19
LBB0_13:
	movq	_ip_vs_drop_rate@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	jmp	LBB0_19
LBB0_14:
	cmpl	%r14d, %ebx
	jge	LBB0_16
## %bb.15:
	movl	(%r15), %eax
	movl	%eax, %ecx
	subl	%ebx, %ecx
	cltd
	idivl	%ecx
	movq	_ip_vs_drop_counter@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_18
LBB0_17:
	movq	_sysctl_ip_vs_am_droprate@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_18:
	movq	_ip_vs_drop_rate@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_19
LBB0_6:
	movq	_ip_vs_dropentry@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movl	$1, (%r12)
	jmp	LBB0_9
LBB0_16:
	movq	_ip_vs_drop_rate@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movl	$1, (%rcx)
LBB0_19:
	movq	___ip_vs_droppacket_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	movq	___ip_vs_securetcp_lock@GOTPCREL(%rip), %rdi
	callq	_write_lock
	movq	_sysctl_ip_vs_secure_tcp@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	cmpq	$3, %rax
	ja	LBB0_29
## %bb.20:
	leaq	LJTI0_2(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_30:
	xorl	%eax, %eax
	cmpl	$1, _update_defense_level.old_secure_tcp(%rip)
	movl	$0, %edi
	jg	LBB0_31
	jmp	LBB0_29
LBB0_25:
	movl	_update_defense_level.old_secure_tcp(%rip), %edx
	cmpl	%r14d, %ebx
	jl	LBB0_26
## %bb.27:
	xorl	%edi, %edi
	movl	$1, (%rcx)
	movl	$1, %eax
	jmp	LBB0_24
LBB0_28:
	movl	$3, %eax
	movl	$1, %edi
	cmpl	$2, _update_defense_level.old_secure_tcp(%rip)
	jge	LBB0_29
LBB0_31:
	movl	%eax, _update_defense_level.old_secure_tcp(%rip)
	callq	_ip_vs_protocol_timeout_change
	jmp	LBB0_32
LBB0_21:
	movl	_update_defense_level.old_secure_tcp(%rip), %edx
	cmpl	%r14d, %ebx
	jge	LBB0_23
## %bb.22:
	movl	$2, (%rcx)
LBB0_26:
	movl	$2, %eax
	movl	$1, %edi
	cmpl	$2, %edx
	jl	LBB0_31
LBB0_29:
	movl	%eax, _update_defense_level.old_secure_tcp(%rip)
LBB0_32:
	movq	___ip_vs_securetcp_lock@GOTPCREL(%rip), %rdi
	callq	_write_unlock
	xorl	%eax, %eax
	callq	_local_bh_enable
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movl	$1, %eax
	xorl	%edi, %edi
LBB0_24:
	cmpl	$1, %edx
	jg	LBB0_31
	jmp	LBB0_29
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_7
.set L0_1_set_13, LBB0_13-LJTI0_1
.set L0_1_set_11, LBB0_11-LJTI0_1
.set L0_1_set_14, LBB0_14-LJTI0_1
.set L0_1_set_17, LBB0_17-LJTI0_1
LJTI0_1:
	.long	L0_1_set_13
	.long	L0_1_set_11
	.long	L0_1_set_14
	.long	L0_1_set_17
.set L0_2_set_30, LBB0_30-LJTI0_2
.set L0_2_set_21, LBB0_21-LJTI0_2
.set L0_2_set_25, LBB0_25-LJTI0_2
.set L0_2_set_28, LBB0_28-LJTI0_2
LJTI0_2:
	.long	L0_2_set_30
	.long	L0_2_set_21
	.long	L0_2_set_25
	.long	L0_2_set_28
	.end_data_region
                                        ## -- End function
.zerofill __DATA,__bss,_update_defense_level.old_secure_tcp,4,2 ## @update_defense_level.old_secure_tcp
	.comm	_sysctl_ip_vs_amemthresh,4,2    ## @sysctl_ip_vs_amemthresh
	.comm	___ip_vs_dropentry_lock,4,2     ## @__ip_vs_dropentry_lock
	.comm	_sysctl_ip_vs_drop_entry,4,2    ## @sysctl_ip_vs_drop_entry
	.comm	_ip_vs_dropentry,4,2            ## @ip_vs_dropentry
	.comm	___ip_vs_droppacket_lock,4,2    ## @__ip_vs_droppacket_lock
	.comm	_sysctl_ip_vs_drop_packet,4,2   ## @sysctl_ip_vs_drop_packet
	.comm	_ip_vs_drop_rate,4,2            ## @ip_vs_drop_rate
	.comm	_ip_vs_drop_counter,4,2         ## @ip_vs_drop_counter
	.comm	_sysctl_ip_vs_am_droprate,4,2   ## @sysctl_ip_vs_am_droprate
	.comm	___ip_vs_securetcp_lock,4,2     ## @__ip_vs_securetcp_lock
	.comm	_sysctl_ip_vs_secure_tcp,4,2    ## @sysctl_ip_vs_secure_tcp
	.no_dead_strip	_update_defense_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_defense_level
_update_defense_level:                  ; @update_defense_level
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	add	x0, sp, #8
	bl	_si_meminfo
	ldp	w8, w9, [sp, #8]
	add	w19, w9, w8
Lloh0:
	adrp	x21, _sysctl_ip_vs_amemthresh@GOTPAGE
Lloh1:
	ldr	x21, [x21, _sysctl_ip_vs_amemthresh@GOTPAGEOFF]
	ldr	w20, [x21]
	bl	_local_bh_disable
Lloh2:
	adrp	x0, ___ip_vs_dropentry_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, ___ip_vs_dropentry_lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh4:
	adrp	x22, _sysctl_ip_vs_drop_entry@GOTPAGE
Lloh5:
	ldr	x22, [x22, _sysctl_ip_vs_drop_entry@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.1:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	cmp	w19, w20
	b.ge	LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, _ip_vs_dropentry@GOTPAGE
Lloh9:
	ldr	x0, [x0, _ip_vs_dropentry@GOTPAGEOFF]
	mov	w1, #1
	bl	_atomic_set
	mov	w8, #2
	str	w8, [x22]
	b	LBB0_8
LBB0_4:
Lloh10:
	adrp	x0, _ip_vs_dropentry@GOTPAGE
Lloh11:
	ldr	x0, [x0, _ip_vs_dropentry@GOTPAGEOFF]
	mov	w1, #0
	b	LBB0_7
LBB0_5:
	cmp	w19, w20
	b.ge	LBB0_17
LBB0_6:
Lloh12:
	adrp	x0, _ip_vs_dropentry@GOTPAGE
Lloh13:
	ldr	x0, [x0, _ip_vs_dropentry@GOTPAGEOFF]
	mov	w1, #1
LBB0_7:
	bl	_atomic_set
LBB0_8:
Lloh14:
	adrp	x0, ___ip_vs_dropentry_lock@GOTPAGE
Lloh15:
	ldr	x0, [x0, ___ip_vs_dropentry_lock@GOTPAGEOFF]
	bl	_spin_unlock
Lloh16:
	adrp	x0, ___ip_vs_droppacket_lock@GOTPAGE
Lloh17:
	ldr	x0, [x0, ___ip_vs_droppacket_lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh18:
	adrp	x8, _sysctl_ip_vs_drop_packet@GOTPAGE
Lloh19:
	ldr	x8, [x8, _sysctl_ip_vs_drop_packet@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #3
	b.hi	LBB0_20
; %bb.9:
Lloh20:
	adrp	x10, lJTI0_1@PAGE
Lloh21:
	add	x10, x10, lJTI0_1@PAGEOFF
	adr	x11, LBB0_10
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_10:
	cmp	w19, w20
	b.ge	LBB0_12
; %bb.11:
	ldr	w9, [x21]
	sub	w10, w9, w19
	sdiv	w9, w9, w10
Lloh22:
	adrp	x10, _ip_vs_drop_counter@GOTPAGE
Lloh23:
	ldr	x10, [x10, _ip_vs_drop_counter@GOTPAGEOFF]
Lloh24:
	str	w9, [x10]
Lloh25:
	adrp	x10, _ip_vs_drop_rate@GOTPAGE
Lloh26:
	ldr	x10, [x10, _ip_vs_drop_rate@GOTPAGEOFF]
Lloh27:
	str	w9, [x10]
	mov	w9, #2
	b	LBB0_19
LBB0_12:
Lloh28:
	adrp	x8, _ip_vs_drop_rate@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ip_vs_drop_rate@GOTPAGEOFF]
Lloh30:
	str	wzr, [x8]
	b	LBB0_20
LBB0_13:
	cmp	w19, w20
	b.ge	LBB0_18
; %bb.14:
	ldr	w8, [x21]
	sub	w9, w8, w19
	sdiv	w8, w8, w9
Lloh31:
	adrp	x9, _ip_vs_drop_counter@GOTPAGE
Lloh32:
	ldr	x9, [x9, _ip_vs_drop_counter@GOTPAGEOFF]
Lloh33:
	str	w8, [x9]
	b	LBB0_16
LBB0_15:
Lloh34:
	adrp	x8, _sysctl_ip_vs_am_droprate@GOTPAGE
Lloh35:
	ldr	x8, [x8, _sysctl_ip_vs_am_droprate@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
LBB0_16:
Lloh37:
	adrp	x9, _ip_vs_drop_rate@GOTPAGE
Lloh38:
	ldr	x9, [x9, _ip_vs_drop_rate@GOTPAGEOFF]
Lloh39:
	str	w8, [x9]
	b	LBB0_20
LBB0_17:
Lloh40:
	adrp	x0, _ip_vs_dropentry@GOTPAGE
Lloh41:
	ldr	x0, [x0, _ip_vs_dropentry@GOTPAGEOFF]
	mov	w1, #0
	bl	_atomic_set
	mov	w8, #1
	str	w8, [x22]
	b	LBB0_8
LBB0_18:
Lloh42:
	adrp	x9, _ip_vs_drop_rate@GOTPAGE
Lloh43:
	ldr	x9, [x9, _ip_vs_drop_rate@GOTPAGEOFF]
Lloh44:
	str	wzr, [x9]
	mov	w9, #1
LBB0_19:
	str	w9, [x8]
LBB0_20:
Lloh45:
	adrp	x0, ___ip_vs_droppacket_lock@GOTPAGE
Lloh46:
	ldr	x0, [x0, ___ip_vs_droppacket_lock@GOTPAGEOFF]
	bl	_spin_unlock
Lloh47:
	adrp	x0, ___ip_vs_securetcp_lock@GOTPAGE
Lloh48:
	ldr	x0, [x0, ___ip_vs_securetcp_lock@GOTPAGEOFF]
	bl	_write_lock
Lloh49:
	adrp	x9, _sysctl_ip_vs_secure_tcp@GOTPAGE
Lloh50:
	ldr	x9, [x9, _sysctl_ip_vs_secure_tcp@GOTPAGEOFF]
	ldr	w8, [x9]
	cmp	w8, #3
	b.hi	LBB0_33
; %bb.21:
Lloh51:
	adrp	x10, lJTI0_2@PAGE
Lloh52:
	add	x10, x10, lJTI0_2@PAGEOFF
	adr	x11, LBB0_22
	ldrb	w12, [x10, x8]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_22:
	mov	w8, #0
	mov	w0, #0
Lloh53:
	adrp	x9, _update_defense_level.old_secure_tcp@PAGE
Lloh54:
	ldr	w9, [x9, _update_defense_level.old_secure_tcp@PAGEOFF]
	cmp	w9, #1
	b.gt	LBB0_31
	b	LBB0_33
LBB0_23:
Lloh55:
	adrp	x8, _update_defense_level.old_secure_tcp@PAGE
Lloh56:
	ldr	w10, [x8, _update_defense_level.old_secure_tcp@PAGEOFF]
	cmp	w19, w20
	b.ge	LBB0_29
; %bb.24:
	mov	w8, #2
	cmp	w10, #2
	b.lt	LBB0_28
	b	LBB0_33
LBB0_25:
Lloh57:
	adrp	x8, _update_defense_level.old_secure_tcp@PAGE
Lloh58:
	ldr	w9, [x8, _update_defense_level.old_secure_tcp@PAGEOFF]
	mov	w8, #3
	cmp	w9, #2
	b.lt	LBB0_28
	b	LBB0_33
LBB0_26:
Lloh59:
	adrp	x8, _update_defense_level.old_secure_tcp@PAGE
Lloh60:
	ldr	w10, [x8, _update_defense_level.old_secure_tcp@PAGEOFF]
	cmp	w19, w20
	b.ge	LBB0_32
; %bb.27:
	mov	w8, #2
	str	w8, [x9]
	cmp	w10, #2
	b.ge	LBB0_33
LBB0_28:
	mov	w0, #1
	b	LBB0_31
LBB0_29:
	mov	w8, #1
	str	w8, [x9]
	cmp	w10, #1
	b.le	LBB0_33
LBB0_30:
	mov	w0, #0
LBB0_31:
	adrp	x9, _update_defense_level.old_secure_tcp@PAGE
	str	w8, [x9, _update_defense_level.old_secure_tcp@PAGEOFF]
	bl	_ip_vs_protocol_timeout_change
	b	LBB0_34
LBB0_32:
	mov	w8, #1
	cmp	w10, #1
	b.gt	LBB0_30
LBB0_33:
	adrp	x9, _update_defense_level.old_secure_tcp@PAGE
	str	w8, [x9, _update_defense_level.old_secure_tcp@PAGEOFF]
LBB0_34:
Lloh61:
	adrp	x0, ___ip_vs_securetcp_lock@GOTPAGE
Lloh62:
	ldr	x0, [x0, ___ip_vs_securetcp_lock@GOTPAGEOFF]
	bl	_write_unlock
	bl	_local_bh_enable
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotStr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotStr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdr	Lloh53, Lloh54
	.loh AdrpLdr	Lloh55, Lloh56
	.loh AdrpLdr	Lloh57, Lloh58
	.loh AdrpLdr	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh61, Lloh62
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_13-LBB0_10)>>2
	.byte	(LBB0_15-LBB0_10)>>2
lJTI0_2:
	.byte	(LBB0_22-LBB0_22)>>2
	.byte	(LBB0_26-LBB0_22)>>2
	.byte	(LBB0_23-LBB0_22)>>2
	.byte	(LBB0_25-LBB0_22)>>2
                                        ; -- End function
.zerofill __DATA,__bss,_update_defense_level.old_secure_tcp,4,2 ; @update_defense_level.old_secure_tcp
	.comm	_sysctl_ip_vs_amemthresh,4,2    ; @sysctl_ip_vs_amemthresh
	.comm	___ip_vs_dropentry_lock,4,2     ; @__ip_vs_dropentry_lock
	.comm	_sysctl_ip_vs_drop_entry,4,2    ; @sysctl_ip_vs_drop_entry
	.comm	_ip_vs_dropentry,4,2            ; @ip_vs_dropentry
	.comm	___ip_vs_droppacket_lock,4,2    ; @__ip_vs_droppacket_lock
	.comm	_sysctl_ip_vs_drop_packet,4,2   ; @sysctl_ip_vs_drop_packet
	.comm	_ip_vs_drop_rate,4,2            ; @ip_vs_drop_rate
	.comm	_ip_vs_drop_counter,4,2         ; @ip_vs_drop_counter
	.comm	_sysctl_ip_vs_am_droprate,4,2   ; @sysctl_ip_vs_am_droprate
	.comm	___ip_vs_securetcp_lock,4,2     ; @__ip_vs_securetcp_lock
	.comm	_sysctl_ip_vs_secure_tcp,4,2    ; @sysctl_ip_vs_secure_tcp
	.no_dead_strip	_update_defense_level
.subsections_via_symbols
