	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function generate_routing_func_for_mst
_generate_routing_func_for_mst:         ## @generate_routing_func_for_mst
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %r13
	movl	(%r13), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_11
## %bb.1:
	xorl	%r12d, %r12d
	movq	_NONE@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_CL_ASSERT
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r15)
	incq	%r12
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %r15
	cmpq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_12
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	8(%r13), %rax
	movl	(%rax,%r12,4), %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	leaq	-88(%rbp), %rdx
	callq	_generate_routing_func_for_mst
	testl	%eax, %eax
	jne	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rax
	testq	%rax, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r13), %rcx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=2
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_2
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, %r15
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %rax
	cmpq	(%r14), %rax
	jne	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_get_phys_connection
	movq	24(%r13), %rcx
	movq	(%r15), %rdx
	movq	%rax, (%rcx,%rdx,8)
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	8, %rax
	xorl	%r15d, %r15d
	jmp	LBB0_3
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movl	$16, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	16(%r13), %rcx
	movq	%rcx, (%rax)
	movq	%rbx, 8(%rax)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_15:
	movl	$-1, %eax
LBB0_16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NONE,8,3                       ## @NONE
	.no_dead_strip	_generate_routing_func_for_mst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function generate_routing_func_for_mst
_generate_routing_func_for_mst:         ; @generate_routing_func_for_mst
	.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
	ldr	x8, [x0]
	ldr	x20, [x8, w1, sxtw #3]
	ldr	w23, [x20]
	cmp	w23, #1
	str	x2, [sp]                        ; 8-byte Folded Spill
	b.lt	LBB0_11
; %bb.1:
	mov	x21, x0
	mov	x24, #0
	mov	x26, #0
	mov	w25, #8
Lloh0:
	adrp	x27, _NONE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _NONE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x8, #0
	cset	w0, eq
	bl	_CL_ASSERT
	str	x26, [x19, #8]
	add	x24, x24, #1
	mov	x26, x28
	cmp	x24, x23
	b.eq	LBB0_12
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x8, [x20, #8]
	ldr	w22, [x8, x24, lsl #2]
	add	x2, sp, #8
	mov	x0, x21
	mov	x1, x22
	bl	_generate_routing_func_for_mst
	cbnz	w0, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x28, [sp, #8]
	cbz	x28, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #24]
	mov	x9, x28
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x19, x9
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
	ldr	x10, [x27]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x20
	mov	x1, x22
	bl	_get_phys_connection
	ldr	x8, [x20, #24]
	ldr	x9, [x19]
	str	x0, [x8, x9, lsl #3]
	b	LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x19, #0
	ldr	x8, [x25]
	b	LBB0_3
LBB0_11:
	mov	x28, #0
LBB0_12:
	mov	w0, #16
	bl	_malloc
	cbz	x0, LBB0_14
; %bb.13:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x20, #16]
	stp	x9, x28, [x8]
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	str	x8, [x9]
	b	LBB0_15
LBB0_14:
	mov	w0, #-1
LBB0_15:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NONE,8,3                       ; @NONE
	.no_dead_strip	_generate_routing_func_for_mst
.subsections_via_symbols
