	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfsync_in_bus
_pfsync_in_bus:                         ## @pfsync_in_bus
	.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
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	_V_pfsyncif@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	shll	$3, %r14d
	movq	%r15, %rdi
	callq	_PFSYNC_BLOCK
	cmpq	$0, (%r15)
	je	LBB0_18
## %bb.1:
	leaq	-36(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_m_pulldown
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	(%rax), %rax
	movslq	-36(%rbp), %rcx
	movl	(%rax,%rcx), %edx
	cmpl	$129, %edx
	je	LBB0_10
## %bb.4:
	cmpl	$128, %edx
	jne	LBB0_18
## %bb.5:
	leaq	12(%r15), %rdi
	movq	_hz@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$2, %esi
	movq	_V_pf_limits@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PF_LIMIT_STATES@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rax,%rcx,4), %rax
	movq	24(%r15), %rcx
	movslq	(%rcx), %rcx
	movq	_PFSYNC_MINPKT@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	subq	%rdx, %rcx
	shrq	$2, %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_6
## %bb.7:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_8
LBB0_2:
	movq	%r15, %rdi
	callq	_PFSYNC_BUNLOCK
	movq	_V_pfsyncstats@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	$-1, %r14d
	jmp	LBB0_19
LBB0_10:
	movq	_time_uptime@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rbx
	movl	4(%rcx,%rax), %edi
	callq	_ntohl
	subq	%rax, %rbx
	cmpq	(%r15), %rbx
	jge	LBB0_11
## %bb.15:
	movq	_V_pf_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PF_DEBUG_MISC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_18
## %bb.16:
	leaq	L_str(%rip), %rdi
	jmp	LBB0_17
LBB0_11:
	movq	$0, (%r15)
	movl	$0, 16(%r15)
	leaq	12(%r15), %rdi
	callq	_callout_stop
	movl	8(%r15), %eax
	movq	_PFSYNCF_OK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	testl	%eax, %ecx
	jne	LBB0_13
## %bb.12:
	movq	_V_pfsync_carp_adj@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_carp_demote_adj_p
	movl	(%rbx), %ecx
	movl	8(%r15), %eax
LBB0_13:
	orl	%ecx, %eax
	movl	%eax, 8(%r15)
	movq	_V_pf_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PF_DEBUG_MISC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_18
## %bb.14:
	leaq	L_str.4(%rip), %rdi
	jmp	LBB0_17
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_8:
	addl	%eax, %esi
	movq	_pfsync_bulk_fail@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rcx
	callq	_callout_reset
	movq	_V_pf_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PF_DEBUG_MISC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_18
## %bb.9:
	leaq	L_str.5(%rip), %rdi
LBB0_17:
	callq	_puts
LBB0_18:
	movq	%r15, %rdi
	callq	_PFSYNC_BUNLOCK
LBB0_19:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_pfsyncif,8,3                 ## @V_pfsyncif
	.comm	_V_pfsyncstats,4,2              ## @V_pfsyncstats
	.comm	_hz,4,2                         ## @hz
	.comm	_V_pf_limits,8,3                ## @V_pf_limits
	.comm	_PF_LIMIT_STATES,8,3            ## @PF_LIMIT_STATES
	.comm	_PFSYNC_MINPKT,4,2              ## @PFSYNC_MINPKT
	.comm	_pfsync_bulk_fail,4,2           ## @pfsync_bulk_fail
	.comm	_V_pf_status,4,2                ## @V_pf_status
	.comm	_PF_DEBUG_MISC,4,2              ## @PF_DEBUG_MISC
	.comm	_time_uptime,8,3                ## @time_uptime
	.comm	_PFSYNCF_OK,4,2                 ## @PFSYNCF_OK
	.comm	_V_pfsync_carp_adj,4,2          ## @V_pfsync_carp_adj
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"pfsync bulk done"

L_str:                                  ## @str
	.asciz	"pfsync: received invalid bulk update end: bad timestamp"

L_str.4:                                ## @str.4
	.asciz	"pfsync: received valid bulk update end"

L_str.5:                                ## @str.5
	.asciz	"pfsync: received bulk update start"

	.no_dead_strip	_pfsync_in_bus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfsync_in_bus
_pfsync_in_bus:                         ; @pfsync_in_bus
	.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
	mov	x21, x2
	mov	x22, x1
Lloh0:
	adrp	x8, _V_pfsyncif@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_pfsyncif@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	lsl	w19, w3, #3
	mov	x0, x20
	bl	_PFSYNC_BLOCK
	ldr	x8, [x20]
	cbz	x8, LBB0_15
; %bb.1:
	add	x3, sp, #12
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_m_pulldown
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x0]
	ldrsw	x9, [sp, #12]
	add	x8, x8, x9
	ldr	w9, [x8]
	cmp	w9, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w9, #128
	b.ne	LBB0_15
; %bb.4:
	add	x0, x20, #12
Lloh3:
	adrp	x8, _hz@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hz@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _V_pf_limits@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V_pf_limits@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _PF_LIMIT_STATES@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PF_LIMIT_STATES@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	ldrsw	x9, [x9, x10, lsl #2]
	ldr	x10, [x20, #24]
	ldrsw	x10, [x10]
Lloh12:
	adrp	x11, _PFSYNC_MINPKT@GOTPAGE
Lloh13:
	ldr	x11, [x11, _PFSYNC_MINPKT@GOTPAGEOFF]
Lloh14:
	ldrsw	x11, [x11]
	sub	x10, x10, x11
	lsr	x10, x10, #2
	udiv	x9, x9, x10
	add	w1, w9, w8, lsl #2
Lloh15:
	adrp	x8, _pfsync_bulk_fail@GOTPAGE
Lloh16:
	ldr	x8, [x8, _pfsync_bulk_fail@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x3, x20
	bl	_callout_reset
Lloh18:
	adrp	x8, _V_pf_status@GOTPAGE
Lloh19:
	ldr	x8, [x8, _V_pf_status@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _PF_DEBUG_MISC@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PF_DEBUG_MISC@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_15
; %bb.5:
Lloh24:
	adrp	x0, l_str.5@PAGE
Lloh25:
	add	x0, x0, l_str.5@PAGEOFF
	b	LBB0_14
LBB0_6:
	mov	x0, x20
	bl	_PFSYNC_BUNLOCK
Lloh26:
	adrp	x8, _V_pfsyncstats@GOTPAGE
Lloh27:
	ldr	x8, [x8, _V_pfsyncstats@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	w19, #-1
	b	LBB0_16
LBB0_7:
Lloh28:
	adrp	x9, _time_uptime@GOTPAGE
Lloh29:
	ldr	x9, [x9, _time_uptime@GOTPAGEOFF]
Lloh30:
	ldr	x21, [x9]
	ldr	w0, [x8, #4]
	bl	_ntohl
	ldr	x8, [x20]
	sub	x9, x21, x0
	cmp	x9, x8
	b.ge	LBB0_10
; %bb.8:
Lloh31:
	adrp	x8, _V_pf_status@GOTPAGE
Lloh32:
	ldr	x8, [x8, _V_pf_status@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _PF_DEBUG_MISC@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PF_DEBUG_MISC@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_15
; %bb.9:
Lloh37:
	adrp	x0, l_str@PAGE
Lloh38:
	add	x0, x0, l_str@PAGEOFF
	b	LBB0_14
LBB0_10:
	str	xzr, [x20]
	str	wzr, [x20, #16]
	add	x0, x20, #12
	bl	_callout_stop
	ldr	w8, [x20, #8]
Lloh39:
	adrp	x21, _PFSYNCF_OK@GOTPAGE
Lloh40:
	ldr	x21, [x21, _PFSYNCF_OK@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.11:
Lloh41:
	adrp	x8, _V_pfsync_carp_adj@GOTPAGE
Lloh42:
	ldr	x8, [x8, _V_pfsync_carp_adj@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	neg	w0, w8
Lloh44:
	adrp	x1, l_.str.1@PAGE
Lloh45:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_carp_demote_adj_p
	ldr	w9, [x21]
	ldr	w8, [x20, #8]
LBB0_12:
	orr	w8, w8, w9
Lloh46:
	adrp	x9, _V_pf_status@GOTPAGE
Lloh47:
	ldr	x9, [x9, _V_pf_status@GOTPAGEOFF]
	str	w8, [x20, #8]
Lloh48:
	ldr	w8, [x9]
Lloh49:
	adrp	x9, _PF_DEBUG_MISC@GOTPAGE
Lloh50:
	ldr	x9, [x9, _PF_DEBUG_MISC@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_15
; %bb.13:
Lloh52:
	adrp	x0, l_str.4@PAGE
Lloh53:
	add	x0, x0, l_str.4@PAGEOFF
LBB0_14:
	bl	_puts
LBB0_15:
	mov	x0, x20
	bl	_PFSYNC_BUNLOCK
LBB0_16:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_V_pfsyncif,8,3                 ; @V_pfsyncif
	.comm	_V_pfsyncstats,4,2              ; @V_pfsyncstats
	.comm	_hz,4,2                         ; @hz
	.comm	_V_pf_limits,8,3                ; @V_pf_limits
	.comm	_PF_LIMIT_STATES,8,3            ; @PF_LIMIT_STATES
	.comm	_PFSYNC_MINPKT,4,2              ; @PFSYNC_MINPKT
	.comm	_pfsync_bulk_fail,4,2           ; @pfsync_bulk_fail
	.comm	_V_pf_status,4,2                ; @V_pf_status
	.comm	_PF_DEBUG_MISC,4,2              ; @PF_DEBUG_MISC
	.comm	_time_uptime,8,3                ; @time_uptime
	.comm	_PFSYNCF_OK,4,2                 ; @PFSYNCF_OK
	.comm	_V_pfsync_carp_adj,4,2          ; @V_pfsync_carp_adj
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"pfsync bulk done"

l_str:                                  ; @str
	.asciz	"pfsync: received invalid bulk update end: bad timestamp"

l_str.4:                                ; @str.4
	.asciz	"pfsync: received valid bulk update end"

l_str.5:                                ; @str.5
	.asciz	"pfsync: received bulk update start"

	.no_dead_strip	_pfsync_in_bus
.subsections_via_symbols
