	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_iwarp_wait_cid_map_cleared
_qed_iwarp_wait_cid_map_cleared:        ## @qed_iwarp_wait_cid_map_cleared
	.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	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rsi), %esi
	movl	8(%r12), %edi
	callq	_bitmap_weight
	movl	%eax, %ebx
	xorl	%r15d, %r15d
	movq	_QED_IWARP_MAX_NO_PROGRESS_CNT@GOTPCREL(%rip), %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_QED_IWARP_MAX_CID_CLEAN_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movl	4(%r12), %esi
	movl	8(%r12), %edi
	callq	_bitmap_weight
	incl	%r13d
	cmpl	%eax, %ebx
	cmovnel	%r15d, %r13d
	movl	%eax, %ebx
	cmpl	(%r14), %r13d
	jle	LBB0_1
## %bb.3:
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ecx
	callq	_DP_NOTICE
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_IWARP_MAX_CID_CLEAN_TIME,4,2 ## @QED_IWARP_MAX_CID_CLEAN_TIME
	.comm	_QED_IWARP_MAX_NO_PROGRESS_CNT,4,2 ## @QED_IWARP_MAX_NO_PROGRESS_CNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s bitmap wait timed out (%d cids pending)\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_qed_iwarp_wait_cid_map_cleared
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_iwarp_wait_cid_map_cleared
_qed_iwarp_wait_cid_map_cleared:        ; @qed_iwarp_wait_cid_map_cleared
	.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
	mov	x20, x1
	mov	x19, x0
	ldp	w1, w0, [x1, #4]
	bl	_bitmap_weight
	mov	x21, x0
	mov	w22, #0
Lloh0:
	adrp	x23, _QED_IWARP_MAX_CID_CLEAN_TIME@GOTPAGE
Lloh1:
	ldr	x23, [x23, _QED_IWARP_MAX_CID_CLEAN_TIME@GOTPAGEOFF]
Lloh2:
	adrp	x24, _QED_IWARP_MAX_NO_PROGRESS_CNT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _QED_IWARP_MAX_NO_PROGRESS_CNT@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w21, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x23]
	bl	_msleep
	ldp	w1, w0, [x20, #4]
	bl	_bitmap_weight
	cmp	w21, w0
	csinc	w22, wzr, w22, ne
	ldr	w8, [x24]
	mov	x21, x0
	cmp	w22, w8
	b.le	LBB0_1
; %bb.3:
	mov	x3, x0
	ldr	w2, [x20]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_IWARP_MAX_CID_CLEAN_TIME,4,2 ; @QED_IWARP_MAX_CID_CLEAN_TIME
	.comm	_QED_IWARP_MAX_NO_PROGRESS_CNT,4,2 ; @QED_IWARP_MAX_NO_PROGRESS_CNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s bitmap wait timed out (%d cids pending)\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_qed_iwarp_wait_cid_map_cleared
.subsections_via_symbols
