	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_hangcheck_elapsed
_vc4_hangcheck_elapsed:                 ## @vc4_hangcheck_elapsed
	.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@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %rbx
	movq	8(%rax), %r14
	leaq	4(%rax), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_vc4_first_bin_job
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_vc4_first_render_job
	movq	%rax, %r12
	movq	%r13, %rax
	orq	%r12, %rax
	je	LBB0_11
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	callq	_V3D_CTNCA
	movl	%eax, %edi
	callq	_V3D_READ
	movq	%rax, %r14
	movl	$1, %edi
	callq	_V3D_CTNCA
	movl	%eax, %edi
	callq	_V3D_READ
	testq	%r13, %r13
	je	LBB0_3
## %bb.2:
	cmpq	(%r13), %r14
	jne	LBB0_7
LBB0_3:
	testq	%r12, %r12
	je	LBB0_10
## %bb.4:
	cmpq	8(%r12), %rax
	jne	LBB0_5
LBB0_10:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_schedule_work                  ## TAILCALL
LBB0_11:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_7:
	movq	%r14, (%r13)
	testq	%r12, %r12
	jne	LBB0_8
	jmp	LBB0_9
LBB0_5:
	testq	%r13, %r13
	je	LBB0_8
## %bb.6:
	movq	%r14, (%r13)
LBB0_8:
	movq	%rax, 8(%r12)
LBB0_9:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vc4_queue_hangcheck            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hangcheck,4,2                  ## @hangcheck
	.comm	_vc4,8,3                        ## @vc4
	.no_dead_strip	_vc4_hangcheck_elapsed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_hangcheck_elapsed
_vc4_hangcheck_elapsed:                 ; @vc4_hangcheck_elapsed
	.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@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hangcheck@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x21, x0
	ldr	x20, [x0, #8]
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x21
	bl	_vc4_first_bin_job
	mov	x23, x0
	mov	x0, x21
	bl	_vc4_first_render_job
	orr	x8, x23, x0
	cbz	x8, LBB0_6
; %bb.1:
	mov	x22, x0
	mov	w0, #0
	bl	_V3D_CTNCA
	bl	_V3D_READ
	mov	x24, x0
	mov	w0, #1
	bl	_V3D_CTNCA
	bl	_V3D_READ
	cbz	x23, LBB0_3
; %bb.2:
	ldr	x8, [x23]
	cmp	x24, x8
	b.ne	LBB0_7
LBB0_3:
	cbz	x22, LBB0_5
; %bb.4:
	ldr	x8, [x22, #8]
	cmp	x0, x8
	b.ne	LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	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	_schedule_work
LBB0_6:
	mov	x0, 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	_spin_unlock_irqrestore
LBB0_7:
	str	x24, [x23]
	cbnz	x22, LBB0_10
	b	LBB0_11
LBB0_8:
	cbz	x23, LBB0_10
; %bb.9:
	str	x24, [x23]
LBB0_10:
	str	x0, [x22, #8]
LBB0_11:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	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	_vc4_queue_hangcheck
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_hangcheck,4,2                  ; @hangcheck
	.comm	_vc4,8,3                        ; @vc4
	.no_dead_strip	_vc4_hangcheck_elapsed
.subsections_via_symbols
