	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_recv_completions
_send_recv_completions:                 ## @send_recv_completions
	.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, %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_NVSP_MSG1_TYPE_SEND_RNDIS_PKT_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	$0, -44(%rbp)
	movq	8(%rdx), %rax
	cmpq	16(%rdx), %rax
	jne	LBB0_1
LBB0_7:
	movl	8(%r15), %edi
	callq	_unlikely
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	addq	$12, %r15
	movq	%r15, %rdi
	callq	_wake_up
	jmp	LBB0_9
LBB0_1:
	movq	%rdx, %r13
	movq	_VM_PKT_COMP@GOTPCREL(%rip), %r14
	leaq	-48(%rbp), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, 8(%r13)
	cmpq	16(%r13), %rax
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rcx
	movl	4(%rcx,%rax,8), %edx
	movl	%edx, -44(%rbp)
	movl	(%r13), %edi
	movl	(%rcx,%rax,8), %ecx
	movl	(%r14), %r8d
	movq	%r12, %rsi
	movl	$8, %edx
	xorl	%r9d, %r9d
	callq	_vmbus_sendpacket
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r13), %rax
	incq	%rax
	cmpq	(%r15), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_priv
	incl	(%rax)
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVSP_MSG1_TYPE_SEND_RNDIS_PKT_COMPLETE,4,2 ## @NVSP_MSG1_TYPE_SEND_RNDIS_PKT_COMPLETE
	.comm	_VM_PKT_COMP,4,2                ## @VM_PKT_COMP
	.no_dead_strip	_send_recv_completions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_recv_completions
_send_recv_completions:                 ; @send_recv_completions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
Lloh0:
	adrp	x8, _NVSP_MSG1_TYPE_SEND_RNDIS_PKT_COMPLETE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVSP_MSG1_TYPE_SEND_RNDIS_PKT_COMPLETE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w8, wzr, [sp, #8]
	ldp	x8, x9, [x2, #8]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.1:
	mov	x21, x2
	mov	x20, x0
Lloh3:
	adrp	x23, _VM_PKT_COMP@GOTPAGE
Lloh4:
	ldr	x23, [x23, _VM_PKT_COMP@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #24]
	add	x8, x9, x8, lsl #3
	ldp	w3, w9, [x8]
	str	w9, [sp, #12]
	ldr	w0, [x21]
	ldr	w4, [x23]
	add	x1, sp, #8
	mov	w2, #8
	mov	w5, #0
	bl	_vmbus_sendpacket
	mov	x22, x0
	bl	_unlikely
	cbnz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x8, x9, [x21, #8]
	add	x10, x8, #1
	ldr	x11, [x19]
	cmp	x10, x11
	csinc	x8, xzr, x8, eq
	str	x8, [x21, #8]
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_4:
	ldr	w0, [x19, #8]
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
	add	x0, x19, #12
	bl	_wake_up
LBB0_6:
	mov	w22, #0
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_netdev_priv
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NVSP_MSG1_TYPE_SEND_RNDIS_PKT_COMPLETE,4,2 ; @NVSP_MSG1_TYPE_SEND_RNDIS_PKT_COMPLETE
	.comm	_VM_PKT_COMP,4,2                ; @VM_PKT_COMP
	.no_dead_strip	_send_recv_completions
.subsections_via_symbols
