	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v10_0_check_grbm_cam_remapping
_gfx_v10_0_check_grbm_cam_remapping:    ## @gfx_v10_0_check_grbm_cam_remapping
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_GC@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_mmVGT_ESGS_RING_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movq	%rax, %r14
	movl	(%r12), %edi
	movl	(%r15), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_WREG32_SOC15
	movl	(%r12), %edi
	movq	_mmVGT_ESGS_RING_SIZE_UMD@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movl	$3735928559, %ecx               ## imm = 0xDEADBEEF
	xorl	%esi, %esi
	callq	_WREG32_SOC15
	movl	(%r12), %edi
	movl	(%r15), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	xorl	%ebx, %ebx
	movl	$3735928559, %ecx               ## imm = 0xDEADBEEF
	cmpq	%rcx, %rax
	sete	%bl
	movl	(%r12), %edi
	cmoveq	%r13, %r15
	movl	(%r15), %edx
	xorl	%esi, %esi
	movq	%r14, %rcx
	callq	_WREG32_SOC15
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GC,4,2                         ## @GC
	.comm	_mmVGT_ESGS_RING_SIZE,4,2       ## @mmVGT_ESGS_RING_SIZE
	.comm	_mmVGT_ESGS_RING_SIZE_UMD,4,2   ## @mmVGT_ESGS_RING_SIZE_UMD
	.no_dead_strip	_gfx_v10_0_check_grbm_cam_remapping
.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_check_grbm_cam_remapping
_gfx_v10_0_check_grbm_cam_remapping:    ; @gfx_v10_0_check_grbm_cam_remapping
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x21, _GC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GC@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x20, _mmVGT_ESGS_RING_SIZE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _mmVGT_ESGS_RING_SIZE@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	w1, #0
	bl	_RREG32_SOC15
	mov	x19, x0
	ldr	w0, [x21]
	ldr	w2, [x20]
	mov	w1, #0
	mov	x3, #0
	bl	_WREG32_SOC15
	ldr	w0, [x21]
Lloh4:
	adrp	x22, _mmVGT_ESGS_RING_SIZE_UMD@GOTPAGE
Lloh5:
	ldr	x22, [x22, _mmVGT_ESGS_RING_SIZE_UMD@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w23, #48879
	movk	w23, #57005, lsl #16
	mov	w1, #0
	mov	w3, #48879
	movk	w3, #57005, lsl #16
	bl	_WREG32_SOC15
	ldr	w0, [x21]
	ldr	w2, [x20]
	mov	w1, #0
	bl	_RREG32_SOC15
	cmp	x0, x23
	csel	x8, x22, x20, eq
	cset	w20, eq
	ldr	w0, [x21]
	ldr	w2, [x8]
	mov	w1, #0
	mov	x3, x19
	bl	_WREG32_SOC15
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GC,4,2                         ; @GC
	.comm	_mmVGT_ESGS_RING_SIZE,4,2       ; @mmVGT_ESGS_RING_SIZE
	.comm	_mmVGT_ESGS_RING_SIZE_UMD,4,2   ; @mmVGT_ESGS_RING_SIZE_UMD
	.no_dead_strip	_gfx_v10_0_check_grbm_cam_remapping
.subsections_via_symbols
