	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_uncore_init_mmio         ## -- Begin function intel_uncore_init_mmio
	.p2align	4, 0x90
_intel_uncore_init_mmio:                ## @intel_uncore_init_mmio
	.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
	movq	24(%rdi), %r14
	callq	_uncore_mmio_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_1
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r14, %rdi
	callq	_INTEL_GEN
	cmpl	$6, %eax
	jl	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_intel_vgpu_active
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_UNCORE_HAS_FORCEWAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_4:
	movq	%r15, %rdi
	callq	_intel_uncore_has_forcewake
	movq	%r15, %rdi
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	callq	_uncore_forcewake_init
	testl	%eax, %eax
	je	LBB0_7
## %bb.16:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_uncore_mmio_cleanup
	jmp	LBB0_17
LBB0_5:
	callq	_uncore_raw_init
LBB0_7:
	movq	%r15, %rdi
	callq	_intel_uncore_has_forcewake
	xorl	%ecx, %ecx
	cmpl	$0, 16(%r15)
	setne	%cl
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	setne	%dil
	callq	_GEM_BUG_ON
	movq	%r15, %rdi
	callq	_intel_uncore_has_forcewake
	xorl	%ecx, %ecx
	cmpl	$0, 12(%r15)
	setne	%cl
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	setne	%dil
	callq	_GEM_BUG_ON
	movq	%r15, %rdi
	callq	_intel_uncore_has_forcewake
	xorl	%ecx, %ecx
	cmpl	$0, 8(%r15)
	setne	%cl
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	setne	%dil
	callq	_GEM_BUG_ON
	movq	%r15, %rdi
	callq	_intel_uncore_has_forcewake
	xorl	%ecx, %ecx
	cmpl	$0, 4(%r15)
	setne	%cl
	xorl	%edi, %edi
	cmpl	%ecx, %eax
	setne	%dil
	callq	_GEM_BUG_ON
	movq	%r14, %rdi
	callq	_HAS_FPGA_DBG_UNCLAIMED
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_UNCORE_HAS_FPGA_DBG_UNCLAIMED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_9:
	movq	%r14, %rdi
	callq	_IS_VALLEYVIEW
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_IS_CHERRYVIEW
	testq	%rax, %rax
	je	LBB0_12
LBB0_11:
	movq	_UNCORE_HAS_DBG_UNCLAIMED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_12:
	movq	%r14, %rdi
	movl	$6, %esi
	movl	$7, %edx
	callq	_IS_GEN_RANGE
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	_UNCORE_HAS_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_14:
	movq	%r15, %rdi
	callq	_intel_uncore_unclaimed_mmio
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_UNCORE_HAS_FORCEWAKE,4,2       ## @UNCORE_HAS_FORCEWAKE
	.comm	_UNCORE_HAS_FPGA_DBG_UNCLAIMED,4,2 ## @UNCORE_HAS_FPGA_DBG_UNCLAIMED
	.comm	_UNCORE_HAS_DBG_UNCLAIMED,4,2   ## @UNCORE_HAS_DBG_UNCLAIMED
	.comm	_UNCORE_HAS_FIFO,4,2            ## @UNCORE_HAS_FIFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unclaimed mmio detected on uncore init, clearing\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_uncore_init_mmio         ; -- Begin function intel_uncore_init_mmio
	.p2align	2
_intel_uncore_init_mmio:                ; @intel_uncore_init_mmio
	.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
	ldr	x20, [x0, #24]
	bl	_uncore_mmio_setup
	mov	x21, x0
	cbnz	w0, LBB0_18
; %bb.1:
	mov	x0, x20
	bl	_INTEL_GEN
	cmp	w0, #6
	b.lt	LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_intel_vgpu_active
	cbnz	w0, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _UNCORE_HAS_FORCEWAKE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UNCORE_HAS_FORCEWAKE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_4:
	mov	x0, x19
	bl	_intel_uncore_has_forcewake
	cbz	w0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_uncore_forcewake_init
	cbz	w0, LBB0_8
; %bb.6:
	mov	x21, x0
	mov	x0, x19
	bl	_uncore_mmio_cleanup
	b	LBB0_18
LBB0_7:
	mov	x0, x19
	bl	_uncore_raw_init
LBB0_8:
	mov	x0, x19
	bl	_intel_uncore_has_forcewake
	ldr	w8, [x19, #16]
	cmp	w8, #0
	cset	w8, ne
	cmp	w0, w8
	cset	w0, ne
	bl	_GEM_BUG_ON
	mov	x0, x19
	bl	_intel_uncore_has_forcewake
	ldr	w8, [x19, #12]
	cmp	w8, #0
	cset	w8, ne
	cmp	w0, w8
	cset	w0, ne
	bl	_GEM_BUG_ON
	mov	x0, x19
	bl	_intel_uncore_has_forcewake
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cset	w8, ne
	cmp	w0, w8
	cset	w0, ne
	bl	_GEM_BUG_ON
	mov	x0, x19
	bl	_intel_uncore_has_forcewake
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w8, ne
	cmp	w0, w8
	cset	w0, ne
	bl	_GEM_BUG_ON
	mov	x0, x20
	bl	_HAS_FPGA_DBG_UNCLAIMED
	cbz	x0, LBB0_10
; %bb.9:
Lloh3:
	adrp	x8, _UNCORE_HAS_FPGA_DBG_UNCLAIMED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UNCORE_HAS_FPGA_DBG_UNCLAIMED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_10:
	mov	x0, x20
	bl	_IS_VALLEYVIEW
	cbnz	x0, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_IS_CHERRYVIEW
	cbz	x0, LBB0_13
LBB0_12:
Lloh6:
	adrp	x8, _UNCORE_HAS_DBG_UNCLAIMED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UNCORE_HAS_DBG_UNCLAIMED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_13:
	mov	x0, x20
	mov	w1, #6
	mov	w2, #7
	bl	_IS_GEN_RANGE
	cbz	x0, LBB0_15
; %bb.14:
Lloh9:
	adrp	x8, _UNCORE_HAS_FIFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UNCORE_HAS_FIFO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_15:
	mov	x0, x19
	bl	_intel_uncore_unclaimed_mmio
	cbz	x0, LBB0_17
; %bb.16:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
LBB0_17:
	mov	w21, #0
LBB0_18:
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_UNCORE_HAS_FORCEWAKE,4,2       ; @UNCORE_HAS_FORCEWAKE
	.comm	_UNCORE_HAS_FPGA_DBG_UNCLAIMED,4,2 ; @UNCORE_HAS_FPGA_DBG_UNCLAIMED
	.comm	_UNCORE_HAS_DBG_UNCLAIMED,4,2   ; @UNCORE_HAS_DBG_UNCLAIMED
	.comm	_UNCORE_HAS_FIFO,4,2            ; @UNCORE_HAS_FIFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unclaimed mmio detected on uncore init, clearing\n"

.subsections_via_symbols
