	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il_check_stuck_queue
_il_check_stuck_queue:                  ## @il_check_stuck_queue
	.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	8(%rdi), %r13
	movslq	%esi, %rbx
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	shlq	$5, %rbx
	leaq	(%rbx,%r13), %r14
	movq	8(%r13,%rbx), %rax
	cmpq	16(%r13,%rbx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r15, (%r14)
	jmp	LBB0_4
LBB0_2:
	movq	(%r14), %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	24(%r13,%rbx), %ebx
	subq	(%r14), %r15
	movq	%r15, %rdi
	callq	_jiffies_to_msecs
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_IL_ERR
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_il_force_reset
	movl	%eax, %ecx
	movq	_EAGAIN@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	addl	(%rdx), %ecx
	setne	%al
	jmp	LBB0_5
LBB0_4:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Queue %d stuck for %u ms.\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_il_check_stuck_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il_check_stuck_queue
_il_check_stuck_queue:                  ; @il_check_stuck_queue
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
	sxtw	x23, w1
Lloh2:
	ldr	x20, [x8]
	add	x22, x21, x23, lsl #5
	ldp	x8, x9, [x22, #8]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	str	x20, [x22]
	b	LBB0_4
LBB0_2:
	mov	x19, x0
	ldr	x24, [x22]
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x1, x0, x24
	mov	x0, x20
	bl	_time_after
	cbz	x0, LBB0_4
; %bb.3:
	add	x8, x21, x23, lsl #5
	ldr	w21, [x8, #24]
	ldr	x8, [x22]
	sub	x0, x20, x8
	bl	_jiffies_to_msecs
	mov	x2, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_IL_ERR
	mov	x0, x19
	mov	w1, #0
	bl	_il_force_reset
Lloh5:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w0, w8
	cset	w0, ne
LBB0_4:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Queue %d stuck for %u ms.\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_il_check_stuck_queue
.subsections_via_symbols
