	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netvsc_channel_cb
_netvsc_channel_cb:                     ## @netvsc_channel_cb
	.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	%rdi, %r15
	movq	_NETVSC_PACKET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_18
## %bb.1:
	movq	%rax, %r12
	movq	%r15, %rdi
	callq	_get_inbound_net_device
	testq	%rax, %rax
	je	LBB0_17
## %bb.2:
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-44(%rbp), %r13
	leaq	-48(%rbp), %r14
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_ENOBUFS@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_15
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	movq	%r13, %rcx
	movq	%r14, %r8
	callq	_vmbus_recvpacket_raw
	testl	%eax, %eax
	jne	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %r8d
	testl	%r8d, %r8d
	jle	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %edx
	cmpl	$128, %edx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$129, %edx
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_netvsc_send_completion
	jmp	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_netvsc_receive
	jmp	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_NETVSC_PACKET_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jle	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_kfree
	movq	_NETVSC_PACKET_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, %r12
	movl	-44(%rbp), %ebx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.16:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_17
LBB0_12:
	movq	_NETVSC_PACKET_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jle	LBB0_17
## %bb.13:
	movq	%r12, %rdi
	callq	_kfree
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_17:
	movq	%r12, %rdi
	callq	_kfree
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETVSC_PACKET_SIZE,4,2         ## @NETVSC_PACKET_SIZE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unhandled packet type %d, tid %llx len %d\n"

	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
L_.str.1:                               ## @.str.1
	.asciz	"unable to allocate buffer of size (%d)!!\n"

	.no_dead_strip	_netvsc_channel_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netvsc_channel_cb
_netvsc_channel_cb:                     ; @netvsc_channel_cb
	.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, x0
Lloh0:
	adrp	x25, _NETVSC_PACKET_SIZE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NETVSC_PACKET_SIZE@GOTPAGEOFF]
	ldr	w21, [x25]
Lloh2:
	adrp	x26, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x26, [x26, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x21
	bl	_kzalloc
	cbz	x0, LBB0_19
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_get_inbound_net_device
	cbz	x0, LBB0_18
; %bb.2:
	ldr	x22, [x0]
Lloh4:
	adrp	x23, l_.str@PAGE
Lloh5:
	add	x23, x23, l_.str@PAGEOFF
Lloh6:
	adrp	x27, _ENOBUFS@GOTPAGE
Lloh7:
	ldr	x27, [x27, _ENOBUFS@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	mov	x24, x19
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=2
	ldr	w8, [x27]
	cmn	w0, w8
	b.eq	LBB0_13
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x20]
	add	x3, sp, #28
	add	x4, sp, #24
	mov	x1, x24
	mov	x2, x21
	bl	_vmbus_recvpacket_raw
	cbnz	w0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w8, [sp, #28]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w2, [x24]
	cmp	w2, #128
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	cmp	w2, #129
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x20
	mov	x1, x24
	bl	_netvsc_send_completion
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, x20
	mov	x1, x24
	bl	_netvsc_receive
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w9, [sp, #24]
	stp	x9, x8, [sp]
	mov	x0, x22
	mov	x1, x23
	bl	_netdev_err
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w8, [x25]
	cmp	w21, w8
	b.le	LBB0_5
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	w0, [sp, #28]
	ldr	w1, [x26]
	bl	_kmalloc
	mov	x24, x0
	ldr	w21, [sp, #28]
	cbnz	x0, LBB0_5
	b	LBB0_20
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	bl	_kfree
	ldr	w21, [x25]
	b	LBB0_3
LBB0_15:
	ldr	w8, [x25]
	cmp	w21, w8
	b.le	LBB0_17
; %bb.16:
	mov	x0, x24
	bl	_kfree
	b	LBB0_18
LBB0_17:
	mov	x19, x24
LBB0_18:
	mov	x0, x19
	bl	_kfree
LBB0_19:
	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
LBB0_20:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_netdev_err
	mov	x19, #0
	b	LBB0_18
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NETVSC_PACKET_SIZE,4,2         ; @NETVSC_PACKET_SIZE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unhandled packet type %d, tid %llx len %d\n"

	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
l_.str.1:                               ; @.str.1
	.asciz	"unable to allocate buffer of size (%d)!!\n"

	.no_dead_strip	_netvsc_channel_cb
.subsections_via_symbols
