	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v10_0_ring_emit_gds_switch
_gfx_v10_0_ring_emit_gds_switch:        ## @gfx_v10_0_ring_emit_gds_switch
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %r15
	movl	16(%rbp), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_GC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mmGDS_VMID0_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	leal	(%r13,%r13), %ecx
	movslq	%ecx, %rbx
	leaq	(%rax,%rbx), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%r14d, %r8d
	callq	_gfx_v10_0_write_data_to_reg
	movq	_GC@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_mmGDS_VMID0_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	addq	%rax, %rbx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_gfx_v10_0_write_data_to_reg
	movl	(%r14), %edi
	movq	_mmGDS_GWS_VMID0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movslq	%r13d, %rbx
	addq	%rbx, %rax
	movq	_GDS_GWS_VMID0__SIZE__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r12d
	orl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rax, %rcx
	movl	%r12d, %r8d
	callq	_gfx_v10_0_write_data_to_reg
	movl	(%r14), %edi
	movq	_mmGDS_OA_VMID0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movl	24(%rbp), %ecx
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	addl	%esi, %ecx
	movl	$1, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movl	$-1, %r8d
	movl	%esi, %ecx
	shll	%cl, %r8d
	addq	%rax, %rbx
	addl	%edx, %r8d
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gfx_v10_0_write_data_to_reg    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GC,4,2                         ## @GC
	.comm	_mmGDS_VMID0_BASE,4,2           ## @mmGDS_VMID0_BASE
	.comm	_mmGDS_VMID0_SIZE,4,2           ## @mmGDS_VMID0_SIZE
	.comm	_mmGDS_GWS_VMID0,4,2            ## @mmGDS_GWS_VMID0
	.comm	_GDS_GWS_VMID0__SIZE__SHIFT,4,2 ## @GDS_GWS_VMID0__SIZE__SHIFT
	.comm	_mmGDS_OA_VMID0,4,2             ## @mmGDS_OA_VMID0
	.no_dead_strip	_gfx_v10_0_ring_emit_gds_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v10_0_ring_emit_gds_switch
_gfx_v10_0_ring_emit_gds_switch:        ; @gfx_v10_0_ring_emit_gds_switch
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x7
	mov	x19, x6
	mov	x23, x5
	mov	x22, x4
	mov	x24, x3
	mov	x25, x2
	mov	x26, x1
	mov	x21, x0
Lloh0:
	adrp	x27, _GC@GOTPAGE
Lloh1:
	ldr	x27, [x27, _GC@GOTPAGEOFF]
	ldr	w0, [x27]
Lloh2:
	adrp	x8, _mmGDS_VMID0_BASE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmGDS_VMID0_BASE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	lsl	w8, w26, #1
	sxtw	x28, w8
	add	x3, x0, x28
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	mov	x4, x25
	bl	_gfx_v10_0_write_data_to_reg
	ldr	w0, [x27]
Lloh5:
	adrp	x8, _mmGDS_VMID0_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmGDS_VMID0_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	add	x3, x0, x28
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	mov	x4, x24
	bl	_gfx_v10_0_write_data_to_reg
	ldr	w0, [x27]
Lloh8:
	adrp	x8, _mmGDS_GWS_VMID0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mmGDS_GWS_VMID0@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	sxtw	x24, w26
	add	x3, x0, x24
Lloh11:
	adrp	x8, _GDS_GWS_VMID0__SIZE__SHIFT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GDS_GWS_VMID0__SIZE__SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	lsl	w8, w23, w8
	orr	w4, w8, w22
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	bl	_gfx_v10_0_write_data_to_reg
	ldr	w0, [x27]
Lloh14:
	adrp	x8, _mmGDS_OA_VMID0@GOTPAGE
Lloh15:
	ldr	x8, [x8, _mmGDS_OA_VMID0@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	add	x3, x0, x24
	add	w8, w20, w19
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #-1
	lsl	w9, w9, w19
	add	w4, w8, w9
	mov	x0, x21
	mov	w1, #0
	mov	w2, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_gfx_v10_0_write_data_to_reg
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_GC,4,2                         ; @GC
	.comm	_mmGDS_VMID0_BASE,4,2           ; @mmGDS_VMID0_BASE
	.comm	_mmGDS_VMID0_SIZE,4,2           ; @mmGDS_VMID0_SIZE
	.comm	_mmGDS_GWS_VMID0,4,2            ; @mmGDS_GWS_VMID0
	.comm	_GDS_GWS_VMID0__SIZE__SHIFT,4,2 ; @GDS_GWS_VMID0__SIZE__SHIFT
	.comm	_mmGDS_OA_VMID0,4,2             ; @mmGDS_OA_VMID0
	.no_dead_strip	_gfx_v10_0_ring_emit_gds_switch
.subsections_via_symbols
