	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bridge_rtupdate
_bridge_rtupdate:                       ## @bridge_rtupdate
	.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	%r9, %r14
	movl	%r8d, %r15d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_BRIDGE_LOCK_ASSERT
	movq	%r12, %rdi
	callq	_ETHER_IS_MULTICAST
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpq	$0, (%r12)
	jne	LBB0_10
## %bb.5:
	cmpq	$0, 8(%r12)
	jne	LBB0_10
## %bb.6:
	cmpq	$0, 16(%r12)
	jne	LBB0_10
## %bb.7:
	cmpq	$0, 24(%r12)
	jne	LBB0_10
## %bb.8:
	cmpq	$0, 32(%r12)
	jne	LBB0_10
## %bb.9:
	cmpq	$0, 40(%r12)
	je	LBB0_1
LBB0_10:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	movl	$1, %r15d
	cmovnel	%ebx, %r15d
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_bridge_rtnode_lookup
	movq	%rax, %r14
	testq	%rax, %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_18
LBB0_11:
	movq	_IFBAF_TYPEMASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rdx
	andq	%rax, %rdx
	movq	_IFBAF_DYNAMIC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_14
## %bb.12:
	movq	24(%r14), %rdx
	cmpq	%rbx, %rdx
	je	LBB0_14
## %bb.13:
	decq	8(%rdx)
	movq	%rbx, 24(%r14)
	incq	8(%rbx)
LBB0_14:
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	andq	%rdx, %rax
	cmpq	%rcx, %rax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jne	LBB0_16
## %bb.15:
	movq	_time_uptime@GOTPCREL(%rip), %rax
	movq	16(%r13), %rcx
	addq	(%rax), %rcx
	movq	%rcx, 16(%r14)
LBB0_16:
	xorl	%ebx, %ebx
	testl	%esi, %esi
	je	LBB0_3
## %bb.17:
	movq	%rdx, (%r14)
	jmp	LBB0_3
LBB0_18:
	movq	(%r13), %rax
	cmpq	8(%r13), %rax
	jge	LBB0_24
## %bb.19:
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	cmpq	%rax, 8(%rbx)
	jge	LBB0_25
LBB0_21:
	movq	_V_bridge_rtnode_zone@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_uma_zalloc
	testq	%rax, %rax
	je	LBB0_27
## %bb.22:
	movq	%rax, %r14
	movq	_IFBIF_STICKY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	16(%rbx), %eax
	jne	LBB0_28
## %bb.23:
	movq	_IFBAF_DYNAMIC@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_24:
	incl	24(%r13)
	jmp	LBB0_26
LBB0_25:
	incl	20(%rbx)
LBB0_26:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_27:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_28:
	movq	_IFBAF_STICKY@GOTPCREL(%rip), %rax
LBB0_29:
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	32(%r14), %edi
	movq	_ETHER_ADDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_memcpy
	movl	%r15d, 8(%r14)
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_bridge_rtnode_insert
	testl	%eax, %eax
	je	LBB0_31
## %bb.30:
	movl	%eax, %ebx
	movq	_V_bridge_rtnode_zone@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_uma_zfree
	jmp	LBB0_3
LBB0_31:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, 24(%r14)
	incq	8(%rbx)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_V_bridge_rtnode_zone,4,2       ## @V_bridge_rtnode_zone
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IFBIF_STICKY,4,2               ## @IFBIF_STICKY
	.comm	_IFBAF_STICKY,8,3               ## @IFBAF_STICKY
	.comm	_IFBAF_DYNAMIC,8,3              ## @IFBAF_DYNAMIC
	.comm	_ETHER_ADDR_LEN,4,2             ## @ETHER_ADDR_LEN
	.comm	_IFBAF_TYPEMASK,8,3             ## @IFBAF_TYPEMASK
	.comm	_time_uptime,8,3                ## @time_uptime
	.no_dead_strip	_bridge_rtupdate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bridge_rtupdate
_bridge_rtupdate:                       ; @bridge_rtupdate
	.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	x19, x5
	mov	x20, x4
	mov	x22, x3
	mov	x24, x2
	mov	x23, x1
	mov	x21, x0
	bl	_BRIDGE_LOCK_ASSERT
	mov	x0, x23
	bl	_ETHER_IS_MULTICAST
	cbz	x0, LBB0_4
LBB0_1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w23, [x8]
LBB0_3:
	mov	x0, x23
	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
LBB0_4:
	ldr	x8, [x23]
	cbnz	x8, LBB0_10
; %bb.5:
	ldr	x8, [x23, #8]
	cbnz	x8, LBB0_10
; %bb.6:
	ldr	x8, [x23, #16]
	cbnz	x8, LBB0_10
; %bb.7:
	ldr	x8, [x23, #24]
	cbnz	x8, LBB0_10
; %bb.8:
	ldr	x8, [x23, #32]
	cbnz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x23, #40]
	cbz	x8, LBB0_1
LBB0_10:
	cmp	w24, #0
	csinc	w25, w24, wzr, ne
	mov	x0, x21
	mov	x1, x23
	mov	x2, x25
	bl	_bridge_rtnode_lookup
	mov	x24, x0
	cbz	x0, LBB0_18
LBB0_11:
	ldr	x9, [x24]
Lloh2:
	adrp	x8, _IFBAF_TYPEMASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IFBAF_TYPEMASK@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	and	x10, x8, x9
Lloh5:
	adrp	x9, _IFBAF_DYNAMIC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IFBAF_DYNAMIC@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x10, x9
	b.ne	LBB0_14
; %bb.12:
	ldr	x10, [x24, #24]
	cmp	x10, x22
	b.eq	LBB0_14
; %bb.13:
	ldr	x11, [x10, #8]
	sub	x11, x11, #1
	str	x11, [x10, #8]
	str	x22, [x24, #24]
	ldr	x10, [x22, #8]
	add	x10, x10, #1
	str	x10, [x22, #8]
LBB0_14:
	and	x8, x8, x19
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.15:
Lloh8:
	adrp	x8, _time_uptime@GOTPAGE
Lloh9:
	ldr	x8, [x8, _time_uptime@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x21, #16]
	add	x8, x9, x8
	str	x8, [x24, #16]
LBB0_16:
	mov	w23, #0
	cbz	w20, LBB0_3
; %bb.17:
	str	x19, [x24]
	b	LBB0_3
LBB0_18:
	ldp	x8, x9, [x21]
	cmp	x8, x9
	b.ge	LBB0_24
; %bb.19:
	ldr	x8, [x22]
	cbz	x8, LBB0_21
; %bb.20:
	ldr	x9, [x22, #8]
	cmp	x9, x8
	b.ge	LBB0_25
LBB0_21:
Lloh11:
	adrp	x26, _V_bridge_rtnode_zone@GOTPAGE
Lloh12:
	ldr	x26, [x26, _V_bridge_rtnode_zone@GOTPAGEOFF]
Lloh13:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh17:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_uma_zalloc
	cbz	x0, LBB0_27
; %bb.22:
	mov	x24, x0
	ldr	w8, [x22, #16]
Lloh19:
	adrp	x9, _IFBIF_STICKY@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IFBIF_STICKY@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
Lloh22:
	adrp	x10, _IFBAF_DYNAMIC@GOTPAGE
Lloh23:
	ldr	x10, [x10, _IFBAF_DYNAMIC@GOTPAGEOFF]
Lloh24:
	adrp	x11, _IFBAF_STICKY@GOTPAGE
Lloh25:
	ldr	x11, [x11, _IFBAF_STICKY@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x10, x11, eq
	ldr	x8, [x8]
	str	x8, [x0]
	ldr	w0, [x0, #32]
Lloh26:
	adrp	x8, _ETHER_ADDR_LEN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ETHER_ADDR_LEN@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x1, x23
	bl	_memcpy
	str	w25, [x24, #8]
	mov	x0, x21
	mov	x1, x24
	bl	_bridge_rtnode_insert
	cbz	w0, LBB0_28
; %bb.23:
	mov	x23, x0
	ldr	w0, [x26]
	mov	x1, x24
	bl	_uma_zfree
	b	LBB0_3
LBB0_24:
	ldr	w8, [x21, #24]
	add	w8, w8, #1
	str	w8, [x21, #24]
	b	LBB0_26
LBB0_25:
	ldr	w8, [x22, #20]
	add	w8, w8, #1
	str	w8, [x22, #20]
LBB0_26:
Lloh29:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_2
LBB0_27:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_28:
	str	x22, [x24, #24]
	ldr	x8, [x22, #8]
	add	x8, x8, #1
	str	x8, [x22, #8]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_V_bridge_rtnode_zone,4,2       ; @V_bridge_rtnode_zone
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IFBIF_STICKY,4,2               ; @IFBIF_STICKY
	.comm	_IFBAF_STICKY,8,3               ; @IFBAF_STICKY
	.comm	_IFBAF_DYNAMIC,8,3              ; @IFBAF_DYNAMIC
	.comm	_ETHER_ADDR_LEN,4,2             ; @ETHER_ADDR_LEN
	.comm	_IFBAF_TYPEMASK,8,3             ; @IFBAF_TYPEMASK
	.comm	_time_uptime,8,3                ; @time_uptime
	.no_dead_strip	_bridge_rtupdate
.subsections_via_symbols
