	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmxnet3_check_link
_vmxnet3_check_link:                    ## @vmxnet3_check_link
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	leaq	20(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_VMXNET3_REG_CMD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_VMXNET3_CMD_GET_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_VMXNET3_WRITE_BAR1_REG
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_VMXNET3_READ_BAR1_REG
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r12d, %edx
	sarl	$16, %edx
	movl	%edx, (%r13)
	movl	16(%r13), %edi
	testb	$1, %r12b
	jne	LBB0_1
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_info
	movl	16(%r13), %edi
	callq	_netif_carrier_off
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.6:
	cmpl	$0, 4(%r13)
	jle	LBB0_9
## %bb.7:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	addq	%r14, %rdi
	movq	%r13, %rsi
	callq	_vmxnet3_tq_stop
	incq	%rbx
	movslq	4(%r13), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_8
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_info
	movl	16(%r13), %edi
	callq	_netif_carrier_on
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.2:
	cmpl	$0, 4(%r13)
	jle	LBB0_9
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdi
	addq	%r14, %rdi
	movq	%r13, %rsi
	callq	_vmxnet3_tq_start
	incq	%rbx
	movslq	4(%r13), %rax
	addq	$4, %r14
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMXNET3_REG_CMD,4,2            ## @VMXNET3_REG_CMD
	.comm	_VMXNET3_CMD_GET_LINK,4,2       ## @VMXNET3_CMD_GET_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NIC Link is Up %d Mbps\n"

L_.str.1:                               ## @.str.1
	.asciz	"NIC Link is Down\n"

	.no_dead_strip	_vmxnet3_check_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmxnet3_check_link
_vmxnet3_check_link:                    ; @vmxnet3_check_link
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	add	x21, x0, #20
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x22, _VMXNET3_REG_CMD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VMXNET3_REG_CMD@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _VMXNET3_CMD_GET_LINK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VMXNET3_CMD_GET_LINK@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_VMXNET3_WRITE_BAR1_REG
	ldr	w1, [x22]
	mov	x0, x19
	bl	_VMXNET3_READ_BAR1_REG
	mov	x22, x0
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	asr	w8, w22, #16
	str	w8, [x19]
	ldr	w0, [x19, #16]
	tbnz	w22, #0, LBB0_5
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_info
	ldr	w0, [x19, #16]
	bl	_netif_carrier_off
	cbz	w20, LBB0_9
; %bb.2:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x20, #0
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x20
	mov	x1, x19
	bl	_vmxnet3_tq_stop
	add	x21, x21, #1
	ldrsw	x8, [x19, #4]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_4
	b	LBB0_9
LBB0_5:
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_info
	ldr	w0, [x19, #16]
	bl	_netif_carrier_on
	cbz	w20, LBB0_9
; %bb.6:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x20, #0
	mov	x21, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x20
	mov	x1, x19
	bl	_vmxnet3_tq_start
	add	x21, x21, #1
	ldrsw	x8, [x19, #4]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_8
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_VMXNET3_REG_CMD,4,2            ; @VMXNET3_REG_CMD
	.comm	_VMXNET3_CMD_GET_LINK,4,2       ; @VMXNET3_CMD_GET_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NIC Link is Up %d Mbps\n"

l_.str.1:                               ; @.str.1
	.asciz	"NIC Link is Down\n"

	.no_dead_strip	_vmxnet3_check_link
.subsections_via_symbols
