	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gfxhub_v1_1_get_xgmi_info      ## -- Begin function gfxhub_v1_1_get_xgmi_info
	.p2align	4, 0x90
_gfxhub_v1_1_get_xgmi_info:             ## @gfxhub_v1_1_get_xgmi_info
	.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	%rdi, %r14
	movq	_GC@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_mmMC_VM_XGMI_LFB_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movl	%eax, %r15d
	movq	_MC_VM_XGMI_LFB_CNTL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_PF_MAX_REGION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_REG_GET_FIELD
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	leal	1(%rax), %ecx
	movl	%ecx, (%r14)
	cmpl	$4, %eax
	jge	LBB0_2
## %bb.3:
	movl	(%r13), %esi
	movq	_PF_LFB_REGION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_REG_GET_FIELD
	movl	%eax, 4(%r14)
	cmpl	$4, %eax
	jl	LBB0_4
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	movl	(%r12), %edi
	movq	_mmMC_VM_XGMI_LFB_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movq	_MC_VM_XGMI_LFB_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_PF_LFB_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_REG_GET_FIELD
	shll	$24, %eax
	movl	%eax, 8(%r14)
LBB0_5:
	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	_mmMC_VM_XGMI_LFB_CNTL,4,2      ## @mmMC_VM_XGMI_LFB_CNTL
	.comm	_MC_VM_XGMI_LFB_CNTL,4,2        ## @MC_VM_XGMI_LFB_CNTL
	.comm	_PF_MAX_REGION,4,2              ## @PF_MAX_REGION
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PF_LFB_REGION,4,2              ## @PF_LFB_REGION
	.comm	_mmMC_VM_XGMI_LFB_SIZE,4,2      ## @mmMC_VM_XGMI_LFB_SIZE
	.comm	_MC_VM_XGMI_LFB_SIZE,4,2        ## @MC_VM_XGMI_LFB_SIZE
	.comm	_PF_LFB_SIZE,4,2                ## @PF_LFB_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gfxhub_v1_1_get_xgmi_info      ; -- Begin function gfxhub_v1_1_get_xgmi_info
	.p2align	2
_gfxhub_v1_1_get_xgmi_info:             ; @gfxhub_v1_1_get_xgmi_info
	.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, _mmMC_VM_XGMI_LFB_CNTL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmMC_VM_XGMI_LFB_CNTL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_RREG32_SOC15
	mov	x20, x0
Lloh5:
	adrp	x22, _MC_VM_XGMI_LFB_CNTL@GOTPAGE
Lloh6:
	ldr	x22, [x22, _MC_VM_XGMI_LFB_CNTL@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh7:
	adrp	x8, _PF_MAX_REGION@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PF_MAX_REGION@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	bl	_REG_GET_FIELD
	cbz	w0, LBB0_5
; %bb.1:
	add	w8, w0, #1
	str	w8, [x19]
	cmp	w0, #4
	b.ge	LBB0_3
; %bb.2:
	ldr	w1, [x22]
Lloh10:
	adrp	x8, _PF_LFB_REGION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PF_LFB_REGION@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_REG_GET_FIELD
	str	w0, [x19, #4]
	cmp	w0, #4
	b.lt	LBB0_4
LBB0_3:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	ldr	w0, [x21]
Lloh16:
	adrp	x8, _mmMC_VM_XGMI_LFB_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mmMC_VM_XGMI_LFB_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_RREG32_SOC15
Lloh19:
	adrp	x8, _MC_VM_XGMI_LFB_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MC_VM_XGMI_LFB_SIZE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _PF_LFB_SIZE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PF_LFB_SIZE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	bl	_REG_GET_FIELD
	mov	x8, x0
	mov	w0, #0
	lsl	w8, w8, #24
	str	w8, [x19, #8]
LBB0_5:
	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	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GC,4,2                         ; @GC
	.comm	_mmMC_VM_XGMI_LFB_CNTL,4,2      ; @mmMC_VM_XGMI_LFB_CNTL
	.comm	_MC_VM_XGMI_LFB_CNTL,4,2        ; @MC_VM_XGMI_LFB_CNTL
	.comm	_PF_MAX_REGION,4,2              ; @PF_MAX_REGION
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PF_LFB_REGION,4,2              ; @PF_LFB_REGION
	.comm	_mmMC_VM_XGMI_LFB_SIZE,4,2      ; @mmMC_VM_XGMI_LFB_SIZE
	.comm	_MC_VM_XGMI_LFB_SIZE,4,2        ; @MC_VM_XGMI_LFB_SIZE
	.comm	_PF_LFB_SIZE,4,2                ; @PF_LFB_SIZE
.subsections_via_symbols
