	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v10_0_select_se_sh
_gfx_v10_0_select_se_sh:                ## @gfx_v10_0_select_se_sh
	.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	%edx, %r14d
	movl	%esi, %ebx
	cmpl	$-1, %ecx
	movq	_GRBM_GFX_INDEX@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$1, %r12d
	cmovel	%r12d, %ecx
	movq	_INSTANCE_INDEX@GOTPCREL(%rip), %rax
	cmoveq	_INSTANCE_BROADCAST_WRITES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	callq	_REG_SET_FIELD
	cmpl	$-1, %ebx
	cmovel	%r12d, %ebx
	movl	(%r15), %esi
	movq	_SE_INDEX@GOTPCREL(%rip), %rcx
	cmoveq	_SE_BROADCAST_WRITES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%ebx, %ecx
	callq	_REG_SET_FIELD
	cmpl	$-1, %r14d
	cmovel	%r12d, %r14d
	movl	(%r15), %esi
	movq	_SA_INDEX@GOTPCREL(%rip), %rcx
	cmoveq	_SA_BROADCAST_WRITES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%r14d, %ecx
	callq	_REG_SET_FIELD
	movq	_GC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_mmGRBM_GFX_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	xorl	%esi, %esi
	movl	%eax, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32_SOC15                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GRBM_GFX_INDEX,4,2             ## @GRBM_GFX_INDEX
	.comm	_INSTANCE_BROADCAST_WRITES,4,2  ## @INSTANCE_BROADCAST_WRITES
	.comm	_INSTANCE_INDEX,4,2             ## @INSTANCE_INDEX
	.comm	_SE_BROADCAST_WRITES,4,2        ## @SE_BROADCAST_WRITES
	.comm	_SE_INDEX,4,2                   ## @SE_INDEX
	.comm	_SA_BROADCAST_WRITES,4,2        ## @SA_BROADCAST_WRITES
	.comm	_SA_INDEX,4,2                   ## @SA_INDEX
	.comm	_GC,4,2                         ## @GC
	.comm	_mmGRBM_GFX_INDEX,4,2           ## @mmGRBM_GFX_INDEX
	.no_dead_strip	_gfx_v10_0_select_se_sh
.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_select_se_sh
_gfx_v10_0_select_se_sh:                ; @gfx_v10_0_select_se_sh
	.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, x2
	mov	x20, x1
Lloh0:
	adrp	x21, _GRBM_GFX_INDEX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GRBM_GFX_INDEX@GOTPAGEOFF]
	ldr	w1, [x21]
	cmn	w3, #1
	csinc	w3, w3, wzr, ne
Lloh2:
	adrp	x8, _INSTANCE_BROADCAST_WRITES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INSTANCE_BROADCAST_WRITES@GOTPAGEOFF]
Lloh4:
	adrp	x9, _INSTANCE_INDEX@GOTPAGE
Lloh5:
	ldr	x9, [x9, _INSTANCE_INDEX@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	mov	w0, #0
	bl	_REG_SET_FIELD
	cmn	w20, #1
	csinc	w3, w20, wzr, ne
	ldr	w1, [x21]
Lloh6:
	adrp	x8, _SE_BROADCAST_WRITES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SE_BROADCAST_WRITES@GOTPAGEOFF]
Lloh8:
	adrp	x9, _SE_INDEX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SE_INDEX@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	bl	_REG_SET_FIELD
	cmn	w19, #1
	csinc	w3, w19, wzr, ne
	ldr	w1, [x21]
Lloh10:
	adrp	x8, _SA_BROADCAST_WRITES@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SA_BROADCAST_WRITES@GOTPAGEOFF]
Lloh12:
	adrp	x9, _SA_INDEX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SA_INDEX@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	bl	_REG_SET_FIELD
	mov	x3, x0
Lloh14:
	adrp	x8, _GC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GC@GOTPAGEOFF]
Lloh16:
	adrp	x9, _mmGRBM_GFX_INDEX@GOTPAGE
Lloh17:
	ldr	x9, [x9, _mmGRBM_GFX_INDEX@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	ldr	w2, [x9]
	mov	w1, #0
	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
	b	_WREG32_SOC15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GRBM_GFX_INDEX,4,2             ; @GRBM_GFX_INDEX
	.comm	_INSTANCE_BROADCAST_WRITES,4,2  ; @INSTANCE_BROADCAST_WRITES
	.comm	_INSTANCE_INDEX,4,2             ; @INSTANCE_INDEX
	.comm	_SE_BROADCAST_WRITES,4,2        ; @SE_BROADCAST_WRITES
	.comm	_SE_INDEX,4,2                   ; @SE_INDEX
	.comm	_SA_BROADCAST_WRITES,4,2        ; @SA_BROADCAST_WRITES
	.comm	_SA_INDEX,4,2                   ; @SA_INDEX
	.comm	_GC,4,2                         ; @GC
	.comm	_mmGRBM_GFX_INDEX,4,2           ; @mmGRBM_GFX_INDEX
	.no_dead_strip	_gfx_v10_0_select_se_sh
.subsections_via_symbols
