	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pf_src_connlimit
_pf_src_connlimit:                      ## @pf_src_connlimit
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rdi
	callq	_PF_STATE_LOCK_ASSERT
	movq	(%r15), %rax
	movq	24(%rax), %rdi
	incq	(%rdi)
	movl	$1, 36(%rax)
	addq	$12, %rdi
	callq	_pf_add_threshold
	movq	(%r15), %rax
	movq	8(%rax), %rcx
	movq	(%rcx), %rdx
	movb	$1, %bl
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	movq	24(%rax), %rsi
	cmpq	(%rsi), %rdx
	jge	LBB0_3
## %bb.2:
	movq	_V_pf_status@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_LCNT_SRCCONN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	$1, %esi
	callq	_counter_u64_add
	movq	(%r15), %rax
	movq	8(%rax), %rcx
	xorl	%ebx, %ebx
LBB0_3:
	cmpq	$0, 16(%rcx)
	je	LBB0_6
## %bb.4:
	movq	24(%rax), %rdi
	addq	$12, %rdi
	callq	_pf_check_threshold
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_V_pf_status@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_LCNT_SRCCONNRATE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	movl	$1, %esi
	callq	_counter_u64_add
	jmp	LBB0_7
LBB0_6:
	xorl	%r14d, %r14d
	testb	%bl, %bl
	jne	LBB0_10
LBB0_7:
	movq	_PFTM_PURGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r15), %rcx
	movl	%eax, 44(%rcx)
	movq	_TCPS_CLOSED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rcx)
	movl	%eax, 40(%rcx)
	movq	8(%rcx), %rax
	movl	$1, %r14d
	cmpq	$0, 8(%rax)
	je	LBB0_10
## %bb.8:
	movq	_M_PFTEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$24, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rax, %rbx
	movq	(%r15), %rax
	movq	24(%rax), %rax
	movl	8(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	(%r15), %rax
	movq	16(%rax), %rcx
	movq	_PF_SK_WIRE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rbx)
	movq	8(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	callq	_PF_OVERLOADQ_LOCK
	movq	_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_V_pf_overloadqueue@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_SLIST_INSERT_HEAD
	xorl	%eax, %eax
	callq	_PF_OVERLOADQ_UNLOCK
	movq	_taskqueue_swi@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_V_pf_overloadtask@GOTPCREL(%rip), %rsi
	callq	_taskqueue_enqueue
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_pf_status,8,3                ## @V_pf_status
	.comm	_LCNT_SRCCONN,8,3               ## @LCNT_SRCCONN
	.comm	_LCNT_SRCCONNRATE,8,3           ## @LCNT_SRCCONNRATE
	.comm	_PFTM_PURGE,4,2                 ## @PFTM_PURGE
	.comm	_TCPS_CLOSED,4,2                ## @TCPS_CLOSED
	.comm	_M_PFTEMP,4,2                   ## @M_PFTEMP
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_PF_SK_WIRE,8,3                 ## @PF_SK_WIRE
	.comm	_V_pf_overloadqueue,4,2         ## @V_pf_overloadqueue
	.comm	_next,4,2                       ## @next
	.comm	_taskqueue_swi,4,2              ## @taskqueue_swi
	.comm	_V_pf_overloadtask,4,2          ## @V_pf_overloadtask
	.no_dead_strip	_pf_src_connlimit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pf_src_connlimit
_pf_src_connlimit:                      ; @pf_src_connlimit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0]
	bl	_PF_STATE_LOCK_ASSERT
	ldr	x8, [x19]
	ldr	x0, [x8, #24]
	ldr	x9, [x0]
	add	x9, x9, #1
	str	x9, [x0], #12
	mov	w20, #1
	str	w20, [x8, #36]
	bl	_pf_add_threshold
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	ldr	x10, [x9]
	cbz	x10, LBB0_3
; %bb.1:
	ldr	x11, [x8, #24]
	ldr	x11, [x11]
	cmp	x10, x11
	b.ge	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _V_pf_status@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_pf_status@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _LCNT_SRCCONN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LCNT_SRCCONN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	mov	w1, #1
	bl	_counter_u64_add
	mov	w20, #0
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
LBB0_3:
	ldr	x9, [x9, #16]
	cbnz	x9, LBB0_5
	b	LBB0_7
LBB0_4:
	mov	w20, #1
	ldr	x9, [x9, #16]
	cbz	x9, LBB0_7
LBB0_5:
	ldr	x8, [x8, #24]
	add	x0, x8, #12
	bl	_pf_check_threshold
	cbz	x0, LBB0_7
; %bb.6:
Lloh6:
	adrp	x8, _V_pf_status@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V_pf_status@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _LCNT_SRCCONNRATE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LCNT_SRCCONNRATE@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	mov	w1, #1
	bl	_counter_u64_add
	b	LBB0_9
LBB0_7:
	tbz	w20, #0, LBB0_9
; %bb.8:
	mov	w0, #0
	b	LBB0_13
LBB0_9:
Lloh12:
	adrp	x8, _PFTM_PURGE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PFTM_PURGE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	x9, [x19]
Lloh15:
	adrp	x10, _TCPS_CLOSED@GOTPAGE
Lloh16:
	ldr	x10, [x10, _TCPS_CLOSED@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	str	w10, [x9, #32]
	stp	w10, w8, [x9, #40]
	ldr	x8, [x9, #8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_12
; %bb.10:
Lloh18:
	adrp	x8, _M_PFTEMP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _M_PFTEMP@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	w0, #24
	bl	_malloc
	cbz	x0, LBB0_12
; %bb.11:
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x8, [x8, #24]
	ldr	w8, [x8, #8]
	str	w8, [x0, #20]
Lloh24:
	adrp	x8, _PF_SK_WIRE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PF_SK_WIRE@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh26:
	ldr	x8, [x8]
	ldp	x9, x10, [x9, #8]
	ldr	x8, [x10, x8, lsl #3]
	ldr	w8, [x8]
	str	w8, [x0, #16]
	str	x9, [x0, #8]
	ldr	x8, [x19]
	ldr	w8, [x8]
	str	w8, [x0]
	bl	_PF_OVERLOADQ_LOCK
Lloh27:
	adrp	x8, _next@GOTPAGE
Lloh28:
	ldr	x8, [x8, _next@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
Lloh30:
	adrp	x0, _V_pf_overloadqueue@GOTPAGE
Lloh31:
	ldr	x0, [x0, _V_pf_overloadqueue@GOTPAGEOFF]
	mov	x1, x20
	bl	_SLIST_INSERT_HEAD
	bl	_PF_OVERLOADQ_UNLOCK
Lloh32:
	adrp	x8, _taskqueue_swi@GOTPAGE
Lloh33:
	ldr	x8, [x8, _taskqueue_swi@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x1, _V_pf_overloadtask@GOTPAGE
Lloh36:
	ldr	x1, [x1, _V_pf_overloadtask@GOTPAGEOFF]
	bl	_taskqueue_enqueue
LBB0_12:
	mov	w0, #1
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_V_pf_status,8,3                ; @V_pf_status
	.comm	_LCNT_SRCCONN,8,3               ; @LCNT_SRCCONN
	.comm	_LCNT_SRCCONNRATE,8,3           ; @LCNT_SRCCONNRATE
	.comm	_PFTM_PURGE,4,2                 ; @PFTM_PURGE
	.comm	_TCPS_CLOSED,4,2                ; @TCPS_CLOSED
	.comm	_M_PFTEMP,4,2                   ; @M_PFTEMP
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_PF_SK_WIRE,8,3                 ; @PF_SK_WIRE
	.comm	_V_pf_overloadqueue,4,2         ; @V_pf_overloadqueue
	.comm	_next,4,2                       ; @next
	.comm	_taskqueue_swi,4,2              ; @taskqueue_swi
	.comm	_V_pf_overloadtask,4,2          ; @V_pf_overloadtask
	.no_dead_strip	_pf_src_connlimit
.subsections_via_symbols
