	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rndis_filter_device_add        ## -- Begin function rndis_filter_device_add
	.p2align	4, 0x90
_rndis_filter_device_add:               ## @rndis_filter_device_add
	.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
	movq	%rsi, %r14
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_get_rndis_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_netvsc_device_add
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movq	%r15, %rdi
	callq	_hv_get_drvdata
	movq	%r12, (%rax)
	movq	%rax, 16(%r12)
	movq	%r12, %rdi
	callq	_rndis_filter_init_device
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	callq	_rndis_filter_query_device_mac
	testl	%eax, %eax
	je	LBB0_7
LBB0_5:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_rndis_filter_device_remove
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	8(%r14), %edi
	movl	(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	%r12, %rdi
	callq	_rndis_filter_query_device_link_status
	movq	8(%r12), %rax
	movq	%rax, (%r14)
	movl	(%r12), %edx
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device MAC %pM link state %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"down"

L_.str.2:                               ## @.str.2
	.asciz	"up"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rndis_filter_device_add        ; -- Begin function rndis_filter_device_add
	.p2align	2
_rndis_filter_device_add:               ; @rndis_filter_device_add
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_get_rndis_device
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_netvsc_device_add
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
	mov	x0, x21
	bl	_kfree
	b	LBB0_8
LBB0_3:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_8
LBB0_4:
	mov	x0, x19
	bl	_hv_get_drvdata
	str	x21, [x0]
	str	x0, [x21, #16]
	mov	x0, x21
	bl	_rndis_filter_init_device
	cbz	w0, LBB0_6
; %bb.5:
	mov	x22, x0
	b	LBB0_7
LBB0_6:
	mov	x0, x21
	bl	_rndis_filter_query_device_mac
	mov	x22, x0
	cbz	w0, LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_rndis_filter_device_remove
LBB0_8:
	mov	x0, x22
	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_9:
	ldr	w0, [x20, #8]
	ldr	w1, [x21]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_memcpy
	mov	x0, x21
	bl	_rndis_filter_query_device_link_status
	ldr	x8, [x21, #8]
	str	x8, [x20]
	ldr	w2, [x21]
Lloh6:
	adrp	x9, l_.str.1@PAGE
Lloh7:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh8:
	adrp	x10, l_.str.2@PAGE
Lloh9:
	add	x10, x10, l_.str.2@PAGEOFF
	cmp	x8, #0
	csel	x3, x10, x9, eq
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device MAC %pM link state %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"down"

l_.str.2:                               ; @.str.2
	.asciz	"up"

.subsections_via_symbols
