	.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	%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
	movl	%r9d, %r14d
	movl	%ecx, %eax
	movq	_SQ_IND_INDEX__WAVE_ID__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_GC@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	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), %rbx
	orl	%edx, %esi
	movq	_SQ_IND_INDEX__THREAD_ID__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%r8d, %eax
	orl	%esi, %eax
	movq	_SQ_IND_INDEX__FORCE_READ_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %edx
	movq	_SQ_IND_INDEX__AUTO_INCR_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	xorl	%esi, %esi
	movl	%eax, %ecx
	callq	_WREG32_SOC15
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	movq	16(%rbp), %r12
	movl	%r14d, %r14d
	xorl	%ebx, %ebx
	movq	_mmSQ_IND_DATA@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	(%r13), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movl	%eax, (%r12,%rbx,4)
	incq	%rbx
	cmpl	%ebx, %r14d
	jne	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GC,4,2                         ## @GC
	.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	x21, _GC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GC@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _mmSQ_IND_INDEX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmSQ_IND_INDEX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _SQ_IND_INDEX__WAVE_ID__SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SQ_IND_INDEX__WAVE_ID__SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	lsl	w9, w2, w9
Lloh8:
	adrp	x10, _SQ_IND_INDEX__SIMD_ID__SHIFT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SQ_IND_INDEX__SIMD_ID__SHIFT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	lsl	w10, w1, w10
	orr	w9, w10, w9
Lloh11:
	adrp	x10, _SQ_IND_INDEX__INDEX__SHIFT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _SQ_IND_INDEX__INDEX__SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	lsl	w10, w4, w10
Lloh14:
	adrp	x11, _SQ_IND_INDEX__THREAD_ID__SHIFT@GOTPAGE
Lloh15:
	ldr	x11, [x11, _SQ_IND_INDEX__THREAD_ID__SHIFT@GOTPAGEOFF]
	orr	w9, w9, w10
Lloh16:
	ldr	w10, [x11]
	lsl	w10, w3, w10
	orr	w9, w9, w10
Lloh17:
	adrp	x10, _SQ_IND_INDEX__FORCE_READ_MASK@GOTPAGE
Lloh18:
	ldr	x10, [x10, _SQ_IND_INDEX__FORCE_READ_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh20:
	adrp	x10, _SQ_IND_INDEX__AUTO_INCR_MASK@GOTPAGE
Lloh21:
	ldr	x10, [x10, _SQ_IND_INDEX__AUTO_INCR_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w3, w9, w10
	mov	w1, #0
	mov	x2, x8
	bl	_WREG32_SOC15
	cbz	w20, LBB0_3
; %bb.1:
Lloh23:
	adrp	x22, _mmSQ_IND_DATA@GOTPAGE
Lloh24:
	ldr	x22, [x22, _mmSQ_IND_DATA@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w20, w20, #1
	ldr	w0, [x21]
	ldr	w2, [x22]
	mov	w1, #0
	bl	_RREG32_SOC15
	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	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_GC,4,2                         ; @GC
	.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
