	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfsync_in_upd
_pfsync_in_upd:                         ## @pfsync_in_upd
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdi, %r15
	movq	_V_pfsyncif@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%ecx, %ebx
	shll	$5, %ebx
	leaq	-52(%rbp), %rcx
	movq	%rsi, %rdi
	movl	%edx, %esi
	movl	%ebx, %edx
	callq	_m_pulldown
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	testl	%r14d, %r14d
	jle	LBB0_30
## %bb.3:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movslq	-52(%rbp), %rbx
	addq	(%rax), %rbx
	movl	%r14d, %r15d
	addq	$16, %rbx
	movq	_PFTM_MAX@GOTPCREL(%rip), %r14
	movq	_V_pfsyncstats@GOTPCREL(%rip), %r12
	movq	_V_pf_status@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	8(%r12)
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$32, %rbx
	decq	%r15
	je	LBB0_29
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-16(%rbx), %rax
	cmpq	(%r14), %rax
	jge	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_PF_TCPS_PROXY_DST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rbx)
	jg	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rax, -8(%rbx)
	jle	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r13), %rax
	movq	_PF_DEBUG_MISC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_str(%rip), %rdi
	callq	_puts
	jmp	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	callq	_pf_find_state_byid
	testq	%rax, %rax
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r12
	movq	_PFSTATE_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_pfsync_undefer_state
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	-8(%rbx), %rdx
	movq	48(%r12), %rax
	movq	_PF_SK_WIRE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_pfsync_upd_tcp
	movl	%eax, %r13d
	cmpl	$2, %r13d
	jge	LBB0_22
	jmp	LBB0_24
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	-16(%rbx), %rdi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	callq	_pfsync_state_import
	testq	%rax, %rax
	movq	_V_pfsyncstats@GOTPCREL(%rip), %r12
	je	LBB0_28
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	incl	4(%r12)
	jmp	LBB0_28
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	40(%r12), %rax
	movl	$1, %r13d
	cmpq	(%rbx), %rax
	jg	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	40(%r12), %rsi
	movq	%rbx, %rdi
	callq	_pf_state_peer_ntoh
	xorl	%r13d, %r13d
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	32(%r12), %rax
	cmpq	-8(%rbx), %rax
	jle	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	cmpl	$2, %r13d
	jl	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_time_uptime@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	jmp	LBB0_25
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	leaq	32(%r12), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_pf_state_peer_ntoh
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movq	%r12, %r14
	addq	$32, %r14
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_pfsync_alloc_scrub_memory
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	_PFTM_MAX@GOTPCREL(%rip), %r14
	callq	_pf_state_peer_ntoh
	movq	_time_uptime@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r12)
	movq	-16(%rbx), %rcx
	movq	%rcx, 8(%r12)
	movq	%rax, 16(%r12)
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_26
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_V_pfsyncstats@GOTPCREL(%rip), %r13
	incl	(%r13)
	movq	%r12, %rdi
	callq	_pfsync_update_state
	movq	%r12, %rdi
	movq	%r13, %r12
	callq	_PF_STATE_UNLOCK
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_pfsync_push_all
	jmp	LBB0_27
LBB0_26:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_PF_STATE_UNLOCK
	movq	_V_pfsyncstats@GOTPCREL(%rip), %r12
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_V_pf_status@GOTPCREL(%rip), %r13
	jmp	LBB0_28
LBB0_1:
	movq	_V_pfsyncstats@GOTPCREL(%rip), %rax
	incl	12(%rax)
	movl	$-1, %ebx
	jmp	LBB0_30
LBB0_29:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_30:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_pfsyncif,8,3                 ## @V_pfsyncif
	.comm	_V_pfsyncstats,16,2             ## @V_pfsyncstats
	.comm	_PFTM_MAX,8,3                   ## @PFTM_MAX
	.comm	_PF_TCPS_PROXY_DST,8,3          ## @PF_TCPS_PROXY_DST
	.comm	_V_pf_status,8,3                ## @V_pf_status
	.comm	_PF_DEBUG_MISC,8,3              ## @PF_DEBUG_MISC
	.comm	_PFSTATE_ACK,4,2                ## @PFSTATE_ACK
	.comm	_PF_SK_WIRE,8,3                 ## @PF_SK_WIRE
	.comm	_IPPROTO_TCP,8,3                ## @IPPROTO_TCP
	.comm	_time_uptime,8,3                ## @time_uptime
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"pfsync_input: PFSYNC_ACT_UPD: invalid value"

	.no_dead_strip	_pfsync_in_upd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfsync_in_upd
_pfsync_in_upd:                         ; @pfsync_in_upd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x3
	mov	x27, x0
Lloh0:
	adrp	x8, _V_pfsyncif@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_pfsyncif@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	lsl	w19, w3, #5
	add	x3, sp, #12
	mov	x0, x1
	mov	x1, x2
	mov	x2, x19
	bl	_m_pulldown
	cbz	x0, LBB0_28
; %bb.1:
	cmp	w22, #1
	b.lt	LBB0_30
; %bb.2:
	str	w19, [sp, #8]                   ; 4-byte Folded Spill
	ldr	x8, [x0]
	ldrsw	x9, [sp, #12]
	add	x8, x8, x9
	mov	w28, w22
	add	x22, x8, #16
Lloh3:
	adrp	x20, _PFTM_MAX@GOTPAGE
Lloh4:
	ldr	x20, [x20, _PFTM_MAX@GOTPAGEOFF]
Lloh5:
	adrp	x21, _PF_TCPS_PROXY_DST@GOTPAGE
Lloh6:
	ldr	x21, [x21, _PF_TCPS_PROXY_DST@GOTPAGEOFF]
Lloh7:
	adrp	x19, _V_pfsyncstats@GOTPAGE
Lloh8:
	ldr	x19, [x19, _V_pfsyncstats@GOTPAGEOFF]
Lloh9:
	adrp	x24, _V_pf_status@GOTPAGE
Lloh10:
	ldr	x24, [x24, _V_pf_status@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #32
	subs	x28, x28, #1
	b.eq	LBB0_29
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x26, x22
	ldr	x8, [x26, #-16]!
	ldr	x9, [x20]
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x9, [x22]
	ldr	x8, [x21]
	cmp	x9, x8
	b.gt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x22
	ldr	x9, [x25, #-8]!
	cmp	x9, x8
	b.le	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24]
Lloh11:
	adrp	x9, _PF_DEBUG_MISC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PF_DEBUG_MISC@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh14:
	adrp	x0, l_str@PAGE
Lloh15:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	w1, w0, [x22, #8]
	bl	_pf_find_state_byid
	cbz	x0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	ldr	w8, [x0]
Lloh16:
	adrp	x9, _PFSTATE_ACK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PFSTATE_ACK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	mov	w1, #1
	bl	_pfsync_undefer_state
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24, #48]
Lloh19:
	adrp	x9, _PF_SK_WIRE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PF_SK_WIRE@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _IPPROTO_TCP@GOTPAGE
Lloh23:
	ldr	x9, [x9, _IPPROTO_TCP@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	mov	x1, x22
	mov	x2, x25
	bl	_pfsync_upd_tcp
	mov	x26, x0
	cmp	w26, #2
	b.ge	LBB0_22
	b	LBB0_24
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x27]
	mov	x0, x26
	bl	_pfsync_state_import
Lloh25:
	adrp	x24, _V_pf_status@GOTPAGE
Lloh26:
	ldr	x24, [x24, _V_pf_status@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	b	LBB0_4
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x24
	ldr	x8, [x1, #40]!
	ldr	x9, [x22]
	cmp	x8, x9
	b.le	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w26, #1
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	bl	_pf_state_peer_ntoh
	mov	w26, #0
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x24
	ldr	x8, [x1, #32]!
	ldur	x9, [x22, #-8]
	cmp	x8, x9
	b.le	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w26, w26, #1
	cmp	w26, #2
	b.lt	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh27:
	adrp	x8, _time_uptime@GOTPAGE
Lloh28:
	ldr	x8, [x8, _time_uptime@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	str	x8, [x24, #16]
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	bl	_pf_state_peer_ntoh
LBB0_24:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x21
	mov	x21, x23
	mov	x23, x27
	add	x27, x24, #32
	mov	x0, x25
	mov	x1, x27
	bl	_pfsync_alloc_scrub_memory
	mov	x0, x25
	mov	x1, x27
	mov	x27, x23
	mov	x23, x21
	mov	x21, x20
Lloh30:
	adrp	x20, _PFTM_MAX@GOTPAGE
Lloh31:
	ldr	x20, [x20, _PFTM_MAX@GOTPAGEOFF]
	bl	_pf_state_peer_ntoh
Lloh32:
	adrp	x8, _time_uptime@GOTPAGE
Lloh33:
	ldr	x8, [x8, _time_uptime@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	str	x8, [x24, #24]
	ldur	x9, [x22, #-16]
	stp	x9, x8, [x24, #8]
	cbz	w26, LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	x0, x24
	bl	_pfsync_update_state
	mov	x0, x24
	bl	_PF_STATE_UNLOCK
	mov	x0, x23
	bl	_pfsync_push_all
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_PF_STATE_UNLOCK
LBB0_27:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh35:
	adrp	x24, _V_pf_status@GOTPAGE
Lloh36:
	ldr	x24, [x24, _V_pf_status@GOTPAGEOFF]
	b	LBB0_4
LBB0_28:
Lloh37:
	adrp	x8, _V_pfsyncstats@GOTPAGE
Lloh38:
	ldr	x8, [x8, _V_pfsyncstats@GOTPAGEOFF]
	ldr	w9, [x8, #12]
	add	w9, w9, #1
	str	w9, [x8, #12]
	mov	w19, #-1
	b	LBB0_30
LBB0_29:
	ldr	w19, [sp, #8]                   ; 4-byte Folded Reload
LBB0_30:
	mov	x0, x19
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_V_pfsyncif,8,3                 ; @V_pfsyncif
	.comm	_V_pfsyncstats,16,2             ; @V_pfsyncstats
	.comm	_PFTM_MAX,8,3                   ; @PFTM_MAX
	.comm	_PF_TCPS_PROXY_DST,8,3          ; @PF_TCPS_PROXY_DST
	.comm	_V_pf_status,8,3                ; @V_pf_status
	.comm	_PF_DEBUG_MISC,8,3              ; @PF_DEBUG_MISC
	.comm	_PFSTATE_ACK,4,2                ; @PFSTATE_ACK
	.comm	_PF_SK_WIRE,8,3                 ; @PF_SK_WIRE
	.comm	_IPPROTO_TCP,8,3                ; @IPPROTO_TCP
	.comm	_time_uptime,8,3                ; @time_uptime
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"pfsync_input: PFSYNC_ACT_UPD: invalid value"

	.no_dead_strip	_pfsync_in_upd
.subsections_via_symbols
