	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netvsc_revoke_recv_buf
_netvsc_revoke_recv_buf:                ## @netvsc_revoke_recv_buf
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rsi)
	je	LBB0_4
## %bb.1:
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %r15
	leaq	8(%rsi), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_NVSP_MSG1_TYPE_REVOKE_RECV_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_NETVSC_RECEIVE_BUFFER_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_trace_nvsp_send
	movq	(%r15), %rdi
	movq	_VM_PKT_DATA_INBAND@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rsi
	movl	$8, %edx
	movq	%rbx, %rcx
	xorl	%r9d, %r9d
	callq	_vmbus_sendpacket
	movq	(%r15), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_3
## %bb.2:
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_3:
	movq	$0, (%r12)
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVSP_MSG1_TYPE_REVOKE_RECV_BUF,4,2 ## @NVSP_MSG1_TYPE_REVOKE_RECV_BUF
	.comm	_NETVSC_RECEIVE_BUFFER_ID,4,2   ## @NETVSC_RECEIVE_BUFFER_ID
	.comm	_VM_PKT_DATA_INBAND,4,2         ## @VM_PKT_DATA_INBAND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to send revoke receive buffer to netvsp\n"

	.no_dead_strip	_netvsc_revoke_recv_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netvsc_revoke_recv_buf
_netvsc_revoke_recv_buf:                ; @netvsc_revoke_recv_buf
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x1]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x22, x1, #8
	mov	x0, x22
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x8, _NVSP_MSG1_TYPE_REVOKE_RECV_BUF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVSP_MSG1_TYPE_REVOKE_RECV_BUF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NETVSC_RECEIVE_BUFFER_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NETVSC_RECEIVE_BUFFER_ID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #8]
	mov	x0, x19
	mov	x1, x22
	bl	_trace_nvsp_send
	ldr	x0, [x21]
Lloh6:
	adrp	x8, _VM_PKT_DATA_INBAND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VM_PKT_DATA_INBAND@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x1, x22
	mov	w2, #8
	mov	x3, x22
	mov	w5, #0
	bl	_vmbus_sendpacket
	ldr	x8, [x21]
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	w0, #0, #4, eq
	b.ne	LBB0_4
; %bb.2:
	str	xzr, [x20]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_netdev_err
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NVSP_MSG1_TYPE_REVOKE_RECV_BUF,4,2 ; @NVSP_MSG1_TYPE_REVOKE_RECV_BUF
	.comm	_NETVSC_RECEIVE_BUFFER_ID,4,2   ; @NETVSC_RECEIVE_BUFFER_ID
	.comm	_VM_PKT_DATA_INBAND,4,2         ; @VM_PKT_DATA_INBAND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to send revoke receive buffer to netvsp\n"

	.no_dead_strip	_netvsc_revoke_recv_buf
.subsections_via_symbols
