	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfsync_bulk_update
_pfsync_bulk_update:                    ## @pfsync_bulk_update
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_PFSYNC_BLOCK_ASSERT
	movq	32(%r14), %rax
	movl	(%rax), %edi
	callq	_CURVNET_SET
	movl	20(%r14), %esi
	movl	24(%r14), %edi
	callq	_pf_find_state_byid
	movq	%rax, %rbx
	testq	%rax, %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_PF_IDHASH
	jmp	LBB0_3
LBB0_2:
	movl	(%r14), %eax
LBB0_3:
	movq	_pf_hashmask@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_4
LBB0_15:
	movq	_PFSYNC_BUS_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_pfsync_bulk_status
	jmp	LBB0_16
LBB0_4:
	cltq
	movq	_PFSYNC_S_NONE@GOTPCREL(%rip), %r12
	movq	_PFTM_MAX@GOTPCREL(%rip), %r14
	movq	_entry@GOTPCREL(%rip), %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_PF_HASHROW_UNLOCK
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	1(%rdx), %rax
	movq	_pf_hashmask@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	$0, %ebx
	cmpq	%rcx, %rdx
	jge	LBB0_15
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %r15
	movq	_V_pf_idhash@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	%r15, %rdi
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	_PF_HASHROW_ASSERT
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	callq	_PF_HASHROW_LOCK
	movq	%r15, %rdi
	callq	_LIST_FIRST
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rbx), %rax
	cmpq	(%r14), %rax
	jge	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rbx), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	8(%rcx), %rax
	jg	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_pfsync_update_state_req
	testq	%rax, %rax
	jne	LBB0_17
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_LIST_NEXT
	jmp	LBB0_8
LBB0_17:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, (%r14)
	movl	28(%rbx), %eax
	movl	%eax, 24(%r14)
	movl	24(%rbx), %eax
	movl	%eax, 20(%r14)
	movq	%r15, %rdi
	callq	_PF_HASHROW_UNLOCK
	leaq	16(%r14), %rdi
	leaq	_pfsync_bulk_update(%rip), %rdx
	movl	$1, %esi
	movq	%r14, %rcx
	callq	_callout_reset
LBB0_16:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CURVNET_RESTORE                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pf_hashmask,4,2                ## @pf_hashmask
	.comm	_V_pf_idhash,8,3                ## @V_pf_idhash
	.comm	_PFSYNC_S_NONE,8,3              ## @PFSYNC_S_NONE
	.comm	_PFTM_MAX,8,3                   ## @PFTM_MAX
	.comm	_entry,4,2                      ## @entry
	.comm	_PFSYNC_BUS_END,4,2             ## @PFSYNC_BUS_END
	.no_dead_strip	_pfsync_bulk_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfsync_bulk_update
_pfsync_bulk_update:                    ; @pfsync_bulk_update
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	bl	_PFSYNC_BLOCK_ASSERT
	ldr	x8, [x19, #32]
	ldr	w0, [x8]
	bl	_CURVNET_SET
	ldp	w1, w0, [x19, #20]
	bl	_pf_find_state_byid
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_PF_IDHASH
                                        ; kill: def $w0 killed $w0 def $x0
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19]
LBB0_3:
Lloh0:
	adrp	x22, _pf_hashmask@GOTPAGE
Lloh1:
	ldr	x22, [x22, _pf_hashmask@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w0, w8
	b.le	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _PFSYNC_BUS_END@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PFSYNC_BUS_END@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_pfsync_bulk_status
	b	LBB0_17
LBB0_5:
	sxtw	x23, w0
Lloh5:
	adrp	x24, _V_pf_idhash@GOTPAGE
Lloh6:
	ldr	x24, [x24, _V_pf_idhash@GOTPAGEOFF]
Lloh7:
	adrp	x25, _PFSYNC_S_NONE@GOTPAGE
Lloh8:
	ldr	x25, [x25, _PFSYNC_S_NONE@GOTPAGEOFF]
Lloh9:
	adrp	x26, _PFTM_MAX@GOTPAGE
Lloh10:
	ldr	x26, [x26, _PFTM_MAX@GOTPAGEOFF]
Lloh11:
	adrp	x27, _entry@GOTPAGE
Lloh12:
	ldr	x27, [x27, _entry@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_PF_HASHROW_UNLOCK
	mov	x20, #0
	add	x8, x23, #1
	ldrsw	x9, [x22]
	cmp	x23, x9
	mov	x23, x8
	b.ge	LBB0_4
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x21, x8, x23, lsl #2
	mov	x0, x21
	cbz	x20, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_PF_HASHROW_ASSERT
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	bl	_PF_HASHROW_LOCK
	mov	x0, x21
	bl	_LIST_FIRST
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x20, x0
	cbz	x0, LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x25]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20, #8]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ge	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x20, #16]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.gt	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_pfsync_update_state_req
	cbnz	x0, LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w1, [x27]
	mov	x0, x20
	bl	_LIST_NEXT
	b	LBB0_10
LBB0_16:
	str	w23, [x19]
	ldr	d0, [x20, #24]
	stur	d0, [x19, #20]
	mov	x0, x21
	bl	_PF_HASHROW_UNLOCK
	add	x0, x19, #16
Lloh13:
	adrp	x2, _pfsync_bulk_update@PAGE
Lloh14:
	add	x2, x2, _pfsync_bulk_update@PAGEOFF
	mov	w1, #1
	mov	x3, x19
	bl	_callout_reset
LBB0_17:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_CURVNET_RESTORE
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_pf_hashmask,4,2                ; @pf_hashmask
	.comm	_V_pf_idhash,8,3                ; @V_pf_idhash
	.comm	_PFSYNC_S_NONE,8,3              ; @PFSYNC_S_NONE
	.comm	_PFTM_MAX,8,3                   ; @PFTM_MAX
	.comm	_entry,4,2                      ; @entry
	.comm	_PFSYNC_BUS_END,4,2             ; @PFSYNC_BUS_END
	.no_dead_strip	_pfsync_bulk_update
.subsections_via_symbols
