	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tun_flow_update
_tun_flow_update:                       ## @tun_flow_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
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	24(%rdi), %rbx
	movq	(%rdx), %r13
	movl	%esi, %edi
	callq	_tun_hashfn
	leaq	(%rbx,%rax,4), %rbx
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_tun_flow_find
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movl	12(%r14), %edi
	callq	_READ_ONCE
	cmpq	%r13, %rax
	je	LBB0_3
## %bb.2:
	movl	12(%r14), %edi
	movq	%r13, %rsi
	callq	_WRITE_ONCE
LBB0_3:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%r14)
	je	LBB0_5
## %bb.4:
	movq	%rax, (%r14)
LBB0_5:
	movl	8(%r14), %edi
	callq	_sock_rps_record_flow_hash
	jmp	LBB0_12
LBB0_6:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	leaq	16(%r15), %rdi
	movq	%rdi, %r14
	callq	_spin_lock_bh
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_tun_flow_find
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	8(%r15), %rax
	movq	_MAX_TAP_FLOWS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_tun_flow_create
LBB0_9:
	addq	$20, %r15
	movq	%r15, %rdi
	callq	_timer_pending
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movq	%r13, %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_round_jiffies_up
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mod_timer
LBB0_11:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
LBB0_12:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rcu_read_unlock                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_MAX_TAP_FLOWS,8,3              ## @MAX_TAP_FLOWS
	.no_dead_strip	_tun_flow_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tun_flow_update
_tun_flow_update:                       ; @tun_flow_update
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x1
	mov	x20, x0
	ldr	x24, [x0]
	ldr	x19, [x2]
	ldr	x21, [x0, #24]
	mov	x0, x1
	bl	_tun_hashfn
	add	x23, x21, x0, lsl #2
	bl	_rcu_read_lock
	mov	x0, x23
	mov	x1, x22
	bl	_tun_flow_find
	mov	x21, x0
	bl	_likely
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w0, [x21, #12]
	bl	_READ_ONCE
	cmp	x0, x19
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x21, #12]
	mov	x1, x19
	bl	_WRITE_ONCE
LBB0_3:
	ldr	x9, [x21]
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.eq	LBB0_5
; %bb.4:
	str	x8, [x21]
LBB0_5:
	ldr	w0, [x21, #8]
	bl	_sock_rps_record_flow_hash
	b	LBB0_12
LBB0_6:
	add	x21, x20, #16
	mov	x0, x21
	bl	_spin_lock_bh
	mov	x0, x23
	mov	x1, x22
	bl	_tun_flow_find
	cbnz	x0, LBB0_9
; %bb.7:
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _MAX_TAP_FLOWS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_TAP_FLOWS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x3, x19
	bl	_tun_flow_create
LBB0_9:
	add	x19, x20, #20
	mov	x0, x19
	bl	_timer_pending
	cbnz	w0, LBB0_11
; %bb.10:
Lloh6:
	adrp	x8, _jiffies@GOTPAGE
Lloh7:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x0, x8, x24
	bl	_round_jiffies_up
	mov	x1, x0
	mov	x0, x19
	bl	_mod_timer
LBB0_11:
	mov	x0, x21
	bl	_spin_unlock_bh
LBB0_12:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rcu_read_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_MAX_TAP_FLOWS,8,3              ; @MAX_TAP_FLOWS
	.no_dead_strip	_tun_flow_update
.subsections_via_symbols
