	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remove_path_from_cdg
_remove_path_from_cdg:                  ## @remove_path_from_cdg
	.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	%r8, %r14
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	$0, -48(%rbp)
	movl	$32, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_set_default_cdg_node
	movq	(%rbx), %rax
	movq	8(%rbx), %rdi
	movq	(%rax), %rsi
	leaq	-48(%rbp), %rdx
	callq	_osm_node_get_remote_node
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	%rax, %rbx
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.4:
	movq	%r12, %rax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	incl	8(%rcx)
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	%rax, %r15
	movq	(%rcx), %rax
	movq	(%rax,%r14,8), %r13
	movq	_OSM_NO_PATH@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_16
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_osm_node_get_base_lid
	movl	%eax, %edi
	callq	_cl_ntoh16
	movq	%rbx, %rdi
	movq	%r13, %rsi
	leaq	-48(%rbp), %rdx
	callq	_osm_node_get_remote_node
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rbx
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_osm_node_get_base_lid
	movl	%eax, %edi
	callq	_cl_ntoh16
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	callq	_cdg_search
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rcx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	cmpq	%rax, 16(%rcx)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	24(%rcx), %rcx
	testq	%rcx, %rcx
	jne	LBB0_10
	jmp	LBB0_14
LBB0_15:
	movq	(%r12), %rdi
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_19
LBB0_18:
	callq	_free
LBB0_19:
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_20
LBB0_1:
	movl	$1, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	(%r12), %rdi
	movl	$1, %ebx
	testq	%rdi, %rdi
	jne	LBB0_18
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_OSM_NO_PATH,8,3                ## @OSM_NO_PATH
	.no_dead_strip	_remove_path_from_cdg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remove_path_from_cdg
_remove_path_from_cdg:                  ; @remove_path_from_cdg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x4
	mov	x22, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	mov	w0, #32
	bl	_malloc
	cbz	x0, LBB0_17
; %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_14
; %bb.2:
	mov	x22, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_14
; %bb.3:
Lloh0:
	adrp	x24, _OSM_NO_PATH@GOTPAGE
Lloh1:
	ldr	x24, [x24, _OSM_NO_PATH@GOTPAGEOFF]
	mov	x0, x19
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_14
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [x8]
	ldr	x23, [x8, x20, lsl #3]
	ldr	x8, [x24]
	cmp	x23, x8
	b.eq	LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, x0
	mov	x0, x22
	mov	w1, #0
	bl	_osm_node_get_base_lid
	bl	_cl_ntoh16
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x23
	bl	_osm_node_get_remote_node
	cbz	x0, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_6 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_19
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25]
LBB0_11:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cbz	x8, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x9, [x8, #16]
	cmp	x9, x0
	b.eq	LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [x8, #24]
	cbnz	x8, LBB0_11
	b	LBB0_5
LBB0_14:
	mov	w21, #0
	mov	w20, #0
	ldr	x0, [x19]
	cbz	x0, LBB0_16
LBB0_15:
	bl	_free
	mov	x20, x21
LBB0_16:
	mov	x0, x19
	bl	_free
	b	LBB0_18
LBB0_17:
	mov	w20, #1
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_19:
	ldr	x0, [x19]
	mov	w21, #1
	mov	w20, #1
	cbnz	x0, LBB0_15
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OSM_NO_PATH,8,3                ; @OSM_NO_PATH
	.no_dead_strip	_remove_path_from_cdg
.subsections_via_symbols
