	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_get_cu_enabled
_si_get_cu_enabled:                     ## @si_get_cu_enabled
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	_CC_GC_SHADER_ARRAY_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %r15d
	andl	$1, %eax
	movq	_INACTIVE_CUS_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r15d
	negl	%eax
	andl	%eax, %r15d
	movq	_GC_USER_SHADER_ARRAY_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_INACTIVE_CUS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movl	%r14d, %edi
	callq	_si_create_bitmask
	notl	%ebx
	andl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CC_GC_SHADER_ARRAY_CONFIG,4,2  ## @CC_GC_SHADER_ARRAY_CONFIG
	.comm	_INACTIVE_CUS_MASK,4,2          ## @INACTIVE_CUS_MASK
	.comm	_GC_USER_SHADER_ARRAY_CONFIG,4,2 ## @GC_USER_SHADER_ARRAY_CONFIG
	.comm	_INACTIVE_CUS_SHIFT,4,2         ## @INACTIVE_CUS_SHIFT
	.no_dead_strip	_si_get_cu_enabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_get_cu_enabled
_si_get_cu_enabled:                     ; @si_get_cu_enabled
	.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	x19, x1
Lloh0:
	adrp	x8, _CC_GC_SHADER_ARRAY_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CC_GC_SHADER_ARRAY_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_RREG32
	sbfx	w8, w0, #0, #1
Lloh3:
	adrp	x9, _INACTIVE_CUS_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INACTIVE_CUS_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w0
	and	w20, w8, w9
Lloh6:
	adrp	x8, _GC_USER_SHADER_ARRAY_CONFIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GC_USER_SHADER_ARRAY_CONFIG@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_RREG32
	orr	w8, w20, w0
Lloh9:
	adrp	x9, _INACTIVE_CUS_SHIFT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _INACTIVE_CUS_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	asr	w20, w8, w9
	mov	x0, x19
	bl	_si_create_bitmask
	bic	w0, w0, w20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CC_GC_SHADER_ARRAY_CONFIG,4,2  ; @CC_GC_SHADER_ARRAY_CONFIG
	.comm	_INACTIVE_CUS_MASK,4,2          ; @INACTIVE_CUS_MASK
	.comm	_GC_USER_SHADER_ARRAY_CONFIG,4,2 ; @GC_USER_SHADER_ARRAY_CONFIG
	.comm	_INACTIVE_CUS_SHIFT,4,2         ; @INACTIVE_CUS_SHIFT
	.no_dead_strip	_si_get_cu_enabled
.subsections_via_symbols
