	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_capture_error_state       ## -- Begin function i915_capture_error_state
	.p2align	4, 0x90
_i915_capture_error_state:              ## @i915_capture_error_state
	.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	_i915_modparams@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_9
## %bb.1:
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	24(%rdi), %rdi
	callq	_READ_ONCE
	testq	%rax, %rax
	jne	LBB0_9
## %bb.2:
	movq	%r15, %rdi
	callq	_i915_capture_gpu_state
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	8(%r15), %r13d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_error_msg
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	movl	%eax, %edx
	callq	_dev_info
	cmpl	$0, 4(%r14)
	jne	LBB0_6
## %bb.4:
	leaq	16(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 24(%r15)
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	___i915_gpu_state_free          ## TAILCALL
LBB0_7:
	movq	%r14, 24(%r15)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	leaq	_i915_capture_error_state.warned(%rip), %rdi
	movl	$1, %esi
	callq	_xchg
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_ktime_get_real_seconds
	movq	%rax, %rbx
	movq	_DRIVER_TIMESTAMP@GOTPCREL(%rip), %rax
	subq	(%rax), %rbx
	movl	$180, %edi
	callq	_DAY_AS_SECONDS
	cmpq	%rax, %rbx
	jge	LBB0_9
## %bb.10:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	(%r15), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_info                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_i915_capture_error_state.warned,4,2 ## @i915_capture_error_state.warned
	.comm	_i915_modparams,4,2             ## @i915_modparams
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s\n"

	.comm	_DRIVER_TIMESTAMP,8,3           ## @DRIVER_TIMESTAMP
L_.str.1:                               ## @.str.1
	.asciz	"GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM/Intel\n"

L_.str.3:                               ## @.str.3
	.asciz	"drm/i915 developers can then reassign to the right component if it's not a kernel issue.\n"

L_.str.4:                               ## @.str.4
	.asciz	"The GPU crash dump is required to analyze GPU hangs, so please always attach it.\n"

L_.str.5:                               ## @.str.5
	.asciz	"GPU crash dump saved to /sys/class/drm/card%d/error\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i915_capture_error_state       ; -- Begin function i915_capture_error_state
	.p2align	2
_i915_capture_error_state:              ; @i915_capture_error_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x8, _i915_modparams@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i915_modparams@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x0, [x0, #24]
	bl	_READ_ONCE
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_i915_capture_gpu_state
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	ldr	w23, [x19, #8]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_error_msg
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_dev_info
	ldr	w8, [x20, #4]
	cbnz	w8, LBB0_7
; %bb.5:
	add	x21, x19, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_8
; %bb.6:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	___i915_gpu_state_free
LBB0_8:
	str	x20, [x19, #24]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
Lloh5:
	adrp	x0, _i915_capture_error_state.warned@PAGE
Lloh6:
	add	x0, x0, _i915_capture_error_state.warned@PAGEOFF
	mov	w1, #1
	bl	_xchg
	cbnz	w0, LBB0_3
; %bb.9:
	bl	_ktime_get_real_seconds
Lloh7:
	adrp	x8, _DRIVER_TIMESTAMP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DRIVER_TIMESTAMP@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	sub	x20, x0, x8
	mov	w0, #180
	bl	_DAY_AS_SECONDS
	cmp	x20, x0
	b.ge	LBB0_3
; %bb.10:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_info
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_info
	ldr	x8, [x19]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_info
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_i915_capture_error_state.warned,4,2 ; @i915_capture_error_state.warned
	.comm	_i915_modparams,4,2             ; @i915_modparams
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s\n"

	.comm	_DRIVER_TIMESTAMP,8,3           ; @DRIVER_TIMESTAMP
l_.str.1:                               ; @.str.1
	.asciz	"GPU hangs can indicate a bug anywhere in the entire gfx stack, including userspace.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Please file a _new_ bug report on bugs.freedesktop.org against DRI -> DRM/Intel\n"

l_.str.3:                               ; @.str.3
	.asciz	"drm/i915 developers can then reassign to the right component if it's not a kernel issue.\n"

l_.str.4:                               ; @.str.4
	.asciz	"The GPU crash dump is required to analyze GPU hangs, so please always attach it.\n"

l_.str.5:                               ; @.str.5
	.asciz	"GPU crash dump saved to /sys/class/drm/card%d/error\n"

.subsections_via_symbols
