	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function error_msg
_error_msg:                             ## @error_msg
	.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	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	movl	16(%rdi), %edi
	callq	_INTEL_GEN
	movslq	%eax, %r14
	movq	%rbx, %rdi
	callq	_i915_error_generate_code
	leaq	L_.str(%rip), %rdx
	movl	$8, %r12d
	movq	%r13, %rdi
	movl	$8, %esi
	movq	%r14, %rcx
	movl	%r15d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_scnprintf
	movl	%eax, %r15d
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movslq	%r15d, %rdi
	addq	(%rbx), %rdi
	subl	%r15d, %r12d
	movslq	4(%rax), %rcx
	movl	(%rax), %r8d
	leaq	L_.str.1(%rip), %rdx
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_scnprintf
	addl	%eax, %r15d
LBB0_2:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	movslq	%r15d, %rax
	movq	(%rbx), %rdi
	addq	%rax, %rdi
	movl	$8, %esi
	subl	%eax, %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_scnprintf
LBB0_4:
	movq	(%rbx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GPU HANG: ecode %d:%x:0x%08x"

L_.str.1:                               ## @.str.1
	.asciz	", in %s [%d]"

L_.str.2:                               ## @.str.2
	.asciz	", %s"

	.no_dead_strip	_error_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function error_msg
_error_msg:                             ; @error_msg
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0]
	ldr	w0, [x0, #16]
	bl	_INTEL_GEN
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x23, w0
	mov	x0, x19
	bl	_i915_error_generate_code
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	stp	x21, x0, [sp]
	mov	w24, #8
	mov	x0, x22
	mov	w1, #8
	mov	x3, x23
	bl	_scnprintf
	mov	x21, x0
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x9, [x19]
	add	x0, x9, w21, sxtw
	sub	w1, w24, w21
	ldp	w8, w3, [x8]
                                        ; kill: def $w3 killed $w3 def $x3
	sxtw	x3, w3
	str	x8, [sp]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_scnprintf
	add	w21, w0, w21
LBB0_2:
	cbz	x20, LBB0_4
; %bb.3:
	ldr	x8, [x19]
	add	x0, x8, w21, sxtw
	mov	w8, #8
	sub	w1, w8, w21
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x3, x20
	bl	_scnprintf
LBB0_4:
	ldr	x0, [x19]
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPU HANG: ecode %d:%x:0x%08x"

l_.str.1:                               ; @.str.1
	.asciz	", in %s [%d]"

l_.str.2:                               ; @.str.2
	.asciz	", %s"

	.no_dead_strip	_error_msg
.subsections_via_symbols
