	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hangcheck_handler
_hangcheck_handler:                     ## @hangcheck_handler
	.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	_hangcheck_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %r14
	movq	16(%rax), %rax
	movq	24(%r14), %r13
	movq	8(%r13), %r12
	movq	%r14, %rdi
	callq	*(%rax)
	movq	%rax, %r15
	movq	24(%rax), %rax
	movq	(%rax), %rbx
	cmpq	(%r15), %rbx
	jne	LBB0_1
## %bb.2:
	cmpq	8(%r15), %rbx
	jge	LBB0_4
## %bb.3:
	movq	%rbx, (%r15)
	movl	(%r13), %edi
	movl	8(%r14), %edx
	movq	16(%r15), %rcx
	leaq	L_.str(%rip), %rsi
	callq	_DRM_DEV_ERROR
	movl	(%r13), %edi
	movl	8(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rcx
	callq	_DRM_DEV_ERROR
	movl	(%r13), %edi
	movl	8(%r14), %edx
	movq	8(%r15), %rcx
	leaq	L_.str.2(%rip), %rsi
	callq	_DRM_DEV_ERROR
	movl	(%r12), %edi
	movq	%r14, %rsi
	addq	$4, %rsi
	callq	_queue_work
	movq	(%r15), %rbx
	jmp	LBB0_4
LBB0_1:
	movq	%rbx, (%r15)
LBB0_4:
	cmpq	%rbx, 8(%r15)
	jle	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_hangcheck_timer_reset
LBB0_6:
	movl	(%r12), %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hangcheck_timer,4,2            ## @hangcheck_timer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: hangcheck detected gpu lockup rb %d!\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s:     completed fence: %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s:     submitted fence: %u\n"

	.comm	_gpu,8,3                        ## @gpu
	.no_dead_strip	_hangcheck_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hangcheck_handler
_hangcheck_handler:                     ; @hangcheck_handler
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, _hangcheck_timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hangcheck_timer@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x19, x0
	ldp	x8, x23, [x0, #16]
	ldr	x22, [x23, #8]
	ldr	x8, [x8]
	blr	x8
	mov	x20, x0
	ldr	x8, [x0, #24]
	ldr	x21, [x8]
	ldr	x8, [x0]
	cmp	x21, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
	cmp	x21, x8
	b.ge	LBB0_4
; %bb.2:
	str	x21, [x20]
	ldr	w0, [x23]
	ldr	w2, [x19, #8]
	ldr	x3, [x20, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_ERROR
	ldr	w0, [x23]
	ldr	w2, [x19, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x21
	bl	_DRM_DEV_ERROR
	ldr	w0, [x23]
	ldr	w2, [x19, #8]
	ldr	x3, [x20, #8]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DRM_DEV_ERROR
	ldr	w0, [x22]
	add	x1, x19, #4
	bl	_queue_work
	ldr	x21, [x20]
	b	LBB0_4
LBB0_3:
	str	x21, [x20]
LBB0_4:
	ldr	x8, [x20, #8]
	cmp	x8, x21
	b.le	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_hangcheck_timer_reset
LBB0_6:
	ldr	w0, [x22]
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_queue_work
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_hangcheck_timer,4,2            ; @hangcheck_timer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: hangcheck detected gpu lockup rb %d!\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s:     completed fence: %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s:     submitted fence: %u\n"

	.comm	_gpu,8,3                        ; @gpu
	.no_dead_strip	_hangcheck_handler
.subsections_via_symbols
