	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ql_get_routing_index_registers
_ql_get_routing_index_registers:        ## @ql_get_routing_index_registers
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_SEM_RT_IDX_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ql_sem_spinlock
	testl	%eax, %eax
	jne	LBB0_18
## %bb.1:
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%edx, %edx
	movq	_RT_IDX@GOTPCREL(%rip), %r13
	movq	_RT_IDX_MR@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	_RT_IDX_IDX_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	shll	%cl, %edx
	movq	_RT_IDX_RS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_ql_write32
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_ql_read32
	testl	%eax, (%r15)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %ebx
	movq	_RT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ql_read32
	movl	$0, (%r14)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, 4(%r14)
	movl	%ebx, 8(%r14)
	movl	%eax, 12(%r14)
	addq	$16, %r14
	incl	%edx
	cmpl	$8, %edx
	jne	LBB0_2
## %bb.5:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	_RT_IDX_RS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_RT_IDX_IDX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	shll	%cl, %edx
	movq	_RT_IDX_TYPE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
	orl	%eax, %edx
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_ql_write32
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_ql_read32
	testl	%eax, (%r15)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %ebx
	movq	_RT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ql_read32
	movl	$1, (%r14)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, 4(%r14)
	movl	%ebx, 8(%r14)
	movl	%eax, 12(%r14)
	addq	$16, %r14
	incl	%edx
	cmpl	$8, %edx
	jne	LBB0_6
## %bb.9:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	_RT_IDX_TYPE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$2, %eax
	shll	%cl, %eax
	movq	_RT_IDX_IDX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	shll	%cl, %edx
	movq	_RT_IDX_RS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	%eax, %edx
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_ql_write32
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_ql_read32
	testl	%eax, (%r15)
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%eax, %ebx
	movq	_RT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ql_read32
	movl	$2, (%r14)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, 4(%r14)
	movl	%ebx, 8(%r14)
	movl	%eax, 12(%r14)
	addq	$16, %r14
	incl	%edx
	cmpl	$16, %edx
	jne	LBB0_10
## %bb.13:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	_RT_IDX_TYPE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$3, %eax
	shll	%cl, %eax
	movq	_RT_IDX_IDX_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	shll	%cl, %edx
	movq	_RT_IDX_RS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	orl	%eax, %edx
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_ql_write32
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_ql_read32
	testl	%eax, (%r15)
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%eax, %ebx
	movq	_RT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ql_read32
	movl	$3, (%r14)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, 4(%r14)
	movl	%ebx, 8(%r14)
	movl	%eax, 12(%r14)
	addq	$16, %r14
	incl	%edx
	cmpl	$16, %edx
	jne	LBB0_14
## %bb.17:
	movq	_SEM_RT_IDX_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ql_sem_unlock
	movl	-48(%rbp), %eax                 ## 4-byte Reload
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEM_RT_IDX_MASK,4,2            ## @SEM_RT_IDX_MASK
	.comm	_RT_IDX_RS,4,2                  ## @RT_IDX_RS
	.comm	_RT_IDX_TYPE_SHIFT,4,2          ## @RT_IDX_TYPE_SHIFT
	.comm	_RT_IDX_IDX_SHIFT,4,2           ## @RT_IDX_IDX_SHIFT
	.comm	_RT_IDX,4,2                     ## @RT_IDX
	.comm	_RT_IDX_MR,4,2                  ## @RT_IDX_MR
	.comm	_RT_DATA,4,2                    ## @RT_DATA
	.no_dead_strip	_ql_get_routing_index_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ql_get_routing_index_registers
_ql_get_routing_index_registers:        ; @ql_get_routing_index_registers
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SEM_RT_IDX_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEM_RT_IDX_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ql_sem_spinlock
	cbnz	w0, LBB0_18
; %bb.1:
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	mov	w21, #0
Lloh3:
	adrp	x24, _RT_IDX_RS@GOTPAGE
Lloh4:
	ldr	x24, [x24, _RT_IDX_RS@GOTPAGEOFF]
Lloh5:
	adrp	x25, _RT_IDX_IDX_SHIFT@GOTPAGE
Lloh6:
	ldr	x25, [x25, _RT_IDX_IDX_SHIFT@GOTPAGEOFF]
Lloh7:
	adrp	x26, _RT_IDX@GOTPAGE
Lloh8:
	ldr	x26, [x26, _RT_IDX@GOTPAGEOFF]
Lloh9:
	adrp	x27, _RT_IDX_MR@GOTPAGE
Lloh10:
	ldr	x27, [x27, _RT_IDX_MR@GOTPAGEOFF]
Lloh11:
	adrp	x28, _RT_DATA@GOTPAGE
Lloh12:
	ldr	x28, [x28, _RT_DATA@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	ldr	w8, [x24]
	ldr	w9, [x25]
	lsl	w9, w21, w9
	orr	w2, w8, w9
	ldr	w1, [x26]
	mov	x0, x19
	bl	_ql_write32
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x26]
	mov	x0, x19
	bl	_ql_read32
	ldr	w8, [x27]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	ldr	w1, [x28]
	mov	x0, x19
	bl	_ql_read32
	stp	wzr, w21, [x20]
	stp	w22, w0, [x20, #8]
	add	x20, x20, #16
	add	w21, w21, #1
	cmp	w21, #8
	b.ne	LBB0_2
; %bb.5:
	mov	w21, #0
	mov	w23, #1
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w8, [x24]
Lloh13:
	adrp	x9, _RT_IDX_TYPE_SHIFT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _RT_IDX_TYPE_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	lsl	w9, w23, w9
	orr	w8, w9, w8
	ldr	w9, [x25]
	lsl	w9, w21, w9
	orr	w2, w8, w9
	ldr	w1, [x26]
	mov	x0, x19
	bl	_ql_write32
LBB0_7:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x26]
	mov	x0, x19
	bl	_ql_read32
	ldr	w8, [x27]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	ldr	w1, [x28]
	mov	x0, x19
	bl	_ql_read32
	stp	w23, w21, [x20]
	stp	w22, w0, [x20, #8]
	add	x20, x20, #16
	add	w21, w21, #1
	cmp	w21, #8
	b.ne	LBB0_6
; %bb.9:
	mov	w21, #0
	mov	w23, #2
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	w8, [x24]
Lloh16:
	adrp	x9, _RT_IDX_TYPE_SHIFT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _RT_IDX_TYPE_SHIFT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	lsl	w9, w23, w9
	orr	w8, w9, w8
	ldr	w9, [x25]
	lsl	w9, w21, w9
	orr	w2, w8, w9
	ldr	w1, [x26]
	mov	x0, x19
	bl	_ql_write32
LBB0_11:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x26]
	mov	x0, x19
	bl	_ql_read32
	ldr	w8, [x27]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x22, x0
	ldr	w1, [x28]
	mov	x0, x19
	bl	_ql_read32
	stp	w23, w21, [x20]
	stp	w22, w0, [x20, #8]
	add	x20, x20, #16
	add	w21, w21, #1
	cmp	w21, #16
	b.ne	LBB0_10
; %bb.13:
	mov	w21, #0
	mov	w23, #3
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
	ldr	w8, [x24]
Lloh19:
	adrp	x9, _RT_IDX_TYPE_SHIFT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _RT_IDX_TYPE_SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	lsl	w9, w23, w9
	orr	w8, w9, w8
	ldr	w9, [x25]
	lsl	w9, w21, w9
	orr	w2, w8, w9
	ldr	w1, [x26]
	mov	x0, x19
	bl	_ql_write32
LBB0_15:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x26]
	mov	x0, x19
	bl	_ql_read32
	ldr	w8, [x27]
	tst	w8, w0
	b.eq	LBB0_15
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x22, x0
	ldr	w1, [x28]
	mov	x0, x19
	bl	_ql_read32
	stp	w23, w21, [x20]
	stp	w22, w0, [x20, #8]
	add	x20, x20, #16
	add	w21, w21, #1
	cmp	w21, #16
	b.ne	LBB0_14
; %bb.17:
Lloh22:
	adrp	x8, _SEM_RT_IDX_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SEM_RT_IDX_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ql_sem_unlock
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
LBB0_18:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_SEM_RT_IDX_MASK,4,2            ; @SEM_RT_IDX_MASK
	.comm	_RT_IDX_RS,4,2                  ; @RT_IDX_RS
	.comm	_RT_IDX_TYPE_SHIFT,4,2          ; @RT_IDX_TYPE_SHIFT
	.comm	_RT_IDX_IDX_SHIFT,4,2           ; @RT_IDX_IDX_SHIFT
	.comm	_RT_IDX,4,2                     ; @RT_IDX
	.comm	_RT_IDX_MR,4,2                  ; @RT_IDX_MR
	.comm	_RT_DATA,4,2                    ; @RT_DATA
	.no_dead_strip	_ql_get_routing_index_registers
.subsections_via_symbols
