	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfsync_upd_tcp
_pfsync_upd_tcp:                        ## @pfsync_upd_tcp
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_PF_STATE_LOCK_ASSERT
	movq	16(%rbx), %rax
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_3
## %bb.1:
	movq	_PF_TCPS_PROXY_SRC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	$1, %r15d
	cmpq	%rdx, %rax
	jl	LBB0_6
## %bb.2:
	cmpq	%rdx, %rcx
	jge	LBB0_6
LBB0_3:
	cmpq	%rcx, %rax
	jne	LBB0_5
## %bb.4:
	movl	24(%rbx), %r15d
	movl	8(%r12), %edi
	callq	_ntohl
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_SEQ_GT
	movl	$1, %r15d
	testq	%rax, %rax
	jne	LBB0_6
LBB0_5:
	leaq	16(%rbx), %rsi
	movq	%r12, %rdi
	callq	_pf_state_peer_ntoh
	xorl	%r15d, %r15d
LBB0_6:
	movq	(%rbx), %rax
	cmpq	(%r14), %rax
	jg	LBB0_9
## %bb.7:
	movq	_TCPS_SYN_SENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_10
## %bb.8:
	movl	8(%rbx), %r12d
	movl	8(%r14), %edi
	callq	_ntohl
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_SEQ_GT
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:
	incl	%r15d
	jmp	LBB0_11
LBB0_10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pf_state_peer_ntoh
LBB0_11:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PF_TCPS_PROXY_SRC,8,3          ## @PF_TCPS_PROXY_SRC
	.comm	_TCPS_SYN_SENT,8,3              ## @TCPS_SYN_SENT
	.no_dead_strip	_pfsync_upd_tcp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfsync_upd_tcp
_pfsync_upd_tcp:                        ; @pfsync_upd_tcp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_PF_STATE_LOCK_ASSERT
	mov	x22, x20
	ldr	x8, [x22, #16]!
	ldr	x9, [x21]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
Lloh0:
	adrp	x10, _PF_TCPS_PROXY_SRC@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PF_TCPS_PROXY_SRC@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x9, x10, #0, ge
	b.ge	LBB0_4
LBB0_2:
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	w23, [x20, #24]
	ldr	w0, [x21, #8]
	bl	_ntohl
	mov	x1, x0
	mov	x0, x23
	bl	_SEQ_GT
	cbz	x0, LBB0_5
LBB0_4:
	mov	w21, #1
	b	LBB0_6
LBB0_5:
	mov	x0, x21
	mov	x1, x22
	bl	_pf_state_peer_ntoh
	mov	w21, #0
LBB0_6:
	ldr	x8, [x20]
	ldr	x9, [x19]
	cmp	x8, x9
	b.gt	LBB0_9
; %bb.7:
Lloh3:
	adrp	x9, _TCPS_SYN_SENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TCPS_SYN_SENT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_10
; %bb.8:
	ldr	w22, [x20, #8]
	ldr	w0, [x19, #8]
	bl	_ntohl
	mov	x1, x0
	mov	x0, x22
	bl	_SEQ_GT
	cbz	x0, LBB0_10
LBB0_9:
	add	w21, w21, #1
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_pf_state_peer_ntoh
LBB0_11:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PF_TCPS_PROXY_SRC,8,3          ; @PF_TCPS_PROXY_SRC
	.comm	_TCPS_SYN_SENT,8,3              ; @TCPS_SYN_SENT
	.no_dead_strip	_pfsync_upd_tcp
.subsections_via_symbols
