	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __cache_work_func
___cache_work_func:                     ## @__cache_work_func
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	24(%rdi), %rbx
	movl	16(%rdi), %esi
	movq	%rbx, %rdi
	callq	_order2idx
	cmpq	$0, 32(%rbx)
	je	LBB0_1
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%eax, %r14d
	leaq	8(%rbx), %r15
	movq	24(%rbx), %r12
	movslq	%eax, %r13
	shlq	$5, %r13
	leaq	(%r12,%r13), %rdx
	movl	(%r12,%r13), %eax
	movl	4(%r12,%r13), %ecx
	leaq	(%r12,%r13), %rsi
	addq	$4, %rsi
	addl	%ecx, %ecx
	cmpl	%ecx, %eax
	jge	LBB0_9
## %bb.2:
	cmpl	$0, (%rbx)
	je	LBB0_3
LBB0_9:
	cmpl	%ecx, %eax
	jle	LBB0_17
## %bb.10:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_need_resched
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movq	%r15, %rdi
	callq	_someone_adding
	testl	%eax, %eax
	je	LBB0_12
LBB0_15:
	movl	(%r15), %edi
	leaq	(%r12,%r13), %rsi
	addq	$8, %rsi
	movq	_HZ@GOTPCREL(%rip), %rax
	imull	$300, (%rax), %edx              ## imm = 0x12C
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_delayed_work             ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	%r14d, %esi
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %edx
	callq	_add_keys
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	addl	%ecx, %ecx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	cmpl	%ecx, (%rsi)
	jge	LBB0_17
## %bb.4:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_7
## %bb.5:
	addl	$2, %r14d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_mlx5_ib_dbg
	movl	8(%rbx), %ebx
	leaq	(%r12,%r13), %r14
	addq	$8, %r14
	movl	$3, %edi
	jmp	LBB0_6
LBB0_12:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$300, %rax, %rsi                ## imm = 0x12C
	addq	16(%rbx), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_remove_keys
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %eax
	jle	LBB0_17
	jmp	LBB0_14
LBB0_7:
	testl	%eax, %eax
	je	LBB0_14
## %bb.8:
	addl	$2, %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_mlx5_ib_warn
	movl	8(%rbx), %ebx
	leaq	(%r12,%r13), %r14
	addq	$8, %r14
	movl	$1000, %edi                     ## imm = 0x3E8
LBB0_6:
	callq	_msecs_to_jiffies
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	jmp	LBB0_16
LBB0_14:
	movl	(%r15), %edi
	leaq	(%r12,%r13), %rsi
	addq	$12, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"returned eagain, order %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"command failed order %d, err %d\n"

	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	___cache_work_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __cache_work_func
___cache_work_func:                     ; @__cache_work_func
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x19, [x0, #24]
	ldr	w1, [x0, #16]
	mov	x0, x19
	bl	_order2idx
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_2
LBB0_1:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x21, x0
	add	x20, x19, #8
	ldr	x22, [x19, #24]
	sxtw	x23, w21
	add	x24, x22, x23, lsl #5
	ldr	w8, [x24]
	mov	x25, x24
	ldr	w9, [x25, #4]!
	lsl	w9, w9, #1
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.3:
	ldr	w10, [x19]
	cbz	w10, LBB0_9
LBB0_4:
	cmp	w8, w9
	b.le	LBB0_1
; %bb.5:
	bl	_need_resched
Lloh0:
	adrp	x26, _HZ@GOTPAGE
Lloh1:
	ldr	x26, [x26, _HZ@GOTPAGEOFF]
	cbnz	w0, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_someone_adding
	cbz	w0, LBB0_12
LBB0_7:
	ldr	w0, [x20]
	add	x8, x22, x23, lsl #5
	add	x1, x8, #8
	ldr	w8, [x26]
	mov	w9, #300
	mul	w2, w8, w9
LBB0_8:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_queue_delayed_work
LBB0_9:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_add_keys
	ldr	w8, [x24]
	ldr	w9, [x25]
	cmp	w8, w9, lsl #1
	b.ge	LBB0_1
; %bb.10:
	mov	x3, x0
Lloh2:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_14
; %bb.11:
	add	w2, w21, #2
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx5_ib_dbg
	ldr	w19, [x19, #8]
	add	x8, x22, x23, lsl #5
	add	x20, x8, #8
	mov	w0, #3
	b	LBB0_16
LBB0_12:
Lloh7:
	adrp	x8, _jiffies@GOTPAGE
Lloh8:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
	ldrsw	x9, [x26]
	mov	w10, #300
	madd	x1, x9, x10, x8
	bl	_time_after
	cbz	x0, LBB0_7
; %bb.13:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_remove_keys
	ldr	w8, [x24]
	ldr	w9, [x25]
	cmp	w8, w9
	b.le	LBB0_1
	b	LBB0_17
LBB0_14:
	cbz	w3, LBB0_17
; %bb.15:
	add	w2, w21, #2
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mlx5_ib_warn
	ldr	w19, [x19, #8]
	add	x8, x22, x23, lsl #5
	add	x20, x8, #8
	mov	w0, #1000
LBB0_16:
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	b	LBB0_8
LBB0_17:
	ldr	w0, [x20]
	add	x8, x22, x23, lsl #5
	add	x1, x8, #12
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_queue_work
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"returned eagain, order %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"command failed order %d, err %d\n"

	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	___cache_work_func
.subsections_via_symbols
