	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wave_read_regs
_wave_read_regs:                        ## @wave_read_regs
	.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
	movl	%ecx, %eax
	movq	_SQ_IND_INDEX__WAVE_ID__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movl	%r9d, %r14d
	movq	_SQ_IND_INDEX__SIMD_ID__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	_SQ_IND_INDEX__INDEX__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r8d
	movq	_mmSQ_IND_INDEX@GOTPCREL(%rip), %rdi
	orl	%edx, %esi
	movq	_SQ_IND_INDEX__THREAD_ID__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%r8d, %eax
	orl	%eax, %esi
	movq	_SQ_IND_INDEX__FORCE_READ_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%rdi), %edi
	movq	_SQ_IND_INDEX__AUTO_INCR_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_WREG32
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	movq	16(%rbp), %r15
	movl	%r14d, %r14d
	xorl	%ebx, %ebx
	movq	_mmSQ_IND_DATA@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	callq	_RREG32
	movl	%eax, (%r15,%rbx,4)
	incq	%rbx
	cmpl	%ebx, %r14d
	jne	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmSQ_IND_INDEX,4,2             ## @mmSQ_IND_INDEX
	.comm	_SQ_IND_INDEX__WAVE_ID__SHIFT,4,2 ## @SQ_IND_INDEX__WAVE_ID__SHIFT
	.comm	_SQ_IND_INDEX__SIMD_ID__SHIFT,4,2 ## @SQ_IND_INDEX__SIMD_ID__SHIFT
	.comm	_SQ_IND_INDEX__INDEX__SHIFT,4,2 ## @SQ_IND_INDEX__INDEX__SHIFT
	.comm	_SQ_IND_INDEX__THREAD_ID__SHIFT,4,2 ## @SQ_IND_INDEX__THREAD_ID__SHIFT
	.comm	_SQ_IND_INDEX__FORCE_READ_MASK,4,2 ## @SQ_IND_INDEX__FORCE_READ_MASK
	.comm	_SQ_IND_INDEX__AUTO_INCR_MASK,4,2 ## @SQ_IND_INDEX__AUTO_INCR_MASK
	.comm	_mmSQ_IND_DATA,4,2              ## @mmSQ_IND_DATA
	.no_dead_strip	_wave_read_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wave_read_regs
_wave_read_regs:                        ; @wave_read_regs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x6
	mov	x20, x5
Lloh0:
	adrp	x8, _mmSQ_IND_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmSQ_IND_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SQ_IND_INDEX__WAVE_ID__SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQ_IND_INDEX__WAVE_ID__SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w2, w8
Lloh6:
	adrp	x9, _SQ_IND_INDEX__SIMD_ID__SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SQ_IND_INDEX__SIMD_ID__SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w9, w1, w9
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _SQ_IND_INDEX__INDEX__SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SQ_IND_INDEX__INDEX__SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w9, w4, w9
Lloh12:
	adrp	x10, _SQ_IND_INDEX__THREAD_ID__SHIFT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SQ_IND_INDEX__THREAD_ID__SHIFT@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh14:
	ldr	w9, [x10]
	lsl	w9, w3, w9
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _SQ_IND_INDEX__FORCE_READ_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SQ_IND_INDEX__FORCE_READ_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _SQ_IND_INDEX__AUTO_INCR_MASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SQ_IND_INDEX__AUTO_INCR_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_WREG32
	cbz	w20, LBB0_3
; %bb.1:
Lloh21:
	adrp	x21, _mmSQ_IND_DATA@GOTPAGE
Lloh22:
	ldr	x21, [x21, _mmSQ_IND_DATA@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w20, w20, #1
	ldr	w0, [x21]
	bl	_RREG32
	str	w0, [x19], #4
	cbnz	w20, LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_mmSQ_IND_INDEX,4,2             ; @mmSQ_IND_INDEX
	.comm	_SQ_IND_INDEX__WAVE_ID__SHIFT,4,2 ; @SQ_IND_INDEX__WAVE_ID__SHIFT
	.comm	_SQ_IND_INDEX__SIMD_ID__SHIFT,4,2 ; @SQ_IND_INDEX__SIMD_ID__SHIFT
	.comm	_SQ_IND_INDEX__INDEX__SHIFT,4,2 ; @SQ_IND_INDEX__INDEX__SHIFT
	.comm	_SQ_IND_INDEX__THREAD_ID__SHIFT,4,2 ; @SQ_IND_INDEX__THREAD_ID__SHIFT
	.comm	_SQ_IND_INDEX__FORCE_READ_MASK,4,2 ; @SQ_IND_INDEX__FORCE_READ_MASK
	.comm	_SQ_IND_INDEX__AUTO_INCR_MASK,4,2 ; @SQ_IND_INDEX__AUTO_INCR_MASK
	.comm	_mmSQ_IND_DATA,4,2              ; @mmSQ_IND_DATA
	.no_dead_strip	_wave_read_regs
.subsections_via_symbols
