	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cnic_get_kcqes
_cnic_get_kcqes:                        ## @cnic_get_kcqes
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %r12d
	movq	_MAX_KCQ_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	8(%rsi), %rax
	movl	(%rax), %edi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	*16(%rsi)
	movl	%eax, %ecx
	xorl	%eax, %eax
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, %r12d
	je	LBB0_6
## %bb.1:
	movq	_MAX_COMPLETED_KCQE@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_6
## %bb.2:
	andl	%r12d, %ebx
	xorl	%eax, %eax
	movl	$1, %r14d
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	32(%r12), %r13
	movl	%ebx, %edi
	callq	_KCQ_PG
	movq	(%r13,%rax,8), %r15
	movl	%ebx, %edi
	callq	_KCQ_IDX
	movq	%rax, %r13
	leaq	(%r15,%rax,4), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	%rax, -8(%rcx,%r14,8)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	*24(%r12)
	movl	%eax, %r12d
	movq	_MAX_KCQ_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r12d, %ebx
	movq	_KCQE_FLAGS_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%r15,%r13,4), %eax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmovnel	%r12d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, %eax
	cmovel	-56(%rbp), %eax                 ## 4-byte Folded Reload
	cmpl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%r14), %rcx
	movq	_MAX_COMPLETED_KCQE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	cmpq	%rdx, %r14
	movq	%rcx, %r14
	jl	LBB0_3
	jmp	LBB0_7
LBB0_6:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
LBB0_7:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rcx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_KCQ_IDX,4,2                ## @MAX_KCQ_IDX
	.comm	_MAX_COMPLETED_KCQE,4,2         ## @MAX_COMPLETED_KCQE
	.comm	_KCQE_FLAGS_NEXT,4,2            ## @KCQE_FLAGS_NEXT
	.no_dead_strip	_cnic_get_kcqes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cnic_get_kcqes
_cnic_get_kcqes:                        ; @cnic_get_kcqes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x20, [x0]
	ldr	w24, [x1]
Lloh0:
	adrp	x8, _MAX_KCQ_IDX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_KCQ_IDX@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	ldp	x8, x9, [x1, #8]
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
	ldr	w0, [x8]
	blr	x9
Lloh3:
	adrp	x21, _MAX_COMPLETED_KCQE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _MAX_COMPLETED_KCQE@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w24, w0
	ccmp	w8, #1, #8, ne
	b.ge	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_5
LBB0_2:
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	mov	x27, #0
	mov	w20, #0
	and	w23, w22, w24
	mov	x22, x24
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x19, [sp, #24]                  ; 8-byte Folded Reload
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x19, #32]
	mov	x0, x23
	bl	_KCQ_PG
	ldr	x28, [x26, x0, lsl #3]
	mov	x0, x23
	bl	_KCQ_IDX
	lsl	x25, x0, #2
	add	x8, x28, x25
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x9, [x9]
	add	x26, x27, #1
	str	x8, [x9, x27, lsl #3]
	ldr	x8, [x19, #24]
	mov	x0, x22
	blr	x8
	mov	x22, x0
Lloh5:
	adrp	x8, _MAX_KCQ_IDX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_KCQ_IDX@GOTPAGEOFF]
Lloh7:
	ldr	w23, [x8]
	ldr	w8, [x28, x25]
Lloh8:
	adrp	x9, _KCQE_FLAGS_NEXT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _KCQE_FLAGS_NEXT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_likely
	cmp	x0, #0
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	csel	w24, w24, w22, eq
	csel	w20, w20, w26, eq
	cmp	w22, w0
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w23, w23, w22
	ldrsw	x8, [x21]
	mov	x27, x26
	cmp	x26, x8
	b.lt	LBB0_3
LBB0_5:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	str	w24, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_KCQ_IDX,4,2                ; @MAX_KCQ_IDX
	.comm	_MAX_COMPLETED_KCQE,4,2         ; @MAX_COMPLETED_KCQE
	.comm	_KCQE_FLAGS_NEXT,4,2            ; @KCQE_FLAGS_NEXT
	.no_dead_strip	_cnic_get_kcqes
.subsections_via_symbols
