	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_routing_engine
_setup_routing_engine:                  ## @setup_routing_engine
	.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, %r12
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	_routing_modules@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.2:
	addq	$16, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, (%rdi)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rdi
	addq	$16, %rbx
	testq	%rdi, %rdi
	jne	LBB0_3
LBB0_6:
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_OSM_LOG
	jmp	LBB0_9
LBB0_7:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
LBB0_8:
	xorl	%r15d, %r15d
LBB0_9:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	movq	%rax, %r15
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	-16(%rbx), %rdi
	movq	%rdi, (%r15)
	callq	_osm_routing_engine_type
	movq	%rax, 8(%r15)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	*-8(%rbx)
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	_OSM_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_OSM_LOG
	movq	%r15, %rdi
	callq	_free
	jmp	LBB0_8
LBB0_13:
	movq	_OSM_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_OSM_LOG
	jmp	LBB0_9
LBB0_14:
	movq	_OSM_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r15), %rcx
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_OSM_LOG
	movq	8(%r15), %rax
	movq	_OSM_ROUTING_ENGINE_TYPE_MINHOP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.15:
	movq	%r15, 8(%r14)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no_fallback"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_routing_modules,8,3            ## @routing_modules
	.comm	_OSM_LOG_VERBOSE,4,2            ## @OSM_LOG_VERBOSE
L_.str.1:                               ## @.str.1
	.asciz	"memory allocation failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"setup of routing engine '%s' failed\n"

	.comm	_OSM_LOG_DEBUG,4,2              ## @OSM_LOG_DEBUG
L_.str.3:                               ## @.str.3
	.asciz	"'%s' routing engine set up\n"

	.comm	_OSM_ROUTING_ENGINE_TYPE_MINHOP,8,3 ## @OSM_ROUTING_ENGINE_TYPE_MINHOP
	.comm	_OSM_LOG_ERROR,4,2              ## @OSM_LOG_ERROR
L_.str.4:                               ## @.str.4
	.asciz	"cannot find or setup routing engine '%s'\n"

	.no_dead_strip	_setup_routing_engine
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_routing_engine
_setup_routing_engine:                  ; @setup_routing_engine
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.1:
Lloh2:
	adrp	x8, _routing_modules@GOTPAGE
Lloh3:
	ldr	x8, [x8, _routing_modules@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x0, [x8]
	cbz	x0, LBB0_6
; %bb.2:
	add	x22, x8, #16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x0]
	cbz	w8, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x20
	bl	_strcmp
	cbz	w0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x22], #16
	cbnz	x0, LBB0_3
LBB0_6:
Lloh5:
	adrp	x8, _OSM_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _OSM_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	str	x20, [sp]
Lloh8:
	adrp	x2, l_.str.4@PAGE
Lloh9:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_OSM_LOG
LBB0_7:
	mov	x21, #0
	b	LBB0_9
LBB0_8:
	mov	x21, #0
Lloh10:
	adrp	x8, _TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
	mov	w0, #16
	bl	_malloc
	mov	x21, x0
	cbz	x0, LBB0_13
; %bb.11:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldur	x0, [x22, #-16]
	str	x0, [x21]
	bl	_osm_routing_engine_type
	str	x0, [x21, #8]
	ldur	x8, [x22, #-8]
	mov	x0, x21
	mov	x1, x19
	blr	x8
	cbz	x0, LBB0_14
; %bb.12:
Lloh13:
	adrp	x8, _OSM_LOG_VERBOSE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OSM_LOG_VERBOSE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	str	x20, [sp]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_OSM_LOG
	mov	x0, x21
	bl	_free
	b	LBB0_7
LBB0_13:
Lloh18:
	adrp	x8, _OSM_LOG_VERBOSE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OSM_LOG_VERBOSE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_OSM_LOG
	b	LBB0_9
LBB0_14:
Lloh23:
	adrp	x8, _OSM_LOG_DEBUG@GOTPAGE
Lloh24:
	ldr	x8, [x8, _OSM_LOG_DEBUG@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	x8, [x21]
	str	x8, [sp]
Lloh26:
	adrp	x2, l_.str.3@PAGE
Lloh27:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_OSM_LOG
	ldr	x8, [x21, #8]
Lloh28:
	adrp	x9, _OSM_ROUTING_ENGINE_TYPE_MINHOP@GOTPAGE
Lloh29:
	ldr	x9, [x9, _OSM_ROUTING_ENGINE_TYPE_MINHOP@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.15:
	str	x21, [x19, #8]
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no_fallback"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_routing_modules,8,3            ; @routing_modules
	.comm	_OSM_LOG_VERBOSE,4,2            ; @OSM_LOG_VERBOSE
l_.str.1:                               ; @.str.1
	.asciz	"memory allocation failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"setup of routing engine '%s' failed\n"

	.comm	_OSM_LOG_DEBUG,4,2              ; @OSM_LOG_DEBUG
l_.str.3:                               ; @.str.3
	.asciz	"'%s' routing engine set up\n"

	.comm	_OSM_ROUTING_ENGINE_TYPE_MINHOP,8,3 ; @OSM_ROUTING_ENGINE_TYPE_MINHOP
	.comm	_OSM_LOG_ERROR,4,2              ; @OSM_LOG_ERROR
l_.str.4:                               ; @.str.4
	.asciz	"cannot find or setup routing engine '%s'\n"

	.no_dead_strip	_setup_routing_engine
.subsections_via_symbols
