	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rndis_set_subchannel           ## -- Begin function rndis_set_subchannel
	.p2align	4, 0x90
_rndis_set_subchannel:                  ## @rndis_set_subchannel
	.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	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	24(%rsi), %r13
	callq	_netdev_priv
	movq	%rax, %r15
	movq	8(%rax), %r12
	movq	16(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_ASSERT_RTNL
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_NVSP_MSG5_TYPE_SUBCHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_NVSP_SUBCHANNEL_ALLOCATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movl	(%rbx), %eax
	decl	%eax
	movl	%eax, 40(%rbx)
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_trace_nvsp_send
	movl	(%r12), %edi
	movq	_VM_PKT_DATA_INBAND@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r13, %rsi
	movl	$32, %edx
	movq	%r13, %rcx
	callq	_vmbus_sendpacket
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_10
LBB0_2:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	leaq	12(%rbx), %rdi
	callq	_wait_for_completion
	movq	24(%rbx), %rax
	movq	_NVSP_STAT_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movl	8(%rbx), %r13d
	movl	32(%rbx), %eax
	incl	%eax
	movl	%eax, (%rbx)
	leaq	4(%rbx), %rdi
	callq	_atomic_read
	xorl	%esi, %esi
	cmpl	(%rbx), %eax
	sete	%sil
	movl	%r13d, %edi
	callq	_wait_event
	testq	%r15, %r15
	jne	LBB0_6
## %bb.5:
	movq	_netvsc_hash_key@GOTPCREL(%rip), %r15
LBB0_6:
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_rndis_filter_set_rss_param
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_netif_set_real_num_tx_queues
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_netif_set_real_num_rx_queues
	movq	_VRSS_SEND_TAB_SIZE@GOTPCREL(%rip), %rsi
	cmpl	$0, (%rsi)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_7
## %bb.8:
	movq	(%r12), %rdi
	xorl	%r13d, %r13d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	cltd
	idivl	(%rbx)
	movl	%edx, (%rdi,%rcx,4)
	incq	%rcx
	movslq	(%rsi), %rax
	cmpq	%rax, %rcx
	jl	LBB0_9
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_netdev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_10
LBB0_7:
	xorl	%r13d, %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVSP_MSG5_TYPE_SUBCHANNEL,4,2  ## @NVSP_MSG5_TYPE_SUBCHANNEL
	.comm	_NVSP_SUBCHANNEL_ALLOCATE,4,2   ## @NVSP_SUBCHANNEL_ALLOCATE
	.comm	_VM_PKT_DATA_INBAND,4,2         ## @VM_PKT_DATA_INBAND
	.comm	_VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED,4,2 ## @VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sub channel allocate send failed: %d\n"

	.comm	_NVSP_STAT_SUCCESS,8,3          ## @NVSP_STAT_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"sub channel request failed\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_netvsc_hash_key,4,2            ## @netvsc_hash_key
	.comm	_VRSS_SEND_TAB_SIZE,4,2         ## @VRSS_SEND_TAB_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rndis_set_subchannel           ; -- Begin function rndis_set_subchannel
	.p2align	2
_rndis_set_subchannel:                  ; @rndis_set_subchannel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	add	x24, x1, #24
	bl	_netdev_priv
	mov	x21, x0
	ldr	x25, [x0, #8]
	ldr	x23, [x19, #16]
	bl	_ASSERT_RTNL
	mov	x0, x24
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh0:
	adrp	x8, _NVSP_MSG5_TYPE_SUBCHANNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVSP_MSG5_TYPE_SUBCHANNEL@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
Lloh3:
	adrp	x9, _NVSP_SUBCHANNEL_ALLOCATE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NVSP_SUBCHANNEL_ALLOCATE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x9]
	ldr	w9, [x19]
	sub	w9, w9, #1
	stp	w8, w10, [x19, #44]
	str	w9, [x19, #40]
	mov	x0, x20
	mov	x1, x24
	bl	_trace_nvsp_send
	ldr	w0, [x25]
Lloh6:
	adrp	x8, _VM_PKT_DATA_INBAND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VM_PKT_DATA_INBAND@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x8, _VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	mov	x1, x24
	mov	w2, #32
	mov	x3, x24
	bl	_vmbus_sendpacket
	cbz	w0, LBB0_2
; %bb.1:
	mov	x24, x0
	str	x24, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	b	LBB0_8
LBB0_2:
	add	x0, x19, #12
	bl	_wait_for_completion
	ldr	x8, [x19, #24]
Lloh14:
	adrp	x9, _NVSP_STAT_SUCCESS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NVSP_STAT_SUCCESS@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19]
	ldr	w24, [x19, #8]
	add	x0, x19, #4
	bl	_atomic_read
	ldr	w8, [x19]
	cmp	w0, w8
	cset	w1, eq
	mov	x0, x24
	bl	_wait_event
Lloh17:
	adrp	x8, _netvsc_hash_key@GOTPAGE
Lloh18:
	ldr	x8, [x8, _netvsc_hash_key@GOTPAGEOFF]
	cmp	x22, #0
	csel	x8, x8, x22, eq
	ldr	w1, [x8]
	mov	x0, x23
	bl	_rndis_filter_set_rss_param
	ldr	w1, [x19]
	mov	x0, x20
	bl	_netif_set_real_num_tx_queues
	ldr	w1, [x19]
	mov	x0, x20
	bl	_netif_set_real_num_rx_queues
Lloh19:
	adrp	x8, _VRSS_SEND_TAB_SIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VRSS_SEND_TAB_SIZE@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x9, #0
	ldr	x10, [x21]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x19]
	sdiv	w12, w9, w11
	msub	w11, w12, w11, w9
	str	w11, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x11, [x8]
	cmp	x9, x11
	b.lt	LBB0_5
LBB0_6:
	mov	w24, #0
	b	LBB0_8
LBB0_7:
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
Lloh23:
	adrp	x8, _EIO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_8:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_NVSP_MSG5_TYPE_SUBCHANNEL,4,2  ; @NVSP_MSG5_TYPE_SUBCHANNEL
	.comm	_NVSP_SUBCHANNEL_ALLOCATE,4,2   ; @NVSP_SUBCHANNEL_ALLOCATE
	.comm	_VM_PKT_DATA_INBAND,4,2         ; @VM_PKT_DATA_INBAND
	.comm	_VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED,4,2 ; @VMBUS_DATA_PACKET_FLAG_COMPLETION_REQUESTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sub channel allocate send failed: %d\n"

	.comm	_NVSP_STAT_SUCCESS,8,3          ; @NVSP_STAT_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"sub channel request failed\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_netvsc_hash_key,4,2            ; @netvsc_hash_key
	.comm	_VRSS_SEND_TAB_SIZE,4,2         ; @VRSS_SEND_TAB_SIZE
.subsections_via_symbols
