	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfsyncioctl
_pfsyncioctl:                           ## @pfsyncioctl
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$3, %esi
	ja	LBB0_11
## %bb.1:
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	16(%rdi), %r12
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	88(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.3:
	movl	(%r14), %eax
	movq	_PFSYNC_MINPKT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jle	LBB0_17
## %bb.4:
	cmpl	4(%rcx), %eax
	jg	LBB0_17
## %bb.5:
	cmpl	4(%r15), %eax
	jge	LBB0_24
## %bb.6:
	movq	_pfsync_buckets@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_24
## %bb.7:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	addq	%r13, %rdi
	callq	_PFSYNC_BUCKET_UNLOCK
	incq	%rbx
	movq	_pfsync_buckets@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jge	LBB0_23
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	addq	%r13, %rdi
	callq	_PFSYNC_BUCKET_LOCK
	movq	16(%r12), %rdi
	movl	(%rdi,%r13), %eax
	movq	_PFSYNC_MINPKT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_pfsync_sendout
	movq	16(%r12), %rdi
	jmp	LBB0_8
LBB0_11:
	movq	_ENOTTY@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_12:
	movq	%r12, %rdi
	callq	_PFSYNC_LOCK
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, (%r15)
	je	LBB0_22
## %bb.13:
	orl	%eax, 12(%r15)
	movq	%r12, %rdi
	callq	_PFSYNC_UNLOCK
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pfsync_pointers_init
	jmp	LBB0_26
LBB0_14:
	movq	_curthread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_PRIV_NETINET_PF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_priv_check
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_26
## %bb.15:
	movq	%r14, %rdi
	callq	_ifr_data_get_ptr
	leaq	-112(%rbp), %rsi
	movl	%eax, %edi
	movl	$56, %edx
	callq	_copyin
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_26
## %bb.16:
	cmpl	$256, -112(%rbp)                ## imm = 0x100
	jl	LBB0_27
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %ebx
	jmp	LBB0_26
LBB0_19:
	leaq	-112(%rbp), %rdi
	movl	$56, %esi
	callq	_bzero
	movq	%r12, %rdi
	callq	_PFSYNC_LOCK
	movq	88(%r12), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	-64(%rbp), %rdi
	movl	8(%rax), %esi
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
LBB0_21:
	movl	24(%r12), %eax
	movl	%eax, -72(%rbp)
	movl	(%r12), %eax
	movl	%eax, -112(%rbp)
	movq	_PFSYNCF_DEFER@GOTPCREL(%rip), %rax
	movl	4(%r12), %ecx
	notl	%ecx
	xorl	%edx, %edx
	andl	(%rax), %ecx
	sete	%dl
	movl	%edx, -108(%rbp)
	movq	%r12, %rdi
	callq	_PFSYNC_UNLOCK
	movq	%r14, %rdi
	callq	_ifr_data_get_ptr
	leaq	-112(%rbp), %rdi
	movl	%eax, %esi
	movl	$56, %edx
	callq	_copyout
	movl	%eax, %ebx
	jmp	LBB0_26
LBB0_22:
	notl	%eax
	andl	%eax, 12(%r15)
	movq	%r12, %rdi
	callq	_PFSYNC_UNLOCK
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pfsync_pointers_uninit
	jmp	LBB0_26
LBB0_23:
	movl	(%r14), %eax
LBB0_24:
	movl	%eax, 4(%r15)
LBB0_25:
	xorl	%ebx, %ebx
LBB0_26:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	movq	-64(%rbp), %rdi
	movl	(%rdi), %r14d
	testl	%r14d, %r14d
	je	LBB0_32
## %bb.28:
	callq	_ifunit_ref
	movq	%rax, %rcx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_17
## %bb.29:
	movl	-72(%rbp), %ebx
	testl	%ebx, %ebx
	je	LBB0_31
## %bb.30:
	movq	_INADDR_PFSYNC_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	cmpl	%eax, %ebx
	jne	LBB0_33
LBB0_31:
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ip_mfilter_alloc
	movq	%rax, %rbx
	jmp	LBB0_34
LBB0_32:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_33:
	xorl	%ebx, %ebx
LBB0_34:
	movq	%r12, %rdi
	callq	_PFSYNC_LOCK
	movl	-72(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_36
## %bb.35:
	movq	_INADDR_PFSYNC_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
LBB0_36:
	movl	%eax, 24(%r12)
	movl	-112(%rbp), %eax
	movl	%eax, (%r12)
	cmpl	$0, -108(%rbp)
	movq	_PFSYNCF_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	je	LBB0_38
## %bb.37:
	orl	%eax, 4(%r12)
	movq	_pfsync_defer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_39
LBB0_38:
	notl	%eax
	andl	%eax, 4(%r12)
	xorl	%eax, %eax
LBB0_39:
	movq	_V_pfsync_defer_ptr@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testl	%r14d, %r14d
	je	LBB0_59
## %bb.40:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_pfsync_buckets@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_49
## %bb.41:
	xorl	%r15d, %r15d
	movq	_PFSYNC_MINPKT@GOTPCREL(%rip), %r14
	xorl	%ebx, %ebx
	jmp	LBB0_44
LBB0_42:                                ##   in Loop: Header=BB0_44 Depth=1
	movl	$1, %edi
	movl	%ebx, %esi
	callq	_pfsync_sendout
	movq	16(%r12), %rdi
LBB0_43:                                ##   in Loop: Header=BB0_44 Depth=1
	addq	%r15, %rdi
	callq	_PFSYNC_BUCKET_UNLOCK
	incq	%rbx
	movslq	(%r13), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jge	LBB0_49
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rdi
	addq	%r15, %rdi
	callq	_PFSYNC_BUCKET_LOCK
	movq	16(%r12), %rdi
	movl	(%rdi,%r15), %eax
	cmpl	(%r14), %eax
	jle	LBB0_43
## %bb.45:                              ##   in Loop: Header=BB0_44 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	4(%rax), %rax
	movq	96(%r12), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_42
## %bb.46:                              ##   in Loop: Header=BB0_44 Depth=1
	movq	88(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_48
## %bb.47:                              ##   in Loop: Header=BB0_44 Depth=1
	cmpl	4(%rcx), %eax
	jl	LBB0_42
LBB0_48:                                ##   in Loop: Header=BB0_44 Depth=1
	movq	_MCLBYTES@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	$-56, %rcx
	cmpq	%rax, %rcx
	ja	LBB0_42
	jmp	LBB0_43
LBB0_49:
	movq	%r12, %rdi
	callq	_pfsync_multicast_cleanup
	movl	24(%r12), %ebx
	movq	_INADDR_PFSYNC_GROUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	cmpl	%eax, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_52
## %bb.50:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_pfsync_multicast_setup
	testl	%eax, %eax
	je	LBB0_52
## %bb.51:
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_if_rele
	movq	%r14, %rdi
	callq	_ip_mfilter_free
	movq	%r12, %rdi
	callq	_PFSYNC_UNLOCK
	jmp	LBB0_26
LBB0_52:
	movq	88(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_54
## %bb.53:
	callq	_if_rele
LBB0_54:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 88(%r12)
	leaq	32(%r12), %rdi
	movl	$56, %esi
	callq	_bzero
	movq	_IPVERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 68(%r12)
	movl	$14, 40(%r12)
	movq	_IPTOS_LOWDELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r12)
	movq	_IP_DF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, 60(%r12)
	movq	_PFSYNC_DFLTTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r12)
	movq	_IPPROTO_PFSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r12)
	movq	_INADDR_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
	movl	4(%r12), %eax
	movl	24(%r12), %ecx
	movl	%ecx, 44(%r12)
	movq	_PFSYNCF_OK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	testl	%eax, %ecx
	je	LBB0_56
## %bb.55:
	movq	_V_pfsync_carp_adj@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_carp_demote_adj_p
	movl	(%rbx), %ecx
	movl	4(%r12), %eax
LBB0_56:
	notl	%ecx
	andl	%eax, %ecx
	movl	%ecx, 4(%r12)
	movq	_V_pf_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PF_DEBUG_MISC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_58
## %bb.57:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_58:
	movq	%r12, %rdi
	callq	_PFSYNC_UNLOCK
	movq	16(%r12), %rdi
	callq	_PFSYNC_BUCKET_LOCK
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_pfsync_request_update
	movq	16(%r12), %rdi
	callq	_PFSYNC_BUCKET_UNLOCK
	movq	%r12, %rdi
	callq	_PFSYNC_BLOCK
	movq	_time_uptime@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	leaq	8(%r12), %rdi
	movq	_hz@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %esi
	movq	_pfsync_bulk_fail@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rcx
	callq	_callout_reset
	movq	%r12, %rdi
	callq	_PFSYNC_BUNLOCK
	jmp	LBB0_26
LBB0_59:
	movq	88(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_61
## %bb.60:
	callq	_if_rele
LBB0_61:
	movq	$0, 88(%r12)
	movq	%r12, %rdi
	callq	_pfsync_multicast_cleanup
	movq	%r12, %rdi
	callq	_PFSYNC_UNLOCK
	jmp	LBB0_25
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_12
	.long	L0_0_set_14
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.comm	_IFF_DRV_RUNNING,4,2            ## @IFF_DRV_RUNNING
	.comm	_PFSYNC_MINPKT,4,2              ## @PFSYNC_MINPKT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_pfsync_buckets,4,2             ## @pfsync_buckets
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_PFSYNCF_DEFER,4,2              ## @PFSYNCF_DEFER
	.comm	_curthread,4,2                  ## @curthread
	.comm	_PRIV_NETINET_PF,4,2            ## @PRIV_NETINET_PF
	.comm	_INADDR_PFSYNC_GROUP,4,2        ## @INADDR_PFSYNC_GROUP
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_pfsync_defer,8,3               ## @pfsync_defer
	.comm	_V_pfsync_defer_ptr,8,3         ## @V_pfsync_defer_ptr
	.comm	_MCLBYTES,4,2                   ## @MCLBYTES
	.comm	_IPVERSION,4,2                  ## @IPVERSION
	.comm	_IPTOS_LOWDELAY,4,2             ## @IPTOS_LOWDELAY
	.comm	_IP_DF,4,2                      ## @IP_DF
	.comm	_PFSYNC_DFLTTL,4,2              ## @PFSYNC_DFLTTL
	.comm	_IPPROTO_PFSYNC,4,2             ## @IPPROTO_PFSYNC
	.comm	_INADDR_ANY,4,2                 ## @INADDR_ANY
	.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 start"

	.comm	_V_pf_status,4,2                ## @V_pf_status
	.comm	_PF_DEBUG_MISC,4,2              ## @PF_DEBUG_MISC
	.comm	_time_uptime,4,2                ## @time_uptime
	.comm	_hz,4,2                         ## @hz
	.comm	_pfsync_bulk_fail,4,2           ## @pfsync_bulk_fail
	.comm	_ENOTTY,4,2                     ## @ENOTTY
L_str:                                  ## @str
	.asciz	"pfsync: requesting bulk update"

	.no_dead_strip	_pfsyncioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfsyncioctl
_pfsyncioctl:                           ; @pfsyncioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	sub	w8, w1, #128
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.1:
	mov	x20, x2
	mov	x21, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x9, [x19, #88]
	cbz	x9, LBB0_17
; %bb.3:
	ldr	w8, [x20]
Lloh2:
	adrp	x23, _PFSYNC_MINPKT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _PFSYNC_MINPKT@GOTPAGEOFF]
	ldr	w10, [x23]
	cmp	w8, w10
	b.le	LBB0_17
; %bb.4:
	ldr	w9, [x9, #4]
	cmp	w8, w9
	b.gt	LBB0_17
; %bb.5:
	ldr	w9, [x21, #4]
	cmp	w8, w9
	b.ge	LBB0_24
; %bb.6:
Lloh4:
	adrp	x24, _pfsync_buckets@GOTPAGE
Lloh5:
	ldr	x24, [x24, _pfsync_buckets@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w9, #1
	b.lt	LBB0_24
; %bb.7:
	mov	x25, #0
	mov	x22, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x0, x8, x25
	bl	_PFSYNC_BUCKET_UNLOCK
	add	x22, x22, #1
	ldrsw	x8, [x24]
	add	x25, x25, #4
	cmp	x22, x8
	b.ge	LBB0_23
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x25
	bl	_PFSYNC_BUCKET_LOCK
	ldr	x8, [x19, #16]
	ldr	w9, [x8, x25]
	ldr	w10, [x23]
	cmp	w9, w10
	b.le	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #1
	mov	x1, x22
	bl	_pfsync_sendout
	ldr	x8, [x19, #16]
	b	LBB0_8
LBB0_11:
Lloh6:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
	b	LBB0_18
LBB0_12:
	mov	x0, x19
	bl	_PFSYNC_LOCK
Lloh8:
	adrp	x8, _IFF_UP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IFF_UP@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh10:
	ldr	w10, [x8]
Lloh11:
	adrp	x8, _IFF_DRV_RUNNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w10, w9
	b.eq	LBB0_22
; %bb.13:
	ldr	w9, [x21, #12]
	orr	w8, w9, w8
	str	w8, [x21, #12]
	mov	x0, x19
	bl	_PFSYNC_UNLOCK
	bl	_pfsync_pointers_init
	mov	w22, #0
	b	LBB0_25
LBB0_14:
Lloh14:
	adrp	x8, _curthread@GOTPAGE
Lloh15:
	ldr	x8, [x8, _curthread@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _PRIV_NETINET_PF@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PRIV_NETINET_PF@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_priv_check
	mov	x22, x0
	cbnz	w0, LBB0_25
; %bb.15:
	mov	x0, x20
	bl	_ifr_data_get_ptr
	add	x1, sp, #8
	mov	w2, #56
	bl	_copyin
	mov	x22, x0
	cbnz	w0, LBB0_25
; %bb.16:
	ldr	w8, [sp, #8]
	cmp	w8, #256
	b.lt	LBB0_26
LBB0_17:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w22, [x8]
	b	LBB0_25
LBB0_19:
	add	x0, sp, #8
	mov	w1, #56
	bl	_bzero
	mov	x0, x19
	bl	_PFSYNC_LOCK
	ldr	x8, [x19, #88]
	cbz	x8, LBB0_21
; %bb.20:
	ldr	x0, [sp, #56]
	ldr	w1, [x8, #8]
Lloh22:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	bl	_strlcpy
LBB0_21:
	ldr	w8, [x19, #24]
	str	w8, [sp, #48]
Lloh25:
	adrp	x8, _PFSYNCF_DEFER@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PFSYNCF_DEFER@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldp	w9, w10, [x19]
	bics	wzr, w8, w10
	cset	w8, eq
	stp	w9, w8, [sp, #8]
	mov	x0, x19
	bl	_PFSYNC_UNLOCK
	mov	x0, x20
	bl	_ifr_data_get_ptr
	mov	x1, x0
	add	x0, sp, #8
	mov	w2, #56
	bl	_copyout
	mov	x22, x0
	b	LBB0_25
LBB0_22:
	ldr	w9, [x21, #12]
	bic	w8, w9, w8
	str	w8, [x21, #12]
	mov	x0, x19
	bl	_PFSYNC_UNLOCK
	bl	_pfsync_pointers_uninit
	mov	w22, #0
	b	LBB0_25
LBB0_23:
	ldr	w8, [x20]
LBB0_24:
	mov	w22, #0
	str	w8, [x21, #4]
LBB0_25:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_26:
	ldr	x0, [sp, #56]
	ldr	w22, [x0]
	cbz	w22, LBB0_31
; %bb.27:
	bl	_ifunit_ref
	cbz	x0, LBB0_17
; %bb.28:
	mov	x20, x0
	ldr	w21, [sp, #48]
	cbz	w21, LBB0_30
; %bb.29:
Lloh28:
	adrp	x8, _INADDR_PFSYNC_GROUP@GOTPAGE
Lloh29:
	ldr	x8, [x8, _INADDR_PFSYNC_GROUP@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_htonl
	cmp	w21, w0
	b.ne	LBB0_32
LBB0_30:
Lloh31:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #0
	bl	_ip_mfilter_alloc
	mov	x21, x0
	b	LBB0_33
LBB0_31:
	mov	x20, #0
LBB0_32:
	mov	x21, #0
LBB0_33:
	mov	x0, x19
	bl	_PFSYNC_LOCK
	ldr	w0, [sp, #48]
	cbnz	w0, LBB0_35
; %bb.34:
Lloh34:
	adrp	x8, _INADDR_PFSYNC_GROUP@GOTPAGE
Lloh35:
	ldr	x8, [x8, _INADDR_PFSYNC_GROUP@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_htonl
LBB0_35:
	str	w0, [x19, #24]
	ldr	w8, [sp, #8]
	str	w8, [x19]
	ldr	w8, [sp, #12]
Lloh37:
	adrp	x9, _PFSYNCF_DEFER@GOTPAGE
Lloh38:
	ldr	x9, [x9, _PFSYNCF_DEFER@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	cbz	w8, LBB0_37
; %bb.36:
	ldr	w8, [x19, #4]
	orr	w8, w8, w9
	str	w8, [x19, #4]
Lloh40:
	adrp	x8, _pfsync_defer@GOTPAGE
Lloh41:
	ldr	x8, [x8, _pfsync_defer@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	b	LBB0_38
LBB0_37:
	mov	x8, #0
	ldr	w10, [x19, #4]
	bic	w9, w10, w9
	str	w9, [x19, #4]
LBB0_38:
Lloh43:
	adrp	x9, _V_pfsync_defer_ptr@GOTPAGE
Lloh44:
	ldr	x9, [x9, _V_pfsync_defer_ptr@GOTPAGEOFF]
Lloh45:
	str	x8, [x9]
	cbz	w22, LBB0_58
; %bb.39:
Lloh46:
	adrp	x23, _pfsync_buckets@GOTPAGE
Lloh47:
	ldr	x23, [x23, _pfsync_buckets@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_48
; %bb.40:
	mov	x24, #0
	mov	x22, #0
Lloh48:
	adrp	x25, _PFSYNC_MINPKT@GOTPAGE
Lloh49:
	ldr	x25, [x25, _PFSYNC_MINPKT@GOTPAGEOFF]
Lloh50:
	adrp	x26, _MCLBYTES@GOTPAGE
Lloh51:
	ldr	x26, [x26, _MCLBYTES@GOTPAGEOFF]
	b	LBB0_43
LBB0_41:                                ;   in Loop: Header=BB0_43 Depth=1
	mov	w0, #1
	mov	x1, x22
	bl	_pfsync_sendout
	ldr	x8, [x19, #16]
LBB0_42:                                ;   in Loop: Header=BB0_43 Depth=1
	add	x0, x8, x24
	bl	_PFSYNC_BUCKET_UNLOCK
	add	x22, x22, #1
	ldrsw	x8, [x23]
	add	x24, x24, #4
	cmp	x22, x8
	b.ge	LBB0_48
LBB0_43:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x24
	bl	_PFSYNC_BUCKET_LOCK
	ldr	x8, [x19, #16]
	ldr	w9, [x8, x24]
	ldr	w10, [x25]
	cmp	w9, w10
	b.le	LBB0_42
; %bb.44:                               ;   in Loop: Header=BB0_43 Depth=1
	ldrsw	x9, [x20, #4]
	ldr	x10, [x19, #96]
	ldr	w10, [x10]
	cmp	w9, w10
	b.lt	LBB0_41
; %bb.45:                               ;   in Loop: Header=BB0_43 Depth=1
	ldr	x10, [x19, #88]
	cbz	x10, LBB0_47
; %bb.46:                               ;   in Loop: Header=BB0_43 Depth=1
	ldr	w10, [x10, #4]
	cmp	w9, w10
	b.lt	LBB0_41
LBB0_47:                                ;   in Loop: Header=BB0_43 Depth=1
	ldrsw	x10, [x26]
	sub	x10, x10, #56
	cmp	x10, x9
	b.hi	LBB0_41
	b	LBB0_42
LBB0_48:
	mov	x0, x19
	bl	_pfsync_multicast_cleanup
	ldr	w22, [x19, #24]
Lloh52:
	adrp	x8, _INADDR_PFSYNC_GROUP@GOTPAGE
Lloh53:
	ldr	x8, [x8, _INADDR_PFSYNC_GROUP@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
	bl	_htonl
	cmp	w22, w0
	b.ne	LBB0_51
; %bb.49:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_pfsync_multicast_setup
	cbz	w0, LBB0_51
; %bb.50:
	mov	x22, x0
	mov	x0, x20
	bl	_if_rele
	mov	x0, x21
	bl	_ip_mfilter_free
	mov	x0, x19
	bl	_PFSYNC_UNLOCK
	b	LBB0_25
LBB0_51:
	ldr	x0, [x19, #88]
	cbz	x0, LBB0_53
; %bb.52:
	bl	_if_rele
LBB0_53:
	str	x20, [x19, #88]
	add	x0, x19, #32
	mov	w1, #56
	bl	_bzero
Lloh55:
	adrp	x8, _IPVERSION@GOTPAGE
Lloh56:
	ldr	x8, [x8, _IPVERSION@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	mov	w9, #14
	str	w9, [x19, #40]
Lloh58:
	adrp	x9, _IPTOS_LOWDELAY@GOTPAGE
Lloh59:
	ldr	x9, [x9, _IPTOS_LOWDELAY@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #64]
Lloh61:
	adrp	x8, _IP_DF@GOTPAGE
Lloh62:
	ldr	x8, [x8, _IP_DF@GOTPAGEOFF]
Lloh63:
	ldr	w0, [x8]
	bl	_htons
Lloh64:
	adrp	x8, _PFSYNC_DFLTTL@GOTPAGE
Lloh65:
	ldr	x8, [x8, _PFSYNC_DFLTTL@GOTPAGEOFF]
	str	w0, [x19, #60]
Lloh66:
	ldr	w8, [x8]
Lloh67:
	adrp	x9, _IPPROTO_PFSYNC@GOTPAGE
Lloh68:
	ldr	x9, [x9, _IPPROTO_PFSYNC@GOTPAGEOFF]
Lloh69:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #52]
Lloh70:
	adrp	x8, _INADDR_ANY@GOTPAGE
Lloh71:
	ldr	x8, [x8, _INADDR_ANY@GOTPAGEOFF]
Lloh72:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	stp	w9, w8, [x19, #44]
	ldr	w8, [x19, #4]
Lloh73:
	adrp	x20, _PFSYNCF_OK@GOTPAGE
Lloh74:
	ldr	x20, [x20, _PFSYNCF_OK@GOTPAGEOFF]
	ldr	w9, [x20]
	tst	w9, w8
	b.eq	LBB0_55
; %bb.54:
Lloh75:
	adrp	x8, _V_pfsync_carp_adj@GOTPAGE
Lloh76:
	ldr	x8, [x8, _V_pfsync_carp_adj@GOTPAGEOFF]
Lloh77:
	ldr	w0, [x8]
Lloh78:
	adrp	x1, l_.str@PAGE
Lloh79:
	add	x1, x1, l_.str@PAGEOFF
	bl	_carp_demote_adj_p
	ldr	w9, [x20]
	ldr	w8, [x19, #4]
LBB0_55:
	bic	w8, w8, w9
Lloh80:
	adrp	x9, _V_pf_status@GOTPAGE
Lloh81:
	ldr	x9, [x9, _V_pf_status@GOTPAGEOFF]
	str	w8, [x19, #4]
Lloh82:
	ldr	w8, [x9]
Lloh83:
	adrp	x9, _PF_DEBUG_MISC@GOTPAGE
Lloh84:
	ldr	x9, [x9, _PF_DEBUG_MISC@GOTPAGEOFF]
Lloh85:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_57
; %bb.56:
Lloh86:
	adrp	x0, l_str@PAGE
Lloh87:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_57:
	mov	x0, x19
	bl	_PFSYNC_UNLOCK
	ldr	x0, [x19, #16]
	bl	_PFSYNC_BUCKET_LOCK
	mov	w0, #0
	mov	w1, #0
	bl	_pfsync_request_update
	ldr	x0, [x19, #16]
	bl	_PFSYNC_BUCKET_UNLOCK
	mov	x0, x19
	bl	_PFSYNC_BLOCK
Lloh88:
	adrp	x8, _time_uptime@GOTPAGE
Lloh89:
	ldr	x8, [x8, _time_uptime@GOTPAGEOFF]
Lloh90:
	ldr	w8, [x8]
	str	w8, [x19, #12]
Lloh91:
	adrp	x8, _hz@GOTPAGE
Lloh92:
	ldr	x8, [x8, _hz@GOTPAGEOFF]
	add	x0, x19, #8
Lloh93:
	ldr	w8, [x8]
	add	w1, w8, w8, lsl #2
Lloh94:
	adrp	x8, _pfsync_bulk_fail@GOTPAGE
Lloh95:
	ldr	x8, [x8, _pfsync_bulk_fail@GOTPAGEOFF]
Lloh96:
	ldr	w2, [x8]
	mov	x3, x19
	bl	_callout_reset
	mov	x0, x19
	bl	_PFSYNC_BUNLOCK
	mov	w22, #0
	b	LBB0_25
LBB0_58:
	ldr	x0, [x19, #88]
	cbz	x0, LBB0_60
; %bb.59:
	bl	_if_rele
LBB0_60:
	str	xzr, [x19, #88]
	mov	x0, x19
	bl	_pfsync_multicast_cleanup
	mov	x0, x19
	bl	_PFSYNC_UNLOCK
	mov	w22, #0
	b	LBB0_25
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotStr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpAdd	Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
                                        ; -- End function
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.comm	_IFF_DRV_RUNNING,4,2            ; @IFF_DRV_RUNNING
	.comm	_PFSYNC_MINPKT,4,2              ; @PFSYNC_MINPKT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_pfsync_buckets,4,2             ; @pfsync_buckets
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_PFSYNCF_DEFER,4,2              ; @PFSYNCF_DEFER
	.comm	_curthread,4,2                  ; @curthread
	.comm	_PRIV_NETINET_PF,4,2            ; @PRIV_NETINET_PF
	.comm	_INADDR_PFSYNC_GROUP,4,2        ; @INADDR_PFSYNC_GROUP
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_pfsync_defer,8,3               ; @pfsync_defer
	.comm	_V_pfsync_defer_ptr,8,3         ; @V_pfsync_defer_ptr
	.comm	_MCLBYTES,4,2                   ; @MCLBYTES
	.comm	_IPVERSION,4,2                  ; @IPVERSION
	.comm	_IPTOS_LOWDELAY,4,2             ; @IPTOS_LOWDELAY
	.comm	_IP_DF,4,2                      ; @IP_DF
	.comm	_PFSYNC_DFLTTL,4,2              ; @PFSYNC_DFLTTL
	.comm	_IPPROTO_PFSYNC,4,2             ; @IPPROTO_PFSYNC
	.comm	_INADDR_ANY,4,2                 ; @INADDR_ANY
	.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 start"

	.comm	_V_pf_status,4,2                ; @V_pf_status
	.comm	_PF_DEBUG_MISC,4,2              ; @PF_DEBUG_MISC
	.comm	_time_uptime,4,2                ; @time_uptime
	.comm	_hz,4,2                         ; @hz
	.comm	_pfsync_bulk_fail,4,2           ; @pfsync_bulk_fail
	.comm	_ENOTTY,4,2                     ; @ENOTTY
l_str:                                  ; @str
	.asciz	"pfsync: requesting bulk update"

	.no_dead_strip	_pfsyncioctl
.subsections_via_symbols
