	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_node_remove_router        ## -- Begin function tipc_node_remove_router
	.p2align	4, 0x90
_tipc_node_remove_router:               ## @tipc_node_remove_router
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_tipc_node
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$0, (%rbx)
	js	LBB0_5
## %bb.1:
	movl	$-2, %edx
	movl	%eax, %ecx
	roll	%cl, %edx
	movq	8(%rbx), %rcx
	leal	31(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$5, %esi
	movslq	%esi, %rax
	andl	%edx, (%rcx,%rax,4)
	movq	_tipc_max_nodes@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leal	31(%rdx), %eax
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	sarl	$5, %eax
	leal	-1(%rax), %esi
	movl	%esi, (%rbx)
	cmpl	$32, %edx
	jl	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rax), %edx
	cmpl	$0, (%rcx,%rdx,4)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	-2(%rax), %edx
	movl	%edx, (%rbx)
	decl	%eax
	jg	LBB0_3
LBB0_4:
	movq	%rbx, %rdi
	callq	_tipc_node_is_up
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_node_lost_contact              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tipc_max_nodes,4,2             ## @tipc_max_nodes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tipc_node_remove_router        ; -- Begin function tipc_node_remove_router
	.p2align	2
_tipc_node_remove_router:               ; @tipc_node_remove_router
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x0, x1
	bl	_tipc_node
	ldr	w8, [x19]
	tbnz	w8, #31, LBB0_5
; %bb.1:
	mov	w8, #1
	lsl	w9, w8, w0
	ldr	x8, [x19, #8]
	add	w10, w0, #31
	cmp	w0, #0
	csel	w10, w10, w0, lt
	asr	w10, w10, #5
	sbfiz	x10, x10, #2, #32
	ldr	w11, [x8, x10]
	bic	w9, w11, w9
	str	w9, [x8, x10]
Lloh0:
	adrp	x9, _tipc_max_nodes@GOTPAGE
Lloh1:
	ldr	x9, [x9, _tipc_max_nodes@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x9]
	add	w9, w10, #31
	cmp	w10, #0
	csel	w9, w9, w10, lt
	asr	w9, w9, #5
	sub	w11, w9, #1
	str	w11, [x19]
	cmp	w10, #32
	b.lt	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w10, w9, #1
	ldr	w11, [x8, w10, uxtw #2]
	cbnz	w11, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w9, w9, #2
	str	w9, [x19]
	mov	x9, x10
	cmp	w10, #1
	b.ge	LBB0_2
LBB0_4:
	mov	x0, x19
	bl	_tipc_node_is_up
	cbz	w0, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_node_lost_contact
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_tipc_max_nodes,4,2             ; @tipc_max_nodes
.subsections_via_symbols
