	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pfsync_defer
_pfsync_defer:                          ## @pfsync_defer
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_V_pfsyncif@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_pfsync_get_bucket
	movq	_M_BCAST@GOTPCREL(%rip), %rcx
	movq	_M_MCAST@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	xorl	%r13d, %r13d
	testl	%edx, (%r15)
	jne	LBB0_9
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_PFSYNC_LOCK
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.2:
	movq	8(%rbx), %rax
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_PFSYNCF_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.5:
	cmpl	$128, (%r14)
	jl	LBB0_7
## %bb.6:
	leaq	8(%r14), %rdi
	callq	_TAILQ_FIRST
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_pfsync_undefer
LBB0_7:
	movq	_M_PFSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	incl	(%r14)
	movq	_M_SKIP_FIREWALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r15)
	movq	_PFSTATE_ACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r12)
	movq	%rbx, 32(%rax)
	movq	$0, 24(%rax)
	movq	%r12, 16(%rax)
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_pf_ref_state
	movq	%r15, 8(%rbx)
	leaq	8(%r14), %rdi
	movq	_pd_entry@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_TAIL
	movq	%r14, %rsi
	addq	$4, %rsi
	movq	_CALLOUT_RETURNUNLOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_callout_init_mtx
	movq	_pfsync_defer_tmo@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$10, %esi
	movq	%rbx, %rcx
	callq	_callout_reset
	movq	%r14, %rdi
	callq	_pfsync_push
	movl	$1, %r13d
	jmp	LBB0_9
LBB0_4:
	movq	%rbx, %rdi
	callq	_PFSYNC_UNLOCK
LBB0_9:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V_pfsyncif,8,3                 ## @V_pfsyncif
	.comm	_M_BCAST,4,2                    ## @M_BCAST
	.comm	_M_MCAST,4,2                    ## @M_MCAST
	.comm	_IFF_DRV_RUNNING,4,2            ## @IFF_DRV_RUNNING
	.comm	_PFSYNCF_DEFER,4,2              ## @PFSYNCF_DEFER
	.comm	_M_PFSYNC,4,2                   ## @M_PFSYNC
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_SKIP_FIREWALL,4,2            ## @M_SKIP_FIREWALL
	.comm	_PFSTATE_ACK,4,2                ## @PFSTATE_ACK
	.comm	_pd_entry,4,2                   ## @pd_entry
	.comm	_CALLOUT_RETURNUNLOCKED,4,2     ## @CALLOUT_RETURNUNLOCKED
	.comm	_pfsync_defer_tmo,4,2           ## @pfsync_defer_tmo
	.no_dead_strip	_pfsync_defer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pfsync_defer
_pfsync_defer:                          ; @pfsync_defer
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _V_pfsyncif@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V_pfsyncif@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	mov	x0, x22
	mov	x1, x21
	bl	_pfsync_get_bucket
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _M_BCAST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _M_BCAST@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _M_MCAST@GOTPAGE
Lloh7:
	ldr	x10, [x10, _M_MCAST@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x0, x22
	bl	_PFSYNC_LOCK
	cbz	x22, LBB0_8
; %bb.2:
	ldr	x8, [x22, #8]
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _IFF_DRV_RUNNING@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.3:
	ldr	w8, [x22]
Lloh12:
	adrp	x9, _PFSYNCF_DEFER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PFSYNCF_DEFER@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.4:
	ldr	w8, [x19]
	cmp	w8, #128
	b.lt	LBB0_6
; %bb.5:
	add	x0, x19, #8
	bl	_TAILQ_FIRST
	mov	w1, #0
	bl	_pfsync_undefer
LBB0_6:
Lloh15:
	adrp	x8, _M_PFSYNC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _M_PFSYNC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	w0, #40
	bl	_malloc
	cbz	x0, LBB0_10
; %bb.7:
	mov	x23, x0
	mov	x24, x19
	ldr	w8, [x24], #8
	add	w8, w8, #1
	mov	x25, x19
	str	w8, [x25], #4
Lloh21:
	adrp	x8, _M_SKIP_FIREWALL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _M_SKIP_FIREWALL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
Lloh24:
	adrp	x8, _PFSTATE_ACK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PFSTATE_ACK@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	stp	xzr, x22, [x0, #24]
	str	x21, [x0, #16]
	mov	x0, x21
	bl	_pf_ref_state
	str	x20, [x23, #8]
Lloh27:
	adrp	x8, _pd_entry@GOTPAGE
Lloh28:
	ldr	x8, [x8, _pd_entry@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x24
	mov	x1, x23
	bl	_TAILQ_INSERT_TAIL
Lloh30:
	adrp	x8, _CALLOUT_RETURNUNLOCKED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CALLOUT_RETURNUNLOCKED@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x25
	bl	_callout_init_mtx
Lloh33:
	adrp	x8, _pfsync_defer_tmo@GOTPAGE
Lloh34:
	ldr	x8, [x8, _pfsync_defer_tmo@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x23
	mov	w1, #10
	mov	x3, x23
	bl	_callout_reset
	mov	x0, x19
	bl	_pfsync_push
	mov	w0, #1
	b	LBB0_10
LBB0_8:
	mov	x0, x22
	bl	_PFSYNC_UNLOCK
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_V_pfsyncif,8,3                 ; @V_pfsyncif
	.comm	_M_BCAST,4,2                    ; @M_BCAST
	.comm	_M_MCAST,4,2                    ; @M_MCAST
	.comm	_IFF_DRV_RUNNING,4,2            ; @IFF_DRV_RUNNING
	.comm	_PFSYNCF_DEFER,4,2              ; @PFSYNCF_DEFER
	.comm	_M_PFSYNC,4,2                   ; @M_PFSYNC
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_SKIP_FIREWALL,4,2            ; @M_SKIP_FIREWALL
	.comm	_PFSTATE_ACK,4,2                ; @PFSTATE_ACK
	.comm	_pd_entry,4,2                   ; @pd_entry
	.comm	_CALLOUT_RETURNUNLOCKED,4,2     ; @CALLOUT_RETURNUNLOCKED
	.comm	_pfsync_defer_tmo,4,2           ; @pfsync_defer_tmo
	.no_dead_strip	_pfsync_defer
.subsections_via_symbols
