	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bridge_rtnode_insert
_bridge_rtnode_insert:                  ## @bridge_rtnode_insert
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_BRIDGE_LOCK_ASSERT
	movl	8(%r15), %esi
	movq	%r14, %rdi
	callq	_bridge_rthash
	movq	%rax, %r12
	shlq	$2, %r12
	movq	8(%r14), %rdi
	addq	%r12, %rdi
	callq	_LIST_FIRST
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	movq	_brt_hash@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %edi
	movl	8(%rbx), %esi
	callq	_bridge_rtnode_addr_cmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	jle	LBB0_7
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
	cmpq	(%rbx), %rax
	je	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_LIST_NEXT
	movl	(%r12), %edx
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, %esi
	callq	_LIST_NEXT
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_10
LBB0_12:
	addq	8(%r14), %r12
	movq	_brt_hash@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_LIST_INSERT_HEAD
	jmp	LBB0_10
LBB0_8:
	movq	%r15, %rsi
	callq	_LIST_INSERT_AFTER
	jmp	LBB0_10
LBB0_6:
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_LIST_INSERT_BEFORE
LBB0_10:
	leaq	4(%r14), %rdi
	movq	_brt_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_LIST_INSERT_HEAD
	incl	(%r14)
	xorl	%eax, %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_EEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_brt_hash,4,2                   ## @brt_hash
	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_brt_list,4,2                   ## @brt_list
	.no_dead_strip	_bridge_rtnode_insert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bridge_rtnode_insert
_bridge_rtnode_insert:                  ; @bridge_rtnode_insert
	.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	x20, x1
	mov	x19, x0
	bl	_BRIDGE_LOCK_ASSERT
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_bridge_rthash
	mov	x22, x0
	ldr	x8, [x19, #8]
	add	x0, x8, x0, lsl #2
	bl	_LIST_FIRST
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x22, _brt_hash@GOTPAGE
Lloh1:
	ldr	x22, [x22, _brt_hash@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #8]
	ldr	w1, [x21, #8]
	bl	_bridge_rtnode_addr_cmp
	cbz	w0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #1
	b.lt	LBB0_5
	b	LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_12
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x22]
	mov	x0, x21
	bl	_LIST_NEXT
	ldr	w2, [x22]
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	mov	x1, x2
	bl	_LIST_NEXT
	mov	x21, x0
	cbnz	x0, LBB0_2
	b	LBB0_10
LBB0_7:
	ldr	x8, [x19, #8]
	add	x0, x8, x22, lsl #2
Lloh2:
	adrp	x8, _brt_hash@GOTPAGE
Lloh3:
	ldr	x8, [x8, _brt_hash@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_LIST_INSERT_HEAD
	b	LBB0_10
LBB0_8:
	mov	x0, x21
	mov	x1, x20
	bl	_LIST_INSERT_AFTER
	b	LBB0_10
LBB0_9:
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x20
	bl	_LIST_INSERT_BEFORE
LBB0_10:
	add	x0, x19, #4
Lloh5:
	adrp	x8, _brt_list@GOTPAGE
Lloh6:
	ldr	x8, [x8, _brt_list@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_LIST_INSERT_HEAD
	mov	w0, #0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_11:
	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
LBB0_12:
Lloh8:
	adrp	x8, _EEXIST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_brt_hash,4,2                   ; @brt_hash
	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_brt_list,4,2                   ; @brt_list
	.no_dead_strip	_bridge_rtnode_insert
.subsections_via_symbols
