	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v7_0_select_se_sh
_gfx_v7_0_select_se_sh:                 ## @gfx_v7_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	cmpl	$-1, %ecx
	movq	_GRBM_GFX_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %eax
	cmovel	%eax, %ecx
	movq	_INSTANCE_INDEX@GOTPCREL(%rip), %rax
	cmoveq	_INSTANCE_BROADCAST_WRITES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%edi, %edi
	callq	_REG_SET_FIELD
	movl	%ebx, %ecx
	andl	%r14d, %ecx
	cmpl	$-1, %ecx
	je	LBB0_1
## %bb.2:
	cmpl	$-1, %r14d
	je	LBB0_3
## %bb.4:
	cmpl	$-1, %ebx
	je	LBB0_5
## %bb.6:
	movq	_GRBM_GFX_INDEX__SH_INDEX__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movq	_GRBM_GFX_INDEX__SE_INDEX__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r14d
	orl	%r14d, %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_GRBM_GFX_INDEX__SH_BROADCAST_WRITES_MASK@GOTPCREL(%rip), %rcx
	movq	_GRBM_GFX_INDEX__SE_BROADCAST_WRITES_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	jmp	LBB0_7
LBB0_3:
	movq	_GRBM_GFX_INDEX__SH_INDEX__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movq	_GRBM_GFX_INDEX__SE_BROADCAST_WRITES_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	jmp	LBB0_7
LBB0_5:
	movq	_GRBM_GFX_INDEX__SE_INDEX__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r14d
	movq	_GRBM_GFX_INDEX__SH_BROADCAST_WRITES_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r14d
	movl	%r14d, %ebx
LBB0_7:
	orl	%eax, %ebx
	movq	_mmGRBM_GFX_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WREG32                         ## 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	_GRBM_GFX_INDEX__SH_BROADCAST_WRITES_MASK,4,2 ## @GRBM_GFX_INDEX__SH_BROADCAST_WRITES_MASK
	.comm	_GRBM_GFX_INDEX__SE_BROADCAST_WRITES_MASK,4,2 ## @GRBM_GFX_INDEX__SE_BROADCAST_WRITES_MASK
	.comm	_GRBM_GFX_INDEX__SH_INDEX__SHIFT,4,2 ## @GRBM_GFX_INDEX__SH_INDEX__SHIFT
	.comm	_GRBM_GFX_INDEX__SE_INDEX__SHIFT,4,2 ## @GRBM_GFX_INDEX__SE_INDEX__SHIFT
	.comm	_mmGRBM_GFX_INDEX,4,2           ## @mmGRBM_GFX_INDEX
	.no_dead_strip	_gfx_v7_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_v7_0_select_se_sh
_gfx_v7_0_select_se_sh:                 ; @gfx_v7_0_select_se_sh
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _GRBM_GFX_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GRBM_GFX_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	cmn	w3, #1
	csinc	w3, w3, wzr, ne
Lloh3:
	adrp	x8, _INSTANCE_BROADCAST_WRITES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INSTANCE_BROADCAST_WRITES@GOTPAGEOFF]
Lloh5:
	adrp	x9, _INSTANCE_INDEX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _INSTANCE_INDEX@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	mov	w0, #0
	bl	_REG_SET_FIELD
	and	w8, w20, w19
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.1:
	cmn	w19, #1
	b.eq	LBB0_5
; %bb.2:
	cmn	w20, #1
	b.eq	LBB0_6
; %bb.3:
Lloh7:
	adrp	x8, _GRBM_GFX_INDEX__SH_INDEX__SHIFT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GRBM_GFX_INDEX__SH_INDEX__SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	lsl	w8, w20, w8
	b	LBB0_7
LBB0_4:
Lloh10:
	adrp	x8, _GRBM_GFX_INDEX__SH_BROADCAST_WRITES_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GRBM_GFX_INDEX__SH_BROADCAST_WRITES_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _GRBM_GFX_INDEX__SE_BROADCAST_WRITES_MASK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _GRBM_GFX_INDEX__SE_BROADCAST_WRITES_MASK@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	b	LBB0_8
LBB0_5:
Lloh16:
	adrp	x8, _GRBM_GFX_INDEX__SE_BROADCAST_WRITES_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GRBM_GFX_INDEX__SE_BROADCAST_WRITES_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _GRBM_GFX_INDEX__SH_INDEX__SHIFT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _GRBM_GFX_INDEX__SH_INDEX__SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	lsl	w9, w20, w9
	b	LBB0_8
LBB0_6:
Lloh22:
	adrp	x8, _GRBM_GFX_INDEX__SH_BROADCAST_WRITES_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _GRBM_GFX_INDEX__SH_BROADCAST_WRITES_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
LBB0_7:
Lloh25:
	adrp	x9, _GRBM_GFX_INDEX__SE_INDEX__SHIFT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _GRBM_GFX_INDEX__SE_INDEX__SHIFT@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	lsl	w9, w19, w9
LBB0_8:
	orr	w8, w9, w8
	orr	w1, w8, w0
Lloh28:
	adrp	x8, _mmGRBM_GFX_INDEX@GOTPAGE
Lloh29:
	ldr	x8, [x8, _mmGRBM_GFX_INDEX@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WREG32
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.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	_GRBM_GFX_INDEX__SH_BROADCAST_WRITES_MASK,4,2 ; @GRBM_GFX_INDEX__SH_BROADCAST_WRITES_MASK
	.comm	_GRBM_GFX_INDEX__SE_BROADCAST_WRITES_MASK,4,2 ; @GRBM_GFX_INDEX__SE_BROADCAST_WRITES_MASK
	.comm	_GRBM_GFX_INDEX__SH_INDEX__SHIFT,4,2 ; @GRBM_GFX_INDEX__SH_INDEX__SHIFT
	.comm	_GRBM_GFX_INDEX__SE_INDEX__SHIFT,4,2 ; @GRBM_GFX_INDEX__SE_INDEX__SHIFT
	.comm	_mmGRBM_GFX_INDEX,4,2           ; @mmGRBM_GFX_INDEX
	.no_dead_strip	_gfx_v7_0_select_se_sh
.subsections_via_symbols
