	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_iov_post_vf_bulletin
_qed_iov_post_vf_bulletin:              ## @qed_iov_post_vf_bulletin
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movl	$1, %edx
	callq	_qed_iov_get_vf_info
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	cmpl	$0, 16(%rax)
	je	LBB0_1
## %bb.3:
	movq	8(%rbx), %r12
	incl	4(%r12)
	leaq	16(%r12), %rsi
	movl	(%rbx), %edx
	addl	$-4, %edx
	xorl	%edi, %edi
	callq	_crc32
	movl	%eax, (%r12)
	movq	_QED_MSG_IOV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	4(%r12), %ecx
	movl	24(%rbx), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%eax, %r9d
	callq	_DP_VERBOSE
	leaq	-40(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_QED_DMAE_FLAG_VF_DST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	20(%rbx), %eax
	movl	%eax, -40(%rbp)
	movl	(%rbx), %eax
	movl	4(%rbx), %edx
	movl	16(%rbx), %ecx
	leal	3(%rax), %r8d
	testl	%eax, %eax
	cmovnsl	%eax, %r8d
	sarl	$2, %r8d
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %r9
	callq	_qed_dmae_host2host
	jmp	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QED_MSG_IOV,4,2                ## @QED_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Posting Bulletin 0x%08x to VF[%d] (CRC 0x%08x)\n"

	.comm	_QED_DMAE_FLAG_VF_DST,4,2       ## @QED_DMAE_FLAG_VF_DST
	.no_dead_strip	_qed_iov_post_vf_bulletin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_iov_post_vf_bulletin
_qed_iov_post_vf_bulletin:              ; @qed_iov_post_vf_bulletin
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x0
	mov	w2, #1
	bl	_qed_iov_get_vf_info
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	x22, [x21, #8]
	ldr	w8, [x22, #4]
	add	w8, w8, #1
	str	w8, [x22, #4]
	add	x1, x22, #16
	ldr	w8, [x21]
	sub	w2, w8, #4
	mov	w0, #0
	bl	_crc32
	mov	x5, x0
	str	w0, [x22]
Lloh0:
	adrp	x8, _QED_MSG_IOV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QED_MSG_IOV@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w3, [x22, #4]
	ldr	w4, [x21, #24]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_DP_VERBOSE
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh5:
	adrp	x8, _QED_DMAE_FLAG_VF_DST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QED_DMAE_FLAG_VF_DST@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldp	w3, w9, [x21, #16]
	stp	w9, w8, [sp, #8]
	ldp	w8, w2, [x21]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w4, w8, #2
	add	x5, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_qed_dmae_host2host
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QED_MSG_IOV,4,2                ; @QED_MSG_IOV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Posting Bulletin 0x%08x to VF[%d] (CRC 0x%08x)\n"

	.comm	_QED_DMAE_FLAG_VF_DST,4,2       ; @QED_DMAE_FLAG_VF_DST
	.no_dead_strip	_qed_iov_post_vf_bulletin
.subsections_via_symbols
