	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v9_0_get_rb_active_bitmap
_gfx_v9_0_get_rb_active_bitmap:         ## @gfx_v9_0_get_rb_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, %r14
	movq	_GC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_mmCC_RB_BACKEND_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movl	%eax, %r15d
	movl	(%rbx), %edi
	movq	_mmGC_USER_RB_BACKEND_DISABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_CC_RB_BACKEND_DISABLE__BACKEND_DISABLE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_GC_USER_RB_BACKEND_DISABLE__BACKEND_DISABLE__SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	movl	(%r14), %eax
	cltd
	idivl	4(%r14)
	movl	%eax, %edi
	callq	_amdgpu_gfx_create_bitmask
	notl	%ebx
	andl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GC,4,2                         ## @GC
	.comm	_mmCC_RB_BACKEND_DISABLE,4,2    ## @mmCC_RB_BACKEND_DISABLE
	.comm	_mmGC_USER_RB_BACKEND_DISABLE,4,2 ## @mmGC_USER_RB_BACKEND_DISABLE
	.comm	_CC_RB_BACKEND_DISABLE__BACKEND_DISABLE_MASK,4,2 ## @CC_RB_BACKEND_DISABLE__BACKEND_DISABLE_MASK
	.comm	_GC_USER_RB_BACKEND_DISABLE__BACKEND_DISABLE__SHIFT,4,2 ## @GC_USER_RB_BACKEND_DISABLE__BACKEND_DISABLE__SHIFT
	.no_dead_strip	_gfx_v9_0_get_rb_active_bitmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v9_0_get_rb_active_bitmap
_gfx_v9_0_get_rb_active_bitmap:         ; @gfx_v9_0_get_rb_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	x19, x0
Lloh0:
	adrp	x21, _GC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GC@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _mmCC_RB_BACKEND_DISABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmCC_RB_BACKEND_DISABLE@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_RREG32_SOC15
	mov	x20, x0
	ldr	w0, [x21]
Lloh5:
	adrp	x8, _mmGC_USER_RB_BACKEND_DISABLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmGC_USER_RB_BACKEND_DISABLE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_RREG32_SOC15
	orr	w8, w0, w20
Lloh8:
	adrp	x9, _CC_RB_BACKEND_DISABLE__BACKEND_DISABLE_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CC_RB_BACKEND_DISABLE__BACKEND_DISABLE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _GC_USER_RB_BACKEND_DISABLE__BACKEND_DISABLE__SHIFT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _GC_USER_RB_BACKEND_DISABLE__BACKEND_DISABLE__SHIFT@GOTPAGEOFF]
	and	w8, w8, w9
Lloh13:
	ldr	w9, [x10]
	asr	w20, w8, w9
	ldp	w8, w9, [x19]
	sdiv	w0, w8, w9
	bl	_amdgpu_gfx_create_bitmask
	bic	w0, w0, w20
	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	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	_mmCC_RB_BACKEND_DISABLE,4,2    ; @mmCC_RB_BACKEND_DISABLE
	.comm	_mmGC_USER_RB_BACKEND_DISABLE,4,2 ; @mmGC_USER_RB_BACKEND_DISABLE
	.comm	_CC_RB_BACKEND_DISABLE__BACKEND_DISABLE_MASK,4,2 ; @CC_RB_BACKEND_DISABLE__BACKEND_DISABLE_MASK
	.comm	_GC_USER_RB_BACKEND_DISABLE__BACKEND_DISABLE__SHIFT,4,2 ; @GC_USER_RB_BACKEND_DISABLE__BACKEND_DISABLE__SHIFT
	.no_dead_strip	_gfx_v9_0_get_rb_active_bitmap
.subsections_via_symbols
