	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function liquidio_send_vf_trust_cmd
_liquidio_send_vf_trust_cmd:            ## @liquidio_send_vf_trust_cmd
	.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
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	xorl	%ecx, %ecx
	callq	_octeon_alloc_soft_command
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	(%r12), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	_OPCODE_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_OPCODE_NIC_SET_TRUSTED_VF@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	incl	%r15d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%r8d, %r8d
	movl	%r15d, %r9d
	callq	_octeon_prepare_soft_command
	movq	%r13, %rdi
	addq	$8, %rdi
	callq	_init_completion
	movq	_OCTEON_REQUEST_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_octeon_send_soft_command
	movq	_IQ_SEND_FAILED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_octeon_free_soft_command
	movl	$-1, %ebx
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_wait_for_sc_completion_timeout
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	(%r13), %edi
	movl	$1, %esi
	callq	_WRITE_ONCE
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_OPCODE_NIC,4,2                 ## @OPCODE_NIC
	.comm	_OPCODE_NIC_SET_TRUSTED_VF,4,2  ## @OPCODE_NIC_SET_TRUSTED_VF
	.comm	_OCTEON_REQUEST_PENDING,4,2     ## @OCTEON_REQUEST_PENDING
	.comm	_IQ_SEND_FAILED,4,2             ## @IQ_SEND_FAILED
	.no_dead_strip	_liquidio_send_vf_trust_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function liquidio_send_vf_trust_cmd
_liquidio_send_vf_trust_cmd:            ; @liquidio_send_vf_trust_cmd
	.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	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x20, [x0, #8]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	mov	w3, #0
	bl	_octeon_alloc_soft_command
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x8, [x23]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _OPCODE_NIC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OPCODE_NIC@GOTPAGEOFF]
	str	w8, [x0, #12]
Lloh2:
	ldr	w2, [x9]
Lloh3:
	adrp	x8, _OPCODE_NIC_SET_TRUSTED_VF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPCODE_NIC_SET_TRUSTED_VF@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	w5, w22, #1
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	mov	x6, x21
	bl	_octeon_prepare_soft_command
	add	x0, x19, #8
	bl	_init_completion
Lloh6:
	adrp	x8, _OCTEON_REQUEST_PENDING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OCTEON_REQUEST_PENDING@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_octeon_send_soft_command
Lloh9:
	adrp	x8, _IQ_SEND_FAILED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IQ_SEND_FAILED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_octeon_free_soft_command
	mov	w0, #-1
	b	LBB0_6
LBB0_3:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_wait_for_sc_completion_timeout
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_WRITE_ONCE
	mov	w0, #0
LBB0_6:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_OPCODE_NIC,4,2                 ; @OPCODE_NIC
	.comm	_OPCODE_NIC_SET_TRUSTED_VF,4,2  ; @OPCODE_NIC_SET_TRUSTED_VF
	.comm	_OCTEON_REQUEST_PENDING,4,2     ; @OCTEON_REQUEST_PENDING
	.comm	_IQ_SEND_FAILED,4,2             ; @IQ_SEND_FAILED
	.no_dead_strip	_liquidio_send_vf_trust_cmd
.subsections_via_symbols
