	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfsync_bulk_fail
_pfsync_bulk_fail:                      ## @pfsync_bulk_fail
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	40(%rdi), %r14
	movl	(%rax), %edi
	callq	_CURVNET_SET
	movq	%rbx, %rdi
	callq	_PFSYNC_BLOCK_ASSERT
	movq	8(%rbx), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, 8(%rbx)
	movq	_PFSYNC_MAX_BULKTRIES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.1:
	addq	$24, %rbx
	movq	_hz@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %esi
	movq	_V_pfsyncif@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	_pfsync_bulk_fail(%rip), %rdx
	movq	%rbx, %rdi
	callq	_callout_reset
	movq	%r14, %rdi
	callq	_PFSYNC_BUCKET_LOCK
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_pfsync_request_update
	movq	%r14, %rdi
	callq	_PFSYNC_BUCKET_UNLOCK
	jmp	LBB0_6
LBB0_2:
	leaq	8(%rbx), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	%rbx, %rdi
	callq	_PFSYNC_LOCK
	movl	(%rbx), %eax
	movq	_PFSYNCF_OK@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	testl	%eax, %ecx
	jne	LBB0_4
## %bb.3:
	movq	_V_pfsync_carp_adj@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_carp_demote_adj_p
	movl	(%r14), %ecx
	movl	(%rbx), %eax
LBB0_4:
	orl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_PFSYNC_UNLOCK
	movq	_V_pf_status@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PF_DEBUG_MISC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_6
## %bb.5:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_CURVNET_RESTORE                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PFSYNC_MAX_BULKTRIES,8,3       ## @PFSYNC_MAX_BULKTRIES
	.comm	_hz,4,2                         ## @hz
	.comm	_V_pfsyncif,4,2                 ## @V_pfsyncif
	.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:                                 ## @.str
	.asciz	"pfsync bulk fail"

	.comm	_V_pf_status,8,3                ## @V_pf_status
	.comm	_PF_DEBUG_MISC,8,3              ## @PF_DEBUG_MISC
L_str:                                  ## @str
	.asciz	"pfsync: failed to receive bulk update"

	.no_dead_strip	_pfsync_bulk_fail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfsync_bulk_fail
_pfsync_bulk_fail:                      ; @pfsync_bulk_fail
	.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
	ldp	x8, x20, [x0, #32]
	ldr	w0, [x8]
	bl	_CURVNET_SET
	mov	x0, x19
	bl	_PFSYNC_BLOCK_ASSERT
	mov	x8, x19
	ldr	x9, [x8, #8]!
	add	x10, x9, #1
	str	x10, [x8]
Lloh0:
	adrp	x10, _PFSYNC_MAX_BULKTRIES@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PFSYNC_MAX_BULKTRIES@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _hz@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hz@GOTPAGEOFF]
	add	x0, x19, #24
Lloh5:
	ldr	w8, [x8]
	add	w1, w8, w8, lsl #2
Lloh6:
	adrp	x8, _V_pfsyncif@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V_pfsyncif@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x2, _pfsync_bulk_fail@PAGE
Lloh10:
	add	x2, x2, _pfsync_bulk_fail@PAGEOFF
	bl	_callout_reset
	mov	x0, x20
	bl	_PFSYNC_BUCKET_LOCK
	mov	w0, #0
	mov	w1, #0
	bl	_pfsync_request_update
	mov	x0, x20
	bl	_PFSYNC_BUCKET_UNLOCK
	b	LBB0_6
LBB0_2:
	stp	xzr, xzr, [x8]
	mov	x0, x19
	bl	_PFSYNC_LOCK
	ldr	w8, [x19]
Lloh11:
	adrp	x20, _PFSYNCF_OK@GOTPAGE
Lloh12:
	ldr	x20, [x20, _PFSYNCF_OK@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _V_pfsync_carp_adj@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V_pfsync_carp_adj@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_carp_demote_adj_p
	ldr	w9, [x20]
	ldr	w8, [x19]
LBB0_4:
	orr	w8, w8, w9
	str	w8, [x19]
	mov	x0, x19
	bl	_PFSYNC_UNLOCK
Lloh18:
	adrp	x8, _V_pf_status@GOTPAGE
Lloh19:
	ldr	x8, [x8, _V_pf_status@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
Lloh21:
	adrp	x9, _PF_DEBUG_MISC@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PF_DEBUG_MISC@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_6
; %bb.5:
Lloh24:
	adrp	x0, l_str@PAGE
Lloh25:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CURVNET_RESTORE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_PFSYNC_MAX_BULKTRIES,8,3       ; @PFSYNC_MAX_BULKTRIES
	.comm	_hz,4,2                         ; @hz
	.comm	_V_pfsyncif,4,2                 ; @V_pfsyncif
	.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:                                 ; @.str
	.asciz	"pfsync bulk fail"

	.comm	_V_pf_status,8,3                ; @V_pf_status
	.comm	_PF_DEBUG_MISC,8,3              ; @PF_DEBUG_MISC
l_str:                                  ; @str
	.asciz	"pfsync: failed to receive bulk update"

	.no_dead_strip	_pfsync_bulk_fail
.subsections_via_symbols
