	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_get_cu_active_bitmap
_si_get_cu_active_bitmap:               ## @si_get_cu_active_bitmap
	.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
	movq	%rdi, %r15
	callq	_si_select_se_sh
	movq	_CC_GC_SHADER_ARRAY_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %r14d
	movq	_GC_USER_SHADER_ARRAY_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	$-1, %esi
	movl	$-1, %edx
	callq	_si_select_se_sh
	movl	(%r15), %edx
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	leal	-1(%rdx), %eax
	movl	%edx, %ecx
	andl	$7, %ecx
	cmpl	$7, %eax
	jae	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	andl	$-8, %edx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	shll	$8, %eax
	orl	$255, %eax
	addl	$-8, %edx
	jne	LBB0_5
LBB0_6:
	testl	%ecx, %ecx
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	addl	%eax, %eax
	incl	%eax
	decl	%ecx
	jne	LBB0_7
LBB0_8:
	orl	%r14d, %ebx
	sarl	$16, %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	%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	_GC_USER_SHADER_ARRAY_CONFIG,4,2 ## @GC_USER_SHADER_ARRAY_CONFIG
	.no_dead_strip	_si_get_cu_active_bitmap
.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_active_bitmap
_si_get_cu_active_bitmap:               ; @si_get_cu_active_bitmap
	.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	x21, x0
	bl	_si_select_se_sh
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
	mov	x19, x0
Lloh3:
	adrp	x8, _GC_USER_SHADER_ARRAY_CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GC_USER_SHADER_ARRAY_CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_RREG32
	mov	x20, x0
	mov	x0, x21
	mov	w1, #-1
	mov	w2, #-1
	bl	_si_select_se_sh
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w10, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	w9, #1
	bfi	w9, w10, #1, #31
	mov	x10, x9
	subs	w8, w8, #1
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w9, #0
LBB0_4:
	orr	w8, w20, w19
	bic	w0, w9, w8, asr #16
	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	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	_GC_USER_SHADER_ARRAY_CONFIG,4,2 ; @GC_USER_SHADER_ARRAY_CONFIG
	.no_dead_strip	_si_get_cu_active_bitmap
.subsections_via_symbols
