	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmxnet3_activate_dev           ## -- Begin function vmxnet3_activate_dev
	.p2align	4, 0x90
_vmxnet3_activate_dev:                  ## @vmxnet3_activate_dev
	.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
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	16(%rdi), %rdi
	movl	(%rdi), %edx
	movl	44(%r12), %ecx
	movl	40(%r12), %r8d
	movq	32(%r12), %rsi
	movl	(%rsi), %r9d
	movq	8(%rax), %rax
	movl	4(%rax), %ebx
	movl	12(%rax), %eax
	leaq	L_.str(%rip), %rsi
	pushq	%rax
	pushq	%rbx
	callq	_netdev_dbg
	addq	$16, %rsp
	movq	%r12, %rdi
	callq	_vmxnet3_tq_init_all
	movq	%r12, %rdi
	callq	_vmxnet3_rq_init_all
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %r14d
	movq	16(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	%r12, %rdi
	callq	_vmxnet3_request_irqs
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r14d
	movq	16(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	movl	%r14d, %edx
	callq	_netdev_err
LBB0_7:
	movq	%r12, %rdi
	callq	_vmxnet3_rq_cleanup_all
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, %rdi
	callq	_vmxnet3_setup_driver_shared
	movq	_VMXNET3_REG_DSAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	28(%r12), %edi
	callq	_VMXNET3_GET_ADDR_LO
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_VMXNET3_WRITE_BAR1_REG
	movq	_VMXNET3_REG_DSAH@GOTPCREL(%rip), %r13
	movl	(%r13), %r14d
	movl	28(%r12), %edi
	callq	_VMXNET3_GET_ADDR_HI
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_VMXNET3_WRITE_BAR1_REG
	leaq	24(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_VMXNET3_REG_CMD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_VMXNET3_CMD_ACTIVATE_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_VMXNET3_WRITE_BAR1_REG
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_VMXNET3_READ_BAR1_REG
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.6:
	movq	16(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edx
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	_VMXNET3_REG_DSAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_VMXNET3_WRITE_BAR1_REG
	movl	(%r13), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_VMXNET3_WRITE_BAR1_REG
	movq	%r12, %rdi
	callq	_vmxnet3_free_irqs
	jmp	LBB0_7
LBB0_8:
	movq	%r12, %rdi
	callq	_vmxnet3_init_coalesce
	cmpl	$0, (%r12)
	jle	LBB0_11
## %bb.9:
	movl	$8, %r14d
	xorl	%ebx, %ebx
	movq	_VMXNET3_REG_ALIGN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r13), %rsi
	movslq	%ebx, %r15
	imulq	%r15, %rsi
	movq	_VMXNET3_REG_RXPROD@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	8(%r12), %rax
	movq	(%rax,%r14), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_VMXNET3_WRITE_BAR0_REG
	movslq	(%r13), %rsi
	imulq	%r15, %rsi
	movq	_VMXNET3_REG_RXPROD2@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movq	8(%r12), %rax
	movq	(%rax,%r14), %rax
	movl	8(%rax), %edx
	movq	%r12, %rdi
	callq	_VMXNET3_WRITE_BAR0_REG
	incq	%rbx
	movslq	(%r12), %rax
	addq	$16, %r14
	cmpq	%rax, %rbx
	jl	LBB0_10
LBB0_11:
	movq	16(%r12), %rdi
	callq	_vmxnet3_set_mc
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_vmxnet3_check_link
	cmpl	$0, (%r12)
	jle	LBB0_14
## %bb.12:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	addq	%r14, %rdi
	callq	_napi_enable
	incq	%rbx
	movslq	(%r12), %rax
	addq	$16, %r14
	cmpq	%rax, %rbx
	jl	LBB0_13
LBB0_14:
	movq	%r12, %rdi
	callq	_vmxnet3_enable_all_intrs
	movq	_VMXNET3_STATE_BIT_QUIESCED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %r12
	movq	%r12, %rsi
	callq	_clear_bit
	xorl	%r14d, %r14d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: skb_buf_size %d, rx_buf_per_pkt %d, ring sizes %u %u %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to init rx queue error %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to setup irq for error %d\n"

	.comm	_VMXNET3_REG_DSAL,4,2           ## @VMXNET3_REG_DSAL
	.comm	_VMXNET3_REG_DSAH,4,2           ## @VMXNET3_REG_DSAH
	.comm	_VMXNET3_REG_CMD,4,2            ## @VMXNET3_REG_CMD
	.comm	_VMXNET3_CMD_ACTIVATE_DEV,4,2   ## @VMXNET3_CMD_ACTIVATE_DEV
L_.str.3:                               ## @.str.3
	.asciz	"Failed to activate dev: error %u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VMXNET3_REG_RXPROD,8,3         ## @VMXNET3_REG_RXPROD
	.comm	_VMXNET3_REG_ALIGN,4,2          ## @VMXNET3_REG_ALIGN
	.comm	_VMXNET3_REG_RXPROD2,8,3        ## @VMXNET3_REG_RXPROD2
	.comm	_VMXNET3_STATE_BIT_QUIESCED,4,2 ## @VMXNET3_STATE_BIT_QUIESCED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmxnet3_activate_dev           ; -- Begin function vmxnet3_activate_dev
	.p2align	2
_vmxnet3_activate_dev:                  ; @vmxnet3_activate_dev
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x0, [x0, #16]
	ldr	x8, [x19, #8]
	ldr	w2, [x0]
	ldp	w4, w3, [x19, #40]
	ldr	x9, [x19, #32]
	ldr	w5, [x9]
	ldr	x8, [x8, #8]
	ldr	w6, [x8, #4]
	ldr	w7, [x8, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_dbg
	mov	x0, x19
	bl	_vmxnet3_tq_init_all
	mov	x0, x19
	bl	_vmxnet3_rq_init_all
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x0, [x19, #16]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_vmxnet3_request_irqs
	cbz	w0, LBB0_7
; %bb.3:
	mov	x20, x0
	ldr	x0, [x19, #16]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	mov	x2, x20
	bl	_netdev_err
LBB0_5:
	mov	x0, x19
	bl	_vmxnet3_rq_cleanup_all
LBB0_6:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	bl	_vmxnet3_setup_driver_shared
Lloh6:
	adrp	x22, _VMXNET3_REG_DSAL@GOTPAGE
Lloh7:
	ldr	x22, [x22, _VMXNET3_REG_DSAL@GOTPAGEOFF]
	ldr	w20, [x22]
	ldr	w0, [x19, #28]
	bl	_VMXNET3_GET_ADDR_LO
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_VMXNET3_WRITE_BAR1_REG
Lloh8:
	adrp	x23, _VMXNET3_REG_DSAH@GOTPAGE
Lloh9:
	ldr	x23, [x23, _VMXNET3_REG_DSAH@GOTPAGEOFF]
	ldr	w20, [x23]
	ldr	w0, [x19, #28]
	bl	_VMXNET3_GET_ADDR_HI
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_VMXNET3_WRITE_BAR1_REG
	add	x21, x19, #24
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh10:
	adrp	x20, _VMXNET3_REG_CMD@GOTPAGE
Lloh11:
	ldr	x20, [x20, _VMXNET3_REG_CMD@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh12:
	adrp	x8, _VMXNET3_CMD_ACTIVATE_DEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VMXNET3_CMD_ACTIVATE_DEV@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_VMXNET3_WRITE_BAR1_REG
	ldr	w1, [x20]
	mov	x0, x19
	bl	_VMXNET3_READ_BAR1_REG
	mov	x20, x0
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cbz	w20, LBB0_9
; %bb.8:
	ldr	x0, [x19, #16]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_netdev_err
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_VMXNET3_WRITE_BAR1_REG
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_VMXNET3_WRITE_BAR1_REG
	mov	x0, x19
	bl	_vmxnet3_free_irqs
	b	LBB0_5
LBB0_9:
	mov	x0, x19
	bl	_vmxnet3_init_coalesce
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x20, #0
	mov	w21, #8
Lloh20:
	adrp	x22, _VMXNET3_REG_RXPROD@GOTPAGE
Lloh21:
	ldr	x22, [x22, _VMXNET3_REG_RXPROD@GOTPAGEOFF]
Lloh22:
	adrp	x23, _VMXNET3_REG_ALIGN@GOTPAGE
Lloh23:
	ldr	x23, [x23, _VMXNET3_REG_ALIGN@GOTPAGEOFF]
Lloh24:
	adrp	x24, _VMXNET3_REG_RXPROD2@GOTPAGE
Lloh25:
	ldr	x24, [x24, _VMXNET3_REG_RXPROD2@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldrsw	x9, [x23]
	sxtw	x25, w20
	madd	x1, x9, x25, x8
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x21]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_VMXNET3_WRITE_BAR0_REG
	ldr	x8, [x24]
	ldrsw	x9, [x23]
	madd	x1, x9, x25, x8
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x21]
	ldr	w2, [x8, #8]
	mov	x0, x19
	bl	_VMXNET3_WRITE_BAR0_REG
	add	x20, x20, #1
	ldrsw	x8, [x19]
	add	x21, x21, #16
	cmp	x20, x8
	b.lt	LBB0_11
LBB0_12:
	ldr	x0, [x19, #16]
	bl	_vmxnet3_set_mc
	mov	x0, x19
	mov	w1, #1
	bl	_vmxnet3_check_link
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x20, #0
	mov	x21, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x20
	bl	_napi_enable
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x20, x20, #16
	cmp	x21, x8
	b.lt	LBB0_14
LBB0_15:
	mov	x0, x19
	bl	_vmxnet3_enable_all_intrs
Lloh26:
	adrp	x8, _VMXNET3_STATE_BIT_QUIESCED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VMXNET3_STATE_BIT_QUIESCED@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_clear_bit
	mov	w20, #0
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: skb_buf_size %d, rx_buf_per_pkt %d, ring sizes %u %u %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to init rx queue error %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to setup irq for error %d\n"

	.comm	_VMXNET3_REG_DSAL,4,2           ; @VMXNET3_REG_DSAL
	.comm	_VMXNET3_REG_DSAH,4,2           ; @VMXNET3_REG_DSAH
	.comm	_VMXNET3_REG_CMD,4,2            ; @VMXNET3_REG_CMD
	.comm	_VMXNET3_CMD_ACTIVATE_DEV,4,2   ; @VMXNET3_CMD_ACTIVATE_DEV
l_.str.3:                               ; @.str.3
	.asciz	"Failed to activate dev: error %u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VMXNET3_REG_RXPROD,8,3         ; @VMXNET3_REG_RXPROD
	.comm	_VMXNET3_REG_ALIGN,4,2          ; @VMXNET3_REG_ALIGN
	.comm	_VMXNET3_REG_RXPROD2,8,3        ; @VMXNET3_REG_RXPROD2
	.comm	_VMXNET3_STATE_BIT_QUIESCED,4,2 ; @VMXNET3_STATE_BIT_QUIESCED
.subsections_via_symbols
