	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function report_torus_changes
_report_torus_changes:                  ## @report_torus_changes
	.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	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rdi), %r13d
	movl	4(%rdi), %r12d
	movl	8(%rdi), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	12(%rdi), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	16(%rdi), %rdi
	movq	_OSM_LOG_ROUTING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_OSM_LOG_IS_ACTIVE_V2
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_dump_torus
LBB0_2:
	testq	%r15, %r15
	je	LBB0_21
## %bb.3:
	movl	(%r15), %ecx
	xorl	%ebx, %ebx
	cmpl	%ecx, %r13d
	jne	LBB0_5
## %bb.4:
	movl	%r12d, %edx
	jmp	LBB0_6
LBB0_5:
	movq	16(%r14), %rdi
	movq	_OSM_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %r8d
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_OSM_LOG
	movl	%r12d, %edx
	movl	(%r15), %eax
	cmpl	%eax, %r13d
	cmovael	%eax, %r13d
	movl	$1, %ebx
LBB0_6:
	movl	4(%r15), %ecx
	cmpl	%ecx, %edx
	je	LBB0_8
## %bb.7:
	incl	%ebx
	movq	16(%r14), %rdi
	movq	_OSM_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %r8d
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_OSM_LOG
	movl	%r12d, %edx
	movl	4(%r15), %eax
	cmpl	%eax, %r12d
	cmovael	%eax, %edx
LBB0_8:
	movl	8(%r15), %ecx
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	cmpl	%ecx, %r12d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	je	LBB0_10
## %bb.9:
	incl	%ebx
	movq	16(%r14), %rdi
	movq	_OSM_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %r8d
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_OSM_LOG
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	8(%r15), %eax
	cmpl	%eax, %r12d
	cmovael	%eax, %r12d
LBB0_10:
	testl	%r12d, %r12d
	je	LBB0_21
## %bb.11:
	movl	%r12d, %eax
	movl	%r12d, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_14 Depth 2
                                        ##       Child Loop BB0_17 Depth 3
	testl	%edx, %edx
	je	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=2
	incq	%r14
	cmpq	-88(%rbp), %r14                 ## 8-byte Folded Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	je	LBB0_20
LBB0_14:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_17 Depth 3
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_12 Depth=1
                                        ##     Parent Loop BB0_14 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%ebx, %r12d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	(%rax,%r15,8), %rax
	movq	(%rax,%r14,8), %rax
	movl	(%rax,%r13,4), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	(%rax,%r15,8), %rax
	movq	(%rax,%r14,8), %rax
	movl	(%rax,%r13,4), %esi
	callq	_tsw_changes
	movq	%rax, %rbx
	addl	%r12d, %ebx
	cmpl	-60(%rbp), %ebx                 ## 4-byte Folded Reload
	ja	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_17 Depth=3
	incq	%r15
	cmpq	%r15, -96(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_17
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r13
	cmpq	-80(%rbp), %r13                 ## 8-byte Folded Reload
	jne	LBB0_12
LBB0_21:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rdi
	movq	_OSM_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_OSM_LOG                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OSM_LOG_ROUTING,4,2            ## @OSM_LOG_ROUTING
	.comm	_OSM_LOG_INFO,4,2               ## @OSM_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Torus x radix was %d now %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Torus y radix was %d now %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Torus z radix was %d now %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Too many torus changes; stopping reporting early\n"

	.no_dead_strip	_report_torus_changes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function report_torus_changes
_report_torus_changes:                  ; @report_torus_changes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x1
	mov	x19, x0
	ldp	w21, w22, [x0]
	ldp	w26, w23, [x0, #8]
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x8, _OSM_LOG_ROUTING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSM_LOG_ROUTING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_OSM_LOG_IS_ACTIVE_V2
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_dump_torus
LBB0_2:
	cbz	x20, LBB0_20
; %bb.3:
	ldr	w8, [x20]
Lloh3:
	adrp	x24, _OSM_LOG_INFO@GOTPAGE
Lloh4:
	ldr	x24, [x24, _OSM_LOG_INFO@GOTPAGEOFF]
	cmp	w21, w8
	b.ne	LBB0_5
; %bb.4:
	mov	w25, #0
	b	LBB0_6
LBB0_5:
	ldr	x0, [x19, #16]
	ldr	w1, [x24]
	ldr	w9, [x19]
	stp	x8, x9, [sp]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_OSM_LOG
	ldr	w8, [x20]
	cmp	w21, w8
	csel	w21, w21, w8, lo
	mov	w25, #1
LBB0_6:
	ldr	w8, [x20, #4]
	cmp	w22, w8
	b.eq	LBB0_8
; %bb.7:
	add	w25, w25, #1
	ldr	x0, [x19, #16]
	ldr	w1, [x24]
	ldr	w9, [x19, #4]
	stp	x8, x9, [sp]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_OSM_LOG
	ldr	w8, [x20, #4]
	cmp	w22, w8
	csel	w22, w22, w8, lo
LBB0_8:
	ldr	w8, [x20, #8]
	cmp	w26, w8
	b.eq	LBB0_10
; %bb.9:
	add	w25, w25, #1
	ldr	x0, [x19, #16]
	ldr	w1, [x24]
	ldr	w9, [x19, #8]
	stp	x8, x9, [sp]
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_OSM_LOG
	ldr	w8, [x20, #8]
	cmp	w26, w8
	csel	w26, w26, w8, lo
LBB0_10:
	cbz	w26, LBB0_20
; %bb.11:
	mov	x27, #0
	mov	w9, w26
	mov	w8, w21
	lsl	x28, x8, #3
	mov	w8, w22
	stp	x9, x8, [sp, #16]               ; 16-byte Folded Spill
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
                                        ;       Child Loop BB0_17 Depth 3
	cbz	w22, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x26, #0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=2
	add	x26, x26, #1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x26, x8
	b.eq	LBB0_19
LBB0_15:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_17 Depth 3
	cbz	w21, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	mov	x24, #0
LBB0_17:                                ;   Parent Loop BB0_12 Depth=1
                                        ;     Parent Loop BB0_15 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x24]
	lsl	x9, x26, #3
	ldr	x8, [x8, x9]
	lsl	x10, x27, #2
	ldr	w0, [x8, x10]
	ldr	x8, [x20, #24]
	ldr	x8, [x8, x24]
	ldr	x8, [x8, x9]
	ldr	w1, [x8, x10]
	bl	_tsw_changes
	add	w25, w25, w0
	cmp	w25, w23
	b.hi	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=3
	add	x24, x24, #8
	cmp	x28, x24
	b.ne	LBB0_17
	b	LBB0_14
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x27, x27, #1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x27, x8
	b.ne	LBB0_12
LBB0_20:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_21:
	ldr	x0, [x19, #16]
Lloh11:
	adrp	x8, _OSM_LOG_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OSM_LOG_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_OSM_LOG
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_OSM_LOG_ROUTING,4,2            ; @OSM_LOG_ROUTING
	.comm	_OSM_LOG_INFO,4,2               ; @OSM_LOG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Torus x radix was %d now %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Torus y radix was %d now %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Torus z radix was %d now %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Too many torus changes; stopping reporting early\n"

	.no_dead_strip	_report_torus_changes
.subsections_via_symbols
