	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_uncore_arm_unclaimed_mmio_detection ## -- Begin function intel_uncore_arm_unclaimed_mmio_detection
	.p2align	4, 0x90
_intel_uncore_arm_unclaimed_mmio_detection: ## @intel_uncore_arm_unclaimed_mmio_detection
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	addq	$8, %rdi
	callq	_spin_lock_irq
	movq	(%rbx), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	setle	%dil
	callq	_unlikely
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_check_for_unclaimed_mmio
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_i915_modparams@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	incl	(%r14)
LBB0_4:
	movq	(%rbx), %rax
	decq	(%rax)
	movl	$1, %r14d
LBB0_5:
	movq	(%rbx), %rdi
	addq	$8, %rdi
	callq	_spin_unlock_irq
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_i915_modparams,4,2             ## @i915_modparams
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unclaimed register detected, enabling oneshot unclaimed register reporting. Please use i915.mmio_debug=N for more information.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_uncore_arm_unclaimed_mmio_detection ; -- Begin function intel_uncore_arm_unclaimed_mmio_detection
	.p2align	2
_intel_uncore_arm_unclaimed_mmio_detection: ; @intel_uncore_arm_unclaimed_mmio_detection
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	add	x0, x8, #8
	bl	_spin_lock_irq
	ldr	x8, [x19]
	ldr	x8, [x8]
	cmp	x8, #1
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_1:
	mov	w20, #0
	b	LBB0_6
LBB0_2:
	mov	x0, x19
	bl	_check_for_unclaimed_mmio
	bl	_unlikely
	cbz	x0, LBB0_1
; %bb.3:
Lloh0:
	adrp	x20, _i915_modparams@GOTPAGE
Lloh1:
	ldr	x20, [x20, _i915_modparams@GOTPAGEOFF]
	ldr	w8, [x20]
	cbnz	w8, LBB0_5
; %bb.4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_5:
	ldr	x8, [x19]
	ldr	x9, [x8]
	sub	x9, x9, #1
	str	x9, [x8]
	mov	w20, #1
LBB0_6:
	ldr	x8, [x19]
	add	x0, x8, #8
	bl	_spin_unlock_irq
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_i915_modparams,4,2             ; @i915_modparams
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unclaimed register detected, enabling oneshot unclaimed register reporting. Please use i915.mmio_debug=N for more information.\n"

.subsections_via_symbols
