	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_iov_mark_vf_flr            ## -- Begin function qed_iov_mark_vf_flr
	.p2align	4, 0x90
_qed_iov_mark_vf_flr:                   ## @qed_iov_mark_vf_flr
	.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	%rsi, %r14
	movq	%rdi, %r12
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	_VF_MAX_STATIC@GOTPCREL(%rip), %r15
	cmpl	$32, (%r15)
	jl	LBB0_3
## %bb.1:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	31(%r13), %r8d
	movl	(%r14,%rbx,4), %r9d
	incq	%rbx
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rdx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movl	(%r15), %eax
	leal	31(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$5, %ecx
	movslq	%ecx, %rax
	addl	$32, %r13d
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	movq	%r12, %r14
	je	LBB0_10
## %bb.4:
	cmpl	$0, (%rax)
	jle	LBB0_11
## %bb.5:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	incl	%r12d
	movq	8(%r14), %rax
	movq	(%rax), %rax
	cmpl	(%rax), %r12d
	jge	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_qed_iov_get_vf_info
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r15
	movl	(%rax), %r13d
	leal	31(%r13), %ebx
	testl	%r13d, %r13d
	cmovnsl	%r13d, %ebx
	movl	%ebx, %eax
	andl	$-32, %eax
	movl	%r13d, %edi
	subl	%eax, %edi
	callq	_BIT
	sarl	$5, %ebx
	movslq	%ebx, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testl	%eax, (%rdx,%rcx,4)
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	movl	4(%r15), %r14d
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rdx
	movl	%r13d, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	leal	63(%r14), %eax
	testl	%r14d, %r14d
	cmovnsl	%r14d, %eax
	movl	%eax, %ecx
	andl	$-64, %ecx
	subl	%ecx, %r14d
	movl	$1, %edx
	movl	%r14d, %ecx
	movq	%rbx, %r14
	shlq	%cl, %rdx
	movq	_VF_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%r15)
	sarl	$6, %eax
	cltq
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orq	%rdx, (%rcx,%rax,8)
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_6
LBB0_10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_DP_NOTICE
LBB0_11:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_12:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_MSG_IOV,4,2                ## @QED_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Marking FLR-ed VFs\n"

	.comm	_VF_MAX_STATIC,4,2              ## @VF_MAX_STATIC
L_.str.1:                               ## @.str.1
	.asciz	"[%08x,...,%08x]: %08x\n"

L_.str.2:                               ## @.str.2
	.asciz	"VF flr but no IOV\n"

L_.str.3:                               ## @.str.3
	.asciz	"VF[%d] [rel %d] got FLR-ed\n"

	.comm	_VF_RESET,4,2                   ## @VF_RESET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_iov_mark_vf_flr            ; -- Begin function qed_iov_mark_vf_flr
	.p2align	2
_qed_iov_mark_vf_flr:                   ; @qed_iov_mark_vf_flr
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x25, _QED_MSG_IOV@GOTPAGE
Lloh1:
	ldr	x25, [x25, _QED_MSG_IOV@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_DP_VERBOSE
Lloh4:
	adrp	x22, _VF_MAX_STATIC@GOTPAGE
Lloh5:
	ldr	x22, [x22, _VF_MAX_STATIC@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #32
	b.lt	LBB0_3
; %bb.1:
	mov	w23, #0
	mov	x8, #0
Lloh6:
	adrp	x21, l_.str.1@PAGE
Lloh7:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	add	x24, x8, #1
	add	w9, w23, #31
	ldr	w8, [x20, x8, lsl #2]
	stp	x9, x8, [sp, #8]
	str	x23, [sp]
	mov	x0, x19
	mov	x2, x21
	bl	_DP_VERBOSE
	ldr	w8, [x22]
	add	w9, w8, #31
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #5
	add	w23, w23, #32
	cmp	x24, w8, sxtw
	mov	x8, x24
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_10
; %bb.4:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.5:
	mov	w23, #0
	mov	w21, #0
Lloh8:
	adrp	x26, _VF_RESET@GOTPAGE
Lloh9:
	ldr	x26, [x26, _VF_RESET@GOTPAGEOFF]
Lloh10:
	adrp	x22, l_.str.3@PAGE
Lloh11:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w21, w21, #1
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w21, w8
	b.ge	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_qed_iov_get_vf_info
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x24, x0
	ldr	w27, [x0]
	add	w8, w27, #31
	cmp	w27, #0
	csel	w8, w8, w27, lt
	asr	w28, w8, #5
	and	w8, w8, #0xffffffe0
	sub	w0, w27, w8
	bl	_BIT
	ldr	w8, [x20, w28, sxtw #2]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19]
	ldr	x28, [x8]
	ldr	w23, [x24, #4]
	ldr	w1, [x25]
	stp	x27, x23, [sp]
	mov	x0, x19
	mov	x2, x22
	bl	_DP_VERBOSE
	ldr	w8, [x26]
	str	w8, [x24, #8]
	add	w8, w23, #63
	cmp	w23, #0
	csel	w8, w8, w23, lt
	asr	w9, w8, #6
	and	w8, w8, #0xffffffc0
	sub	w8, w23, w8
	mov	w23, #1
	lsl	x8, x23, x8
	sbfiz	x9, x9, #3, #32
	ldr	x10, [x28, x9]
	orr	x8, x10, x8
	str	x8, [x28, x9]
	b	LBB0_6
LBB0_10:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_DP_NOTICE
LBB0_11:
	mov	w23, #0
LBB0_12:
	mov	x0, x23
	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	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_MSG_IOV,4,2                ; @QED_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Marking FLR-ed VFs\n"

	.comm	_VF_MAX_STATIC,4,2              ; @VF_MAX_STATIC
l_.str.1:                               ; @.str.1
	.asciz	"[%08x,...,%08x]: %08x\n"

l_.str.2:                               ; @.str.2
	.asciz	"VF flr but no IOV\n"

l_.str.3:                               ; @.str.3
	.asciz	"VF[%d] [rel %d] got FLR-ed\n"

	.comm	_VF_RESET,4,2                   ; @VF_RESET
.subsections_via_symbols
