	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_channel_dep_graph
_update_channel_dep_graph:              ## @update_channel_dep_graph
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	$0, -80(%rbp)
	movl	$48, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_set_default_cdg_node
	movq	(%rbx), %rax
	movq	8(%rbx), %rdi
	movq	(%rax), %rsi
	leaq	-80(%rbp), %rdx
	callq	_osm_node_get_remote_node
	testq	%rax, %rax
	je	LBB0_25
## %bb.3:
	movq	%rax, %r15
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_25
## %bb.4:
	shll	$16, %r13d
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addl	%r13d, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_1:
	movl	$1, %r14d
	jmp	LBB0_30
LBB0_31:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_set_next_srcdest_pair
LBB0_24:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rax
	movq	%r13, %r12
	testq	%rax, %rax
	je	LBB0_25
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
	movq	(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rbx
	movq	_OSM_NO_PATH@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_osm_node_get_base_lid
	movl	%eax, %edi
	callq	_cl_ntoh16
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	-80(%rbp), %rdx
	callq	_osm_node_get_remote_node
	testq	%rax, %rax
	je	LBB0_25
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r15
	cmpq	$0, (%rax)
	je	LBB0_25
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_osm_node_get_base_lid
	movl	%eax, %edi
	callq	_cl_ntoh16
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_cdg_search
	testq	%rax, %rax
	je	LBB0_17
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r13
	movq	8(%r12), %rax
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rax, %rax
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%rax, %r14
	cmpq	%r13, 40(%rax)
	je	LBB0_31
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	24(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$48, %edi
	callq	_malloc
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	movq	%r13, 40(%rax)
	movq	$0, 32(%rax)
	movq	$0, 16(%rax)
	movq	%rax, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_set_next_srcdest_pair
	movq	$0, 24(%rbx)
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$48, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_set_default_cdg_node
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_cdg_insert
	movq	8(%r12), %rax
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rax, %rax
	je	LBB0_15
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	movq	%rax, %rbx
	movq	24(%rax), %rax
	testq	%rax, %rax
	jne	LBB0_19
## %bb.21:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	$48, %edi
	callq	_malloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_16
## %bb.22:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r14
	movq	%r13, 40(%rax)
	movq	$0, 32(%rax)
	movq	$0, 16(%rax)
	movq	%rax, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_set_next_srcdest_pair
	movq	$0, 24(%r14)
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$48, %edi
	callq	_malloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_16
## %bb.23:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, 40(%rax)
	movq	$0, 32(%rax)
	movq	$0, 16(%rax)
	movq	%rax, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_set_next_srcdest_pair
	movq	8(%r12), %rax
	movq	$0, 24(%rax)
	jmp	LBB0_24
LBB0_25:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	xorl	%r14d, %r14d
	testq	%rdi, %rdi
	je	LBB0_29
## %bb.26:
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	%rax, %rdi
	callq	_free
	movq	8(%rbx), %rdi
	jmp	LBB0_28
LBB0_16:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rdi
	movl	$1, %r14d
	testq	%rdi, %rdi
	je	LBB0_29
LBB0_28:
	callq	_free
LBB0_29:
	movq	%rbx, %rdi
	callq	_free
LBB0_30:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSM_NO_PATH,8,3                ## @OSM_NO_PATH
	.no_dead_strip	_update_channel_dep_graph
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_channel_dep_graph
_update_channel_dep_graph:              ; @update_channel_dep_graph
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x23, x2
	mov	x22, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	mov	w0, #48
	bl	_malloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_set_default_cdg_node
	ldp	x8, x0, [x22]
	ldr	x1, [x8]
	add	x2, sp, #8
	bl	_osm_node_get_remote_node
	cbz	x0, LBB0_25
; %bb.2:
	mov	x22, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_25
; %bb.3:
	add	w23, w20, w23, lsl #16
Lloh0:
	adrp	x27, _OSM_NO_PATH@GOTPAGE
Lloh1:
	ldr	x27, [x27, _OSM_NO_PATH@GOTPAGEOFF]
	mov	x26, x19
	b	LBB0_7
LBB0_4:
	mov	w20, #1
	b	LBB0_31
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x25
	mov	x1, x23
	bl	_set_next_srcdest_pair
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22]
	mov	x26, x24
	cbz	x8, LBB0_25
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_19 Depth 2
	ldr	x8, [x8]
	ldr	x24, [x8, x20, lsl #3]
	ldr	x8, [x27]
	cmp	x24, x8
	b.eq	LBB0_32
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	w1, #0
	bl	_osm_node_get_base_lid
	bl	_cl_ntoh16
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x24
	bl	_osm_node_get_remote_node
	cbz	x0, LBB0_25
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x22, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_25
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x22
	mov	w1, #0
	bl	_osm_node_get_base_lid
	bl	_cl_ntoh16
	ldr	x0, [x21]
	bl	_cdg_search
	cbz	x0, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x24, x0
	ldr	x8, [x26, #8]
LBB0_12:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	x8, LBB0_23
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	mov	x25, x8
	ldr	x8, [x8, #40]
	cmp	x8, x24
	b.eq	LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=2
	ldr	x8, [x25, #24]
	cbnz	x8, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #48
	bl	_malloc
	str	x0, [x25, #24]
	cbz	x0, LBB0_32
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x26, x0
	stp	xzr, x24, [x0, #32]
	str	xzr, [x0, #16]
	mov	x1, x23
	bl	_set_next_srcdest_pair
	str	xzr, [x26, #24]
	b	LBB0_6
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #48
	bl	_malloc
	cbz	x0, LBB0_32
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x24, x0
	bl	_set_default_cdg_node
	mov	x0, x21
	mov	x1, x24
	bl	_cdg_insert
	ldr	x8, [x26, #8]
LBB0_19:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	x8, LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	mov	x28, x8
	ldr	x8, [x8, #24]
	cbnz	x8, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #48
	bl	_malloc
	str	x0, [x28, #24]
	cbz	x0, LBB0_32
; %bb.22:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x25, x0
	stp	xzr, x24, [x0, #32]
	str	xzr, [x0, #16]
	mov	x1, x23
	bl	_set_next_srcdest_pair
	str	xzr, [x25, #24]
	b	LBB0_6
LBB0_23:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w0, #48
	bl	_malloc
	str	x0, [x26, #8]
	cbz	x0, LBB0_32
; %bb.24:                               ;   in Loop: Header=BB0_7 Depth=1
	stp	xzr, x24, [x0, #32]
	str	xzr, [x0, #16]
	mov	x1, x23
	bl	_set_next_srcdest_pair
	ldr	x8, [x26, #8]
	str	xzr, [x8, #24]
	b	LBB0_6
LBB0_25:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_29
; %bb.26:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_28
; %bb.27:
	mov	x0, x8
	bl	_free
	ldr	x0, [x19, #8]
LBB0_28:
	bl	_free
LBB0_29:
	mov	w20, #0
LBB0_30:
	mov	x0, x19
	bl	_free
LBB0_31:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_32:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_34
; %bb.33:
	bl	_free
LBB0_34:
	mov	w20, #1
	b	LBB0_30
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OSM_NO_PATH,8,3                ; @OSM_NO_PATH
	.no_dead_strip	_update_channel_dep_graph
.subsections_via_symbols
