	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_mesh_rt_update       ## -- Begin function ieee80211_mesh_rt_update
	.p2align	4, 0x90
_ieee80211_mesh_rt_update:              ## @ieee80211_mesh_rt_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	_ticks@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_MESH_RT_ENTRY_LOCK
	movq	_IEEE80211_MESHRT_FLAGS_PROXY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_2
LBB0_3:
	movl	%r15d, %edi
	subl	20(%rbx), %edi
	callq	_ticks_to_msecs
	movl	%r15d, 20(%rbx)
	movl	16(%rbx), %esi
	subl	%eax, %esi
	jle	LBB0_4
## %bb.6:
	movl	%esi, 16(%rbx)
	movl	%r14d, %edi
	callq	_MESH_ROUTE_LIFETIME_MAX
	movl	%eax, %r14d
	jmp	LBB0_7
LBB0_4:
	testl	%r14d, %r14d
	jne	LBB0_7
## %bb.5:
	movq	_IEEE80211_MESHRT_FLAGS_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, 16(%rbx)
	movq	%rbx, %rdi
	callq	_MESH_RT_ENTRY_UNLOCK
	jmp	LBB0_8
LBB0_2:
	movq	%rbx, %rdi
	callq	_MESH_RT_ENTRY_UNLOCK
	movl	16(%rbx), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"route is NULL"

	.comm	_ticks,4,2                      ## @ticks
	.comm	_IEEE80211_MESHRT_FLAGS_PROXY,4,2 ## @IEEE80211_MESHRT_FLAGS_PROXY
	.comm	_IEEE80211_MESHRT_FLAGS_VALID,4,2 ## @IEEE80211_MESHRT_FLAGS_VALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_mesh_rt_update       ; -- Begin function ieee80211_mesh_rt_update
	.p2align	2
_ieee80211_mesh_rt_update:              ; @ieee80211_mesh_rt_update
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
Lloh2:
	adrp	x8, _ticks@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ticks@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_MESH_RT_ENTRY_LOCK
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _IEEE80211_MESHRT_FLAGS_PROXY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IEEE80211_MESHRT_FLAGS_PROXY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_7
LBB0_2:
	ldr	w8, [x20, #20]
	sub	w0, w21, w8
	bl	_ticks_to_msecs
	str	w21, [x20, #20]
	ldr	w8, [x20, #16]
	subs	w1, w8, w0
	b.le	LBB0_4
; %bb.3:
	str	w1, [x20, #16]
	mov	x0, x19
	bl	_MESH_ROUTE_LIFETIME_MAX
	mov	x19, x0
	b	LBB0_6
LBB0_4:
	cbnz	w19, LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _IEEE80211_MESHRT_FLAGS_VALID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IEEE80211_MESHRT_FLAGS_VALID@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
LBB0_6:
	str	w19, [x20, #16]
	mov	x0, x20
	bl	_MESH_RT_ENTRY_UNLOCK
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_MESH_RT_ENTRY_UNLOCK
	ldr	w19, [x20, #16]
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"route is NULL"

	.comm	_ticks,4,2                      ; @ticks
	.comm	_IEEE80211_MESHRT_FLAGS_PROXY,4,2 ; @IEEE80211_MESHRT_FLAGS_PROXY
	.comm	_IEEE80211_MESHRT_FLAGS_VALID,4,2 ; @IEEE80211_MESHRT_FLAGS_VALID
.subsections_via_symbols
