	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_iov_vf_flr_poll_pbf
_qed_iov_vf_flr_poll_pbf:               ## @qed_iov_vf_flr_poll_pbf
	.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	%rdx, %r13
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_NUM_VOQS_E4@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rbx
	shlq	$3, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %r13
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_PBF_REG_NUM_BLOCKS_ALLOCATED_CONS_VOQ0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%rbx, %rdx
	movq	%r13, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_qed_rd
	movq	%rax, %r14
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax,%r12,8)
	movq	_PBF_REG_NUM_BLOCKS_ALLOCATED_PROD_VOQ0@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	%rbx, %rdx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_qed_rd
	subq	%r14, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r12,8)
	incq	%r12
	movq	_MAX_NUM_VOQS_E4@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	addq	$64, %rbx
	cmpq	%r15, %r12
	jl	LBB0_2
## %bb.3:
	movq	%r13, %r12
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_4:
	xorl	%ebx, %ebx
	movl	$0, -56(%rbp)                   ## 4-byte Folded Spill
	cmpl	%r15d, %ebx
	jge	LBB0_11
	.p2align	4, 0x90
LBB0_6:
	movq	%r13, %r14
	movq	%r12, %r13
	movslq	%ebx, %r12
	shll	$6, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rdx
	movq	_PBF_REG_NUM_BLOCKS_ALLOCATED_CONS_VOQ0@GOTPCREL(%rip), %rax
	addq	(%rax), %rdx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_qed_rd
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	subq	(%rcx,%r12,8), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rax, (%rcx,%r12,8)
	jg	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r12
	movq	_MAX_NUM_VOQS_E4@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	addl	$64, %ebx
	cmpq	%r15, %r12
	jl	LBB0_7
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:
	movq	_MAX_NUM_VOQS_E4@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_10:
	movl	%r12d, %ebx
	movq	%r13, %r12
	movq	%r14, %r13
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, %ebx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$20, %edi
	callq	_msleep
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	cmpl	$50, %eax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_MAX_NUM_VOQS_E4@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	cmpl	%r15d, %ebx
	jl	LBB0_6
	jmp	LBB0_11
LBB0_14:
	xorl	%eax, %eax
	cmpl	$50, -56(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_16
LBB0_15:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %ecx
	callq	_DP_ERR
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_NUM_VOQS_E4,4,2            ## @MAX_NUM_VOQS_E4
	.comm	_PBF_REG_NUM_BLOCKS_ALLOCATED_CONS_VOQ0,8,3 ## @PBF_REG_NUM_BLOCKS_ALLOCATED_CONS_VOQ0
	.comm	_PBF_REG_NUM_BLOCKS_ALLOCATED_PROD_VOQ0,8,3 ## @PBF_REG_NUM_BLOCKS_ALLOCATED_PROD_VOQ0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VF[%d] - pbf polling failed on VOQ %d\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_iov_vf_flr_poll_pbf
_qed_iov_vf_flr_poll_pbf:               ; @qed_iov_vf_flr_poll_pbf
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x21, x2
	stur	x1, [x29, #-96]                 ; 8-byte Folded Spill
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x23, _MAX_NUM_VOQS_E4@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_NUM_VOQS_E4@GOTPAGEOFF]
	ldr	w12, [x23]
	lsl	x8, x12, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x13, x10, #0xffffffff0
	sub	x24, x9, x13
	mov	sp, x24
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x25, x8, x13
	mov	sp, x25
Lloh9:
	adrp	x26, _PBF_REG_NUM_BLOCKS_ALLOCATED_CONS_VOQ0@GOTPAGE
Lloh10:
	ldr	x26, [x26, _PBF_REG_NUM_BLOCKS_ALLOCATED_CONS_VOQ0@GOTPAGEOFF]
	mov	x8, x12
	cmp	w12, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x27, #0
	mov	x28, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	add	x2, x27, x8
	mov	x0, x19
	mov	x1, x21
	bl	_qed_rd
	mov	x22, x0
	lsl	x20, x28, #3
	str	x0, [x24, x20]
Lloh11:
	adrp	x8, _PBF_REG_NUM_BLOCKS_ALLOCATED_PROD_VOQ0@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PBF_REG_NUM_BLOCKS_ALLOCATED_PROD_VOQ0@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	add	x2, x27, x8
	mov	x0, x19
	mov	x1, x21
	bl	_qed_rd
	sub	x8, x0, x22
	str	x8, [x25, x20]
	add	x28, x28, #1
	ldrsw	x8, [x23]
	add	x27, x27, #64
	cmp	x28, x8
	b.lt	LBB0_2
; %bb.3:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
LBB0_4:
	mov	w22, #0
	mov	w27, #0
	cmp	w22, w8
	b.ge	LBB0_10
LBB0_5:
	sxtw	x28, w22
	lsl	w20, w22, #6
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	add	x2, x8, w20, sxtw
	mov	x0, x19
	mov	x1, x21
	bl	_qed_rd
	lsl	x8, x28, #3
	ldr	x9, [x25, x8]
	ldr	x8, [x24, x8]
	sub	x8, x0, x8
	cmp	x9, x8
	b.gt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x28, x28, #1
	ldrsw	x8, [x23]
	add	w20, w20, #64
	cmp	x28, x8
	b.lt	LBB0_6
	b	LBB0_9
LBB0_8:
	ldr	w8, [x23]
LBB0_9:
	mov	x22, x28
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cmp	w22, w8
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #20
	bl	_msleep
	add	w27, w27, #1
	cmp	w27, #50
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x23]
	cmp	w22, w8
	b.lt	LBB0_5
	b	LBB0_10
LBB0_13:
	cmp	w27, #50
	b.ne	LBB0_15
LBB0_14:
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	ldr	w2, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x22
	bl	_DP_ERR
Lloh16:
	adrp	x8, _EBUSY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_NUM_VOQS_E4,4,2            ; @MAX_NUM_VOQS_E4
	.comm	_PBF_REG_NUM_BLOCKS_ALLOCATED_CONS_VOQ0,8,3 ; @PBF_REG_NUM_BLOCKS_ALLOCATED_CONS_VOQ0
	.comm	_PBF_REG_NUM_BLOCKS_ALLOCATED_PROD_VOQ0,8,3 ; @PBF_REG_NUM_BLOCKS_ALLOCATED_PROD_VOQ0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VF[%d] - pbf polling failed on VOQ %d\n"

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